/* ============================================
   BARICHA — Global Design System
   Premium Green Tea E-Commerce
   ============================================ */

/* ─── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── CSS Custom Properties ─────────────────── */
:root {
    /* Brand Colors — Premium Green Tea & Gold */
    --color-white: #FFFFFF;
    --color-offwhite: #F7F5F0;
    --color-cream: #EDE8DF;
    --color-light-gray: #E0DDD6;
    --color-mid-gray: #C8C4BC;
    --color-dark-gray: #8E8E93;
    --color-sage: #7A9E77;
    --color-sage-light: #A8C4A5;
    --color-sage-muted: #C5D9C3;
    --color-tea-green: #2D5016;
    --color-tea-dark: #1A3409;
    --color-dark: #0A0F07;
    --color-text: #1B1F18;
    --color-text-secondary: #6B6E68;
    --color-text-muted: #8E918B;

    /* Gold Accent */
    --color-gold: #C9A96E;
    --color-gold-light: #E8D5B0;
    --color-gold-dark: #A88B4A;

    /* Premium Backgrounds */
    --color-hero-bg: #0A1205;
    --color-section-dark: #0D1A06;
    --gradient-gold: linear-gradient(135deg, #C9A96E, #E8D5B0);
    --gradient-hero: linear-gradient(160deg, #0A1205 0%, #142208 40%, #0D1A06 100%);
    --gradient-dark-section: linear-gradient(180deg, #0D1A06 0%, #111E0A 50%, #0A1205 100%);

    /* Accent & Status */
    --color-success: #2D5016;
    --color-warning: #C9A96E;
    --color-danger: #B44A3E;
    --color-info: #3B7CB8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-cursive: 'Dancing Script', cursive;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);
    --transition-slower: 800ms var(--ease-out);
}

/* ─── Reset & Base ──────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-tea-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-tea-dark);
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Typography ────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* ─── Layout ────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm {
    max-width: var(--container-sm);
}

.container-md {
    max-width: var(--container-md);
}

.container-lg {
    max-width: var(--container-lg);
}

.container-2xl {
    max-width: var(--container-2xl);
}

.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-tea-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-tea-dark);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-tea-green);
    border: 1.5px solid var(--color-tea-green);
}

.btn-secondary:hover {
    background-color: var(--color-tea-green);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: #333;
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
    background: var(--color-offwhite);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
}

/* ─── Cards ─────────────────────────────────── */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: none;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.card-body {
    padding: var(--space-6);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-offwhite);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* ─── Premium Product Card ──────────────────── */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}

.product-card .card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-offwhite);
    overflow: hidden;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image img {
    transform: scale(1.08) rotate(1deg);
}

.product-card .card-actions {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.product-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card .card-actions .btn {
    flex: 1;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-3) var(--space-3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card .card-actions .btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.product-card .card-actions .btn-cart {
    /* primary styling inherited from .btn */
}

.product-card .card-actions .btn-wish {
    flex: 0 0 42px;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-actions .btn-wish.active {
    color: var(--color-danger);
}
.product-card .card-actions .btn-wish.active svg {
    fill: currentColor;
}

.product-card .card-body {
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    background: var(--color-white);
}

.product-card .product-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sage);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.product-card .product-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-dark);
    margin-bottom: var(--space-3);
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
}

.product-card .product-name a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.product-card .product-name a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-tea-green);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.product-card:hover .product-name a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.product-card .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: auto;
}

.product-card .price-current {
    font-size: var(--text-md);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-dark);
}

.product-card .price-original {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

/* ─── Badges ────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    line-height: 1.6;
}

.badge-success {
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-tea-green);
}

.badge-warning {
    background: rgba(196, 150, 12, 0.1);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(180, 74, 62, 0.1);
    color: var(--color-danger);
}

.badge-info {
    background: rgba(59, 124, 184, 0.1);
    color: var(--color-info);
}

.badge-primary {
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-tea-green);
}

.badge-secondary {
    background: var(--color-light-gray);
    color: var(--color-dark-gray);
}

.badge-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 2;
    background: var(--color-tea-green);
    color: var(--color-white);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-badge.badge-new {
    background: var(--color-dark);
}

.product-badge.badge-organic {
    background: var(--color-sage);
}

.product-badge.badge-limited {
    background: var(--color-warning);
    color: var(--color-dark);
}

/* ─── Stars ─────────────────────────────────── */
.stars {
    display: inline-flex;
    gap: 1px;
}

.star {
    color: var(--color-light-gray);
    font-size: 14px;
    line-height: 1;
}

.star.filled {
    color: var(--color-warning);
}

.star.half {
    color: var(--color-warning);
    opacity: 0.6;
}

/* ─── Forms ─────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-offwhite);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    background: var(--color-white);
    border-color: var(--color-sage);
    box-shadow: 0 0 0 4px rgba(139, 168, 136, 0.1);
}

.form-control::placeholder {
    color: var(--color-mid-gray);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6862' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-tea-green);
}

.form-text {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

/* ─── Alerts ────────────────────────────────── */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    animation: slideDown 0.3s var(--ease-out);
}

