/*
Theme Name: Great Miller
Theme URI: https://greatmiller.com
Description: WordPress theme wrapper for the existing Great Miller React SPA (no visual changes).
Author: Great Miller
Version: 1.0.0
Text Domain: greatmiller
*/

/* Import Google Fonts - Matching React design exactly */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables - Exact match to React design */
:root {
    --background: 0 0% 100%;
    --foreground: 25 15% 15%;
    --card: 0 0% 100%;
    --card-foreground: 25 15% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 25 15% 15%;
    --primary: 32 45% 55%;
    --primary-foreground: 0 0% 100%;
    --secondary: 35 85% 92%;
    --secondary-foreground: 25 15% 15%;
    --muted: 35 20% 96%;
    --muted-foreground: 25 10% 45%;
    --accent: 8 70% 48%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 35 20% 90%;
    --input: 35 20% 90%;
    --ring: 32 45% 55%;
    --radius: 0.5rem;
    
    /* Custom spice colors */
    --turmeric: 40 75% 55%;
    --turmeric-light: 42 80% 92%;
    --chili: 8 70% 48%;
    --chili-light: 8 65% 94%;
    --herb: 145 35% 42%;
    --herb-light: 145 40% 94%;
    --brown: 25 45% 35%;
    --brown-light: 30 25% 94%;
    --cinnamon: 20 55% 40%;
    --saffron: 45 90% 50%;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows - Exact match */
    --shadow-soft: 0 2px 8px -2px hsl(25 15% 15% / 0.08);
    --shadow-card: 0 4px 16px -4px hsl(25 15% 15% / 0.1);
    --shadow-hover: 0 8px 24px -6px hsl(25 15% 15% / 0.15);
    --shadow-mega: 0 10px 40px -10px hsl(25 15% 15% / 0.2);
}

/* Base styles */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Container */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Product Card - Exact match */
.card-product {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.5);
    transform: translateY(0);
}

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

/* Buttons - Exact match to React design */
.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-accent {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    background-color: hsl(var(--accent) / 0.9);
    transform: scale(1.02);
}

.btn-outline {
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    background-color: transparent;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.02);
}

/* Category Box - Exact match */
.category-box {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    padding: 1rem;
    cursor: pointer;
    border: 1px solid hsl(var(--border) / 0.3);
    transform: translateY(0);
}

.category-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: hsl(var(--primary) / 0.3);
}

