:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-blue-light: #eff6ff;
    --dark-slate: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-radius: 18px;
    --btn-radius: 14px;
}

body {
    font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.btn {
    border-radius: var(--btn-radius);
    font-weight: 600;
    padding: 9px 20px;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-catalog-main {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-catalog-main:hover {
    background-color: var(--primary-blue-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.navbar-main {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    z-index: 1050 !important;
}

.dropdown-mega-menu {
    position: absolute !important;
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
    top: 100% !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-top: 8px !important;
    z-index: 1060 !important;
}

.mega-columns-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}
.mega-columns-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-columns-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col { min-width: 0; }
.mega-group-block { margin-bottom: 16px; }
.mega-group-block:last-child { margin-bottom: 0; }

.mega-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.star-rating-widget {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    user-select: none;
}
.star-rating-btn {
    border: none;
    background: transparent;
    padding: 0 1px;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}
.star-rating-btn.filled { color: #f59e0b; }
.star-rating-btn:hover { transform: scale(1.15); color: #f59e0b; }

.mega-categories-col {
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;
    flex: 0 0 255px !important;
    box-sizing: border-box !important;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 14px 10px;
}

.mega-tab-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    margin-bottom: 3px;
    white-space: nowrap;
}

.mega-tab-item:hover, .mega-tab-item.active {
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 700;
}

.mega-content-pane { display: none; }
.mega-content-pane.active {
    display: block;
    animation: megaFadeIn 0.15s ease-in-out;
}

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

.mega-group-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.35;
    width: 100%;
}

.mega-link > span:first-child { white-space: nowrap; }
.mega-link:hover { color: var(--primary-blue); background: #f8fafc; }

.mega-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary-blue);
    flex-shrink: 0;
    white-space: nowrap;
}

.card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--card-radius);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
    border-color: #cbd5e1;
}

.product-card-footer {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
    gap: 2px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.price-main { display: flex; align-items: baseline; line-height: 1; }

.price-current {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    font-feature-settings: "tnum" 1 !important;
}

.price-current .currency {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-left: 3px !important;
}

.price-extra {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    margin-top: 2px;
}

.price-old {
    position: relative;
    display: inline-block;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.price-old::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: #94a3b8;
    transform: translateY(-50%) rotate(-5deg);
    pointer-events: none;
}

.discount-badge-pill {
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.btn-select-product {
    background-color: var(--primary-blue) !important;
    border: 1px solid var(--primary-blue) !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0 16px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
    flex-shrink: 0 !important;
}

.btn-select-product:hover, .btn-select-product:focus {
    background-color: var(--primary-blue-hover) !important;
    border-color: var(--primary-blue-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.badge-tag-bestseller {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-tag-new {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.15s ease;
}

.photo-hover-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 3;
    cursor: pointer;
}

.photo-hover-col { flex: 1; height: 100%; }

.photo-dots-indicator {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 4;
    pointer-events: none;
}

.photo-dot {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.15s;
}

.photo-dot.active { background: var(--primary-blue); }

.card-video-inline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    background: #0f172a;
    border-radius: inherit;
    cursor: pointer;
}

.btn-card-video {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    width: 38px;
    height: 27px;
    border-radius: 8px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-card-video:hover {
    transform: scale(1.12);
    background: #dc2626;
}

.btn-card-video i { font-size: 0.8rem; margin-left: 2px; }

.btn-card-video.is-playing {
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.btn-card-video.is-playing i { margin-left: 0; font-size: 0.85rem; }

.form-control, .form-select {
    border-radius: 14px;
    padding: 9px 14px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
}

.dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background-color: var(--dark-slate);
    color: #94a3b8;
    font-size: 0.83rem;
    padding: 8px 0;
}

.main-header { background: white; }

.logo-text {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.logo-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
    font-size: 0.94rem;
    color: #334155 !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: var(--primary-blue-light);
}

.color-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.color-filter-badge:hover {
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.color-filter-badge.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.color-circle-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.stock-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

.stock-bar { width: 3.5px; border-radius: 2px; background: #e2e8f0; }
.stock-bar.bar-1 { height: 6px; }
.stock-bar.bar-2 { height: 10px; }
.stock-bar.bar-3 { height: 14px; }
.stock-indicator-one .stock-bar.bar-1 { background: #ef4444; }
.stock-indicator-few .stock-bar.bar-1, .stock-indicator-few .stock-bar.bar-2 { background: #f59e0b; }
.stock-indicator-many .stock-bar { background: #10b981; }

.qty-pill-counter {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    height: 48px;
    padding: 2px 6px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px !important;
    border: none;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
}

.qty-btn:hover { background: var(--primary-blue); color: #ffffff; }

.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.qty-input:focus { outline: none; }

.nav-pills .nav-link {
    border-radius: 12px;
    padding: 10px 24px;
    color: #475569 !important;
    background: #f1f5f9;
    font-weight: 700;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

footer {
    margin-top: auto;
    background-color: var(--dark-slate);
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 50px 0 30px;
}

footer h6 { color: #ffffff; font-weight: 700; font-size: 1.02rem; margin-bottom: 20px; }
footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #ffffff; }
.footer-text { color: #94a3b8; line-height: 1.6; }
.footer-highlight { color: #e2e8f0; font-weight: 600; }

.legal-shield-box {
    background: #1e293b;
    border-radius: 14px;
    padding: 18px 24px;
    margin-top: 35px;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #cbd5e1;
    border-left: 4px solid var(--primary-blue);
}

.cart-pill {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 14px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.cart-pill:hover {
    background-color: var(--primary-blue-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Live search dropdown */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    z-index: 1070;
    display: none;
    overflow: hidden;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
}

.live-search-item:hover { background: #f8fafc; }

/* Product detail gallery & enriched blocks */
.product-hero-img {
    height: 620px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: zoom-in;
    transition: opacity 0.25s, transform 0.3s ease;
}

#heroProductVideo { cursor: pointer !important; }

.photo-zoom-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100000;
    overflow: auto;
}

.zoom-img-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-img-wrapper.is-zoomed {
    min-height: auto;
    display: block;
    text-align: center;
    padding: 30px 20px 90px;
}

#modalZoomImg {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 8px;
}

#modalZoomImg.super-zoomed {
    max-width: 96vw !important;
    max-height: none !important;
    width: min(1400px, 96vw) !important;
    height: auto !important;
    cursor: zoom-out;
}

.zoom-hint-pill {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 6px 18px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 100003;
}

.zoom-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-product { margin: 2rem 0; }
.advantage-product .group-h1 { text-align: center; font-size: 1.55rem; font-weight: 700; margin-bottom: 2rem; color: #0f172a; }
.advantage-product .group-h1 strong { display: block; font-size: 0.95rem; color: #475569; font-weight: 400; margin-top: 6px; }
.advantage-product-item { margin-bottom: 24px; }
.advantage-product-item-text { display: flex; flex-direction: column; }
.advantage-product-item h3 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.advantage-product-item p { font-size: 0.92rem; color: #475569; line-height: 1.55; margin-bottom: 14px; }
.advantage-product-item .description { display: none !important; }
.advantage-product-item img { border-radius: 12px; width: 100% !important; height: auto !important; object-fit: cover; display: block; }
.advantage-product-item-text .img-order { order: -1 !important; margin-bottom: 14px; }

.cleaning-container { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 16px !important; padding: 24px !important; }
.cleaning .mb-2 { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; line-height: 1.6; color: #334155; margin-bottom: 12px !important; }
.cleaning-icons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed #cbd5e1; }
.instructions-size-chart .list-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; }
.instructions-size-chart .measurement.red { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: #ef4444; color: #ffffff; font-weight: 700; border-radius: 50%; }
.instructions-size-chart .measurement-text { display: flex; flex-direction: column; font-size: 0.93rem; color: #475569; }
.instructions-size-chart .measurement-text b { color: #0f172a; font-weight: 700; margin-bottom: 2px; }
.instructions-size-chart img { border-radius: 14px; background: #ffffff; padding: 12px; border: 1px solid #e2e8f0; display: block; margin: 0 auto; max-width: 100%; height: auto; }

.size-variant-btn {
    background-color: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    transition: all 0.15s ease;
}

.size-variant-btn:hover:not(.disabled) {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #2563eb;
}

.size-variant-input:checked + .size-variant-btn {
    background-color: #ffffff;
    color: #0f172a;
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.size-variant-input:disabled + .size-variant-btn {
    background-color: #ffffff;
    color: #94a3b8;
    border: 1px dashed #e2e8f0;
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-hero-img { height: 420px; }
    footer { padding: 35px 0 55px !important; }
}

@media (max-width: 576px) {
    .card-img-wrapper { height: 210px !important; }
    .price-current { font-size: 1.15rem !important; }
    .card-title { font-size: 0.85rem !important; }
}
