/* ===================================
   POULTRY PRODUCTS - MAIN STYLESHEET
   Professional Golden & Ivory Theme
   Swiss/Editorial Design Aesthetic
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Refined Golden Yellow */
    --primary-50: #FFFBEB;
    --primary-100: #FEF3C7;
    --primary-200: #FDE68A;
    --primary-300: #FCD34D;
    --primary-400: #FBBF24;
    --primary-500: #F59E0B;
    --primary-600: #D97706;
    --primary-700: #B45309;
    --primary-800: #92400E;
    --primary-900: #78350F;
    --primary-950: #451A03;

    /* Neutral Colors - Warm Tones */
    --white: #FFFFFF;
    --ivory: #FFFDF7;
    --ivory-dark: #FFF8E7;
    --cream: #FEF7E0;
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;
    --black: #0C0A09;

    /* Accent Colors */
    --bronze: #7C4A03;
    --bronze-light: #A66B12;
    --gold: #B8860B;
    --gold-light: #D4A84B;
    --cocoa: #3D2B1F;
    --success: #059669;
    --warning: #EA580C;
    --error: #DC2626;
    --info: #0284C7;

    /* Typography */
    --font-primary: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;

    /* Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    /* Shadows - Warm Golden Tones */
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.12);
    --shadow-xl: 0 24px 48px rgba(28, 25, 23, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(28, 25, 23, 0.06);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.12);
    --shadow-gold: 0 4px 16px rgba(245, 158, 11, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--gray-900);
    background-color: var(--ivory);
    min-height: 100vh;
    padding-top: 140px;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h5 {
    font-size: 1.375rem;
    font-weight: 700;
}

h6 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
}

p {
    margin-bottom: var(--space-md);
    font-weight: 400;
    line-height: 1.75;
}

.text-primary {
    color: var(--primary-600);
}

.text-bronze {
    color: var(--bronze);
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--gray-700);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-600);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .subtitle {
    margin-bottom: var(--space-md);
    display: block;
}

.section-header h2 {
    margin-bottom: var(--space-lg);
}

.section-header p {
    max-width: 580px;
    margin: 0 auto;
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 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;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 253, 247, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 140px;
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-brand .logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold);
}

/* Logo with Image */
.navbar-brand .logo.logo-image {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
}

.navbar-brand .logo.logo-image img {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-brand .brand-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.navbar-brand .brand-text span {
    color: var(--primary-600);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    position: relative;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    padding: var(--space-sm) 0;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.cart-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.cart-icon:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

.cart-icon svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition-fast);
}

@media (max-width: 900px) {
    .navbar-brand .brand-text {
        font-size: 1.75rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .navbar-menu {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-2xl);
        background: var(--ivory);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .navbar-menu.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar-brand .brand-text {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1.125rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.9375rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-500);
}

.btn-secondary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.75rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cocoa) 0%, var(--bronze) 50%, var(--primary-950) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    opacity: 0.2;
    filter: saturate(0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
    padding-top: 120px;
}

@media (min-width: 1400px) {
    .hero-content {
        margin-left: calc((100vw - 1320px) / 2);
        margin-right: auto;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 248, 231, 0.1);
    border: 1px solid rgba(255, 248, 231, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary-300);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xl);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--primary-400);
    display: inline;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 248, 231, 0.85);
    margin-bottom: var(--space-2xl);
    line-height: 1.75;
    max-width: 540px;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 248, 231, 0.08);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 248, 231, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 120px var(--space-lg) var(--space-3xl);
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-2xl);
    }

    .hero-stat {
        text-align: center;
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--cream);
    flex-shrink: 0;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-badge {
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-xs);
}

.product-badge.sale {
    background: var(--primary-500);
    color: var(--white);
}

.product-badge.featured {
    background: var(--gold);
    color: var(--white);
}

.product-badge.export {
    background: var(--gray-900);
    color: var(--white);
}

.product-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-600);
    margin-bottom: var(--space-xs);
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.product-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-600);
}

.product-description {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: 0.75rem;
}

.product-weight {
    font-size: 0.8125rem;
    color: var(--gray-700);
}

.product-grade {
    padding: 4px 10px;
    background: var(--cream);
    border-radius: var(--radius-xs);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: 0.75rem;
}

