/* Kspace shop - design tokens */
:root {
    --bg: #e7e8f3;
    --bg-soft: #f3f3fa;
    --pink: #fcdee0;
    --pink-soft: #fde8ea;
    --pink-strong: #f5cbcf;
    --blue: #d8e1f5;
    --blue-soft: #e8edf8;
    --blue-deep: #9eb3e3;
    --text: #2a2a3a;
    --text-soft: #6f6f80;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow: 0 6px 20px rgba(80, 80, 120, 0.06);
    --transition: 0.25s ease;
}

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

html, body {
    font-family: 'Manrope', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; outline: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding: 16px 0 60px; }

/* Top promo bar */
.topbar {
    background: var(--pink-soft);
    color: var(--text);
    font-size: 12px;
    overflow: hidden;
    position: relative;
}
.topbar-track {
    display: flex;
    padding: 9px 0;
    white-space: nowrap;
    animation: topbarScroll 35s linear infinite;
    width: max-content;
}
.topbar-track > * {
    display: inline-block;
    margin-right: 60px;
    color: var(--text);
    transition: color var(--transition);
}
.topbar-track > a:hover { color: var(--blue-deep); }
.topbar:hover .topbar-track { animation-play-state: paused; }
@keyframes topbarScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Star ratings */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.rating .stars { display: inline-flex; color: #f5b800; gap: 1px; }
.rating .r-num { font-weight: 700; }
.rating .r-count { color: var(--text-soft); }
.rating.small { font-size: 11px; }
.rating.large { font-size: 14px; }
.rating.large .stars svg { width: 16px; height: 16px; }

/* Hover image swap */
.product-card .image .img-hover {
    position: absolute;
    inset: 0;
    width: 70%;
    height: 80%;
    margin: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .image .img-hover { opacity: 1; }
.product-card:hover .image > img:first-child { opacity: 0; }
.product-card .image > img { transition: opacity 0.3s ease; }

/* Quick view button — overlay on image */
.btn-quickview {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    white-space: nowrap;
}
.btn-quickview:hover { background: var(--text); color: var(--white); }
.product-card:hover .btn-quickview { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Stock badge — top-left of image */
.image-wrap .stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
}
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3d6;
    color: #a07700;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stock-badge.out { background: #ffd9dd; color: #b03a48; }
.stock-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Drawer free shipping progress */
.ship-progress {
    background: var(--blue-soft);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.ship-progress-text {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}
.ship-progress-bar {
    height: 6px;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
}
.ship-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-deep) 0%, var(--pink-strong) 100%);
    border-radius: 50px;
    transition: width 0.4s ease;
}

/* Cookie banner */
.cookie-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 40px rgba(20,20,40,0.18);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    z-index: 90;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { flex: 1; line-height: 1.5; color: var(--text-soft); }
.cookie-bar a { color: var(--blue-deep); text-decoration: underline; }
.cookie-bar button { background: var(--text); color: var(--white); padding: 9px 22px; border-radius: 50px; font-size: 12px; font-weight: 600; }

