/**
 * Infinity Displays Theme - Custom Styles
 * Tailwind utilities are generated in tailwind.css
 * This file contains custom component styles, WooCommerce overrides, and base styles only
 */

/* Font fallbacks with size-adjust to reduce CLS from Google Fonts loading */
@font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 100.1%;
    ascent-override: 96%;
    descent-override: 24%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Space Grotesk Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 93%;
    descent-override: 24%;
    line-gap-override: 0%;
}

/* Hide WooCommerce "View cart" link - side cart handles this */
a.added_to_cart { display: none !important; }

/* ========================================
   HERO SECTION CUSTOM STYLES
   ======================================== */
.hero-section {
    height: 500px;
}

@media (min-width: 640px) {
    .hero-section {
        height: 550px;
    }
}

@media (min-width: 768px) {
    .hero-section {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        height: 650px;
    }
}

/* Hero overlay - dark uniform */
.hero-overlay {
    background-color: rgba(15, 23, 42, 0.8);
}

/* Hero slide transitions */
.hero-bg {
    transition: opacity 1s ease-in-out;
}

.hero-content {
    transition: all 0.7s ease-in-out;
}

/* Hero dots — min 24px touch target via padding, visual dot via border */
.hero-dot {
    width: 8px;
    height: 8px;
    padding: 8px;
    background-clip: content-box;
    cursor: pointer;
}

.hero-dot.active {
    width: 32px;
}

/* ========================================
   BASE STYLES (in @layer base so Tailwind utilities can override)
   ======================================== */
@layer base {
    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        color: #111827;
        background-color: #ffffff;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding-top: 0;
    }
}

/* Espacio para header fixed */
body.home {
    padding-top: 11rem;
}

body.woocommerce,
body.single-product,
body.page {
    padding-top: 11rem;
}

/* Evitar doble padding en páginas WooCommerce */
body.woocommerce-page article.page,
body.woocommerce-page .page {
    padding-top: 0;
}

/* Sin padding para checkout (usa header minimalista) */
body.woocommerce-checkout,
body.woocommerce-checkout.woocommerce,
body.woocommerce-checkout.page,
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .page,
body.checkout-page,
body.checkout-page.woocommerce,
body.checkout-page .woocommerce,
body.checkout-page .page,
.woocommerce-checkout {
    padding-top: 0 !important;
}

body.woocommerce-checkout main,
body.checkout-page main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ajuste de padding para móvil (header más pequeño + buscador) */
@media (max-width: 767px) {
    body.home {
        padding-top: 7.5rem;
    }

    body.woocommerce,
    body.single-product,
    body.page {
        padding-top: 7.5rem;
    }

    body.woocommerce-page article.page,
    body.woocommerce-page .page {
        padding-top: 0;
    }

    /* Checkout sin padding en móvil */
    body.woocommerce-checkout,
    body.woocommerce-checkout.woocommerce,
    body.woocommerce-checkout .woocommerce,
    body.woocommerce-checkout .page,
    body.checkout-page,
    body.checkout-page .page,
    body.checkout-page .woocommerce {
        padding-top: 0 !important;
    }
}

@layer base {
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-weight: 700;
        line-height: 1.2;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Golden Gradient Text */
.text-gradient-golden {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 25%, #FCD34D 50%, #FBBF24 75%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --color-primary: #00A8CC;
    --color-primary-hover: #008fb3;
    --color-primary-foreground: #ffffff;
    --color-secondary: #f3f4f6;
    --color-secondary-foreground: #1f2937;
    --color-accent: #10b981;
    --color-destructive: #ef4444;
    --color-border: #e5e7eb;
    --color-muted: #9ca3af;
    --color-muted-foreground: #6b7280;
    --color-foreground: #111827;
    --color-background: #ffffff;
    --color-card: #ffffff;

    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;

    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}


/* Header debe estar siempre encima */
header {
    z-index: 1000;
}

/* Logo consistente en todas las páginas */
header .custom-logo-link {
    display: flex;
    align-items: center;
}

header .custom-logo-link img,
header .custom-logo {
    height: 3rem;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.active {
    display: block !important;
}

/* Mobile menu toggle icons */
#mobile-menu-toggle .menu-icon,
#mobile-menu-toggle .close-icon {
    transition: all 0.2s ease;
}

#mobile-menu-toggle.active .menu-icon {
    display: none !important;
}

#mobile-menu-toggle.active .close-icon {
    display: block !important;
}


/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: 300px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-prev,
.hero-next {
    opacity: 0.7;
}

.hero-prev:hover,
.hero-next:hover {
    opacity: 1;
}

.hero-dot {
    transition: all 0.3s ease;
}

@media (max-width: 1023px) {
    .hero-slides {
        min-height: auto;
    }
}


/* ========================================
   PROSE (Content Styling)
   ======================================== */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose h2 {
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose a {
    color: #00A8CC;
    text-decoration: underline;
}

.prose ul, .prose ol {
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

/* Reset prose styles for WooCommerce content */
.prose .woocommerce-MyAccount-wrapper,
.prose .woocommerce-MyAccount-content,
.prose .woocommerce-login-wrapper,
.prose .woocommerce-MyAccount-dashboard {
    max-width: none;
    color: inherit;
}

.prose .woocommerce-MyAccount-wrapper p,
.prose .woocommerce-MyAccount-content p,
.prose .woocommerce-login-wrapper p,
.prose .woocommerce-MyAccount-dashboard p {
    margin-top: 0;
    margin-bottom: 0;
}

.prose .woocommerce-MyAccount-wrapper ul,
.prose .woocommerce-MyAccount-content ul {
    list-style: none;
    padding-left: 0;
}

.prose .woocommerce-MyAccount-wrapper h2,
.prose .woocommerce-MyAccount-content h2,
.prose .woocommerce-MyAccount-dashboard h2,
.prose .woocommerce-MyAccount-dashboard h3 {
    margin-top: 0;
    margin-bottom: 0;
}

/* My Account Dashboard Grid Fix */
.woocommerce-MyAccount-dashboard .grid {
    display: grid !important;
}

.woocommerce-MyAccount-dashboard .grid.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-dashboard .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .woocommerce-MyAccount-dashboard .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
}

.woocommerce .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.woocommerce .price del {
    opacity: 0.5;
    font-weight: 400;
}

.woocommerce .price ins {
    text-decoration: none;
    color: #00A8CC;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #00A8CC;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: rgba(0, 168, 204, 0.9);
}

.woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.woocommerce-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover {
    color: #00A8CC;
}

/* Standard WooCommerce pagination (ul/li) */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: white;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    font-size: 0.875rem;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #00A8CC;
    color: white;
    border-color: #00A8CC;
}