.alert-success {
    background: rgba(45, 80, 22, 0.08);
    color: var(--color-tea-green);
    border: 1px solid rgba(45, 80, 22, 0.15);
}

.alert-error {
    background: rgba(180, 74, 62, 0.08);
    color: var(--color-danger);
    border: 1px solid rgba(180, 74, 62, 0.15);
}

.alert-warning {
    background: rgba(196, 150, 12, 0.08);
    color: var(--color-warning);
    border: 1px solid rgba(196, 150, 12, 0.15);
}

.alert-info {
    background: rgba(59, 124, 184, 0.08);
    color: var(--color-info);
    border: 1px solid rgba(59, 124, 184, 0.15);
}

.alert-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ─── Tables ────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-light-gray);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    background: var(--color-offwhite);
    border-bottom: 1px solid var(--color-light-gray);
    white-space: nowrap;
}

tbody td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* ─── Modal ─────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 480px;
    width: 90%;
    transform: scale(0.95);
    transition: transform var(--transition-base);
    text-align: center;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h3 {
    margin-bottom: var(--space-3);
}

.modal p {
    margin-bottom: var(--space-6);
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

/* ─── Navbar (Public) ───────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-3) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-2) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.navbar-brand .brand-logo-icon {
    width: auto;
    height: 76px;
    object-fit: contain;
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.navbar-brand:hover .brand-logo-icon {
    transform: scale(1.05);
}

.navbar-brand .brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.navbar.scrolled .navbar-brand .brand-name {
    color: var(--color-dark);
    text-shadow: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar-nav a {
    font-family: var(--font-cursive);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar.scrolled .navbar-nav a {
    color: var(--color-text);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width var(--transition-base);
}

.navbar.scrolled .navbar-nav a::after {
    background: var(--color-tea-green);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover {
    color: var(--color-gold);
}

.navbar.scrolled .navbar-nav a:hover {
    color: var(--color-tea-green);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar-actions a {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-lg);
    position: relative;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.navbar.scrolled .navbar-actions a {
    color: var(--color-text);
}

.navbar-actions a:hover {
    color: var(--color-gold);
}

.navbar.scrolled .navbar-actions a:hover {
    color: var(--color-tea-green);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-tea-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(3px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(3px);
}

/* ─── Footer ────────────────────────────────── */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-20) 0 var(--space-8);
    font-family: var(--font-cursive);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand .brand-name {
    font-family: var(--font-cursive);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-cursive);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-5);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-tea-green);
    border-color: var(--color-tea-green);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ─── Page Headers ──────────────────────────── */
.page-header {
    padding: calc(80px + var(--space-16)) 0 var(--space-12);
    background: linear-gradient(160deg, #0A1205 0%, #1A3409 50%, #0D1A06 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
}

.page-header h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-3);
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto var(--space-4);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb-sep {
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* ─── Contact Page ──────────────────────────── */
.contact-section {
    padding: var(--space-24) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-info-card {
    background: var(--color-offwhite);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 110, 0.2);
}

.contact-info-card .card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1), rgba(201, 169, 110, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-info-card h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.contact-info-card p {
    font-size: var(--text-sm);
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.contact-info-card a {
    color: var(--color-tea-green);
    font-weight: 500;
}

.contact-social {
    margin-top: var(--space-8);
}

.contact-social h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.social-links-row {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-tea-green);
    border-color: var(--color-tea-green);
    color: var(--color-white);
    transform: translateY(-2px);
}

.contact-form-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-card h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.contact-form-card>p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.contact-form .form-group {
    margin-bottom: var(--space-5);
}

.contact-form .form-control {
    background: var(--color-offwhite);
    border: 1.5px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
    background: var(--color-white);
    border-color: var(--color-sage);
    box-shadow: 0 0 0 4px rgba(139, 168, 136, 0.12);
}

.contact-form .btn-primary {
    width: 100%;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* ─── Shop Page Enhanced ────────────────────── */
.shop-search-bar {
    position: relative;
    margin-bottom: var(--space-6);
}

.shop-search-bar input {
    width: 100%;
    padding: var(--space-3) var(--space-5) var(--space-3) var(--space-10);
    border: 1.5px solid var(--color-light-gray);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.shop-search-bar input:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
}

.shop-search-bar .search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: var(--space-8);
}

.filter-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-light-gray);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: var(--space-1);
}

