/*
Theme Name: Maroc Luxe
Theme URI: https://veloria.ma
Author: Afdal of Clodz
Author URI: https://veloria.ma
Description: Thème premium WooCommerce. Design ultra moderne avec animations et expérience utilisateur optimale. Compatible avec les téléphones et les PC.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: maroc-luxe
*/

/* Base Resets & Custom CSS not handled by Tailwind */

:root {
  --zenzit-primary: #ea580c; /* orange-600 */

  /* ==========================================================================
     CUSTOMIZABLE SWATCH PERSONALIZATION CONTROLS
     Easily adjust the size, text, color, shape, and image of variants below.
     ========================================================================== */

  /* Text & Size Swatches (e.g., S, M, L, XL or custom button labels) */
  --swatch-label-min-width: 48px;      /* Minimum width of text swatches */
  --swatch-label-min-height: 38px;     /* Minimum height of text swatches */
  --swatch-label-font-size: 13px;      /* Font size of labels */
  --swatch-label-border-radius: 6px;   /* Roundness of text swatches (Premium rounded-md corners) */

  /* Color Swatches (e.g., Beige, Noir, Blanc circles or blocks) */
  --swatch-color-size: 34px;           /* Diameter/Size of color swatches */
  --swatch-color-radius: 50%;          /* Shape: 50% for circle, 6px/8px for rounded square */

  /* Image Swatches (e.g., Thumbnail product options) */
  --swatch-image-width: 48px;          /* Width of image thumbnail swatches */
  --swatch-image-height: 48px;         /* Height of image thumbnail swatches */
  --swatch-image-radius: 6px;          /* Roundness of image swatches */

  /* Global Styles & Accent Controls */
  --swatch-border-color: #d1d5db;      /* Default normal border color */
  --swatch-border-hover: #9ca3af;      /* Border color on hover */
  --swatch-active-accent: #ea580c;     /* Active highlight color (brand orange) */
  --swatch-active-shadow: 0 4px 10px rgba(234, 88, 12, 0.25); /* Active glow effect */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff;
  color: #030712; /* gray-950 */
}

body.no-scroll {
  overflow: hidden;
}

/* Hide scrollbar for elements with no-scrollbar class */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Custom Animations */
@keyframes slide-in-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.animate-slide-in-left { animation: slide-in-left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
.animate-slide-in-right { animation: slide-in-right 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fade-in 0.6s ease-out; }

@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-up { animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }

/* Global components fixes for Tailwind context */
a {
  text-decoration: none;
}

/* Make sure WooCommerce elements don't break Tailwind layout */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  background-color: #f9fafb;
  border-left: 4px solid #000;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.woocommerce-error {
  border-left-color: #dc2626;
}

/* ZenZit COD Pro Compatibility adjustments */
.zenzit-form-wrapper {
  margin-top: 2rem;
}

/* If the COD Engine is active, reset the container */
.cod-engine-full-canvas .site-content,
.cod-engine-full-canvas .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cod-engine-full-canvas header, 
.cod-engine-full-canvas footer {
    display: none; /* Hide theme header/footer on landing pages */
}

/* Custom Premium Swatches & Responsive WooCommerce Controls styling */

/* 1. Hide standard WooCommerce variations reset button "Effacer" */
.variations_form .reset_variations,
.reset_variations {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Hide WooCommerce quantity selectors on single product page */
.single-product-veloria .quantity,
.variations_form .quantity,
.variations_button .quantity,
.woocommerce-variation-add-to-cart .quantity {
    display: none !important;
    visibility: hidden !important;
}

/* 3. Hide colon, table th labels if needed or custom styling */
.single-product-veloria table.variations th.label {
    padding-bottom: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #1f2937 !important;
}

/* 4. Premium Swatches Container styling */
.cfvsw-swatches-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* 5. Custom Swatches base option style */
.cfvsw-swatches-option {
    border: 1px solid var(--swatch-border-color) !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    color: #374151 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Hover style for active/enabled swatches */
.cfvsw-swatches-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch) {
    border-color: var(--swatch-border-hover) !important;
    background-color: #f9fafb !important;
}

/* --- A. Text & Size Swatches Styling --- */
.cfvsw-swatches-option.cfvsw-label-option,
.cfvsw-swatches-option.cfvsw-text-option {
    min-width: var(--swatch-label-min-width) !important;
    min-height: var(--swatch-label-min-height) !important;
    font-size: var(--swatch-label-font-size) !important;
    border-radius: var(--swatch-label-border-radius) !important;
    padding: 6px 14px !important;
}

/* Active State for Text & Size Swatches */
.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-text-option.cfvsw-selected-swatch {
    border-color: var(--swatch-active-accent) !important;
    background-color: var(--swatch-active-accent) !important;
    color: #ffffff !important;
    box-shadow: var(--swatch-active-shadow) !important;
}

/* --- B. Color Swatches Styling --- */
.cfvsw-swatches-option.cfvsw-color-option {
    width: var(--swatch-color-size) !important;
    height: var(--swatch-color-size) !important;
    min-width: var(--swatch-color-size) !important;
    min-height: var(--swatch-color-size) !important;
    padding: 0 !important;
    border-radius: var(--swatch-color-radius) !important;
    overflow: hidden !important;
}

.cfvsw-swatches-option.cfvsw-color-option .cfvsw-swatch-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--swatch-color-radius) !important;
    border: 2px solid #ffffff !important; /* Elegant white spacing border inside outer ring */
    box-sizing: border-box !important;
}