/* AJAX pagination (plain links without ul/li) */
nav.woocommerce-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav.woocommerce-pagination > a,
nav.woocommerce-pagination > span {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: white;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

nav.woocommerce-pagination > a:hover,
nav.woocommerce-pagination > span.current {
    background-color: #00A8CC;
    color: white;
    border-color: #00A8CC;
}

nav.woocommerce-pagination > span.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #00A8CC;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(0, 168, 204, 0.9);
    transform: translateY(-3px);
}

.notification {
    position: fixed;
    top: 5rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success { border-left: 4px solid #10b981; }
.notification-error { border-left: 4px solid #ef4444; }
.notification-info { border-left: 4px solid #3b82f6; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ========================================
   WORDPRESS MENUS
   ======================================== */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    transition: color 0.2s;
}

/* Top Menu Styles */
.menu.flex a {
    color: #6b7280;
}

.menu.flex a:hover {
    color: #00A8CC;
}

/* Footer Menu Styles */
.menu.space-y-2 li {
    margin-bottom: 0.5rem;
}

.menu.space-y-2 a {
    color: #6b7280;
}

.menu.space-y-2 a:hover {
    color: #00A8CC;
}

/* Current menu item */
.current-menu-item a,
.current_page_item a {
    color: #00A8CC;
    font-weight: 600;
}

/* Dropdown Menu Styles */
.menu-item {
    position: relative;
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 280px;
    margin: 0;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.menu-item-has-children:hover > .sub-menu,
.sub-menu.show-keyboard,
.sub-menu.show-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 400;
    white-space: nowrap;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-menu a:hover {
    background-color: #f0f9ff;
    color: #00A8CC;
    padding-left: 1.75rem;
    transform: translateX(2px);
}

.sub-menu .current-menu-item a,
.sub-menu .current_page_item a {
    color: #00A8CC;
    background-color: #f0f9ff;
}

/* Nested Sub-Menus */
.sub-menu .menu-item-has-children {
    position: relative;
}

.sub-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    float: right;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    margin-top: 0.375rem;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

/* Mobile Dropdown */
@media (max-width: 767px) {
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid #e5e7eb;
        margin-left: 1rem;
        margin-top: 0.25rem;
        padding-left: 0.5rem;
    }

    .menu-item-has-children > a::after {
        display: none;
    }
}

/* ========================================
   PAGE SECTIONS FIX
   ======================================== */
@layer base {
    section {
        position: relative;
        background-color: white;
        overflow: visible;
    }
}

/* Fix para categorías grid */

/* ========================================
   QUOTE MODAL
   ======================================== */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal.hidden {
    display: none;
}

.quote-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quote-modal-content {
    position: relative;
    width: 90%;
    max-width: 42rem;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quote-modal-header {
    background: linear-gradient(to right, #00A8CC, rgba(0, 168, 204, 0.8));
    color: #ffffff;
    padding: 1.5rem;
}

.quote-modal-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

.quote-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.quote-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.quote-modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background-color: rgba(243, 244, 246, 0.2);
}

@media (max-width: 640px) {
    .quote-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .quote-modal-header {
        padding: 1rem;
    }
    
    .quote-modal-body {
        padding: 1rem;
    }
    
    .quote-modal-footer {
        padding: 1rem;
    }
}


/* ========================================
   BUTTON FIXES
   ======================================== */
@layer base {
    button {
        border: none;
        cursor: pointer;
        background: none;
    }
}

/* Quote modal button styles */
.quote-modal-footer button {
    border: none !important;
    outline: none !important;
}

.quote-modal-footer button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.3) !important;
}

/* General button resets */
.infinity-quote-btn {
    cursor: pointer;
}

/* Button base styles */
button.inline-flex,
button.flex {
    border: none !important;
}

/* Override any WordPress/WooCommerce button borders */
.woocommerce button:not(.product-thumbnail),
button[onclick]:not(.product-thumbnail) {
    border: none !important;
}

/* Focus states */
button:focus {
    outline: none !important;
}

button:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.3);
}


/* ========================================
   FIX BORDER VISIBILITY
   ======================================== */
.border-border {
    border-color: #d1d5db !important; /* Hacer bordes más visibles */
}


/* Ensure borders are visible on cards */
.bg-card.border {
    border: 1px solid #d1d5db;
}

/* ========================================
   WOOCOMMERCE PRODUCT IMAGES
   ======================================== */
.woocommerce-product-gallery__image img,
.woocommerce ul.products li.product img,
.product-card img,
.woocommerce-loop-product__link img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* ========================================
   WOOCOMMERCE TABS & REVIEWS
   ======================================== */
.woocommerce-tabs {
    margin-top: 3rem;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: #00A8CC;
    border-bottom-color: #00A8CC;
}

.woocommerce-tabs .panel {
    padding: 0;
}

/* Reviews Styling */
#reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#reviews .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

#reviews .comment:last-child {
    border-bottom: none;
}

#reviews .comment-text {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

#reviews .star-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#reviews .meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

#reviews .meta strong {
    color: #111827;
    font-weight: 600;
}

#reviews .description p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* Review Form */
#review_form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

#review_form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form textarea:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

#review_form .comment-form-rating {
    margin-bottom: 1rem;
}

#review_form .stars {
    display: flex;
    gap: 0.25rem;
}

#review_form .stars a {
    color: #d1d5db;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

#review_form .stars a:hover,
#review_form .stars a.active {
    color: #fbbf24;
}

#review_form submit,
#review_form input[type="submit"] {
    background: #00A8CC;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#review_form submit:hover,
#review_form input[type="submit"]:hover {
    background: #008fb3;
}

/* ========================================
   VIDEO STORIES STYLES
   ======================================== */
.story-circle {
    cursor: pointer;
    transition: transform 0.2s;
}

.story-circle:hover {
    transform: scale(1.05);
}

/* Video container */
.video-story-container {
    position: relative;
    border-radius: 9999px;
    overflow: hidden;
}

/* ========================================
   Z-INDEX UTILITIES
   ======================================== */

/* ========================================
   ANIMATE UTILITIES
   ======================================== */


