/* ========================================
   TOKENS - Professional & Clean
======================================== */
:root {
    /* Brand Colors - Refined */
    --brand-red: #c41e1e;
    --brand-red-dark: #9a1818;
    --brand-red-light: #fee2e2;

    /* Neutrals - Modern Palette */
    --black: #1a1a1a;
    --dark: #1a1a1a;
    --grey-dark: #374151;
    --grey-muted: #6b7280;
    --grey-light: #9ca3af;
    --border: #e5e7eb;
    --white: #ffffff;
    --off-white: #f9fafb;
    --surface: #f3f4f6;

    /* Success/Warning Colors */
    --success: #059669;
    --warning: #d97706;
    --gold: #b8860b;

    /* Typography - DM Serif + DM Sans */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Structure - Reduced Spacing */
    --container: 1200px;
    --section-gap: 80px;

    /* Animation */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.5s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   TYPOGRAPHY - Professional Scale
======================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 400;
}

.section-title {
    text-align: center;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--grey-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-gap) 0;
}

/* ========================================
   BUTTONS - Minimal Sharp Style
======================================== */
.btn-primary {
    background: var(--brand-red);
    border: 1px solid var(--brand-red);
    color: var(--white);
    padding: 14px 28px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    min-height: 48px;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: var(--white);
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 14px 28px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    min-height: 48px;
    border-radius: 0;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Secondary button on light backgrounds */
.btn-secondary.on-light {
    border-color: var(--border);
    color: var(--black);
}

.btn-secondary.on-light:hover {
    border-color: var(--black);
    background: transparent;
}

/* ========================================
   HEADER
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--duration) var(--ease);
}

.site-header.scrolled {
    background: var(--white);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.header-top {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s var(--ease);
    max-height: 50px;
    overflow: hidden;
    opacity: 1;
}

.site-header.scrolled .header-top {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.05em;
}

.site-header.scrolled .header-top .container {
    color: var(--grey-dark);
}

.contact-info a:hover,
.social-links a:hover {
    color: var(--brand-red);
}

.sep {
    margin: 0 12px;
    opacity: 0.6;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Main Bar */
.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 50px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: normal;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    transition: color 0.3s ease;
}