/* Trust badges */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px 0 0;
}
.trust-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}
.trust-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--pink-soft);
    color: var(--pink-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-item:nth-child(2n) .trust-icon { background: var(--blue-soft); color: var(--blue-deep); }
.trust-item h4 { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.trust-item p  { font-size: 11px; color: var(--text-soft); margin: 0; }

/* Payment icons in footer */
.pay-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.pay-strip .pi {
    background: var(--white);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pay-strip .pi.visa { color: #1a1f71; }
.pay-strip .pi.mc   { color: #eb001b; }
.pay-strip .pi.mir  { color: #0f754e; }
.pay-strip .pi.apay { color: #000; }
.pay-strip .pi.gpay { color: #4285f4; }

/* Filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    border: 1px solid #e2e2eb;
    padding: 5px 10px 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    color: var(--text);
}
.chip a {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
.chip a:hover { background: var(--pink-strong); color: var(--white); }
.chip-clear {
    background: transparent;
    border: none;
    color: var(--blue-deep);
    font-size: 11px;
    text-decoration: underline;
    padding: 5px 6px;
    cursor: pointer;
}

/* Quick view modal */
.qv-overlay {
    position: fixed; inset: 0;
    background: rgba(20,20,35,0.6);
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}
.qv-overlay.show { display: flex; }
.qv-modal {
    background: var(--white);
    border-radius: 22px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}
#qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { #qv-content { grid-template-columns: 1fr; } }
.qv-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.qv-image {
    background: var(--blue-soft);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qv-image img { width: 80%; height: 80%; object-fit: contain; }
.qv-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.qv-info .qv-brand { color: var(--text-soft); font-size: 12px; }
.qv-info h2 { font-size: 22px; }
.qv-info .qv-price { display: flex; gap: 10px; align-items: center; }
.qv-info .qv-price .new { font-size: 22px; font-weight: 800; }
.qv-info .qv-price .old { color: var(--text-soft); text-decoration: line-through; }
.qv-info .qv-desc { color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.qv-info .qv-actions { display: flex; gap: 8px; margin-top: 12px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Recently viewed strip */
.recent-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (max-width: 1024px) { .recent-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .recent-strip { grid-template-columns: repeat(3, 1fr); } }
.recent-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    transition: transform var(--transition);
    display: block;
}
.recent-card:hover { transform: translateY(-3px); }
.recent-card .img {
    aspect-ratio: 1;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.recent-card .img img { width: 70%; height: 70%; object-fit: contain; }
.recent-card .meta { padding: 8px 10px 10px; }
.recent-card .n  { font-size: 11px; line-height: 1.3; min-height: 28px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card .p  { font-size: 11px; font-weight: 700; margin-top: 4px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 14px; height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
    padding: 0 20px 18px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

/* Sticky add-to-cart on product page */
.sticky-cta {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 80;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta img { width: 44px; height: 44px; object-fit: contain; background: var(--blue-soft); border-radius: 8px; }
.sticky-cta .info { flex: 1; min-width: 0; }
.sticky-cta .info .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .info .p { font-size: 14px; font-weight: 800; }
.sticky-cta .btn { padding: 10px 24px; }

/* Newsletter popup */
.np-overlay {
    position: fixed; inset: 0;
    background: rgba(20,20,35,0.55);
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.np-overlay.show { display: flex; }
.np-modal {
    background: var(--white);
    border-radius: 22px;
    padding: 36px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.np-modal::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: var(--pink-soft);
    border-radius: 50%;
}
.np-modal::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 130px; height: 130px;
    background: var(--blue-soft);
    border-radius: 50%;
}
.np-modal > * { position: relative; z-index: 1; }
.np-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    color: var(--text-soft);
    z-index: 2;
}
.np-modal h3 { font-size: 22px; margin-bottom: 8px; }
.np-modal p  { font-size: 13px; color: var(--text-soft); margin-bottom: 18px; }
.np-form { display: flex; flex-direction: column; gap: 8px; }
.np-form input {
    padding: 12px 16px;
    border: 1px solid #e2e2eb;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
}
.np-form button { padding: 12px; }
.np-skip { background: none; color: var(--text-soft); font-size: 11px; margin-top: 8px; text-decoration: underline; }

/* Page label (e.g., главная страница) */
.page-label {
    font-weight: 700;
    font-size: 16px;
    margin: 16px 0 14px;
    padding-left: 12px;
}

/* Header */
.site-header {
    padding: 14px 0 0;
}
.navbar {
    background: var(--white);
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
}
.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    letter-spacing: -0.5px;
}
.logo span { color: var(--pink-strong); }

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav-links a {
    font-size: 13px;
    color: var(--text);
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-links a:hover { color: var(--blue-deep); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}
.search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 6px 12px 6px 18px;
    flex: 1;
    min-width: 180px;
    max-width: 520px;
    margin-right: 6px;
}
.search input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}
.search button {
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: 360px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(50, 60, 100, 0.18);
    padding: 10px;
    display: none;
    z-index: 30;
    max-height: 420px;
    overflow-y: auto;
}
.search-suggest.show { display: block; }
.search-suggest a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
}
.search-suggest a:hover { background: var(--bg-soft); }
.search-suggest img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; background: var(--bg-soft); border-radius: 8px; }
.search-suggest a > div { flex: 1; min-width: 0; }
.search-suggest a > div > div:first-child { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.lang-switch { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    min-width: 130px;
    z-index: 30;
    display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { background: var(--pink-soft); font-weight: 700; }

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); }
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--pink-strong);
    color: var(--text);
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 700;
}
.badge:empty, .badge[data-count="0"] { display: none; }

/* Hair-care concern banners (under hero, admin-uploadable image) */
.haircare-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}
.haircare-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(50, 60, 100, 0.06);
}
.haircare-card.hc-loss:not(.has-img)   { background-color: #ffe9d6; }
.haircare-card.hc-dand:not(.has-img)   { background-color: #e6edff; }
.haircare-card.hc-oily:not(.has-img)   { background-color: #ffe1e6; }
.haircare-card.hc-repair:not(.has-img) { background-color: #d8f3df; }

.haircare-card .hc-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 18px 20px 20px;
    color: var(--text);
}
.haircare-card.has-img .hc-body { color: var(--white); }
.haircare-card.has-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.haircare-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
}
.haircare-card p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}
.haircare-card::after {
    content: '→';
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform var(--transition);
}
.haircare-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(50, 60, 100, 0.16);
}
.haircare-card:hover::after { transform: translateX(3px); }

@media (max-width: 1024px) {
    .haircare-banners { grid-template-columns: 1fr 1fr; }
    .haircare-card { aspect-ratio: 3 / 2; min-height: 180px; }
}
@media (max-width: 600px) {
    .haircare-banners { grid-template-columns: 1fr; }
    .haircare-card { aspect-ratio: 2 / 1; min-height: 160px; }
}

/* Hero slider */
.hero {
    margin-top: 18px;
    background: var(--blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 380px;
}
.hero-slider { position: relative; height: 100%; }
.hero-slide {
    display: none;
    padding: 40px 80px;
    align-items: center;
    gap: 40px;
    height: 100%;
    box-sizing: border-box;
}
.hero-slide.active { display: flex; }
.hero-slide-image {
    flex: 0 0 280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(50, 60, 100, 0.12);
    background: rgba(255,255,255,0.5);
}
.hero-slide-content { flex: 1; text-align: center; }
.hero-slide-content h2 {
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 16px;
}
.hero-slide-content p {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition);
    text-transform: uppercase;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-primary { background: var(--blue-deep); color: var(--white); }
.btn-pink { background: var(--pink); color: var(--text); }
.btn-light { background: var(--white); color: var(--text); }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    z-index: 5;
}
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.hero-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all var(--transition);
}
.hero-dots span.active {
    width: 18px;
    border-radius: 4px;
    background: var(--text);
}

/* Category cards */
.category-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.category-card {
    border-radius: var(--radius);
    padding: 24px;
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-3px); }
.category-card .label {
    background: var(--white);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    position: relative;
}
.category-card .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.category-card.bg-pink { background: var(--pink); }
.category-card.bg-blue { background: var(--blue); }
.category-card.bg-pink-strong { background: var(--pink-strong); }

/* Section header */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 36px 0 18px;
    padding-left: 12px;
}
.section-title.center { text-align: center; padding: 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 36px 0 18px;
    padding-left: 12px;
    padding-right: 6px;
}
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head .view-all {
    font-size: 12px;
    color: var(--blue-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.section-head .view-all:hover { gap: 8px; }

/* Big promo banner between sections */
.promo-banner {
    margin-top: 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 40px 60px;
    color: var(--text);
}
.promo-banner.theme-pink { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-soft) 100%); }
.promo-banner.theme-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%); }
.promo-banner .pb-text { flex: 1; max-width: 520px; z-index: 2; }
.promo-banner .pb-text h2 { font-size: 38px; line-height: 1.05; margin-bottom: 10px; }
.promo-banner .pb-text p  { font-size: 14px; color: var(--text-soft); margin-bottom: 20px; }
.promo-banner .pb-img {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 220px;
    z-index: 1;
}
.promo-banner .pb-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(50,60,100,0.15);
}
@media (max-width: 768px) {
    .promo-banner { padding: 28px; min-height: 180px; }
    .promo-banner .pb-img { display: none; }
    .promo-banner .pb-text h2 { font-size: 26px; }
}

