/* ===================================
   MEAT PRODUCTS - MAIN STYLESHEET
   Premium Deep Brown & Cream Theme
   Swiss/Editorial Design Aesthetic
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Rich Meat Browns */
    --primary-50:  #FAF7F5;    /* Very subtle warm tint - hover backgrounds */
    --primary-100: #F5EDE8;    /* Light warm tint - icon backgrounds, feature card icons */
    --primary-200: #E4BBA8;    /* Accent borders, icon bg gradients */
    --primary-300: #CAA99B;    /* Light peach/cream - hover borders */
    --primary-400: #A87E66;    /* Soft beige highlight - hero accent, gradient starts */
    --primary-500: #946048;    /* Medium warm brown - badges, active states */
    --primary-600: #81513C;    /* MAIN PRIMARY - buttons, nav active, price, text-primary */
    --primary-700: #723C29;    /* Button hover gradients */
    --primary-800: #642816;    /* Deep brown - dark accents */
    --primary-900: #4A1E10;    /* Very dark brown */
    --primary-950: #1A1815;    /* Dark charcoal - hero gradient endpoint */

    /* Neutral Colors - Clean & Crisp */
    --white:    #FFFFFF;
    --ivory:    #FEFEFE;       /* Page background - near-white */
    --ivory-dark: #FAFAFA;     /* Slightly darker ivory */
    --cream:    #F8F8F7;       /* Card backgrounds, feature section bg - neutral */
    --cream-dark: #F0F0EE;     /* Darker cream accent - neutral */
    --gray-50:  #FAFAF9;       /* Alternate section bg, form backgrounds */
    --gray-100: #F5F5F4;       /* Subtle borders, hover bg */
    --gray-200: #E7E5E4;       /* Card borders, dividers */
    --gray-300: #D6D3D1;       /* Input borders, outline buttons */
    --gray-400: #A8A29E;       /* Placeholder text, strikethrough prices */
    --gray-500: #78716C;       /* Muted text, filter headings */
    --gray-600: #57534E;       /* Secondary text, descriptions */
    --gray-700: #44403C;       /* Body text secondary, nav links */
    --gray-800: #292524;       /* Strong text, descriptions */
    --gray-900: #1C1917;       /* Primary text color, headings */
    --black:    #0C0A09;       /* Near-black */

    /* Accent Colors */
    --cocoa:        #2A1E17;   /* Hero section gradient start */
    --bronze:       #642816;   /* Rich deep brown accent */
    --bronze-light: #81513C;   /* Lighter bronze */
    --gold:         #B87333;   /* Warm copper accent - cert icons, special buttons */
    --gold-light:   #D4A574;   /* Copper gradient pair */
    --success:      #059669;   /* Green checkmarks, success toasts */
    --warning:      #D97706;   /* Warning states */
    --error:        #DC2626;   /* Error states, remove buttons */
    --info:         #0284C7;   /* Info states */

    /* 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 - Minimal for professional look */
    --radius-xs:   2px;
    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-lg:   8px;
    --radius-full: 9999px;

    /* Shadows - Warm toned */
    --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(129, 81, 60, 0.15);    /* Primary color glow */
    --shadow-gold:  0 4px 16px rgba(184, 115, 51, 0.15);  /* Gold/copper accent shadow */

    /* 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;
    -webkit-tap-highlight-color: transparent;
}

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;
}

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: 700;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

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;
}

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);
}

.text-primary {
    color: #DC2626;
}

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

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

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

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

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

.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;
    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;
    }

    /* Center the Export CTA section content on mobile */
    .export-cta .reveal-left,
    .export-cta .reveal-right {
        text-align: center;
        transform: none;
    }

    .export-cta .reveal-left ul {
        padding-left: 0;
        list-style: none;
    }

    .export-cta .reveal-left ul li {
        justify-content: center;
    }

    .export-cta .reveal-right img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

.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: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}

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

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

.navbar-brand .logo {
    display: flex;
    align-items: center;
    background: none;
}

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

.navbar-brand .brand-text span {
    color: #DC2626;
}

/* ===== DESKTOP NAVIGATION LINKS ===== */
.desktop-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: var(--space-xl);
}

.desktop-nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

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

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

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

.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;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.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-600);
    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(--black);
    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(129, 81, 60, 0.4);
}