/* ========================================
   VIDEO LIGHTBOX
   ======================================== */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox.hidden {
    display: none;
}

.video-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    max-height: 90vh;
    z-index: 10001;
}

@media (min-width: 768px) {
    .video-lightbox-content {
        max-width: 600px;
        /* Mantener formato vertical 9:16 en todos los tamaños */
    }
}

.video-lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 10002;
}

.video-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.video-lightbox-player {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.video-lightbox-player iframe {
    display: block;
}


/* ========================================
   COMPONENTES ESPECÍFICOS
   ======================================== */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.price-tier-option {
    cursor: pointer;
    user-select: none;
}

.price-tier-option.active {
    background-color: #ffffff;
}

.check-indicator {
    transition: all 0.2s;
}

.size-option {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.size-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.size-option.active {
    background-color: #008fb3;
    transform: scale(1.05);
}

.qty-minus,
.qty-plus {
    cursor: pointer;
    user-select: none;
}

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

/* Search form styling */
.search-form input[type="search"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-form input[type="search"]::-webkit-search-decoration,
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-results-button,
.search-form input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

/* Quote button specific */
.infinity-quote-btn,
.quote-whatsapp {
    cursor: pointer;
    transition: all 0.2s;
}

.infinity-quote-btn:hover,
.quote-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge-hot {
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-new {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stock status */
.in-stock {
    color: #10b981;
}

.out-of-stock {
    color: #ef4444;
}

.low-stock {
    color: #f59e0b;
}

/* ========================================
   SIDE CART
   ======================================== */
.side-cart {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-cart.active {
    opacity: 1;
    pointer-events: all;
}

.side-cart-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.side-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-cart.active .side-cart-panel {
    transform: translateX(0);
}

.side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.side-cart-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.side-cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.side-cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

/* Cart count badge */
.cart-count {
    font-size: 0.625rem;
    line-height: 1;
}

/* Loading state */
.side-cart-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.side-cart-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .side-cart-panel {
        max-width: 100%;
    }
}

/* ========================================
   QUOTE CART MODAL
   ======================================== */
.quote-cart {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-cart.active {
    opacity: 1;
    pointer-events: all;
}

.quote-cart-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.quote-cart-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    overflow: hidden;
    margin: 1rem;
}

.quote-cart.active .quote-cart-modal {
    transform: scale(1) translateY(0);
}

.quote-cart-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    padding: 0.5rem;
    color: #9ca3af;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.2s, background-color 0.2s;
}

.quote-cart-close-btn:hover {
    color: #111827;
    background-color: #f3f4f6;
}

/* Step indicators */
.quote-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0;
}

.quote-step {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.quote-step.active {
    opacity: 1;
}

.quote-step-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-step.active .quote-step-num {
    background-color: #25D366;
    color: #ffffff;
}

.quote-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.quote-step-line {
    width: 2.5rem;
    height: 2px;
    background-color: #e5e7eb;
    border-radius: 1px;
}

/* Steps */
.quote-cart-step {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.quote-cart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.quote-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    max-height: 45vh;
}

.quote-cart-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    max-height: 55vh;
}

.quote-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.quote-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.quote-form-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Phone input with flag prefix */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-primary, #25D366);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.phone-input-prefix {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.75rem;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    user-select: none;
}

.phone-input-prefix img {
    border-radius: 2px;
}

.phone-input-field {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.5rem 0.75rem;
    font-size: inherit;
}

.phone-input-field:focus {
    box-shadow: none !important;
}

/* Match height of regular inputs in registration form */
.phone-input-wrapper:not(.phone-input-sm) .phone-input-field {
    padding: 0.5rem 1rem;
}

.phone-input-sm .phone-input-prefix {
    padding: 0 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
}

.phone-input-sm .phone-input-prefix img {
    width: 16px;
    height: 12px;
}

.quote-form-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quote-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.quote-cart-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

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

.quote-cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.quote-cart-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}

@media (max-width: 640px) {
    .quote-cart-modal {
        max-width: 100%;
        max-height: 95vh;
        margin: 0.5rem;
        border-radius: 0.75rem;
    }

    .quote-cart-items,
    .quote-cart-form-body {
        max-height: 60vh;
    }
}

/* Floating Quote Button */
.quote-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #25D366;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.2s ease;
    pointer-events: none;
}

.quote-fab.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.quote-fab:hover {
    background-color: #1fb855;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.quote-fab-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.quote-fab-text {
    white-space: nowrap;
}