/* Navigation Link - Exact match */
.nav-link {
    color: hsl(var(--foreground) / 0.8);
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

/* Products Dropdown Menu - Enhanced styling */
.relative.group .absolute {
    pointer-events: none;
}

.relative.group:hover .absolute {
    pointer-events: auto;
}

/* Ensure dropdown stays visible on hover */
.relative.group:hover .absolute.top-full {
    pointer-events: auto;
}

/* Dropdown category item hover effect */
.relative.group .absolute a:hover {
    background-color: hsl(var(--muted));
}

/* Dropdown View All link styling */
.relative.group .absolute a:last-child {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

/* WooCommerce review stars - yellow */
.woocommerce #reviews .comment-form-rating .stars a,
.woocommerce #reviews .comment-form-rating .stars a::before,
.woocommerce #reviews .comment-form-rating .stars span a::before,
.woocommerce .star-rating,
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce .commentlist .star-rating span::before {
    color: #eab308 !important; /* golden yellow */
}

.woocommerce #reviews .comment-form-rating .stars a:hover,
.woocommerce #reviews .comment-form-rating .stars a:hover::before,
.woocommerce #reviews .comment-form-rating .stars a.active,
.woocommerce #reviews .comment-form-rating .stars a.active::before {
    color: #eab308 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: hsl(var(--primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

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

/* Badges - Exact match */
.badge-sale {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.badge-new {
    background-color: hsl(var(--herb));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Input Search - Exact match */
.input-search {
    background-color: hsl(var(--muted));
    border: 0;
    border-radius: 9999px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    width: 100%;
}

.input-search:focus {
    outline: none;
    ring: 2px;
    ring-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

/* Footer Link - Exact match */
.footer-link {
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
    display: inline-block;
}

.footer-link:hover {
    color: hsl(var(--foreground));
    transform: translateX(4px);
}

/* Section Title - Exact match */
.section-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
}

/* Price Tag - Exact match */
.price-tag {
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 1.125rem;
}

/* Enhanced Price Display Styling */
.product-price-display {
    line-height: 1.2;
}

.product-price-display .price-value {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-price-display .regular-price-display {
    opacity: 0.7;
    font-weight: 500;
}

/* Improved Button Interactions */
.btn-primary,
.btn-outline,
.single_add_to_cart_button,
.add_to_cart_button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px hsl(var(--primary) / 0.3);
}

.btn-primary:active,
.single_add_to_cart_button:active,
.add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px hsl(var(--primary) / 0.2);
}

/* Enhanced Product Card Hover Effects */
.card-product {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Better Form Input Styling */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: hsl(var(--primary) / 0.3);
    border-color: hsl(var(--primary));
}

/* Improved Badge Styling */
.badge-sale,
.badge-new {
    box-shadow: 0 2px 4px -1px hsl(var(--accent) / 0.3);
    transition: transform 0.2s ease;
}

.badge-sale:hover,
.badge-new:hover {
    transform: scale(1.05);
}

/* Better Quantity Controls */
.quantity-btn-minus,
.quantity-btn-plus {
    transition: all 0.2s ease;
}

.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
    background-color: hsl(var(--muted));
    transform: scale(1.1);
}

.quantity-btn-minus:active,
.quantity-btn-plus:active {
    transform: scale(0.95);
}

/* Improved Link Hover States */
a {
    transition: color 0.2s ease;
}



/* Better Spacing for Product Cards */
.card-product .p-4 {
    padding: 1rem;
}

@media (min-width: 768px) {
    .card-product .p-4 {
        padding: 1.25rem;
    }
}

/* Enhanced Typography for Prices */
.font-heading {
    letter-spacing: -0.01em;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Better Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Improved Loading States */
.btn-primary:disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.price-original {
    color: hsl(var(--muted-foreground));
    text-decoration: line-through;
    font-size: 0.875rem;
}

/* Image Zoom Effect - Exact match */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease-out;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Interactive Button - Exact match */
.btn-interactive {
    transition: all 0.15s;
}

.btn-interactive:hover {
    transform: scale(1.02);
}

.btn-interactive:active {
    transform: scale(0.98);
}

/* Scrollbar - Exact match */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.3);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--primary) / 0.3) hsl(var(--muted));
}

/* Hide scrollbar but allow scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Banner scrolling styles - smooth horizontal scrolling */
#mini-banners-container,
#combo-banners-container,
#promo-banners-container,
#desktop-offer-banners-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

#mini-banners-container > *,
#combo-banners-container > *,
#promo-banners-container > *,
#desktop-offer-banners-container > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Make banner dots clickable */
.mini-banner-dot,
.combo-banner-dot,
.promo-banner-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-banner-dot:hover,
.combo-banner-dot:hover,
.promo-banner-dot:hover {
    transform: scale(1.2);
}

/* Ensure banners are scrollable on both mobile and desktop */
@media (max-width: 767px) {
    #mini-banners-container,
    #combo-banners-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

@media (min-width: 768px) {
    #promo-banners-container,
    #desktop-offer-banners-container {
        scroll-behavior: smooth;
        cursor: grab;
        /* Enable smooth scrolling with mouse wheel */
        scroll-snap-type: x mandatory;
    }
    
    #promo-banners-container:active,
    #desktop-offer-banners-container:active {
        cursor: grabbing;
    }
    
    /* Ensure desktop banners are scrollable with mouse drag */
    #promo-banners-container,
    #desktop-offer-banners-container {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* Product Carousel Navigation Arrows */
.product-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.product-carousel-nav:hover {
    transform: scale(1.05);
}

.product-carousel-nav:active {
    transform: scale(0.95);
}

.product-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide arrows on mobile */
@media (max-width: 767px) {
    .product-carousel-nav {
        display: none;
    }
}

/* Product carousel containers */
#bestsellers-carousel,
#deals-carousel,
#new-arrivals-carousel,
#categories-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

#bestsellers-carousel > *,
#deals-carousel > *,
#new-arrivals-carousel > *,
#categories-carousel > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Animations - Exact match */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-in {
    opacity: 0;
    animation: slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-stagger > * {
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }

.animate-bounce-subtle {
    animation: bounceSubtle 1s ease-in-out infinite;
}

@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Header size constraints to prevent oversizing */
header.fixed {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

header.fixed > div:first-child {
    max-height: none !important;
    overflow: visible !important;
}

header.fixed img {
    max-height: 52px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

header.fixed .container-custom,
header.fixed > div:last-child {
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Ensure header doesn't expand on product pages */
body.shop header.fixed,
body.archive header.fixed,
body.product header.fixed,
body.woocommerce-shop header.fixed,
body.woocommerce header.fixed {
    max-height: none !important;
}

/* Mobile header constraints */
@media (max-width: 768px) {
    header.fixed {
        max-height: none !important;
    }
    
    header.fixed img {
        max-height: 42px !important;
    }
    
    header.fixed .container-custom {
        max-height: none !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* WooCommerce Cart & Checkout Styling - Matching React Design */
.woocommerce-cart .cart_item,
.woocommerce-checkout .cart_item {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}

.woocommerce-cart table.cart,
.woocommerce-checkout table.cart {
    border: none !important;
}

.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
    border-radius: 0.5rem;
}

.woocommerce-cart .quantity input[type="number"],
.woocommerce-checkout .quantity input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout .order-review {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout .order-review h2 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.woocommerce-cart .cart_totals table,
.woocommerce-checkout .order-review table {
    width: 100%;
    border: none;
}

.woocommerce-cart .cart_totals td,
.woocommerce-checkout .order-review td {
    padding: 0.5rem 0;
    border: none;
    border-top: 1px solid hsl(var(--border));
}

.woocommerce-cart .cart_totals .order-total td,
.woocommerce-checkout .order-review .order-total td {
    font-weight: 600;
    font-size: 1.125rem;
    border-top: 2px solid hsl(var(--border));
    padding-top: 0.75rem;
}

.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-checkout .order-review .order-total .amount {
    color: hsl(var(--primary));
}

.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-checkout #place_order {
    margin-top: 1.5rem;
}

.woocommerce-cart .wc-proceed-to-checkout a,
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

/* WooCommerce Form Fields */
.woocommerce-checkout .woocommerce-billing-fields input,
.woocommerce-checkout .woocommerce-billing-fields textarea,
.woocommerce-checkout .woocommerce-billing-fields select,
.woocommerce-checkout .woocommerce-shipping-fields input,
.woocommerce-checkout .woocommerce-shipping-fields textarea,
.woocommerce-checkout .woocommerce-shipping-fields select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.woocommerce-checkout .woocommerce-billing-fields input:focus,
.woocommerce-checkout .woocommerce-billing-fields textarea:focus,
.woocommerce-checkout .woocommerce-billing-fields select:focus,
.woocommerce-checkout .woocommerce-shipping-fields input:focus,
.woocommerce-checkout .woocommerce-shipping-fields textarea:focus,
.woocommerce-checkout .woocommerce-shipping-fields select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    display: block;
}

.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-checkout .form-row-last {
    float: right;
}

.woocommerce-checkout .form-row-wide {
    width: 100%;
    float: none;
}

.woocommerce-checkout .form-row::after {
    content: '';
    display: table;
    clear: both;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: transparent;
    border: none;
    border-radius: 0;
}

.woocommerce-checkout #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.woocommerce-checkout #payment .payment_methods li {
    margin-bottom: 0.75rem;
}

.woocommerce-checkout #payment .payment_methods li label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: hsl(var(--card));
    margin-bottom: 0;
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"] {
    margin-right: 0.5rem;
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"]:checked + label,
.woocommerce-checkout #payment .payment_methods li label:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.05);
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Security Notice */
.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Product Images in Cart */
.woocommerce-cart .cart_item img,
.woocommerce-checkout .order-review img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .woocommerce-cart .cart_item img,
    .woocommerce-checkout .order-review img {
        width: 128px;
        height: 128px;
    }
}

/* Quantity Controls */
.woocommerce-cart .quantity .qty {
    width: 60px !important;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.woocommerce-cart .quantity .minus,
.woocommerce-cart .quantity .plus {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.woocommerce-cart .quantity .minus:hover,
.woocommerce-cart .quantity .plus:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--primary));
}