/* ===== SEARCH BAR ===== */
.navbar-search {
    flex: 1;
    max-width: 320px;
    margin: 0 var(--space-lg);
}

.search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 var(--space-lg);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(129, 81, 60, 0.1);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-button {
    position: absolute;
    right: 4px;
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-button:hover {
    background: var(--primary-700);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Mobile Search */
.mobile-search-wrapper {
    display: none;
    width: 100%;
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.mobile-search-form {
    width: 100%;
}

/* ===== SEARCH PREDICTIONS DROPDOWN ===== */
.search-predictions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-xs);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-predictions-list {
    display: flex;
    flex-direction: column;
}

.search-prediction-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--black);
}

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

.search-prediction-item:hover {
    background: var(--cream);
}

.search-prediction-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--gray-100);
}

.search-prediction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.search-prediction-name {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-prediction-category {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gray-500);
}

.search-prediction-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-600);
    flex-shrink: 0;
}

.search-predictions-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 400;
}

.search-predictions-loading {
    padding: var(--space-xl);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 400;
}

/* Desktop search predictions positioning */
.navbar-search {
    position: relative;
}

.desktop-search .search-predictions {
    margin-top: 8px;
}

/* Mobile search predictions positioning */
.mobile-search-wrapper .search-predictions {
    margin-top: var(--space-md);
}

/* ===== MOBILE CART WRAPPER ===== */
.mobile-cart-wrapper {
    display: none;
    width: 100%;
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-cart-icon {
    width: 100%;
    height: auto;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    background: var(--cream);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    font-size: 1.0625rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
    position: relative;
}

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

.mobile-cart-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-cart-icon .cart-badge {
    position: static !important;
    min-width: 24px;
    width: auto !important;
    max-width: 40px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(129, 81, 60, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-label {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 400;
    color: inherit;
}

.mobile-view-cart-btn {
    width: 100%;
    display: flex !important;
    justify-content: center;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    text-align: center;
}

/* Navigation Links Wrapper */
.nav-links-wrapper {
    display: contents;
}

/* Desktop cart/view cart - visible by default */
.desktop-cart-icon,
.desktop-view-cart-btn {
    display: flex;
}

/* ===== MOBILE MENU TOGGLE (HAMBURGER) ===== */
.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--cream);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 400;
}

.mobile-menu-toggle:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

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

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Backdrop Overlay */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998 !important;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* HIDE mobile menu by default on desktop */
.navbar-menu {
    display: none;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 900px) {
    .navbar {
        z-index: 1000000 !important;
    }

    .navbar-container {
        height: 76px;
    }

    /* Hide desktop search on mobile */
    .desktop-search {
        display: none;
    }

    /* Hide desktop nav links on mobile */
    .desktop-nav-links {
        display: none;
    }

    /* Show mobile search in menu */
    .mobile-search-wrapper {
        display: block;
    }

    /* Show mobile cart wrapper in menu */
    .mobile-cart-wrapper {
        display: block;
    }

    /* Hide desktop cart icon and view cart button on mobile */
    .desktop-cart-icon,
    .desktop-view-cart-btn {
        display: none !important;
    }

    /* SHOW navbar-menu on mobile (but hidden by default) */
    .navbar-menu {
        display: flex;
        position: fixed !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: var(--space-2xl);
        background: #FFFFFF !important;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        overflow-y: auto;
        z-index: 999999 !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }

    .navbar-menu.open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* Better spacing for mobile search */
    .mobile-search-wrapper {
        margin-bottom: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    /* Better spacing for mobile cart */
    .mobile-cart-wrapper {
        margin-bottom: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .nav-links-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: var(--space-lg) var(--space-md);
        border-bottom: 1px solid var(--gray-200);
        text-align: left;
        font-size: 1.125rem;
        font-weight: 400;
    }

    .nav-link:first-child {
        border-top: 1px solid var(--gray-200);
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000001 !important;
        position: relative;
    }

    .navbar-actions {
        gap: var(--space-md);
        justify-content: flex-end;
    }

    /* Ensure hero section stays behind navbar/menu on mobile */
    .hero,
    .hero::before,
    .hero::after,
    .hero-bg-image,
    .hero-content {
        z-index: 1 !important;
    }

    /* Force all main content to stay behind */
    main,
    #main-content,
    .section {
        position: relative;
        z-index: 1 !important;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 0 var(--space-md);
        height: 70px;
    }

    .navbar-brand .brand-text {
        font-size: 1.375rem;
    }

    .navbar-brand .logo img {
        height: 70px !important;
    }

    /* Smaller hamburger on mobile */
    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .mobile-menu-toggle span {
        width: 20px;
    }

    .navbar-menu {
        top: 70px;
        padding: var(--space-lg);
    }

    /* Smaller mobile cart elements */
    .mobile-cart-icon {
        padding: var(--space-md);
    }

    .mobile-view-cart-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9375rem;
    }
}

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

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* ===== 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: #DC2626;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

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

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

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

.btn-outline:hover {
    border-color: var(--primary-600);
    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, 115, 51, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 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(--gray-900) 0%, var(--primary-800) 50%, var(--primary-950) 100%);
    overflow: hidden;
    z-index: 1;
}