.quote-fab-badge {
    background-color: #ffffff;
    color: #25D366;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 640px) {
    .quote-fab {
        bottom: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Client type toggle */
.quote-client-type-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-client-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-client-type-option:hover {
    border-color: #d1d5db;
    color: #374151;
}

.quote-client-type-option.active {
    border-color: #25D366;
    background-color: rgba(37, 211, 102, 0.05);
    color: #25D366;
}

.quote-client-type-or {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Quote Added Toast */
.quote-toast-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quote-toast-wrapper.show {
    opacity: 1;
    pointer-events: all;
}

.quote-toast-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.quote-toast {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 360px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.3s ease;
}

.quote-toast-wrapper.show .quote-toast {
    transform: scale(1) translateY(0);
}

.quote-toast-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.quote-toast-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #ffffff;
}

.quote-toast-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.quote-toast-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.quote-toast-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-toast-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.quote-toast-btn-primary {
    background-color: #25D366;
    color: #ffffff;
}

.quote-toast-btn-primary:hover {
    background-color: #1fb855;
}

.quote-toast-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.quote-toast-btn-secondary:hover {
    background-color: #e5e7eb;
}

/* ========================================
   CART PAGE STYLES
   ======================================== */

/* Cart Form Wrapper */
.woocommerce-cart-form-wrapper {
    width: 100%;
    max-width: 100%;
}

.woocommerce-cart-form .cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.woocommerce-cart-form input[type="number"].qty {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    width: 6rem;
    text-align: center;
}

.woocommerce-cart-form input[type="number"].qty:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

/* Cart totals table */
.cart_totals {
    width: 100%;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th {
    text-align: left;
    padding: 0.75rem 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.cart_totals td {
    text-align: right;
    padding: 0.75rem 0;
    color: #111827;
    font-weight: 600;
}

.cart_totals .order-total th {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.cart_totals .order-total td {
    font-size: 1.5rem;
    color: #00A8CC;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

/* Checkout button in cart totals */
.cart_totals .wc-proceed-to-checkout {
    margin-top: 1.5rem;
}

.cart_totals .wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.cart_totals .wc-proceed-to-checkout a:hover {
    opacity: 0.9;
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    visibility: hidden;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-modal-overlay.active .login-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.login-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

body.login-modal-open {
    overflow: hidden;
}


/* Shipping methods — shared styles (cart + checkout) */
.cart_totals .woocommerce-shipping-totals td,
.checkout-shipping-section {
    text-align: left;
}
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}
.woocommerce-shipping-methods li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #6b7280;
}
.woocommerce-shipping-methods li:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
.woocommerce-shipping-methods li:has(input:checked) {
    border-color: var(--color-primary);
    background-color: rgba(0, 168, 204, 0.04);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}
.woocommerce-shipping-methods input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.woocommerce-shipping-methods label {
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    margin: 0;
    text-align: center;
}

/* Shipping method logo (uploaded via WooCommerce > Logos de Envío) */
.shipping-method-logo {
    display: block;
    max-height: 26px;
    width: auto;
    object-fit: contain;
}

/* Stack shipping methods on small screens */
@media (max-width: 480px) {
    .woocommerce-shipping-methods {
        flex-direction: column;
    }
}
.woocommerce-shipping-destination {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    margin-top: 0.75rem;
}
.shipping-calculator-button {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
    text-decoration: none;
}
.shipping-calculator-button:hover {
    text-decoration: underline;
}
.shipping-calculator-form {
    margin-top: 0.75rem;
}
.shipping-calculator-form .form-row {
    margin-bottom: 0.5rem;
}
.shipping-calculator-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.25rem;
}
.shipping-calculator-form select,
.shipping-calculator-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background-color: var(--color-card);
    color: var(--color-foreground);
}
.shipping-calculator-form button {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

/* Sticky cart totals */

/* Animate spin class for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* ========================================
   PRODUCT CATEGORY CARDS
   ======================================== */
.product-category-card {
    transition: all 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-4px);
}

.product-category-card img {
    transition: transform 0.5s ease;
}

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

/* ========================================
   PREMIUM LED BADGE
   ======================================== */
.premium-led-badge {
    background-image: linear-gradient(90deg, #f59e0b, #facc15, #fde047, #facc15, #f59e0b) !important;
    background-color: #f59e0b !important;
    background-size: 200% 100%;
    animation: premium-shimmer 3s ease-in-out infinite;
}

@keyframes premium-shimmer {
    0% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

/* Premium LED card gold border on hover */
.premium-led-card:hover {
    border-color: #f59e0b;
}

/* Shine sweep effect on Premium LED product images */
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: shine-sweep 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shine-sweep {
    0%   { left: -200%; }
    80%  { left: 200%; }
    100% { left: 150%; }
}

/* ========================================
   CATEGORY NAVIGATION MENU
   ======================================== */
/* Desktop navigation menu */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top level menu items */
header nav > ul > li {
    position: relative;
    display: inline-block;
}

header nav > ul > li > a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

header nav > ul > li > a:hover {
    color: var(--color-primary);
    background-color: #f3f4f6;
}

/* Submenu container */
header nav > ul > li > ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

/* Show submenu on hover */
header nav > ul > li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items */
header nav ul.sub-menu li {
    display: block;
}

header nav ul.sub-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 400;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
}

header nav ul.sub-menu li:last-child a {
    border-bottom: none;
}

header nav ul.sub-menu li a:hover {
    color: var(--color-primary);
    background-color: #f0f9ff;
    padding-left: 1.75rem;
    transform: translateX(2px);
}

/* Arrow indicator for items with submenus */
header nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}

header nav > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* ========================================
   MOBILE HEADER
   ======================================== */
@media (max-width: 767px) {
    /* Make header container relative for logo centering */
    header .container {
        position: relative;
    }

    /* Mobile logo sizing */
    header .custom-logo-link img,
    header .custom-logo {
        height: 2.5rem;
        max-width: 140px;
    }
}

/* ========================================
   MOBILE MENU MODAL (Fullscreen with Drill-Down)
   ======================================== */

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

/* Modal overlay */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu-modal.active {
    display: block;
}

/* Menu panels */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-panel.slide-out {
    transform: translateX(-30%);
}

/* Submenu panel starts from the right */
.mobile-submenu-panel {
    z-index: 2;
}

#mobile-menu-main {
    z-index: 1;
}

/* Menu header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
    flex-shrink: 0;
}

.mobile-menu-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.mobile-submenu-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
    margin-left: 0.5rem;
}

/* Header buttons */
.mobile-menu-close,
.mobile-menu-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.mobile-menu-close:hover,
.mobile-menu-back:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.mobile-menu-back {
    margin-right: auto;
}

/* Menu content area */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Menu navigation */
.mobile-menu-nav {
    padding: 0;
}

.mobile-menu-section {
    padding: 0.5rem 0;
}

/* Menu divider */
.mobile-menu-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 1.25rem;
}

/* Menu items */
.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    color: #374151;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background-color: #f9fafb;
    color: #111827;
}

.mobile-menu-item:active {
    background-color: #f3f4f6;
}

/* Items with children show chevron */
.mobile-menu-item.has-children {
    font-weight: 500;
}

.mobile-menu-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.mobile-menu-item:hover .mobile-menu-chevron {
    color: #6b7280;
}

/* View all link in submenu */
.mobile-menu-view-all {
    color: #6b7280;
    font-size: 0.9375rem;
}

.mobile-menu-view-all:hover {
    color: #00A8CC;
}

/* Auth section at bottom */
.mobile-menu-auth {
    padding: 1rem 1.25rem;
    margin-top: auto;
}

.mobile-menu-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-menu-btn-primary {
    background-color: #00A8CC;
    color: #ffffff;
}

.mobile-menu-btn-primary:hover {
    background-color: #0090b0;
}

.mobile-menu-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.mobile-menu-btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Categories list styling */
.mobile-menu-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hide submenu data containers */
.mobile-submenu-data {
    display: none !important;
}

/* Animation for panel transitions */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-30%);
    }
}

/* ========================================
   MOBILE SUBMENU POPUP
   ======================================== */

/* Popup overlay */
.mobile-submenu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.mobile-submenu-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.mobile-submenu-popup {
    background-color: #ffffff;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mobile-submenu-popup-overlay.active .mobile-submenu-popup {
    transform: translateY(0);
}