/* Brand strip on home */
.brand-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
@media (max-width: 1024px) { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .brand-strip { grid-template-columns: repeat(3, 1fr); } }
.brand-tile {
    background: var(--white);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(80,80,120,0.1); }
.brand-tile .bt-logo {
    width: 50px; height: 50px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand-tile .bt-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-tile .bt-logo .bt-fallback { font-weight: 800; font-size: 14px; color: var(--blue-deep); }
.brand-tile .bt-name { font-size: 12px; font-weight: 700; }
.brand-tile .bt-count { font-size: 10px; color: var(--text-soft); margin-top: 2px; }

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(80, 80, 120, 0.1);
}
.product-card .image-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--blue-soft);
    aspect-ratio: 1;
}
.product-card .image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .image img { max-width: 70%; max-height: 80%; object-fit: contain; }
.product-card .type {
    color: var(--text-soft);
    font-size: 11px;
    margin-bottom: 6px;
}
.product-card .name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 34px;
}
.product-card .price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.product-card .price .new {
    font-weight: 700;
    font-size: 14px;
}
.product-card .price .old {
    color: var(--text-soft);
    text-decoration: line-through;
    font-size: 12px;
}
.product-card .actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-more {
    background: var(--pink);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    transition: opacity var(--transition);
}
.btn-more:hover { opacity: 0.85; }
.btn-cart {
    width: 30px;
    height: 30px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background var(--transition);
}
.btn-cart:hover { background: var(--pink-strong); }
.btn-cart.in-cart { background: var(--blue-deep); color: var(--white); }
.btn-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all var(--transition);
}
.btn-fav:hover { transform: scale(1.08); }
.btn-fav.active { color: #e74c5b; }
.btn-fav.active svg { fill: #e74c5b; }

/* Catalog cards */
.catalog-cards {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 16px;
}
.catalog-card {
    border-radius: var(--radius);
    height: 250px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition);
}
.catalog-card:hover { transform: translateY(-3px); }
.catalog-card .label {
    background: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    display: inline-block;
}
.catalog-card .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.catalog-card.bg-pink { background: var(--pink); }
.catalog-card.bg-dark { background: #2b2733; }
.catalog-card.bg-blue { background: var(--blue); }

/* Reviews */
.reviews {
    position: relative;
    padding: 0 60px;
}
.reviews-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.reviews-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}
.reviews-track .review-card {
    flex: 0 0 calc((100% - 32px) / 3);
}
@media (max-width: 768px) {
    .reviews-track .review-card { flex: 0 0 100%; }
}
.review-card {
    background: var(--blue-soft);
    border-radius: var(--radius);
    padding: 18px;
}
.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 600; font-size: 13px; }
.review-text { font-size: 12px; color: var(--text); line-height: 1.5; }
.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.reviews-arrow.prev { left: 0; }
.reviews-arrow.next { right: 0; }
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}
.reviews-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
}
.reviews-dots span.active { background: var(--text); width: 18px; border-radius: 4px; }