.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(201, 28, 28, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

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

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

@media (max-width: 1400px) {
    .hero-content {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(252, 245, 229, 0.1);
    border: 1px solid rgba(252, 245, 229, 0.15);
    border-radius: var(--radius-sm);
    color: rgba(252, 245, 229, 0.75);
    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: #DC2626;
    display: inline;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(252, 245, 229, 0.75);
    margin-bottom: var(--space-2xl);
    line-height: 1.75;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(252, 245, 229, 0.08);
    justify-content: center;
}

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

.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(252, 245, 229, 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;
    }
}

/* ===== LEGAL CLAUSE LISTS ===== */

/* Numbered clause lists for /privacy-policy and /terms-of-service.
   Required because the global reset near the top of this file sets
   `ul, ol { list-style: none }` site-wide - without this block the items on
   those two pages render with no bullet and no number at all.
   The clause number is --legal-section (the section number, set once on the
   <ol>) plus a CSS counter, so renumbering a section is a one-value edit.

   🚨 --legal-section must be a QUOTED STRING, e.g. style="--legal-section: '4'".
   A bare number is not a <string> and the whole `content` declaration is then
   invalid, which silently drops every clause number in that list. It also has
   to be a custom property rather than attr(): ::before sits on the <li>, and
   attr() can only read attributes of its own element, never the parent <ol>. */
.legal-list {
    counter-reset: clause;
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    color: var(--black);
}

.legal-list > li {
    counter-increment: clause;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: var(--space-md);
}

.legal-list > li::before {
    content: var(--legal-section) "." counter(clause);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-600);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .legal-list > li {
        padding-left: 2.75rem;
    }
}

/* ===== CARDS ===== */

/* Editorial Card - borderless tinted surface for quotes, notes & callouts */
.editorial-card {
    background: var(--cream);
    border: none;
    border-radius: 12px;
    padding: 2.5rem 2.75rem;
}

.editorial-card--primary {
    background: var(--primary-50);
}

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

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

.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: 1.25rem;
}

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

.editorial-card__body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
}

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

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

@media (max-width: 640px) {
    .editorial-card {
        padding: 1.75rem 1.5rem;
    }
}

.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-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--gray-100);
}

.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-600);
    color: var(--white);
}

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

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

.product-quick-add {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.product-card:hover .product-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-add:hover {
    background: var(--primary-600);
    color: var(--white);
    border-color: var(--primary-600);
}

.product-quick-add svg {
    width: 20px;
    height: 20px;
}

.product-card-content {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.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.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

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

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

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

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

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-md);
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.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: 0.9375rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-add-btn {
    padding: var(--space-md) var(--space-lg);
    background: #DC2626;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-add-btn:hover {
    background: #B91C1C;
}

/* 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: 700;
    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;
}

/* Responsive category cards */
@media (max-width: 768px) {
    .category-card {
        height: 280px;
    }

    .category-card-title {
        font-size: 1.375rem;
    }

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

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

    .category-card-title {
        font-size: 1.25rem;
    }

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

/* ===== PRODUCTS PAGE ===== */
/* Products layout responsive grid */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 240px 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        order: 2;
        margin-top: var(--space-xl);
    }

    .products-main {
        order: 1;
    }
}

/* Filter sections */
.filter-section {
    margin-bottom: var(--space-xl);
}

.filter-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.filter-option:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.filter-option.active {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.filter-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-700);
}