/* --- C. Image Swatches Styling --- */
.cfvsw-swatches-option.cfvsw-image-option {
    width: var(--swatch-image-width) !important;
    height: var(--swatch-image-height) !important;
    min-width: var(--swatch-image-width) !important;
    min-height: var(--swatch-image-height) !important;
    padding: 0 !important;
    border-radius: var(--swatch-image-radius) !important;
    overflow: hidden !important;
}

.cfvsw-swatches-option.cfvsw-image-option img,
.cfvsw-swatches-option.cfvsw-image-option .cfvsw-swatch-inner {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: calc(var(--swatch-image-radius) - 1px) !important;
}

/* Active State for Color & Image Swatches (Double border ring effect) */
.cfvsw-swatches-option.cfvsw-color-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-image-option.cfvsw-selected-swatch {
    background-color: #ffffff !important;
    border-color: var(--swatch-active-accent) !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--swatch-active-accent) !important;
    z-index: 10 !important;
}

/* --- D. Disabled / Out of Stock Swatches Styling --- */
.cfvsw-swatches-option.cfvsw-swatches-disabled {
    opacity: 0.35 !important;
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.cfvsw-swatches-option.cfvsw-swatches-disabled::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 100% !important;
    height: 1px !important;
    background-color: #9ca3af !important;
    transform: rotate(-30deg) !important;
    pointer-events: none !important;
}

/* 6. All in one line on Mobile (responsive row with horizontal scroll) */
@media (max-width: 640px) {
    .cfvsw-swatches-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important; /* Extra padding to avoid clipping active focus shadows */
        padding-top: 6px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        gap: 10px !important;
        scrollbar-width: none !important; /* Firefox */
    }
    
    .cfvsw-swatches-container::-webkit-scrollbar {
        display: none !important; /* Safari and Chrome */
    }
    
    .cfvsw-swatches-container {
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;  /* Firefox */
    }
    
    .cfvsw-swatches-option {
        flex-shrink: 0 !important;
    }
    
    /* Make table rows neat on mobile */
    .single-product-veloria table.variations tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 18px !important;
    }
    
    .single-product-veloria table.variations td.value {
        padding-left: 0 !important;
    }
}

/* ==========================================================================
   USER CUSTOM OVERRIDES & LAYOUT ADJUSTMENTS
   ========================================================================== */

/* Hide ONLY these default WooCommerce texts */
.prose > h1,
.woocommerce-notice,
.woocommerce-order > p:first-of-type {
    display: none !important;
}

/* Remove empty top spacing */
.pt-40 {
    padding-top: 0 !important;
}

/* Hide: "Payer en argent comptant à la livraison." */
.woocommerce-order > p {
    display: none !important;
}

/* Hide only the color text like "Beige" */
.zenzit-swatch-item .flex span:last-child {
    display: none !important;
}

/* Make gallery arrows always visible */
#ml-gallery-next,
#ml-gallery-prev {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
    visibility: visible !important;
    display: flex !important;
}

/* Better visibility */
#ml-gallery-next,
#ml-gallery-prev {
    background: rgba(255,255,255,0.95) !important;
    color: #000 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Hover effect */
#ml-gallery-next:hover,
#ml-gallery-prev:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
    #ml-gallery-next,
    #ml-gallery-prev {
        width: 42px !important;
        height: 42px !important;
        opacity: 1 !important;
    }

    #ml-gallery-next {
        right: 10px !important;
    }

    #ml-gallery-prev {
        left: 10px !important;
    }
}

/* Modern Color Swatches Style (Exactly matching the premium mockup design) */

/* Remove default plugin pseudo-elements */
.cfvsw-swatches-option::before,
.cfvsw-swatches-option::after {
    display: none !important;
}

/* Swatches Container */
.cfvsw-swatches-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 0 !important;
}

