/* =========================================================
   Fashion22ha Foorweb Store Theme CSS - Compact & Refined
   Primary Brand Black: #1c1c1e  (logo dark tone)
   Secondary Brand Gold: #C9A227  (logo gold tone)
   Font: 'Cairo', sans-serif (Arabic RTL)
   ========================================================= */

:root {
    --primary-color: #1c1c1e;
    --primary-dark: #000000;
    --primary-light: rgba(28, 28, 30, 0.07);
    --secondary-color: #C9A227;
    --secondary-dark: #a8871c;
    --secondary-light: rgba(201, 162, 39, 0.12);
    --text-main: #1c1c1e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-page: #f9f9f9;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --gold-glow: 0 3px 10px rgba(201,162,39,0.30);
    --dark-glow: 0 3px 10px rgba(28,28,30,0.20);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ================= Configurable Store Slider ================= */
.store-slider {
    min-height: 250px;
    margin: 18px 0 16px;
    padding: 34px 40px;
    display: flex;
    align-items: center;
    color: #ffffff;
    border-radius: var(--radius-lg);
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.store-slider-content { max-width: 560px; }
.store-slider-kicker { opacity: .78; font-size: 12px; font-weight: 700; }
.store-slider h1 { margin: 7px 0; font-size: clamp(24px, 4vw, 38px); line-height: 1.2; }
.store-slider p { margin-bottom: 18px; font-size: 14px; opacity: .86; }
.store-slider-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--secondary-color); color: #ffffff; font-size: 12px; font-weight: 800; }

/* ================= Top Announcement Bar ================= */
.top-announcement {
    background: linear-gradient(90deg, #1c1c1e 0%, #2d2d30 45%, #1c1c1e 100%);
    color: #C9A227;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 50;
    letter-spacing: 0.3px;
}

.top-announcement p {
    margin: 0;
}

/* ================= Main Navbar ================= */
.store-navbar {
    background-color: var(--store-header-color, #ffffff);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
}

.store-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.nav-logo-img {
    height: 48px;
    width: 150px;
    object-fit: contain;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-muted);
    transition: color 0.15s ease;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-dark);
    background-color: var(--secondary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.nav-phone-btn:hover {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    color: #C9A227;
    border-color: #1c1c1e;
}

.nav-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.nav-dashboard-link:hover {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    color: #C9A227;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

/* ================= Hero / Store Intro ================= */
.store-hero {
    text-align: center;
    padding: 22px 12px 14px;
}

.store-hero-title-box {
    display: inline-block;
    position: relative;
    margin-bottom: 6px;
}

.store-hero-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.store-hero-underline {
    height: 5px;
    width: 100%;
    background-color: rgba(201, 162, 39, 0.30);
    border-radius: var(--radius-full);
    position: absolute;
    bottom: 2px;
    left: 0;
    z-index: 1;
}

.store-hero-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 500;
}

/* ================= Trust Badges ================= */
.trust-badges-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px auto 22px;
    max-width: 980px;
}

.trust-badge-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.trust-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary-color);
}

.trust-badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #C9A227 0%, #b8911f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: var(--gold-glow);
}

.trust-badge-text h4 {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-main);
}

.trust-badge-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* ================= Category Pills Bar ================= */
.category-pills-wrap {
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.category-pills-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    min-width: max-content;
    padding: 2px;
}

.category-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.category-pill-btn i {
    color: var(--secondary-color);
    font-size: 12px;
}

.category-pill-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-dark);
}

.category-pill-btn.active {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    border-color: #1c1c1e;
    color: #C9A227;
    box-shadow: var(--dark-glow);
}

.category-pill-btn.active i {
    color: #C9A227;
}

/* ================= Product Grid & Cards ================= */
.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.products-count-badge {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, 0.50);
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.product-discount-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: linear-gradient(135deg, #C9A227 0%, #a8871c 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    z-index: 2;
    box-shadow: var(--gold-glow);
    letter-spacing: 0.3px;
}

.product-gallery-discount {
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.88), rgba(217, 119, 6, 0.82));
    box-shadow: 0 4px 12px rgba(120, 53, 15, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(5px);
    font-size: 11px;
}