.filter-option.active .filter-count {
    background: var(--primary-200);
    color: var(--primary-800);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.price-range {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-range span {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Products toolbar */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.products-count {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 640px) {
    .products-toolbar {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .products-sort {
        width: 100%;
    }
}

/* ===== 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: 700;
    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;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    align-items: baseline;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.footer-brand .brand-text {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    line-height: 1;
    margin: 0;
}

.footer-brand .brand-text span {
    color: #DC2626;
}

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

.footer-social {
    display: flex;
    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-400);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.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;
    font-weight: 400;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

.footer-contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--gray-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: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-legal a {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

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

/* Mobile footer (single-column layout): center all content horizontally */
@media (max-width: 600px) {
    .footer-brand,
    .footer-brand .brand-text,
    .footer-description,
    .footer-title {
        text-align: center;
    }

    .footer-social,
    .footer-bottom,
    .footer-legal {
        justify-content: center;
    }

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

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

/* ===== 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);
}

.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(129, 81, 60, 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);
}

/* ===== 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);
}

/* ===== BACKGROUND UTILITIES ===== */
.bg-cream {
    background-color: var(--cream);
}

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

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

/* ===== ACCENT LINE ===== */
.accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary-600);
    margin: var(--space-md) 0;
}

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

/* ===== 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: 400;
    color: var(--black);
    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-600);
    border-color: var(--primary-600);
    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: 400;
    color: var(--black);
    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: 400;
    color: var(--black);
    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-600);
    border-color: var(--primary-600);
    color: var(--white);
}

nav[role="navigation"] span[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Butcher's Cuts Section */
.cuts-composite-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

.cuts-composite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.cuts-composite-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cuts-composite-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: var(--space-2xl) var(--space-xl);
    color: var(--white);
}

.cuts-composite-overlay h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.cuts-composite-overlay p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cuts-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.cuts-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.cuts-card-image {
    position: relative;
    background: var(--cream);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.cuts-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.cuts-card-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cuts-card-content h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.cuts-card-content p {
    color: var(--gray-900);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.cuts-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
    color: var(--primary-600);
    transition: all var(--transition-fast);
    margin-top: auto;
}

.cuts-link:hover {
    color: var(--primary-700);
    gap: var(--space-sm);
}

.cuts-info-box {
    background: var(--white);
    border: 2px solid var(--primary-100);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.cuts-info-box h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .cuts-composite-overlay h3 {
        font-size: 1.5rem;
    }

    .cuts-composite-overlay p {
        font-size: 1rem;
    }

    .cuts-card-content h4 {
        font-size: 1.25rem;
    }
}

/* ===================================
   LOADING SPINNER
   =================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-base);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loading-spinner::before {
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-100);
    border-top-color: var(--primary-600);
    animation: spinner-rotate 1s linear infinite;
}

.loading-spinner::after {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-400);
    animation: spinner-rotate 1.5s linear infinite reverse;
}

@keyframes spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--primary-700);
    font-weight: 700;
    white-space: nowrap;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-fixed);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3), 0 8px 24px rgba(184, 115, 51, 0.2);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

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

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--primary-600));
    box-shadow: 0 12px 32px rgba(184, 115, 51, 0.4), 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.05);
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Pulse animation for scroll button */
@keyframes scroll-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3), 0 8px 24px rgba(184, 115, 51, 0.2), 0 0 0 0 rgba(184, 115, 51, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3), 0 8px 24px rgba(184, 115, 51, 0.2), 0 0 0 16px rgba(184, 115, 51, 0);
    }
}

.scroll-to-top.visible {
    animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-to-top:hover {
    animation: none;
}

/* Responsive - Smaller button on mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }

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

/* Accessibility - Focus state */
.scroll-to-top:focus-visible {
    outline: 3px solid var(--primary-400);
    outline-offset: 4px;
}

/* ===== MOBILE BUTTON SHAPE OVERRIDE =====
   Pill-shape all user-facing CTA buttons on mobile only.
   Placed at end-of-file so it wins source-order against every
   button rule above (especially `.product-add-btn` ~line 1488
   which would otherwise override the mobile radius via the
   later-wins CSS cascade rule).
   Breakpoint matches the navbar's hamburger threshold (~900px). */
@media (max-width: 900px) {
    .btn,
    .product-add-btn {
        border-radius: var(--radius-full);
    }
}