.product-price .current {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-600);
    letter-spacing: -0.02em;
}

.product-price .original {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.product-add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.product-add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.product-add-to-cart-btn:active {
    transform: translateY(0);
}

.product-add-to-cart-btn svg {
    width: 22px;
    height: 22px;
}

/* Product Card Responsive */
@media (max-width: 1024px) {
    .product-card-image {
        height: 300px;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .product-price .current {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-card-image {
        height: 280px;
    }

    .product-card-content {
        padding: var(--space-lg);
    }

    .product-title {
        font-size: 1.125rem;
    }

    .product-description {
        font-size: 0.875rem;
        margin-bottom: var(--space-md);
    }

    .product-price {
        padding-top: var(--space-md);
    }

    .product-price .current {
        font-size: 1.375rem;
    }

    .product-card-footer {
        padding: var(--space-md) var(--space-lg) var(--space-lg);
    }

    .product-add-to-cart-btn {
        padding: 0.875rem var(--space-lg);
        font-size: 0.9375rem;
    }

    .product-add-to-cart-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .product-card-image {
        height: 240px;
    }

    .product-card-content {
        padding: var(--space-md);
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }

    .product-description {
        font-size: 0.8125rem;
    }

    .product-meta {
        margin-bottom: var(--space-md);
    }

    .product-price .current {
        font-size: 1.25rem;
    }

    .product-price .original {
        font-size: 0.875rem;
    }

    .product-card-footer {
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }

    .product-add-to-cart-btn {
        padding: 0.75rem var(--space-md);
        font-size: 0.875rem;
    }
}

/* Product Card Mobile - Center Text */
@media (max-width: 640px) {
    .product-card-content {
        text-align: center;
    }

    .product-category {
        display: block;
    }

    .product-title {
        text-align: center;
    }

    .product-description {
        text-align: center;
    }

    .product-meta {
        justify-content: center;
    }

    .product-price {
        justify-content: center;
    }
}

/* Category Card */
.category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card-bg {
    transform: scale(1.08);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.9) 0%, rgba(28, 25, 23, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    z-index: 2;
}

.category-card-title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.category-card-count {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== FEATURES ===== */
.features {
    background: var(--cream);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    border-radius: var(--radius-sm);
    color: var(--primary-600);
    border: 1px solid var(--primary-200);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    /* The last column carries the email address, which is a single unbreakable
       ~181px word - it needs a wider share than the two link columns or it
       wraps mid-word at the narrower four-column widths. */
    grid-template-columns: 2fr 1fr 1fr 1.7fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

/* Grid tracks default to a min-content minimum, which lets a long word in one
   column steal width from the others. Let every column shrink to its fr share. */
.footer-grid > div {
    min-width: 0;
}

.footer-brand {
    margin-bottom: var(--space-lg);
}

.footer-logo {
    margin-bottom: var(--space-lg);
    padding: var(--space-md) 0;
}

.footer-logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-brand .brand-text {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.025em;
}

.footer-brand .brand-text span {
    color: var(--primary-400);
}

.footer-description {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
    background: var(--primary-500);
    color: var(--white);
    border-color: var(--primary-500);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 1.0625rem;
    color: var(--gray-400);
    font-weight: 400;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--gray-400);
    min-width: 0;
}

/* The email address is a single unbreakable 181px word. Without this it sets a
   221px floor on its grid track and starves the other three columns. */
.footer-contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-400);
}

.footer-bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-copyright {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-700);
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

.footer-legal a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* Footer responsive ladder: 4 -> 2 -> 1 columns.
   These blocks must stay AFTER the base footer rules above - they share the
   same specificity, so source order is what makes them win. */

/* Four columns still fit here, but three 80px gutters do not. */
@media (max-width: 1199px) {
    .footer-grid {
        gap: var(--space-2xl);
    }
}

/* Below this, four columns cannot hold their content without crushing. */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand .brand-text {
        font-size: 1.875rem;
    }

    .footer-description {
        font-size: 1rem;
    }

    .footer-title {
        font-size: 0.9375rem;
    }

    .footer-links a,
    .footer-contact-item {
        font-size: 1rem;
    }

    .footer-copyright,
    .footer-legal a {
        font-size: 0.9375rem;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-grid > div {
        text-align: center;
    }

    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    font-family: inherit;
    font-size: 1.0625rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: var(--space-xs);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--error);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 108px;
    right: var(--space-xl);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--gray-400);
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--primary-500);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.toast-success .toast-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error);
}