/* Continue Shopping Link */
.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 1rem;
}

.woocommerce-cart .return-to-shop a {
    color: hsl(var(--primary));
    font-size: 0.875rem;
    text-decoration: none;
}

.woocommerce-cart .return-to-shop a:hover {
    text-decoration: underline;
}

/* WooCommerce Add to Cart Button - Matching React design */
.woocommerce .single_add_to_cart_button,
.woocommerce .add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: var(--font-body) !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce .add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: hsl(var(--primary) / 0.9) !important;
    transform: scale(1.02) !important;
}

.woocommerce .single_add_to_cart_button:active,
.woocommerce .add_to_cart_button:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active {
    transform: scale(0.98) !important;
}

/* WooCommerce Product Images */
.woocommerce .product img,
.woocommerce .products .product img {
    border-radius: 0.75rem;
    transition: transform 0.5s ease-out;
}

.woocommerce .product:hover img,
.woocommerce .products .product:hover img {
    transform: scale(1.05);
}

/* WooCommerce Product Cards */
.woocommerce .products .product {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.5);
}

.woocommerce .products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* WooCommerce Price */
.woocommerce .price {
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 1.125rem;
}

.woocommerce .price del {
    color: hsl(var(--muted-foreground));
    text-decoration: line-through;
    font-size: 0.875rem;
}

.woocommerce .price ins {
    text-decoration: none;
}

/* WooCommerce Form Fields Global */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.woocommerce form .form-row label {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    display: block;
}

/* WooCommerce Pagination - Match Site Design */
.woocommerce nav.woocommerce-pagination {
    margin: 2.5rem 0 0;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    margin: 0;
    border-radius: 9999px;
    background-color: hsl(var(--muted));
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 10px hsl(var(--primary) / 0.35);
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev {
    font-size: 0.8rem;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}


/* Line Clamp Utilities */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* =========================================================
   FINAL: Only checkbox + cart/account hover red (#d03c25)
   Put this at the VERY END of style.css
========================================================= */

/* ✅ Keep checkbox red */
input[type="checkbox"],
.woocommerce input[type="checkbox"] {
  accent-color: #d03c25 !important;
}

/* ✅ Cart + Account hover (override nav-link hover too) */
header a[href*="my-account"]:hover,
header a[href*="/my-account"]:hover,
header a[href*="cart"]:hover,
header a[href*="/cart"]:hover,
header .menu-item-account a:hover,
header .menu-item-cart a:hover,
header .header-actions a:hover,
header .header-actions button:hover,
header a.nav-link[href*="my-account"]:hover,
header a.nav-link[href*="cart"]:hover {
  color: #d03c25 !important;
}

/* If icon is SVG */
header a[href*="my-account"]:hover svg,
header a[href*="cart"]:hover svg,
header .menu-item-account a:hover svg,
header .menu-item-cart a:hover svg {
  stroke: #d03c25 !important;
  fill: #d03c25 !important;
}
/* ✅ Custom checkbox (no accent-color needed) */
input[type="checkbox"],
.woocommerce input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid hsl(var(--border)) !important;
  border-radius: 4px !important;
  background: #fff !important;
  display: inline-grid !important;
  place-content: center !important;
  cursor: pointer !important;
}

/* hover */
input[type="checkbox"]:hover,
.woocommerce input[type="checkbox"]:hover {
  border-color: #d03c25 !important;
  background: rgba(208, 60, 37, 0.08) !important;
}

/* checked state */
input[type="checkbox"]:checked,
.woocommerce input[type="checkbox"]:checked {
  background: #d03c25 !important;
  border-color: #d03c25 !important;
}

/* tick */
input[type="checkbox"]:checked::after,
.woocommerce input[type="checkbox"]:checked::after {
  content: "" !important;
  width: 4px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  display: block !important;
}

/* focus */
input[type="checkbox"]:focus-visible,
.woocommerce input[type="checkbox"]:focus-visible {
  outline: 2px solid #d03c25 !important;
  outline-offset: 2px !important;
}
/* ✅ Native checkbox + accent-color */
input[type="checkbox"],
.woocommerce input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  accent-color: #d03c25 !important;
}