/* Footer */
.site-footer {
    background: var(--pink-soft);
    padding: 44px 0 24px;
    margin-top: 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}
.footer-col h4 {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list li { font-size: 13px; }
.footer-list li a { color: var(--text); }
.footer-list li a:hover { color: var(--blue-deep); }
.footer-contacts li { color: var(--text-soft); line-height: 1.5; }
.footer-logo { font-size: 28px; font-weight: 800; display: inline-block; margin-bottom: 12px; }
.footer-about { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }
.socials {
    display: flex;
    gap: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.socials a:hover { color: var(--blue-deep); }
.subscribe {
    background: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 18px;
    margin-top: 14px;
}
.subscribe input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px 0;
    font-size: 12px;
    min-width: 0;
}
.subscribe button {
    width: 30px;
    height: 30px;
    background: var(--text);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(42, 42, 58, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-bottom-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.footer-copy { font-size: 11px; color: var(--text-soft); }

/* Delivery / info */
.delivery-intro h1 { font-size: 26px; margin-bottom: 8px; }
.delivery-intro p { color: var(--text-soft); max-width: 720px; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.info-card:hover { transform: translateY(-3px); }
.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.info-card h3 { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.info-card p { font-size: 12px; color: var(--text-soft); line-height: 1.6; }
.free-ship-banner {
    margin-top: 18px;
    background: var(--pink-soft);
    display: flex;
    gap: 18px;
    align-items: center;
}
.free-ship-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    color: var(--pink-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.free-ship-banner h3 { font-size: 16px; margin-bottom: 4px; }
.free-ship-banner p { font-size: 13px; color: var(--text-soft); }

@media (max-width: 1024px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

/* Promo hero */
.promo-hero {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 100%);
    border-radius: var(--radius-lg);
    padding: 50px 80px;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}
.promo-hero-img {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-hero-img img {
    max-height: 240px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(50, 60, 100, 0.15);
}
.promo-hero-text { flex: 1; text-align: center; }
.promo-hero-text h1 { font-size: 56px; font-weight: 700; line-height: 1.05; }
.promo-hero-text p { margin: 14px 0 22px; color: var(--text-soft); }

/* Generic page card */
.page-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 18px;
    box-shadow: var(--shadow);
}
.page-card h1 { margin-bottom: 16px; font-size: 26px; }
.page-card p { margin-bottom: 12px; line-height: 1.6; color: var(--text); }

.profile-bonus {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--blue-soft) 100%);
}
.profile-bonus-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-soft);
    margin-bottom: 6px;
    font-weight: 700;
}
.profile-bonus-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.profile-bonus-value {
    font-size: 13px;
    color: var(--blue-deep);
    margin-top: 4px;
    font-weight: 600;
}
.profile-bonus-hint {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* Forms */
.form-row { margin-bottom: 14px; }
.lang-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    vertical-align: middle;
}
.admin-lang-hint {
    background: var(--blue-soft);
    border-left: 3px solid var(--blue-deep);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 0 10px 10px 0;
    font-size: 12px;
    margin-bottom: 14px;
}
.admin-lang-hint strong { color: var(--blue-deep); letter-spacing: 1px; }
.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8e3;
    border-radius: 12px;
    font-size: 13px;
    background: var(--white);
    font-family: inherit;
    color: var(--text);
}
/* Custom select — replace native chrome look */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px !important;
    cursor: pointer;
}
select:focus {
    outline: none;
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(158,179,227,0.18);
}