.toast-message {
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
}

.toast-exit {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(80px);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
    }

    50% {
        box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.5s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.35s ease-out forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: var(--radius-sm);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.spinner-lg {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.py-section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.bg-cream {
    background-color: var(--cream);
}

.bg-ivory {
    background-color: var(--ivory);
}

.bg-white {
    background-color: var(--white);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
    margin: var(--space-md) 0;
}

.accent-line-center {
    margin-left: auto;
    margin-right: auto;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-grow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-grow:hover {
    transform: scale(1.03);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 600px) {
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
        top: 80px;
    }

    .toast {
        padding: var(--space-sm) var(--space-md);
    }

    .toast-message {
        font-size: 0.875rem;
    }

    .toast-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .toast-container {
        left: var(--space-sm);
        right: var(--space-sm);
        top: 70px;
    }

    .toast {
        padding: var(--space-xs) var(--space-sm);
    }

    .toast-content {
        gap: var(--space-sm);
    }
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cart-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.cart-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
}

.cart-sidebar-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.cart-sidebar-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-sidebar-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.cart-total-label {
    font-weight: 500;
    color: var(--gray-700);
}

.cart-total-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--primary-600);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.cart-quantity-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.cart-quantity {
    font-weight: 500;
    color: var(--gray-800);
    min-width: 28px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--error);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--gray-300);
}

.cart-empty-text {
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-wrapper nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pagination-wrapper nav>div {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Style all pagination links and spans */
.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-wrapper a:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.pagination-wrapper span[aria-current="page"] {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--white);
}

.pagination-wrapper span[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Simple pagination (Previous/Next only) */
.pagination-wrapper>nav>div>a,
.pagination-wrapper>nav>div>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 44px;
    padding: 0 var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin: 0 var(--space-sm);
}

.pagination-wrapper>nav>div>a:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

/* Tailwind/Laravel default pagination override */
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav[role="navigation"]>div {
    display: flex;
    align-items: center;
}

nav[role="navigation"]>div:first-child {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Hide page numbers, show only Previous/Next */
nav[role="navigation"]>div:last-child {
    display: none;
}

nav[role="navigation"] .flex.justify-between,
nav[role="navigation"] .hidden.sm\:flex-1 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin: 0 var(--space-xs);
}

nav[role="navigation"] a:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

nav[role="navigation"] span[aria-current="page"] {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--white);
}

nav[role="navigation"] span[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

/* CSS Spinner */
.css-spinner {
    width: 120px;
    height: 120px;
    border: 8px solid rgba(245, 158, 11, 0.2);
    border-top-color: #F59E0B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--gray-900);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3), 0 8px 24px rgba(245, 158, 11, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--bronze-light));
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4), 0 12px 32px rgba(245, 158, 11, 0.3);
    transform: translateY(-4px) scale(1.05);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3), 0 8px 24px rgba(245, 158, 11, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
    animation: bounce-arrow 1s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Additional elegant shadow on light backgrounds */
@media (prefers-color-scheme: light) {
    .scroll-to-top {
        box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25),
                    0 8px 24px rgba(184, 134, 11, 0.15),
                    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }

    .scroll-to-top:hover {
        box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35),
                    0 12px 32px rgba(184, 134, 11, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }
}

/* ===== EDITORIAL CARD =====
   Borderless tinted card that replaces the legacy
   left-bordered blockquote/callout pattern. */
.editorial-card {
    background: var(--gray-50);
    border: none;
    border-radius: 18px;
    padding: var(--space-xl) 2.25rem;
    margin-bottom: var(--space-xl);
}

.editorial-card__label {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.editorial-card__quote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.editorial-card__divider {
    height: 1px;
    background: var(--gray-200);
    width: 40px;
    margin-bottom: 1rem;
}

.editorial-card__caption {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Semantic background tints (no accent bars) */
.editorial-card--info {
    background: #EFF6FF;
}

.editorial-card--success {
    background: #ECFDF5;
}

.editorial-card--warning {
    background: #FFFBEB;
}

.editorial-card--error {
    background: #FEF2F2;
}