/* Popup handle bar */
.mobile-submenu-popup-handle {
    width: 2.5rem;
    height: 0.25rem;
    background-color: #d1d5db;
    border-radius: 0.125rem;
    margin: 0.75rem auto 0;
    flex-shrink: 0;
}

/* Popup header */
.mobile-submenu-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-submenu-popup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.mobile-submenu-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-submenu-popup-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

/* Popup content */
.mobile-submenu-popup-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

/* Popup items */
.mobile-submenu-popup-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #374151;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.mobile-submenu-popup-item:hover,
.mobile-submenu-popup-item:focus {
    background-color: #f9fafb;
    color: #111827;
}

.mobile-submenu-popup-item:active {
    background-color: #f3f4f6;
}

/* View all link in popup */
.mobile-submenu-popup-view-all {
    font-weight: 500;
    color: #00A8CC;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.875rem;
    margin-bottom: 0.25rem;
}

.mobile-submenu-popup-view-all:hover {
    color: #0090b0;
    background-color: #f0fdff;
}

.mobile-submenu-popup-view-all svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Popup divider */
.mobile-submenu-popup-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.375rem 1.25rem;
}

/* Animation keyframes */
@keyframes popupSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   PRODUCT DESCRIPTION COLLAPSE
   ======================================== */
.product-description-wrap {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.product-description-wrap.expanded {
    max-height: none;
}
.product-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}
.product-description-wrap.expanded .product-description-fade {
    display: none;
}
.product-description-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.product-description-toggle:hover {
    text-decoration: underline;
}
.product-description-wrap.expanded + .product-description-toggle svg {
    transform: rotate(180deg);
}
/* Hide toggle + fade when content is short */
.product-description-wrap.short .product-description-fade {
    display: none;
}
.product-description-wrap.short + .product-description-toggle {
    display: none;
}

/* Product Thumbnail Gallery */
.product-thumbnail {
    border: 1px solid #e5e7eb;
}
.product-thumbnail.active {
    border: 1px solid #00A8CC;
}

/* ========================================
   ACTION BUTTONS (Single Product)
   ======================================== */
#product-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

#product-action-buttons form,
#product-action-buttons a {
    margin: 0;
}

#product-action-buttons form button {
    width: 100%;
}

/* Mobile Sticky Buttons */
@media (max-width: 767px) {
    #product-action-buttons {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #product-action-buttons.is-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background-color: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin: 0;
        animation: slideUpFade 0.3s ease forwards;
    }

    @keyframes slideUpFade {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    #product-action-buttons.is-sticky button,
    #product-action-buttons.is-sticky a {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    #product-action-buttons.is-sticky svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* ========================================
   WOOCOMMERCE CHECKOUT & CART FORMS
   ======================================== */

/* Checkout Form */
.woocommerce-checkout {
    width: 100%;
}

form.checkout {
    width: 100%;
    max-width: 100%;
}

/* Checkout and Cart Form Fields */
.woocommerce-checkout .form-row,
.woocommerce-cart-form .form-row,
.woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-cart-form input.input-text,
.woocommerce-cart-form select,
.woocommerce-cart-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-cart-form input.input-text:focus,
.woocommerce-cart-form select:focus,
.woocommerce-cart-form textarea:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

/* Phone field with Chile flag prefix */
#billing_phone_field .woocommerce-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

#billing_phone_field .woocommerce-input-wrapper:focus-within {
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

#billing_phone_field .woocommerce-input-wrapper::before {
    content: "🇨🇱 +56";
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

#billing_phone_field input[type="tel"] {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce-checkout label,
.woocommerce-cart-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.woocommerce-checkout .required,
.woocommerce-cart-form .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Checkout Button */
#place_order {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #00A8CC;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#place_order:hover {
    background-color: #0097b8;
}

/* Document Type Selector (Boleta / Factura) */
.doc-type-option {
    cursor: pointer;
}

.doc-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.doc-type-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #6b7280;
}

.doc-type-card:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.doc-type-option.active .doc-type-card {
    border-color: #00A8CC;
    background: rgba(0, 168, 204, 0.04);
    color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.factura-fields input:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .order-total td {
    font-weight: 600;
    color: #00A8CC;
    font-size: 1.125rem;
}

/* Cart Totals */
.cart-totals {
    background-color: #ffffff;
}

.cart-totals table {
    width: 100%;
}

.cart-totals th,
.cart-totals td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-totals .order-total th,
.cart-totals .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00A8CC;
    padding-top: 1rem;
    border-top: 2px solid #00A8CC;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #00A8CC;
    color: #ffffff;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #0097b8;
}