.category-list a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-list a:hover {
    background: var(--color-offwhite);
    color: var(--color-tea-green);
}

.category-list a.active {
    background: rgba(45, 80, 22, 0.08);
    color: var(--color-tea-green);
    font-weight: 600;
}

.shop-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-light-gray);
}

.shop-results-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.shop-sort select {
    appearance: none;
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    border: 1.5px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6862' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast);
}

.shop-sort select:hover,
.shop-sort select:focus {
    border-color: var(--color-sage);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ─── Pagination ────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.page-btn:hover {
    background: var(--color-offwhite);
    color: var(--color-tea-green);
}

.page-btn.active {
    background: var(--color-tea-green);
    color: var(--color-white);
}

/* ─── Empty States ──────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.empty-state p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

/* ─── Loading ───────────────────────────────── */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-light-gray);
    border-top-color: var(--color-tea-green);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Quantity Selector ─────────────────────── */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-selector button {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.qty-selector button:hover {
    background: var(--color-offwhite);
}

.qty-selector input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-light-gray);
    border-right: 1px solid var(--color-light-gray);
    font-size: var(--text-sm);
    font-weight: 500;
    outline: none;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 18, 5, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px var(--space-8) var(--space-8);
        gap: var(--space-2);
        z-index: 99;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav.open {
        display: flex;
    }

    .navbar-nav.open a {
        font-size: var(--text-2xl);
        font-family: var(--font-heading);
        color: rgba(255, 255, 255, 0.85);
        padding: var(--space-3) 0;
        text-align: center;
    }

    .navbar-nav.open a:hover,
    .navbar-nav.open a.active {
        color: var(--color-gold);
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .navbar-brand .brand-logo-icon {
        width: auto;
        height: 44px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: var(--space-6);
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .page-header h1 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--text-3xl);
    }

    .container {
        padding: 0 var(--space-4);
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-12) 0;
    }

    .shop-products-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .contact-form-card {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    .page-header h1 {
        font-size: var(--text-2xl);
    }
}

/* ─── Shop Layout ───────────────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
}

.shop-search-bar {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
    transition: all var(--transition-fast);
}

.shop-search-bar:focus-within {
    border-color: var(--color-tea-green);
    box-shadow: 0 0 0 3px rgba(136, 171, 117, 0.1);
}

.shop-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: var(--space-2);
    font-size: var(--text-sm);
}

.filter-section {
    margin-bottom: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.category-list li {
    margin-bottom: var(--space-1);
}

.category-list a {
    display: block;
    color: var(--color-text);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.category-list a:hover {
    background: var(--color-offwhite);
    color: var(--color-dark);
    padding-left: var(--space-4);
}

.category-list a.active {
    background: rgba(136, 171, 117, 0.1);
    color: var(--color-tea-dark);
    font-weight: 600;
}

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.shop-results-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.shop-sort select {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--color-white);
    font-size: var(--text-sm);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.shop-sort select:focus {
    border-color: var(--color-tea-green);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .shop-sidebar {
        position: static;
        margin-bottom: var(--space-4);
    }

    .filter-section {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-bottom: var(--space-2);
    }

    .filter-title {
        display: none; /* Hide 'Categories' title on mobile to save space */
    }

    .category-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--space-2);
        padding-bottom: var(--space-3);
        margin: 0 calc(var(--space-4) * -1); /* Full bleed scrolling */
        padding: 0 var(--space-4) var(--space-3) var(--space-4);
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-list li {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .category-list a {
        background: var(--color-white);
        border: 1px solid rgba(0,0,0,0.05);
        padding: var(--space-2) var(--space-4);
        border-radius: var(--radius-full);
        font-size: var(--text-sm);
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }

    .category-list a:hover {
        padding-left: var(--space-4);
        background: rgba(45, 80, 22, 0.05);
    }

    .category-list a.active {
        background: var(--color-tea-dark);
        color: var(--color-white);
        border-color: var(--color-tea-dark);
    }

    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 576px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
}