/* --- A. Base Style for Size / Text Swatches (Pointures & Text Options) --- */
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-label-option,
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-text-option,
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option),
.cfvsw-swatches-option.cfvsw-label-option,
.cfvsw-swatches-option.cfvsw-text-option,
.cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option) {
    width: auto !important; /* Allow dynamic width for text values like Beige, Blanc, Noir */
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important; /* Premium rounded-md corners instead of circle */
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    background-color: #ffffff !important;
    color: #4b5563 !important; /* gray-600 */
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    padding: 0 14px !important; /* Elegant horizontal padding for text */
    box-shadow: none !important;
}

/* Hover style for unselected size/text buttons */
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-label-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-text-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option):hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option.cfvsw-label-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option.cfvsw-text-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option):hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch) {
    border-color: #9ca3af !important; /* hover:border-gray-400 */
    color: #111827 !important; /* gray-900 */
}

/* Selected active size/text button (Crisp 2px black border, white background, bold black text) */
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch,
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-text-option.cfvsw-selected-swatch,
.variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-selected-swatch:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option),
.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-text-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-selected-swatch:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option) {
    background-color: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    box-shadow: 0 0 0 1px #000000 !important; /* Emulates a sharp 2px black border */
}

/* Centering text inside label and button swatches */
.cfvsw-swatches-option.cfvsw-label-option .cfvsw-swatch-inner,
.cfvsw-swatches-option.cfvsw-text-option .cfvsw-swatch-inner,
.cfvsw-swatches-option:not(.cfvsw-color-option):not(.cfvsw-image-option) .cfvsw-swatch-inner,
.cfvsw-swatch-text .cfvsw-swatch-inner,
.cfvsw-swatch-button .cfvsw-swatch-inner,
.cfvsw-swatch-label .cfvsw-swatch-inner,
.variable-item:not(.color-variable-item):not(.image-variable-item) .variable-item-contents,
.variable-item:not(.color-variable-item):not(.image-variable-item) .variable-item-span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: inherit !important;
    text-align: center !important;
}

/* --- B. Color and Image Swatches (Pastilles - Perfect Circular Options) --- */
/* Target all common color & image swatch button containers globally */
.cfvsw-swatches-option.cfvsw-color-option,
.cfvsw-swatches-option.cfvsw-image-option,
.cfvsw-swatches-option.cfvsw-color-option:has(.cfvsw-swatch-inner),
.cfvsw-swatches-option.cfvsw-image-option:has(.cfvsw-swatch-inner),
.cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option),
.cfvsw-swatches-container .cfvsw-swatch-color,
.variable-items-wrapper .variable-item.color-variable-item,
.woo-variation-swatches .variable-item.color-variable-item,
.tawcvs-swatches .swatch-color,
.swatch-wrapper .swatch.swatch-color,
.swatch-item-color,
.swatches-select .swatch-item-color,
.zenzit-custom-swatches .zenzit-swatch-item:has(span[style*="background"]),
.zenzit-custom-swatches .zenzit-swatch-item:has(span[style*="background-color"]),
.zenzit-swatch-item:has(.rounded-full) {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important; /* Perfect circular pastilles */
    border: 1px solid rgba(0, 0, 0, 0.05) !important; /* Subtle unselected border (border-black/5) */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; /* Unselected small shadow (shadow-sm) */
    padding: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important; /* Allow the offset focus ring to display nicely */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; /* transition-all duration-200 */
}