.product-category-tag {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(28, 28, 30, 0.82);
    backdrop-filter: blur(4px);
    color: #C9A227;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    z-index: 2;
}

.product-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--secondary-color);
    font-size: 11px;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 6px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-title:hover {
    color: var(--secondary-color);
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 8px;
}

.product-price-current {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-dark);
}

.product-price-old {
    font-size: 11.5px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    background: linear-gradient(135deg, #C9A227 0%, #b8911f 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: var(--gold-glow);
    letter-spacing: 0.2px;
}

.product-card-btn:hover {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    box-shadow: var(--dark-glow);
    transform: translateY(-1px);
}

/* ================= Product Details Page ================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    margin-top: 14px;
    margin-bottom: 36px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-main-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    aspect-ratio: 1 / 1;
    position: relative;
    max-height: 440px;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-thumbs-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb-item {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #ffffff;
    transition: all 0.15s ease;
}

.gallery-thumb-item.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1.5px rgba(201, 162, 39, 0.35);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info & Order Form */
.product-info-box {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.product-breadcrumbs a:hover {
    color: var(--primary-color);
}

.product-detail-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-sku-tag {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.product-stock-pulse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Price Box */
.product-price-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
}

.price-box-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-main-large {
    font-size: 21px;
    font-weight: 900;
    color: var(--secondary-dark);
}

.price-old-large {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-save-badge {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    color: #C9A227;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.product-price-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: start;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.88) 0%, rgba(21, 128, 61, 0.84) 58%, rgba(34, 166, 83, 0.82) 100%);
    box-shadow: 0 7px 20px rgba(20, 83, 45, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.product-price-overlay::before {
    position: absolute;
    z-index: -1;
    top: -34px;
    right: -24px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    content: "";
}

.product-price-overlay .price-box-main {
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.product-price-overlay .price-main-large {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.product-price-overlay .price-old-large {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
}

.product-price-overlay .price-save-badge {
    position: relative;
    z-index: 1;
    background: #fef3c7;
    color: #854d0e;
    font-size: 10px;
    padding: 2px 7px;
}

/* Variants Selection */
.variant-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-group-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.variant-options-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-picker {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.variant-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.variant-picker-title {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.variant-picker-hint {
    margin: 1px 0 0;
    color: #64748b;
    font-size: 10px;
}

.variant-picker-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.variant-selection-total {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.variant-selection-total strong {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
}

.variant-selection-color {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 7px 9px;
    border: 1px solid #e2e8f0;
    border-right: 3px solid var(--variant-color);
    border-radius: 10px;
    background: #ffffff;
}

.variant-selection-color-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.variant-color-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    border: 1px solid rgba(17, 24, 39, 0.16);
    background: var(--variant-color);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px color-mix(in srgb, var(--variant-color) 25%, #ffffff);
}

.variant-quantity-row {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(28, 28, 30, 0.06);
    border-radius: 7px;
    background: #ffffff;
    color: #4b5563;
    font-size: 11px;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.variant-selection-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 4px;
}

.variant-quantity-row.has-quantity {
    border-color: var(--variant-color);
    background: #f8fafc;
}

.variant-size-label {
    font-weight: 700;
}

.variant-quantity-control {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    direction: ltr;
}

.variant-quantity-input {
    width: 30px;
    height: 28px;
    padding: 2px;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    appearance: textfield;
}

.variant-quantity-input::-webkit-inner-spin-button,
.variant-quantity-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.variant-quantity-step {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.variant-quantity-step:hover {
    transform: translateY(-1px);
    border-color: var(--variant-color, #94a3b8);
    background: #f1f5f9;
    color: #1f2937;
}

.variant-quantity-step:focus-visible,
.variant-quantity-input:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .variant-picker {
        gap: 6px;
        margin-bottom: 10px;
        padding: 8px;
    }

    .variant-selection-color {
        padding: 5px 7px 6px;
    }

    .variant-quantity-row { min-height: 34px; }
    .variant-picker-options { grid-template-columns: 1fr; }
    .variant-selection-sizes { grid-template-columns: 1fr; }
}

.size-variant-options[hidden] {
    display: none;
}

.variant-btn {
    padding: 5px 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
}

.variant-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-dark);
}

.variant-btn.active {
    border-color: var(--secondary-dark);
    background: var(--secondary-dark);
    color: #ffffff;
}

/* Color swatch */
.color-swatch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.color-swatch-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}

.color-swatch-btn.active {
    border-color: var(--secondary-color);
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

/* Quantity selector */
.qty-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
    width: 110px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    width: 42px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

/* ================= COD Checkout Form Box ================= */
.cod-checkout-card {
    background: #ffffff;
    border: 1.5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.10);
}

.cod-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.cod-card-header-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    color: #C9A227;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.cod-card-header-text h3 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.cod-card-header-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.cod-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-full-width {
    grid-column: 1 / -1;
}

.cod-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cod-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.cod-input, .cod-select, .cod-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: #f9f9f9;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.15s;
    outline: none;
    height: 38px;
}

.cod-textarea {
    height: auto;
    min-height: 56px;
}

.cod-input:focus, .cod-select:focus, .cod-textarea:focus {
    border-color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

/* Delivery Type Radio Buttons */
.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.delivery-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}

.delivery-radio-label:hover {
    border-color: var(--secondary-color);
}

.delivery-radio-label.active {
    border-color: var(--secondary-color);
    background: var(--secondary-light);
}

.delivery-radio-label input[type="radio"] {
    accent-color: var(--secondary-color);
    width: 15px;
    height: 15px;
}

.delivery-radio-text {
    display: flex;
    flex-direction: column;
}

.delivery-radio-text strong {
    font-size: 12px;
    color: var(--text-main);
}

.delivery-radio-text small {
    font-size: 10px;
    color: var(--text-muted);
}

/* Order Summary Box */
.order-summary-box {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.summary-row.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.summary-row.total-row .total-price-val {
    font-size: 17px;
    color: var(--secondary-dark);
    font-weight: 900;
}

.cod-submit-btn {
    width: 100%;
    padding: 11px 18px;
    background: linear-gradient(135deg, #C9A227 0%, #b8911f 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.cod-submit-btn:hover {
    background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
    box-shadow: var(--dark-glow);
    transform: translateY(-1px);
}

.cod-trust-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ================= Sticky Mobile Purchase Bar ================= */
.sticky-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    padding: 8px 12px;
    z-index: 99;
}

.sticky-mobile-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-call-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sticky-buy-btn {
    flex-grow: 1;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #C9A227 0%, #b8911f 100%);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--gold-glow);
}

/* ================= Tabs (Description & Policies) ================= */
.product-details-tabs-wrap {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-xs);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.details-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.details-tab-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
}

.details-tab-btn.active {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.tab-pane {
    display: none;
    line-height: 1.7;
    color: #374151;
    font-size: 13.5px;
}

.tab-pane.active {
    display: block;
}

/* ================= Footer ================= */
.store-footer {
    background: var(--store-footer-color, #111111);
    color: #9ca3af;
    padding: 36px 0 20px;
    margin-top: 48px;
    border-top: 2px solid #C9A227;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    font-size: 13px;
    transition: color 0.15s;
}

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

.footer-social-row {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    background: #222222;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
    border: 1px solid #333333;
}

.footer-social-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
}

/* ================= Responsive Styles ================= */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .trust-badges-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 44px;
        width: 120px;
    }
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: block;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cod-form-grid {
        grid-template-columns: 1fr;
    }
    .sticky-mobile-bar {
        display: block;
    }
    body {
        padding-bottom: 56px;
    }
    .trust-badges-bar {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Product page: COD-first conversion layout */
.product-page {
    padding-bottom: 28px;
}

.product-page-breadcrumbs {
    padding: 14px 0 6px;
    color: #64748b;
}

.product-detail-layout {
    max-width: 1120px;
    align-items: start;
    gap: 24px;
    margin-top: 12px;
}

.product-gallery {
    gap: 12px;
}

.gallery-main-wrap {
    border: 1px solid #e8eee9;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    background: #f1f5f2;
}

.gallery-main-img {
    transition: opacity 0.15s ease;
}

.gallery-thumb-item {
    width: 66px;
    height: 66px;
    border-radius: 10px;
}

.gallery-thumb-item.active {
    border-color: #15803d;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.16);
}

.product-trust-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5eee7;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f7fbf7);
}

.product-trust-card > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    color: #3f5947;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.product-trust-card i {
    flex: 0 0 auto;
    color: #15803d;
    font-size: 13px;
}

.product-info-box {
    gap: 14px;
    padding: 20px;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.product-heading {
    display: grid;
    gap: 5px;
}

.product-detail-title {
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.product-stock-pulse {
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid #d7f0dd;
    border-radius: 999px;
    background: #f0fdf4;
    font-size: 11px;
}

.pulse-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #e7eee8;
    border-radius: 9px;
    background: #f8fbf8;
    color: #486052;
    font-size: 11px;
    font-weight: 700;
}

.product-benefits i {
    color: #15803d;
}

.product-short-description {
    padding: 11px 13px;
    border-right: 3px solid #22a653;
    border-radius: 8px;
    background: #f7faf7;
    color: #526357;
    font-size: 13px;
    line-height: 1.75;
}

.variant-picker {
    margin: 0;
    padding: 12px;
    border-color: #e6ece7;
    border-radius: 14px;
    background: #fcfdfc;
    box-shadow: none;
}

.variant-picker-title {
    font-size: 14px;
}

.cod-checkout-card {
    padding: 16px;
    border: 1px solid #dcebe0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow: 0 8px 22px rgba(21, 128, 61, 0.07);
}

.cod-card-header {
    gap: 11px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2ee;
}

.cod-card-header-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #166534, #22a653);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(21, 128, 61, 0.2);
}

.cod-card-header-text h3 {
    font-size: 15px;
}

.cod-card-header-text p {
    margin-top: 2px;
    font-size: 11px;
}

.cod-form-grid {
    gap: 11px;
}

.cod-field-group {
    gap: 5px;
}

.cod-field-label {
    font-size: 12px;
}

.cod-input,
.cod-select {
    height: 42px;
    padding: 9px 11px;
    border-color: #dfe7e1;
    border-radius: 9px;
    background: #ffffff;
}

.cod-input:focus,
.cod-select:focus,
.cod-textarea:focus {
    border-color: #22a653;
    box-shadow: 0 0 0 3px rgba(34, 166, 83, 0.12);
}

.delivery-options-grid {
    gap: 9px;
}

.delivery-radio-label {
    min-height: 62px;
    padding: 10px 11px;
    border-color: #e1e9e3;
    border-radius: 10px;
}

.delivery-radio-label:hover,
.delivery-radio-label.active {
    border-color: #42a967;
}

.delivery-radio-label.active {
    background: #f0fdf4;
    box-shadow: inset 0 0 0 1px rgba(34, 166, 83, 0.08);
}

.delivery-radio-label input[type="radio"] {
    accent-color: #15803d;
}

.order-summary-box {
    gap: 8px;
    margin: 13px 0;
    padding: 12px 13px;
    border-color: #e1ebe3;
    border-radius: 11px;
    background: #f7faf7;
}

.summary-row {
    font-size: 12px;
}

.summary-row.total-row {
    border-color: #e0e9e2;
    font-size: 13px;
}

.summary-row.total-row .total-price-val {
    color: #166534 !important;
    font-size: 19px;
}

.cod-submit-btn {
    min-height: 50px;
    border-radius: 11px;
    background: linear-gradient(120deg, #166534, #15803d 55%, #22a653);
    box-shadow: 0 7px 16px rgba(21, 128, 61, 0.22);
    font-size: 14px;
}

.cod-submit-btn:hover {
    background: linear-gradient(120deg, #14532d, #166534);
    box-shadow: 0 9px 20px rgba(21, 128, 61, 0.27);
}

.cod-submit-btn:focus-visible,
.sticky-buy-btn:focus-visible {
    outline: 3px solid rgba(34, 166, 83, 0.35);
    outline-offset: 3px;
}

.cod-trust-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
    color: #647568;
    font-size: 10px;
}

.product-details-tabs-wrap {
    margin-top: 24px;
    border-color: #e6ece7;
    border-radius: 16px;
}

.details-tab-btn.active {
    background: #edf8ef;
    color: #166534;
}

.sticky-mobile-bar {
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-color: #e1e9e3;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}

.sticky-buy-btn {
    height: 46px;
    border-radius: 11px;
    background: linear-gradient(120deg, #166534, #15803d 55%, #22a653);
    box-shadow: 0 5px 14px rgba(21, 128, 61, 0.2);
}

@media (max-width: 768px) {
    .product-page {
        padding-bottom: 18px;
    }

    .product-page-breadcrumbs {
        padding-top: 10px;
        overflow: hidden;
        white-space: nowrap;
    }

    .product-detail-layout {
        gap: 13px;
        margin-top: 8px;
        margin-bottom: 24px;
    }

    .product-gallery {
        gap: 8px;
    }

    .gallery-main-wrap {
        max-height: none;
        border-radius: 16px;
    }

    .product-trust-card {
        gap: 5px;
        padding: 9px 6px;
        border-radius: 12px;
    }

    .product-trust-card > div {
        flex-direction: column;
        gap: 3px;
        font-size: 10px;
        line-height: 1.3;
    }

    .product-info-box {
        gap: 12px;
        padding: 15px;
        border-radius: 16px;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .cod-checkout-card {
        padding: 13px;
        border-radius: 14px;
    }

    .cod-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .product-info-box {
        padding: 12px;
    }

    .product-benefits {
        gap: 6px;
    }

    .product-benefits span {
        padding: 5px 7px;
        font-size: 10px;
    }

    .cod-form-grid {
        grid-template-columns: 1fr;
    }

    .delivery-options-grid {
        grid-template-columns: 1fr;
    }

    .cod-trust-row {
        gap: 5px 10px;
    }
}

.variant-picker {
    gap: 8px;
    padding: 9px;
}

.variant-step-label {
    display: inline-block;
    margin-bottom: 1px;
    color: #78857b;
    font-size: 9px;
    font-weight: 800;
}

.variant-picker-heading .variant-picker-title {
    font-size: 13px;
}

.variant-picker-heading .variant-picker-hint {
    font-size: 9px;
}

.variant-color-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 6px;
}

.variant-color-choice {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 5px;
    border: 1px solid #e4e8e5;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    color: #252b27;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.variant-color-choice:hover {
    transform: translateY(-1px);
    border-color: #b7c8ba;
}

.variant-color-choice.is-active {
    border: 2px solid var(--variant-color);
    padding: 4px;
    background: color-mix(in srgb, var(--variant-color) 3%, #ffffff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--variant-color) 10%, transparent),
        0 3px 8px rgba(15, 23, 42, 0.05);
}

.variant-color-choice.is-active::after {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: var(--variant-color);
    color: #ffffff;
    content: "✓";
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.variant-color-swatch {
    display: block;
    width: 100%;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    background: var(--variant-swatch, var(--variant-color));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.variant-color-choice-name {
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
}

.variant-color-choice.has-selection .variant-color-choice-name {
    color: #166534;
}

.variant-color-picked {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 1px 4px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(22, 101, 52, 0.12);
}

.variant-color-choice:focus-visible,
.variant-quantity-step:focus-visible,
.variant-quantity-input:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

.variant-sizes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #edf0ed;
}

.variant-sizes-heading h4 {
    margin: 0;
    color: #262d28;
    font-size: 12px;
    font-weight: 800;
}

.variant-sizes-heading p {
    margin: 1px 0 0;
    color: #7a847d;
    font-size: 9px;
}

.variant-current-color {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid #e4e8e5;
    border-radius: 999px;
    background: #ffffff;
    color: #35423a;
    font-size: 9px;
    font-weight: 800;
}

.variant-size-panels {
    display: grid;
    gap: 5px;
}

.variant-color-panel {
    display: grid;
    gap: 5px;
}

.variant-color-panel:not([hidden]) {
    animation: variant-panel-enter 0.18s ease-out;
}

.variant-color-panel[hidden] {
    display: none !important;
}

@keyframes variant-panel-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.variant-color-panel .variant-selection-sizes {
    grid-template-columns: 1fr;
    gap: 5px;
}

.variant-color-panel .variant-quantity-row {
    min-height: 34px;
    padding: 3px 8px;
    border: 1px solid #e5e8e6;
    border-radius: 8px;
    background: #ffffff;
    font-size: 10px;
}

.variant-color-panel .variant-quantity-row.has-quantity {
    border-color: color-mix(in srgb, var(--variant-color) 42%, #e5e8e6);
    background: color-mix(in srgb, var(--variant-color) 4%, #ffffff);
}

.variant-color-panel .variant-size-label {
    font-size: 10px;
}

.variant-color-panel .variant-quantity-control {
    gap: 5px;
    flex-direction: row-reverse;
}

.variant-color-panel .variant-quantity-step {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.variant-color-panel .variant-quantity-step[data-quantity-step="1"] {
    border-color: #168a4a;
    background: #168a4a;
    color: #ffffff;
}

.variant-color-panel .variant-quantity-step[data-quantity-step="-1"] {
    border-color: #e8ece9;
    background: #ffffff;
    color: #818a83;
}

.variant-color-panel .variant-quantity-step[data-quantity-step="1"]:hover {
    background: #116d3a;
}

.variant-color-panel .variant-quantity-step[data-quantity-step="-1"]:hover {
    border-color: #cbd4cd;
    background: #f3f6f3;
}

.variant-color-panel .variant-quantity-input {
    width: 19px;
    height: 24px;
    font-size: 11px;
}

@media (max-width: 480px) {
    .variant-color-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .variant-color-choice {
        padding: 4px;
    }

    .variant-color-choice.is-active {
        padding: 3px;
    }

    .variant-color-swatch {
        height: 26px;
    }

    .variant-color-picked {
        top: 4px;
        left: 4px;
        font-size: 7px;
    }

    .variant-color-choice.is-active::after {
        top: 5px;
        right: 5px;
        width: 15px;
        height: 15px;
        font-size: 9px;
    }
}

.variant-picker {
    gap: 6px;
    padding: 7px;
    border-radius: 10px;
}

.variant-color-choices {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 5px;
}

.variant-color-choice,
.variant-color-choice.is-active {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 6px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
}

.variant-color-choice.is-active {
    border: 1.5px solid var(--variant-color);
    background: color-mix(in srgb, var(--variant-color) 5%, #ffffff);
}

.variant-color-choice.is-active::after {
    display: none;
}

.variant-color-swatch {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
}

.variant-color-choice-name {
    font-size: 10px;
    line-height: 1.15;
}

.variant-color-picked {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid var(--variant-color);
    border-radius: 50%;
    background: var(--variant-swatch, var(--variant-color));
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}

.variant-color-picked[hidden] {
    display: none !important;
}

.variant-color-panel .variant-selection-sizes {
    gap: 4px;
}

.variant-color-panel .variant-quantity-row {
    min-height: 30px;
    padding: 2px 7px;
    border-radius: 7px;
}

.variant-color-panel .variant-size-label {
    font-size: 10px;
}

.variant-color-panel .variant-quantity-control {
    gap: 4px;
}

.variant-color-panel .variant-quantity-step {
    width: 20px;
    height: 20px;
    font-size: 13px;
}

.variant-color-panel .variant-quantity-input {
    width: 18px;
    height: 22px;
    font-size: 10px;
}

@media (max-width: 480px) {
    .variant-color-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .variant-color-choice,
    .variant-color-choice.is-active {
        min-height: 29px;
        gap: 4px;
        padding: 3px 4px;
    }

    .variant-color-swatch {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    .variant-color-choice-name {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page *,
    .product-page *::before,
    .product-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