/* Payment Methods */
.woocommerce-checkout .payment_methods {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.woocommerce-checkout .payment_methods li {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.woocommerce-checkout .payment_methods li.payment_method_selected {
    border-color: #00A8CC;
    background-color: #f0f9ff;
}

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

.woocommerce-checkout .payment_methods li label {
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}

.woocommerce-checkout .payment_box {
    margin-top: 0;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.woocommerce-checkout .payment_box p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.woocommerce-checkout .payment_box p:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout .payment_box.payment_method_bacs {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Quantity Input with +/- Buttons */
.infinity-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--color-card);
}
.infinity-qty .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: var(--color-muted-foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.infinity-qty .qty-btn:hover {
    background: var(--color-secondary);
    color: var(--color-foreground);
}
.infinity-qty .qty-btn:active {
    transform: scale(0.9);
}
.infinity-qty input.qty {
    width: 3rem;
    height: 2.5rem;
    padding: 0;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    background: transparent;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-foreground);
    -moz-appearance: textfield;
}
.infinity-qty input.qty::-webkit-outer-spin-button,
.infinity-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.infinity-qty input.qty:focus {
    outline: none;
}
/* Cart page: slightly larger */
.woocommerce-cart-form .infinity-qty .qty-btn {
    width: 2.75rem;
    height: 2.75rem;
}
.woocommerce-cart-form .infinity-qty input.qty {
    width: 3.5rem;
    height: 2.75rem;
    font-size: 1rem;
}
/* Loading state */
.infinity-qty.qty-updating {
    opacity: 0.5;
    pointer-events: none;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.woocommerce-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.woocommerce-info {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Form Row Variations */
.form-row-first,
.form-row-last {
    width: 48%;
}

@media (max-width: 768px) {
    .form-row-first,
    .form-row-last {
        width: 100%;
    }
}

.form-row-wide {
    clear: both;
    width: 100%;
}

/* Validation States */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select {
    border-color: #ef4444;
}

.woocommerce-checkout .woocommerce-validated input.input-text,
.woocommerce-checkout .woocommerce-validated select {
    border-color: #22c55e;
}

/* Loading State */
.woocommerce-checkout.processing {
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce-checkout.processing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

/* ========================================
   WOOCOMMERCE MY ACCOUNT
   ======================================== */

/* My Account Navigation */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.25rem;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover {
    color: #00A8CC;
    background-color: #f9fafb;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: rgba(0, 168, 204, 0.1);
    color: #00A8CC;
    font-weight: 600;
}

/* My Account Content */
.woocommerce-MyAccount-content {
    padding: 2rem;
}

.woocommerce-MyAccount-content h2 {
    margin-bottom: 1.5rem;
}

/* Account Forms */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 600px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #00A8CC;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
    background-color: #0097b8;
}

/* Thank You Page - Payment Instructions */
.thankyou-payment-instructions:empty {
    display: none;
}
.thankyou-payment-instructions {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.thankyou-payment-instructions .woocommerce-bacs-bank-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}
.thankyou-payment-instructions .wc-bacs-bank-details-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
    margin: 0;
}
.thankyou-payment-instructions .wc-bacs-bank-details-account-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    padding: 1rem 1.25rem 0;
    margin: 0;
}
.thankyou-payment-instructions .wc-bacs-bank-details ul {
    list-style: none;
    padding: 0.75rem 1.25rem 1rem;
    margin: 0;
}
.thankyou-payment-instructions .wc-bacs-bank-details li {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}
.thankyou-payment-instructions .wc-bacs-bank-details li:last-child {
    border-bottom: none;
}
.thankyou-payment-instructions .wc-bacs-bank-details li strong {
    color: #111827;
}
.thankyou-payment-instructions > p {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce-orders-table thead {
    background-color: rgba(243, 244, 246, 0.5);
}

.woocommerce-orders-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-orders-table td {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-orders-table tr:hover {
    background-color: rgba(243, 244, 246, 0.3);
}

.woocommerce-orders-table .woocommerce-button {
    padding: 0.5rem 1rem;
    background-color: #00A8CC;
    color: #ffffff;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.woocommerce-orders-table .woocommerce-button:hover {
    background-color: #0097b8;
}

/* Order Status */
.woocommerce-order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.woocommerce-order-status.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.woocommerce-order-status.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.woocommerce-order-status.status-on-hold {
    background-color: #fef3c7;
    color: #92400e;
}

.woocommerce-order-status.status-cancelled,
.woocommerce-order-status.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Addresses */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.woocommerce-Address {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.woocommerce-Address-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.woocommerce-Address address {
    font-style: normal;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.woocommerce-Address .edit {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    color: #00A8CC;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-Address .edit:hover {
    background-color: #f3f4f6;
    border-color: #00A8CC;
}

/* Downloads */
.woocommerce-MyAccount-downloads table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce-MyAccount-downloads th,
.woocommerce-MyAccount-downloads td {
    padding: 1rem;
    text-align: left;
}

.woocommerce-MyAccount-downloads thead {
    background-color: #f9fafb;
}

.woocommerce-MyAccount-downloads .download-file {
    color: #00A8CC;
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-MyAccount-downloads .download-file:hover {
    text-decoration: underline;
}

/* Login Form Styles */
.woocommerce-login-wrapper {
    padding: 2rem 1rem;
}

.woocommerce-login-wrapper .woocommerce-error,
.woocommerce-login-wrapper .woocommerce-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.woocommerce-login-wrapper .woocommerce-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.woocommerce-login-wrapper .woocommerce-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}


/* My Account Table Responsive */
.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-MyAccount-content table thead th {
    background-color: #f9fafb;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

@media (max-width: 767px) {
    .woocommerce-MyAccount-content table,
    .woocommerce-MyAccount-content thead,
    .woocommerce-MyAccount-content tbody,
    .woocommerce-MyAccount-content th,
    .woocommerce-MyAccount-content td,
    .woocommerce-MyAccount-content tr {
        display: block;
    }

    .woocommerce-MyAccount-content thead {
        display: none;
    }

    .woocommerce-MyAccount-content tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .woocommerce-MyAccount-content td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .woocommerce-MyAccount-content td:last-child {
        border-bottom: none;
    }

    .woocommerce-MyAccount-content td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #6b7280;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .woocommerce-MyAccount-wrapper {
        display: block;
    }

    .woocommerce-MyAccount-navigation {
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   SHOPIFY-STYLE CHECKOUT
   ========================================================================== */

/* Remove body padding for checkout */
body.checkout-page {
    padding-top: 0 !important;
    margin: 0 !important;
}

body.checkout-page main {
    padding: 0 !important;
    margin: 0 !important;
}

.checkout-shopify {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Checkout Grid Layout */
.checkout-shopify .checkout-grid {
    display: block;
}

.checkout-shopify .checkout-sidebar {
    margin-top: 2rem;
}

.checkout-shopify .checkout-mobile-toggle {
    display: flex;
}

@media (min-width: 1024px) {
    .checkout-shopify .checkout-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2rem;
    }

    .checkout-shopify .checkout-main {
        grid-column: span 7 / span 7;
    }

    .checkout-shopify .checkout-sidebar {
        grid-column: span 5 / span 5;
        margin-top: 0;
    }

    .checkout-shopify .checkout-sidebar-inner {
        position: sticky;
        top: 6rem;
    }

    .checkout-shopify .checkout-mobile-toggle {
        display: none;
    }

    .checkout-shopify .order-summary-content {
        display: block !important;
    }
}

/* Checkout Header */
.checkout-shopify .checkout-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Form Fields - Shopify Style */
.checkout-shopify input[type="text"],
.checkout-shopify input[type="email"],
.checkout-shopify input[type="tel"],
.checkout-shopify input[type="password"],
.checkout-shopify input[type="number"],
.checkout-shopify textarea,
.checkout-shopify select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.checkout-shopify input:focus,
.checkout-shopify textarea:focus,
.checkout-shopify select:focus {
    outline: none;
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.checkout-shopify input::placeholder,
.checkout-shopify textarea::placeholder {
    color: #9ca3af;
}

/* Labels */
.checkout-shopify label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.checkout-shopify label abbr {
    color: #ef4444;
    text-decoration: none;
}

/* Field Wrappers */
.checkout-shopify .form-row {
    margin-bottom: 0;
}

/* Hide default WC billing/shipping heading (already shown in card header) */
.checkout-shopify .woocommerce-billing-fields > h3,
.checkout-shopify .woocommerce-shipping-fields > h3 {
    display: none;
}

.checkout-shopify .woocommerce-billing-fields__field-wrapper,
.checkout-shopify .woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkout-shopify .form-row {
    width: 100%;
    flex: 0 0 100%;
}

.checkout-shopify .form-row-first,
.checkout-shopify .form-row-last {
    width: 100%;
    flex: 0 0 100%;
}

@media (min-width: 640px) {
    .checkout-shopify .form-row-first,
    .checkout-shopify .form-row-last {
        width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
    }
}

/* Force checkout field order and layout via IDs (WC JS can't override) */
#billing_first_name_field,
#shipping_first_name_field { order: 1; }
#billing_last_name_field,
#shipping_last_name_field { order: 2; }
#billing_phone_field { order: 3; }
#billing_email_field { order: 4; }
#billing_state_field,
#shipping_state_field { order: 5; flex: 0 0 calc(50% - 0.5rem) !important; width: calc(50% - 0.5rem) !important; }
#billing_city_field,
#shipping_city_field { order: 6; flex: 0 0 calc(50% - 0.5rem) !important; width: calc(50% - 0.5rem) !important; }
#billing_address_1_field,
#shipping_address_1_field { order: 7; }
#billing_postcode_field,
#shipping_postcode_field { display: none !important; }
#billing_country_field,
#shipping_country_field { display: none !important; }

/* Native select styling for checkout */
.checkout-shopify select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Express Checkout */
.checkout-shopify .express-checkout {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

/* Divider */
.checkout-shopify .checkout-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.checkout-shopify .checkout-divider::before,
.checkout-shopify .checkout-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-shopify .checkout-divider span {
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Order Summary */
.checkout-shopify .order-summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.checkout-shopify .order-summary-content.expanded,
.checkout-shopify .order-summary-content:not(.hidden) {
    max-height: 2000px;
}

@media (min-width: 1024px) {
    .checkout-shopify .order-summary-content {
        max-height: none !important;
        overflow: visible;
    }
}

/* Product Items in Order Summary */
.checkout-shopify .order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.checkout-shopify .order-item:last-child {
    border-bottom: none;
}

.checkout-shopify .order-item-image {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

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

.checkout-shopify .order-item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #6b7280;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Order Totals */
.checkout-shopify .order-totals {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-shopify .order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.checkout-shopify .order-total-row.total {
    font-size: 1.125rem;
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Coupon Form */
.checkout-shopify .coupon-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkout-shopify .coupon-form input {
    flex: 1;
    padding: 0.75rem 1rem;
}

.checkout-shopify .coupon-form button {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.checkout-shopify .coupon-form button:hover {
    background: #e5e7eb;
}

/* Payment Methods */
.checkout-shopify .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* The <li> is only a structural wrapper; the inner <div> in payment-method.php handles visuals */
.checkout-shopify .wc_payment_methods li.wc_payment_method {
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
    background: none;
    border-radius: 0;
}

.checkout-shopify .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.checkout-shopify .wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #00A8CC;
}

.checkout-shopify .wc_payment_method .payment_box p {
    margin: 0 0 0.5rem;
    line-height: 1.6;
}
.checkout-shopify .wc_payment_method .payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.checkout-shopify #place_order {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: #00A8CC;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.checkout-shopify #place_order:hover {
    background: #0097b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

.checkout-shopify #place_order:active {
    transform: translateY(0);
}

/* Trust Badges */
.checkout-shopify .trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.checkout-shopify .trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.checkout-shopify .trust-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
}

/* Error Messages */
.checkout-shopify .woocommerce-error,
.checkout-shopify .woocommerce-message,
.checkout-shopify .woocommerce-info {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.checkout-shopify .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.checkout-shopify .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.checkout-shopify .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* Checkout Footer */
.checkout-shopify .checkout-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin-top: auto;
}

.checkout-shopify .checkout-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.checkout-shopify .checkout-footer-links a {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.checkout-shopify .checkout-footer-links a:hover {
    color: #00A8CC;
}

/* Mobile: payment moves to main column, hide button (sticky bar handles it) */
@media (max-width: 1023px) {
    .checkout-shopify #place_order {
        display: none;
    }
    .checkout-shopify .woocommerce-privacy-policy-text {
        display: none;
    }
}
/* Desktop: hide the mobile payment placeholder */
@media (min-width: 1024px) {
    .checkout-payment-mobile {
        display: none;
    }
}

/* Mobile Sticky Bottom Bar */
.checkout-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1024px) {
    .checkout-mobile-bar {
        display: none;
    }
}
.checkout-mobile-bar-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #00A8CC;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}
/* Add bottom padding to page so content isn't hidden behind the bar */
@media (max-width: 1023px) {
    .checkout-shopify {
        padding-bottom: 7rem;
    }
}

/* Loading State */
.checkout-shopify.processing {
    pointer-events: none;
    opacity: 0.6;
}

.checkout-shopify.processing::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #00A8CC;
    border-radius: 50%;
    animation: checkout-spin 0.8s linear infinite;
    z-index: 9999;
}

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

/* Hide default WooCommerce elements */
.checkout-shopify .woocommerce-form-login-toggle,
.checkout-shopify .woocommerce-form-coupon-toggle {
    display: none;
}

/* Mobile Order Summary Toggle */
.checkout-shopify .order-summary-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.checkout-shopify .order-summary-toggle:hover {
    background: #f3f4f6;
}

.checkout-shopify .order-summary-toggle svg {
    transition: transform 0.3s ease;
}

.checkout-shopify .order-summary-toggle.expanded svg {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .checkout-shopify .order-summary-toggle {
        display: none;
    }
}

/* Responsive Grid */
@media (max-width: 1023px) {
    .checkout-shopify .checkout-grid {
        display: flex;
        flex-direction: column;
    }

    .checkout-shopify .checkout-sidebar {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

/* Woocommerce Review Order Table Override */
.checkout-shopify .woocommerce-checkout-review-order-table {
    width: 100%;
    border: none;
}

.checkout-shopify .woocommerce-checkout-review-order-table th,
.checkout-shopify .woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border: none;
    vertical-align: middle;
}

.checkout-shopify .woocommerce-checkout-review-order-table thead {
    display: none;
}

.checkout-shopify .woocommerce-checkout-review-order-table .cart_item td {
    border-bottom: 1px solid #f3f4f6;
}

.checkout-shopify .woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: #1f2937;
}

.checkout-shopify .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 500;
}

.checkout-shopify .woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 400;
    color: #6b7280;
}

.checkout-shopify .woocommerce-checkout-review-order-table tfoot .order-total th,
.checkout-shopify .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

/* Terms and Conditions */
.checkout-shopify .woocommerce-terms-and-conditions-wrapper {
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.checkout-shopify .woocommerce-terms-and-conditions-wrapper a {
    color: #00A8CC;
    text-decoration: underline;
}

.checkout-shopify .woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Validation States */
.checkout-shopify .woocommerce-invalid input,
.checkout-shopify .woocommerce-invalid select {
    border-color: #ef4444 !important;
}

.checkout-shopify .woocommerce-validated input,
.checkout-shopify .woocommerce-validated select {
    border-color: #22c55e !important;
}

/* ==========================================================================
   PLYR VIDEO PLAYER CUSTOMIZATION
   ========================================================================== */

/* Story ring - animated gradient */
.story-ring {
    position: relative;
    background: transparent;
}

.story-ring > * {
    position: relative;
    z-index: 1;
}

.story-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary),
        rgba(0, 168, 204, 0.6),
        var(--color-primary),
        rgba(0, 168, 204, 0.6),
        var(--color-primary)
    );
    animation: story-ring-spin 3s linear infinite;
}

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

.story-ring:hover::before {
    animation-duration: 1.5s;
}

/* Stories Player */
#stories-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
}

/* Progress bars container */
.stories-progress {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    gap: 4px;
}

/* Individual bar background */
.stories-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

/* Bar fill (white) */
.stories-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

/* Header: avatar + name */
.stories-header {
    position: absolute;
    top: 18px;
    left: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stories-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.stories-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Footer: product card */
.stories-footer {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stories-desc {
    flex: 1;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories-cta {
    flex-shrink: 0;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.stories-cta:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Tap zones */
.stories-tap-left,
.stories-tap-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 5;
    cursor: pointer;
}

.stories-tap-left {
    left: 0;
}

.stories-tap-right {
    right: 0;
    width: 65%;
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

/* Base skeleton styles */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}

.skeleton-dark {
    background: linear-gradient(90deg, #d1d5db 0%, #e5e7eb 50%, #d1d5db 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton pulse animation (alternative) */
.skeleton-pulse {
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Product card skeleton */
.skeleton-product-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.skeleton-product-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-product-content {
    padding: 0.75rem;
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-text-sm {
    height: 0.75rem;
}

.skeleton-text-lg {
    height: 1.25rem;
}

.skeleton-text-half {
    width: 50%;
}

.skeleton-text-third {
    width: 33%;
}

.skeleton-text-two-thirds {
    width: 66%;
}

.skeleton-button {
    height: 2.25rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.375rem;
}

.skeleton-circle {
    border-radius: 9999px;
}

/* Image skeleton wrapper */
.img-skeleton-wrapper {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.img-skeleton-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.img-skeleton-wrapper.loaded::before {
    opacity: 0;
    pointer-events: none;
}

/* Only affect primary image (first child), not hover images */
.img-skeleton-wrapper > img:first-child {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-skeleton-wrapper.loaded > img:first-child {
    opacity: 1;
}

/* Secondary hover image - starts hidden and shows on hover */
.img-skeleton-wrapper > img:not(:first-child) {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.group:hover .img-skeleton-wrapper > img:not(:first-child) {
    opacity: 1 !important;
}

/* Hide primary image on hover when secondary exists */
.group:hover .img-skeleton-wrapper.loaded > img:first-child:not(:only-child) {
    opacity: 0;
}

/* Lazy load blur-up effect */
.lazy-blur {
    filter: blur(20px);
    transition: filter 0.4s ease;
}

.lazy-blur.loaded {
    filter: blur(0);
}

/* Lazy image placeholder */
.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Side cart skeleton */
.skeleton-cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.skeleton-cart-image {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.375rem;
}

.skeleton-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Category skeleton */
.skeleton-category-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

.skeleton-category-image {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

/* Hero skeleton */
.skeleton-hero {
    height: 500px;
    background: linear-gradient(90deg, #374151 0%, #4b5563 50%, #374151 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .skeleton-hero {
        height: 600px;
    }
}

/* Badge/chip skeleton */
.skeleton-badge {
    height: 1.5rem;
    width: 4rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    display: inline-block;
}

/* Price skeleton */
.skeleton-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.skeleton-price-label {
    height: 0.75rem;
    width: 3rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}

.skeleton-price-value {
    height: 0.875rem;
    width: 4rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
}

/* Grid skeleton */
.skeleton-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Content skeleton for text blocks */
.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-content .skeleton-text:last-child {
    margin-bottom: 0;
}

/* Shimmer overlay for existing elements */
.shimmer-overlay {
    position: relative;
    overflow: hidden;
}

.shimmer-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-slide 1.5s infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Loading state for containers */
.loading-container {
    position: relative;
    min-height: 200px;
}

.loading-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #00A8CC;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Fade in animation for loaded content */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for grid items */
.stagger-in > * {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-in > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-in > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-in > *:nth-child(12) { animation-delay: 0.6s; }
.stagger-in > *:nth-child(13) { animation-delay: 0.65s; }
.stagger-in > *:nth-child(14) { animation-delay: 0.7s; }
.stagger-in > *:nth-child(15) { animation-delay: 0.75s; }
.stagger-in > *:nth-child(16) { animation-delay: 0.8s; }

/* ========================================
   SHOP SIDEBAR CATEGORIES
   ======================================== */
.sidebar-cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    transition: all 0.15s ease;
}

.sidebar-cat-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-foreground);
}

.sidebar-cat-link.active {
    background-color: var(--color-primary);
    color: #ffffff;
}

.sidebar-cat-link.active .sidebar-cat-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar-cat-count {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--color-secondary);
    color: var(--color-muted-foreground);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.sidebar-cat-child {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}