/* Inner elements for color/image swatches (force block display and perfect solid circle) */
.cfvsw-swatches-option.cfvsw-color-option .cfvsw-swatch-inner,
.cfvsw-swatches-option.cfvsw-image-option img,
.cfvsw-swatches-option.cfvsw-image-option .cfvsw-swatch-inner,
.cfvsw-swatches-option.cfvsw-color-option:has(.cfvsw-swatch-inner) .cfvsw-swatch-inner,
.cfvsw-swatches-option.cfvsw-image-option:has(.cfvsw-swatch-inner) .cfvsw-swatch-inner,
.cfvsw-swatches-option.cfvsw-color-option:has(.cfvsw-swatch-inner) img,
.cfvsw-swatches-option.cfvsw-image-option:has(.cfvsw-swatch-inner) img,
.cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option) .cfvsw-swatch-inner,
.variable-item.color-variable-item .variable-item-contents,
.variable-item.color-variable-item .variable-item-span,
.variable-item.color-variable-item .variable-item-contents span,
.variable-item.color-variable-item span,
.woo-variation-swatches .variable-item.color-variable-item .variable-item-contents,
.woo-variation-swatches .variable-item.color-variable-item span,
.swatch-color .swatch-inner,
.swatch-color span,
.zenzit-swatch-item span.rounded-full {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: none !important; /* Remove internal border spacing to make it fully solid/bleed to edges */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover style for unselected color and image pastilles */
.cfvsw-swatches-option.cfvsw-color-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option.cfvsw-image-option:hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option.cfvsw-color-option:has(.cfvsw-swatch-inner):hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option.cfvsw-image-option:has(.cfvsw-swatch-inner):hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option):hover:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch),
.variable-item.color-variable-item:hover:not(.disabled):not(.selected),
.woo-variation-swatches .variable-item.color-variable-item:hover:not(.disabled):not(.selected),
.zenzit-swatch-item:has(span.rounded-full):hover:not(.is-active) {
    transform: scale(1.05) !important; /* hover:scale-105 */
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Selected active color/image pastille (ring-[2px] ring-[#222222] ring-offset-[3px]) */
.cfvsw-swatches-option.cfvsw-color-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-image-option.cfvsw-selected-swatch,
.cfvsw-swatches-option.cfvsw-color-option.cfvsw-selected-swatch:has(.cfvsw-swatch-inner),
.cfvsw-swatches-option.cfvsw-image-option.cfvsw-selected-swatch:has(.cfvsw-swatch-inner),
.cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option).cfvsw-selected-swatch,
.variable-item.color-variable-item.selected,
.woo-variation-swatches .variable-item.color-variable-item.selected,
.tawcvs-swatches .swatch-color.selected,
.swatch-wrapper .swatch.swatch-color.selected,
.zenzit-custom-swatches .zenzit-swatch-item.is-active:has(span[style*="background"]),
.zenzit-custom-swatches .zenzit-swatch-item.is-active:has(span[style*="background-color"]),
.zenzit-swatch-item.is-active:has(.rounded-full) {
    border-color: transparent !important; /* Hide original border */
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #222222 !important; /* crisp 2px dark charcoal (#222222) ring offset by 3px white gap */
    transform: scale(1) !important; /* No scale factor applied on selected item */
    background-color: transparent !important;
    z-index: 10 !important;
}

/* Prevent selected pastilles from scaling on hover */
.cfvsw-swatches-option.cfvsw-color-option.cfvsw-selected-swatch:hover,
.cfvsw-swatches-option.cfvsw-image-option.cfvsw-selected-swatch:hover,
.cfvsw-swatches-option.cfvsw-color-option.cfvsw-selected-swatch:has(.cfvsw-swatch-inner):hover,
.cfvsw-swatches-option.cfvsw-image-option.cfvsw-selected-swatch:has(.cfvsw-swatch-inner):hover,
.cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option).cfvsw-selected-swatch:hover,
.variable-item.color-variable-item.selected:hover,
.woo-variation-swatches .variable-item.color-variable-item.selected:hover,
.zenzit-swatch-item.is-active:has(.rounded-full):hover {
    transform: scale(1) !important;
}

/* Custom category label styling to match mockup: text-[13px] font-extrabold text-slate-800 uppercase tracking-widest */
.single-product-veloria table.variations th.label,
.single-product-veloria table.variations th.label label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1e293b !important; /* slate-800 */
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important; /* tracking-widest */
    display: inline-flex !important;
    align-items: center !important;
}

/* Selected variant value: slate-500 (64748b), medium weight, capitalize, normal letter spacing */
.single-product-veloria table.variations th.label span,
.single-product-veloria table.variations th.label .cfvsw-selected-value,
.cfvsw-selected-value {
    color: #64748b !important; /* slate-500 */
    font-weight: 500 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    margin-left: 6px !important;
    display: inline-block !important;
}

/* --- D. Mobile responsiveness --- */
@media (max-width: 768px) {
    /* Sizes on Mobile */
    .variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-label-option,
    .variations_form .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-text-option,
    .variations_form .cfvsw-swatches-container .cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option),
    .cfvsw-swatches-option.cfvsw-label-option,
    .cfvsw-swatches-option.cfvsw-text-option,
    .cfvsw-swatches-option:not(:has(.cfvsw-swatch-inner)):not(.cfvsw-image-option) {
        width: auto !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 6px !important; /* Premium rounded-md corners instead of circle on mobile */
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    /* Colors and Images on Mobile (38px diameter) */
    .cfvsw-swatches-option.cfvsw-color-option,
    .cfvsw-swatches-option.cfvsw-image-option,
    .cfvsw-swatches-option:has(.cfvsw-swatch-inner),
    .cfvsw-swatches-option:not(.cfvsw-label-option):not(.cfvsw-image-option),
    .cfvsw-swatches-container .cfvsw-swatch-color,
    .variable-items-wrapper .variable-item.color-variable-item,
    .woo-variation-swatches .variable-item.color-variable-item,
    .tawcvs-swatches .swatch-color,
    .swatch-wrapper .swatch.swatch-color,
    .swatch-item-color,
    .swatches-select .swatch-item-color,
    .zenzit-custom-swatches .zenzit-swatch-item:has(span[style*="background"]),
    .zenzit-custom-swatches .zenzit-swatch-item:has(span[style*="background-color"]),
    .zenzit-swatch-item:has(.rounded-full) {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
    }
}