.site-header.scrolled .logo-text {
    color: var(--black);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    position: relative;
    padding: 12px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Unscrolled: white links, no color change on hover */
.main-nav a:hover {
    color: var(--white);
}

/* Scrolled: black links, red on hover */
.site-header.scrolled .main-nav a {
    color: var(--black);
}

.site-header.scrolled .main-nav a:hover {
    color: var(--brand-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Cart Icon */
.cart-item {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-link {
    color: var(--white);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 40px;
    min-height: 40px;
}

.cart-link:hover {
    color: var(--brand-red);
}

.site-header.scrolled .cart-link {
    color: var(--black);
}

.site-header.scrolled .cart-link:hover {
    color: var(--brand-red);
}

.cart-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--brand-red);
    color: var(--white);
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
}

/* ========================================
   HEADER FIX FOR INNER PAGES (Cart, Checkout, Shop, etc.)
======================================== */
/* Force visible header on WooCommerce pages */
.woocommerce-cart .site-header,
.woocommerce-checkout .site-header,
.woocommerce-account .site-header,
.single-product .site-header,
.page-template .site-header,
.post-type-archive-product .site-header,
.legal-page .site-header {
    background: var(--white);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.woocommerce-cart .site-header .header-top,
.woocommerce-checkout .site-header .header-top,
.woocommerce-account .site-header .header-top,
.single-product .site-header .header-top,
.page-template .site-header .header-top,
.post-type-archive-product .site-header .header-top,
.legal-page .site-header .header-top {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

.woocommerce-cart .logo-text,
.woocommerce-checkout .logo-text,
.woocommerce-account .logo-text,
.single-product .logo-text,
.page-template .logo-text,
.post-type-archive-product .logo-text,
.legal-page .logo-text {
    color: var(--black);
}

.woocommerce-cart .main-nav a,
.woocommerce-checkout .main-nav a,
.woocommerce-account .main-nav a,
.single-product .main-nav a,
.page-template .main-nav a,
.post-type-archive-product .main-nav a,
.legal-page .main-nav a {
    color: var(--black);
}

.woocommerce-cart .main-nav a:hover,
.woocommerce-checkout .main-nav a:hover,
.woocommerce-account .main-nav a:hover,
.single-product .main-nav a:hover,
.page-template .main-nav a:hover,
.post-type-archive-product .main-nav a:hover,
.legal-page .main-nav a:hover {
    color: var(--brand-red);
}

.woocommerce-cart .cart-link,
.woocommerce-checkout .cart-link,
.woocommerce-account .cart-link,
.single-product .cart-link,
.page-template .cart-link,
.post-type-archive-product .cart-link,
.legal-page .cart-link {
    color: var(--black);
}

.woocommerce-cart .cart-link:hover,
.woocommerce-checkout .cart-link:hover,
.woocommerce-account .cart-link:hover,
.single-product .cart-link:hover,
.page-template .cart-link:hover,
.post-type-archive-product .cart-link:hover,
.legal-page .cart-link:hover {
    color: var(--brand-red);
}

/* Add spacing under fixed header for inner pages */
.woocommerce-cart main,
.woocommerce-checkout main,
.woocommerce-account main,
.single-product main,
.page-template-default main,
.legal-page main,
body:not(.home) .site-content {
    padding-top: 100px;
}

/* Legal pages need more top spacing to clear fixed header */
.legal-page main,
.legal-page .site-content {
    padding-top: 140px !important;
}

/* Pages with hero don't need double padding */
.red-hero-page .site-content,
    padding-top: 0;
}

/* RED HERO PAGES — dark red header before scroll */
.red-hero-page .site-header:not(.scrolled) {
    background: #7a1414 !important;
    box-shadow: none !important;
}

.red-hero-page .site-header:not(.scrolled) .logo-text {
    color: var(--white) !important;
}

.red-hero-page .site-header:not(.scrolled) .main-nav a,
.red-hero-page .site-header:not(.scrolled) .main-nav a:hover {
    color: var(--white) !important;
    text-decoration: none !important;
}

.red-hero-page .site-header:not(.scrolled) .main-nav a:hover::after {
    background: var(--white) !important;
}

.red-hero-page .site-header:not(.scrolled) .cart-link,
.red-hero-page .site-header:not(.scrolled) .cart-link:hover {
    color: var(--white) !important;
}

.red-hero-page .site-header:not(.scrolled) .search-toggle,
.red-hero-page .site-header:not(.scrolled) .account-toggle,
.red-hero-page .site-header:not(.scrolled) .search-toggle:hover,
.red-hero-page .site-header:not(.scrolled) .account-toggle:hover {
    color: var(--white) !important;
}

.red-hero-page .site-header:not(.scrolled) .hamburger-line {
    background: var(--white) !important;
}

/* Page Hero Overlay Text - Force White */
.page-hero-overlay,
.page-hero h1,
.page-hero p,
.page-hero .page-title,
.page-hero .page-subtitle,
.hero-overlay h1,
.hero-overlay p,
.gallery-hero h1,
.gallery-hero p {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--brand-red);
    color: var(--white);
    padding: 100px 0 50px;
    text-align: center;
    border-top: none;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-contact {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.footer-contact-item a,
.footer-contact-item p {
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.footer-company-info {
    margin: 3rem auto;
    max-width: 500px;
}

.company-legal {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    text-align: center;
}

.company-legal strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.company-legal p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    opacity: 0.8;
}

.footer-nav a:hover {
    color: var(--white);
    opacity: 1;
    text-decoration: underline;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .footer-credit::before {
    content: "·";
    margin-right: 6px;
}

.footer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   ACCESSIBILITY - Focus States
======================================== */
.main-nav a:focus,
.btn-primary:focus,
.cart-link:focus,
.text-link:focus,
.footer-nav a:focus,
.add-to-cart-btn:focus,
.submit-btn:focus,
a:focus {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Remove default focus outline when using mouse */
.main-nav a:focus:not(:focus-visible),
.btn-primary:focus:not(:focus-visible),
.cart-link:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Visible focus for keyboard users */
.main-nav a:focus-visible,
.btn-primary:focus-visible,
.cart-link:focus-visible,
.text-link:focus-visible,
.add-to-cart-btn:focus-visible,
.submit-btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-red);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.fade-in-up {
    animation: fadeInUp 1.2s var(--ease) forwards;
    opacity: 0;
}

/* ========================================
   GLOBAL PRODUCT CARDS
======================================== */
.product-card,
.shop-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.2s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.product-card:hover,
.shop-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--black);
}

/* Card link fills space to push button to bottom */
.shop-card .card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Card details grows to fill remaining space */
.shop-card .card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Price stays at bottom of card details */
.shop-card .card-price {
    margin-top: auto;
}

.card-image,
.product-image {
    position: relative;
    height: 300px;
    /* Taller for better display */
    overflow: hidden;
    background: #fff;
    /* White bg for contained images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img,
.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Reverted to cover as requested */
    transition: transform 0.5s ease;
}

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

.add-to-cart-btn {
    display: block;
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 12px 15px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 44px;
    text-align: center;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: var(--brand-red-dark);
}

.add-to-cart-btn.out-of-stock {
    background: #666;
    cursor: not-allowed;
}

.add-to-cart-btn.out-of-stock:hover {
    background: #666;
}

/* Card form container */
.shop-card .cart-form {
    margin: 0;
}

/* Hide "View cart" link that appears after adding */
.shop-card a.added_to_cart,
.product-card a.added_to_cart {
    display: none !important;
}

/* Card Content Unification */
.card-details,
.product-info {
    padding: 20px;
    text-align: left;
}

.card-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
}

.card-title,
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #333;
    margin: 5px 0 10px;
    font-weight: 400;
    /* Consistent weight */
    line-height: 1.3;
}

.card-price,
.product-price,
.product-info p {
    font-family: var(--font-body) !important;
    /* Force clean font */
    font-weight: 700 !important;
    color: var(--brand-red) !important;
    font-size: 1.1rem !important;
    font-style: normal !important;
    /* Remove italics override */
    margin: 0;
}

/* Force WooCommerce Price Spans */
.product-card .price,
.shop-card .price,
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi {
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    color: var(--brand-red) !important;
    font-style: normal !important;
    text-decoration: none !important;
}



/* ========================================
   ALLERGEN BADGES - Clean Minimal
======================================== */
.allergen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.allergen-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.65rem;
    color: var(--grey-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Compact style for product cards */
.allergen-compact .allergen-badge {
    padding: 2px 6px;
    font-size: 0.65rem;
}

/* Full style for single product */
.allergen-full .allergen-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Product page allergen section */
.product-allergens {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.product-allergens .allergen-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   PRODUCT BADGES - Clean Professional Style
======================================== */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 2px;
    z-index: 10;
    pointer-events: none;
}

.badge-bestseller {
    background: var(--gold);
    color: #fff;
}

.badge-new {
    background: var(--success);
    color: #fff;
}

.badge-sale {
    background: var(--brand-red);
    color: #fff;
}

/* Ensure card has relative positioning for badge */
.shop-card,
.product-card {
    position: relative;
}

/* ========================================
   CARD RATING (Stars)
======================================== */
.card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 5px 0 8px;
    font-size: 0.85rem;
}

.card-rating .star {
    line-height: 1;
    font-size: 1rem;
}

.card-rating .star-full {
    color: #ffc107 !important;
    font-weight: normal;
}

.card-rating .star-half {
    color: #ffc107 !important;
    opacity: 0.7;
    font-weight: normal;
}

.card-rating .star-empty {
    color: #ddd !important;
    font-weight: normal;
}

.card-rating .rating-count {
    font-size: 0.75rem;
    color: #888;
    margin-left: 4px;
}

/* ========================================
   CARD DESCRIPTION (Preview)
======================================== */
.card-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   CARD META (Price + Urgency)
======================================== */
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.card-meta .card-price,
.card-meta .product-price {
    margin: 0;
}

/* ========================================
   STOCK URGENCY INDICATOR - Clean Style
======================================== */
.stock-urgency {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-red);
    background: var(--brand-red-light);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

/* ========================================
   ADD TO CART BUTTON - Clean Professional
======================================== */
.add-to-cart-btn {
    display: block;
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 14px 15px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 48px;
    text-align: center;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background: var(--brand-red-dark);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.add-to-cart-btn.out-of-stock {
    background: var(--grey-light);
    cursor: not-allowed;
}

.add-to-cart-btn.out-of-stock:hover {
    background: var(--grey-light);
}

/* Loading state for add to cart */
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
}

/* ========================================
   HIDE WOOCOMMERCE MESSAGES (use toast instead)
======================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: none !important;
}

/* ========================================
   TOAST NOTIFICATIONS (Enhanced)
======================================== */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: stretch;
    max-width: 380px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
}