/* Order status badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: nowrap;
}
.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.status-pill.status-new        { background: #e1eaff; color: #2c52b5; }
.status-pill.status-processing { background: #fff3d6; color: #a07700; }
.status-pill.status-shipped    { background: #ddf0ff; color: #1f7eaf; }
.status-pill.status-done       { background: #d8f3df; color: #1f7a3a; }
.status-pill.status-cancelled  { background: #ffd9dd; color: #b03a48; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue-deep); }
.btn-block { display: block; width: 100%; padding: 14px; }
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
}
.alert.success { background: #e0f3e0; color: #2e6b2e; }
.alert.error { background: var(--pink-strong); color: #6d2a31; }

/* Cart table */
.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: var(--shadow);
}
.cart-table th, .cart-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f5;
    font-size: 13px;
}
.cart-table th { background: var(--bg-soft); font-weight: 600; }
.cart-table img { width: 50px; height: 50px; object-fit: contain; }
.qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 4px 10px;
}
.qty button { width: 22px; height: 22px; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; }
.cart-summary {
    margin-top: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-summary .total { font-size: 20px; font-weight: 700; }

/* Filters / catalog */
.catalog-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    margin-top: 18px;
}
.filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    align-self: start;
}
.filters h4 {
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.filters .filter-group { margin-bottom: 16px; }
.filters .filter-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    cursor: pointer;
}
.filter-section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #ececf2; }
.filter-section:last-of-type { border-bottom: none; }
.filter-section h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.filter-radio, .filter-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px !important;
    cursor: pointer;
}
.filter-radio input, .filter-check input { accent-color: var(--blue-deep); }
.filter-radio em, .filter-check em { color: var(--text-soft); font-style: normal; font-size: 11px; }
.filter-price {
    display: flex;
    gap: 6px;
}
.filter-price input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d8d8e3;
    border-radius: 8px;
    font-size: 12px;
}
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.found-info { font-size: 13px; }
.sort-control { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.sort-control label {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 11px;
    font-weight: 600;
}
.sort-dropdown { position: relative; }
.sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 18px;
    border-radius: 50px;
    border: 1px solid transparent;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 200px;
    justify-content: space-between;
}
.sort-trigger svg { transition: transform var(--transition); flex-shrink: 0; }
.sort-trigger:hover {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(50, 60, 100, 0.08);
}
.sort-dropdown.is-open .sort-trigger {
    background: var(--white);
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(158, 179, 227, 0.25);
}
.sort-dropdown.is-open .sort-trigger svg { transform: rotate(180deg); }
.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(50, 60, 100, 0.18);
    padding: 6px;
    z-index: 40;
    display: none;
    animation: sortMenuIn 0.15s ease;
}
.sort-dropdown.is-open .sort-menu { display: block; }
@keyframes sortMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}
.sort-option:hover { background: var(--bg-soft); }
.sort-option.is-selected {
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-weight: 700;
}
.sort-option svg { color: var(--blue-deep); flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-soft);
    margin: 6px 0 14px;
    padding-left: 12px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* Product detail — pro layout */