/* Toast with product image */
.toast-image-wrap {
    width: 80px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.toast-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-main {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success,
.toast-icon.info {
    color: var(--success);
}

.toast-icon.cart {
    color: var(--brand-red);
}

.toast-icon.error {
    color: var(--brand-red);
}

.toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-message {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.toast-cart-link {
    font-size: 0.8rem;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.toast-cart-link:hover {
    color: #b52116;
    text-decoration: underline;
}

/* Toast type variations */
.toast-success {
    border-left: 4px solid var(--success);
}

.toast-info {
    border-left: 4px solid var(--success);
}

.toast-cart {
    border-left: 4px solid var(--brand-red);
}

.toast-error {
    border-left: 4px solid var(--brand-red);
}

@media (max-width: 480px) {
    #toast-container {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
    }

    .toast-image-wrap {
        width: 60px;
    }
}

/* ========================================
   MOBILE MENU / HAMBURGER
======================================== */

/* Hamburger Button - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-header.scrolled .hamburger-line,
.woocommerce-cart .hamburger-line,
.woocommerce-checkout .hamburger-line,
.woocommerce-account .hamburger-line,
.single-product .hamburger-line,
.page-template .hamburger-line,
.post-type-archive-product .hamburger-line,
.legal-page .hamburger-line {
    background: var(--black);
}

/* Hamburger Active State (X) */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* When menu is open, hamburger lines should be dark */
.hamburger.active .hamburger-line {
    background: var(--black);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Tablet & Mobile */
@media (max-width: 992px) {
    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Header adjustments */
    .header-top {
        display: none;
    }

    .header-main .container {
        position: relative;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo img {
        height: 45px;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px 40px;
        transition: right 0.4s var(--ease);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 18px 0;
        color: var(--black) !important;
        font-size: 1rem;
    }

    .main-nav a:hover {
        color: var(--brand-red) !important;
    }

    /* Red hero pages: keep white links on mobile header (not in open menu) */
    .red-hero-page .site-header:not(.scrolled) .main-nav:not(.active) a,
    .red-hero-page .site-header:not(.scrolled) .main-nav:not(.active) a:hover {
        color: var(--white) !important;
    }

    .main-nav a::after {
        display: none;
    }

    /* Cart item in mobile menu */
    .main-nav .cart-item {
        padding: 18px 0;
    }

    .main-nav .cart-link {
        color: var(--black) !important;
        justify-content: flex-start;
    }

    .main-nav .cart-link svg {
        margin-right: 10px;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        max-width: 100%;
        padding: 90px 30px 30px;
    }

    /* Footer adjustments */
    .footer-contact {
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    .footer-bottom .footer-credit::before {
        display: none;
    }
}

/* ========================================
   HEADER ICONS (Search, Account, Cart)
======================================== */
.header-icon {
    display: flex;
    align-items: center;
}

/* First icon (search) gets margin from nav links */
.header-icon.search-item {
    margin-left: 20px;
}

/* Consistent gap between icons */
.header-icon.account-item,
.header-icon.cart-item {
    margin-left: 4px;
}

.header-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Ensure button element is fully visible */
.main-nav button {
    font-family: inherit;
}

/* Header icons base - white on dark transparent header */
.search-toggle,
.account-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    min-width: 40px;
    min-height: 40px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-toggle:hover,
.account-toggle:hover {
    color: var(--brand-red);
}

/* Scrolled header - dark icons */
.site-header.scrolled .search-toggle,
.site-header.scrolled .account-toggle {
    color: var(--black);
}

.site-header.scrolled .search-toggle:hover,
.site-header.scrolled .account-toggle:hover {
    color: var(--brand-red);
}

/* Non-front-page headers (light background) */
.woocommerce-cart .search-toggle,
.woocommerce-cart .account-toggle,
.woocommerce-checkout .search-toggle,
.woocommerce-checkout .account-toggle,
.woocommerce-account .search-toggle,
.woocommerce-account .account-toggle,
.single-product .search-toggle,
.single-product .account-toggle,
.page-template .search-toggle,
.page-template .account-toggle,
.post-type-archive-product .search-toggle,
.post-type-archive-product .account-toggle,
.legal-page .search-toggle,
.legal-page .account-toggle {
    color: var(--black);
}

.woocommerce-cart .search-toggle:hover,
.woocommerce-cart .account-toggle:hover,
.woocommerce-checkout .search-toggle:hover,
.woocommerce-checkout .account-toggle:hover,
.woocommerce-account .search-toggle:hover,
.woocommerce-account .account-toggle:hover,
.single-product .search-toggle:hover,
.single-product .account-toggle:hover,
.page-template .search-toggle:hover,
.page-template .account-toggle:hover,
.post-type-archive-product .search-toggle:hover,
.post-type-archive-product .account-toggle:hover,
.legal-page .search-toggle:hover,
.legal-page .account-toggle:hover {
    color: var(--brand-red);
}

.account-name {
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.account-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================
   ACCOUNT DROPDOWN
======================================== */
.account-item {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.account-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--brand-red);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--grey-muted);
}

.dropdown-item:hover svg {
    color: var(--brand-red);
}

.dropdown-logout {
    border-top: 1px solid var(--border);
    margin-top: 5px;
    padding-top: 15px;
}

/* ========================================
   SEARCH OVERLAY
======================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.search-close:hover {
    opacity: 1;
}

.search-form {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 4px;
    padding: 15px 20px;
    gap: 12px;
}

.search-input-wrapper svg {
    color: var(--grey-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: var(--grey-light);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.search-result-item:hover {
    transform: translateX(5px);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-weight: 500;
    color: var(--black);
}

.search-result-price {
    font-size: 0.9rem;
    color: var(--brand-red);
    font-weight: 600;
}

.search-view-all {
    display: block;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    background: var(--brand-red);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.search-view-all:hover {
    background: var(--brand-red-dark);
    color: var(--white);
}

.search-loading,
.search-no-results {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    opacity: 0.9;
    font-size: 1rem;
}

body.search-open {
    overflow: hidden;
}

/* Hide icon text on desktop */
.icon-text {
    display: none;
}

/* Mobile adjustments for search and account */
@media (max-width: 992px) {
    .main-nav.active .header-icon {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-nav.active .search-toggle,
    .main-nav.active .account-toggle {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid #eee;
        color: var(--black) !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .main-nav.active .search-toggle svg,
    .main-nav.active .account-toggle svg {
        margin: 0;
        flex-shrink: 0;
    }

    .main-nav .header-icon {
        padding: 0 !important;
    }

    /* Show icon text labels on mobile menu */
    .main-nav.active .icon-text {
        display: inline-block;
        margin-left: 12px;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--black);
    }

    /* Make cart link match search/account button layout */
    .main-nav.active .cart-link {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid #eee;
        color: var(--black) !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .main-nav.active .cart-link svg {
        margin: 0;
        flex-shrink: 0;
    }

    /* Keep cart count badge visible and positioned correctly */
    .main-nav.active .cart-count {
        position: relative;
        margin-left: 8px;
        margin-right: 4px;
    }

    .main-nav.active .account-dropdown {
        position: static;
        box-shadow: none;
        background: var(--surface);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }

    .main-nav.active .account-dropdown.active {
        max-height: 200px;
    }

    .main-nav.active .dropdown-item {
        padding: 15px 20px;
    }

    .search-overlay {
        padding-top: 80px;
    }

    .search-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .search-overlay {
        padding-top: 60px;
    }

    .search-input-wrapper {
        padding: 12px 15px;
    }

    .search-input-wrapper input {
        font-size: 1rem;
    }

    .search-result-item {
        padding: 10px 12px;
        gap: 12px;
    }

    .search-result-image {
        width: 45px;
        height: 45px;
    }
}