.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 6px;
    box-shadow: var(--shadow);
}
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-image {
    position: relative;
    background: var(--blue-soft);
    border-radius: var(--radius);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pd-main-image img { max-width: 75%; max-height: 80%; object-fit: contain; transition: transform 0.4s ease; }
.pd-main-image:hover img { transform: scale(1.06); }
.pd-flag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--pink-strong);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pd-thumb {
    background: var(--blue-soft);
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.pd-thumb img { width: 70%; height: 70%; object-fit: contain; }
.pd-thumb.active { border-color: var(--text); }
.pd-thumb:hover { border-color: var(--blue-deep); }

.pd-meta { display: flex; flex-direction: column; gap: 16px; }
.pd-meta .brand { color: var(--text-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.pd-meta h1 { font-size: 26px; line-height: 1.25; }
.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f5;
}
.pd-rating-row .pd-write {
    margin-left: auto;
    font-size: 12px;
    color: var(--blue-deep);
    text-decoration: underline;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.pd-price-row .new { font-size: 32px; font-weight: 800; color: var(--text); }
.pd-price-row .old { font-size: 16px; color: var(--text-soft); text-decoration: line-through; }
.pd-price-row .save {
    background: #d8f3df;
    color: #1f7a3a;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
.pd-loyalty {
    background: var(--pink-soft);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pd-loyalty svg { color: #d97a85; }
.pd-loyalty strong { color: var(--text); font-weight: 800; }

.pd-stock-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.pd-stock-line.in   { color: #1f7a3a; }
.pd-stock-line.out  { color: #b03a48; }
.pd-stock-line .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.pd-size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-size-options .opt {
    padding: 9px 16px;
    border: 1.5px solid #e2e2eb;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.pd-size-options .opt:hover { border-color: var(--text); }
.pd-size-options .opt.active { border-color: var(--text); background: var(--text); color: var(--white); }

.pd-buy-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.pd-qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 4px;
}
.pd-qty-control button {
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}
.pd-qty-control button:hover { background: var(--white); }
.pd-qty-control span {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}
.pd-buy-row .btn-primary { flex: 1; padding: 14px 20px; font-size: 13px; }
.pd-buy-row .btn-fav-lg {
    width: 48px;
    border-radius: 50px;
    background: var(--bg-soft);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.pd-buy-row .btn-fav-lg.active { background: var(--pink); color: #c44; }
.pd-buy-row .btn-fav-lg:hover { background: var(--pink-soft); }

.pd-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}
.pd-trust .pt {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-soft);
}
.pd-trust .pt svg { color: var(--blue-deep); flex-shrink: 0; }

.pd-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 4px;
}
.pd-share .ic {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.pd-share .ic:hover { background: var(--text); color: var(--white); }

/* Tabs */
.pd-tabs {
    margin-top: 24px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.pd-tab-headers {
    display: flex;
    border-bottom: 1px solid #f0f0f5;
    overflow-x: auto;
}
.pd-tab-headers button {
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.pd-tab-headers button:hover { color: var(--text); }
.pd-tab-headers button.active {
    color: var(--text);
    border-bottom-color: var(--text);
}
.pd-tab-body { padding: 24px; line-height: 1.7; font-size: 13px; color: var(--text); }
.pd-tab-pane { display: none; }
.pd-tab-pane.active { display: block; }
.pd-tab-count { color: var(--text-soft); font-weight: 500; margin-left: 4px; }

/* Review write form (in tab) */
.pd-review-write {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.pd-review-write h3 {
    font-size: 16px;
    margin-bottom: 14px;
}
.pd-review-form { display: flex; flex-direction: column; gap: 12px; }
.pd-review-stars { display: inline-flex; gap: 4px; }
.pd-review-stars .prs {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #dde1ec;
    padding: 2px;
    transition: color var(--transition), transform var(--transition);
}
.pd-review-stars .prs:hover { transform: scale(1.1); }
.pd-review-stars .prs.active { color: #f5b800; }
.pd-review-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e1e1eb;
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}
.pd-review-input:focus { outline: none; border-color: var(--blue-deep); }
.pd-review-actions { display: flex; align-items: center; gap: 14px; }
.pd-review-msg { font-size: 13px; font-weight: 600; }

/* Review list (in tab) */
.pd-review-list { display: flex; flex-direction: column; gap: 14px; }
.pd-review-empty {
    text-align: center;
    padding: 30px 16px;
    background: var(--bg-soft);
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 13px;
}
.pd-review {
    background: var(--white);
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    padding: 16px;
}
.pd-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pd-review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--pink-soft);
    color: var(--pink-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.pd-review-name { font-weight: 700; font-size: 13px; }
.pd-review-stars-line { font-size: 11px; color: #f5b800; margin-top: 2px; }
.pd-review-date { margin-left: auto; font-size: 11px; color: var(--text-soft); }
.pd-review-text { font-size: 13px; line-height: 1.6; color: var(--text); }

/* Reviews block */
.pd-reviews-block {
    margin-top: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.pd-reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f5;
}
.pd-rating-big {
    text-align: center;
}
.pd-rating-big .num { font-size: 42px; font-weight: 800; line-height: 1; }
.pd-rating-big .sub { font-size: 11px; color: var(--text-soft); margin-top: 6px; }
.pd-rating-bars { display: flex; flex-direction: column; gap: 6px; }
.pd-rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--text-soft);
}
.pd-rating-bar .bar { height: 6px; background: #f0f0f5; border-radius: 50px; overflow: hidden; }
.pd-rating-bar .bar > div { height: 100%; background: #f5b800; border-radius: 50px; }

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
    .pd-reviews-summary { grid-template-columns: 1fr; }
}

/* Cart drawer (Temu-style) */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 20, 35, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f5;
}
.drawer-head h3 { font-size: 17px; }
.drawer-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}
.drawer-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
    font-size: 14px;
}
.drawer-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5fa;
    align-items: center;
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-soft);
}
.drawer-item .di-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.drawer-item .di-price { font-size: 12px; color: var(--text-soft); }
.drawer-item .di-variant {
    font-size: 11px;
    color: var(--text-soft);
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 600;
}
.drawer-item .di-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.drawer-qty {
    display: inline-flex;
    align-items: center;
    background: var(--bg-soft);
    border-radius: 50px;
    padding: 2px;
}
.drawer-qty button {
    width: 26px; height: 26px;
    border-radius: 50%;
    color: var(--text);
    font-weight: 700;
}
.drawer-qty button:hover { background: var(--white); }
.drawer-qty span {
    min-width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.di-remove {
    width: 24px; height: 24px;
    color: var(--text-soft);
    display: flex; align-items: center; justify-content: center;
    margin-left: 6px;
}
.di-remove:hover { color: #c44; }
.drawer-foot {
    padding: 16px 22px 22px;
    border-top: 1px solid #f0f0f5;
    background: var(--white);
}
.drawer-promo {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.drawer-promo input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 50px;
    border: 1px solid #e1e1eb;
    background: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-promo input:focus { outline: none; border-color: var(--blue-deep); }
.drawer-promo button {
    padding: 11px 18px;
    border-radius: 50px;
    background: var(--text);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-promo-status {
    font-size: 12px;
    margin-bottom: 10px;
    min-height: 16px;
    text-align: center;
    font-weight: 600;
}
.drawer-bonus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue-soft);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 12px;
}
.drawer-bonus label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.drawer-bonus input[type="checkbox"] { accent-color: var(--blue-deep); width: 16px; height: 16px; }
.drawer-bonus-balance { color: var(--text-soft); font-size: 11px; }
.drawer-totals { margin-bottom: 14px; }
.drawer-totals > div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-soft);
}
.drawer-totals > div strong { color: var(--text); font-weight: 600; }
.drawer-totals .drawer-total-row {
    border-top: 1px dashed #e5e5ed;
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
    color: var(--text);
}
.drawer-totals .drawer-total-row strong { font-weight: 800; font-size: 18px; }
.drawer-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.drawer-fields input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e2eb;
    border-radius: 12px;
    font-size: 13px;
}
.drawer-fields input:focus { border-color: var(--blue-deep); }
.drawer-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.drawer-success {
    position: absolute;
    inset: 0;
    background: var(--white);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    z-index: 2;
}
.drawer-success.show { display: flex; }
.drawer-success-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
#drawer-success-title { font-size: 18px; line-height: 1.4; max-width: 280px; }

/* Admin collapse */
.admin-collapse {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 18px;
    overflow: hidden;
}
.admin-collapse summary {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    list-style: none;
    user-select: none;
    background: var(--white);
    transition: background var(--transition);
}
.admin-collapse summary::-webkit-details-marker { display: none; }
.admin-collapse summary:hover { background: var(--bg-soft); }
.admin-collapse .ac-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center;
}
.admin-collapse .ac-arrow {
    margin-left: auto;
    color: var(--text-soft);
    transition: transform 0.25s ease;
}
.admin-collapse[open] .ac-arrow { transform: rotate(180deg); }
.admin-collapse[open] .ac-icon { background: var(--pink-soft); color: var(--pink-strong); }
.admin-collapse-body {
    padding: 18px;
    border-top: 1px solid #f0f0f5;
}

/* Admin product grid */
.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 1024px) { .admin-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .admin-products-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-prod-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.admin-prod-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(80,80,120,0.1); }
.apc-top {
    position: relative;
    aspect-ratio: 1.1;
    background: var(--blue-soft);
    overflow: hidden;
}
.apc-top img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.apc-flags {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.apc-flag {
    background: var(--white);
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.apc-flag.flag-hit  { background: var(--pink); }
.apc-flag.flag-new  { background: var(--blue-soft); color: var(--blue-deep); }
.apc-flag.flag-sale { background: #ffd9dd; color: #b03a48; }
.apc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.apc-id { font-size: 10px; color: var(--text-soft); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.apc-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}
.apc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: auto;
}
.apc-price { font-weight: 800; font-size: 14px; }
.apc-stock { font-size: 11px; color: var(--text-soft); background: var(--bg-soft); padding: 2px 8px; border-radius: 50px; }
.apc-actions { display: flex; gap: 6px; }
.btn-edit {
    flex: 1;
    background: var(--blue-soft);
    color: var(--blue-deep);
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--transition);
}
.btn-edit:hover { background: var(--blue-deep); color: var(--white); }
.btn-del {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-soft);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.btn-del:hover { background: #ffd9dd; color: #b03a48; }

/* Empty state */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-cards { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; }
    .hero { height: 460px; }
    .hero-slide { padding: 24px 30px; flex-direction: column; gap: 16px; }
    .hero-slide-image { flex: 0 0 160px; width: 100%; }
    .hero-slide-content h2 { font-size: 28px; }
    .category-cards { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-cards { grid-template-columns: 1fr; }
    .reviews-track { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .product-detail, .catalog-layout { grid-template-columns: 1fr; }
}
