@import url('fonts.css');

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-soft: #fff7ed;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: #e6e8ef;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 4px 16px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --shadow-md: 0 12px 32px rgba(15,23,42,.10);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
    --header-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.icon { width: 20px; height: 20px; stroke-width: 1.8; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(79,70,229,.36); transform: translateY(-1px); }

.btn-accent { background: var(--gradient-accent); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.28); }
.btn-accent:hover { box-shadow: 0 12px 26px rgba(249,115,22,.36); transform: translateY(-1px); }

.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-sm { padding: 8px 15px; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 12px; }

/* ============ Top bar ============ */
.topbar {
    background: var(--gradient-dark);
    color: #cbd5e1;
    font-size: .8rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    gap: 16px;
}
.topbar a { color: #cbd5e1; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .icon { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 768px) { .topbar-left .topbar-item:not(:first-child), .topbar-right { display: none; } }

/* ============ Header ============ */
.site-header {
    background: var(--header-bg);
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.header-main {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 76px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}
.logo span { color: var(--accent); }
.logo .logo-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--gradient-primary);
    display: grid; place-items: center;
    color: #fff;
}
.logo .logo-mark .icon { width: 22px; height: 22px; }

/* Search */
.header-search {
    flex: 1;
    max-width: 540px;
    position: relative;
}
.header-search input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    padding: 0 48px 0 16px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--text);
    transition: border-color .2s, background .2s;
}
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.header-search .search-icon {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
}
/* Search dropdown */
.search-spinner {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0; left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 320;
    max-height: 70vh;
    overflow-y: auto;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: background .15s;
}
.search-result:hover { background: var(--surface-2); }
.search-result-img {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
    flex: none;
    display: grid; place-items: center;
    color: var(--text-soft);
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: .76rem; color: var(--text-soft); }
.search-result-price { font-size: .85rem; font-weight: 700; color: var(--primary); flex: none; }
.search-empty { padding: 22px; text-align: center; color: var(--text-muted); font-size: .88rem; }
.search-all {
    display: block;
    text-align: center;
    padding: 11px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
}
.search-all:hover { background: var(--surface-2); border-radius: 0 0 12px 12px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-right: auto; flex: none; }

.icon-btn {
    position: relative;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1.5px solid transparent;
    color: var(--text);
    display: grid; place-items: center;
    cursor: pointer;
    transition: all .2s;
}
.icon-btn:hover { background: #fff; border-color: var(--border); color: var(--primary); box-shadow: var(--shadow); }
.cart-badge {
    position: absolute;
    top: -6px; left: -6px;
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: grid; place-items: center;
    border: 2px solid #fff;
}
.hamburger { display: none; }

/* ============ Nav + Mega menu ============ */
.site-nav { border-top: 1px solid var(--border); background: var(--surface); }
.nav-inner { display: flex; align-items: center; gap: 6px; height: 56px; }

.nav-cats-btn {
    font-family: 'Vazirmatn';
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 11px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(79,70,229,.25);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a, .nav-links > li > .nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background .2s, color .2s;
    cursor: pointer;
    background: none; border: none; font-family: inherit;
}
.nav-links > li > a:hover, .nav-links > li > .nav-trigger:hover { background: var(--surface-2); color: var(--primary); }
.nav-links .icon { width: 18px; height: 18px; color: var(--primary); }
.nav-spacer { margin-right: auto; }
.nav-hot { color: var(--accent) !important; }
.nav-hot .icon { color: var(--accent); }

/* Mega menu panel */
.has-mega { position: relative; }
.mega-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(880px, 92vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 300;
}
.has-mega:hover .mega-panel,
.has-mega.open .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mega-cat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    transition: background .2s;
}
.mega-cat:hover { background: var(--surface-2); }
.mega-cat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
    flex: none;
    overflow: hidden;
}
.mega-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.mega-cat-title { font-weight: 700; font-size: .9rem; margin-bottom: 3px; }
.mega-cat-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mega-cat-sub a { font-size: .78rem; color: var(--text-muted); }
.mega-cat-sub a:hover { color: var(--primary); }

.mega-promo {
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.mega-promo::after {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    bottom: -50px; left: -40px;
}
.mega-promo h4 { font-size: 1.15rem; margin-bottom: 8px; position: relative; }
.mega-promo p { font-size: .82rem; opacity: .85; position: relative; }

/* ============ Hero slider ============ */
.hero {
    padding: 26px 0 8px;
}
.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.slides { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.slide {
    min-width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}
.slide-1 { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%); }
.slide-2 { background: linear-gradient(120deg, #0ea5e9 0%, #2563eb 60%, #4f46e5 100%); }
.slide-3 { background: linear-gradient(120deg, #f97316 0%, #ef4444 60%, #ec4899 100%); }
.slide-custom { position: relative; color: #fff; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,.72), rgba(15,23,42,.45)); }
.slide-custom .slide-content { position: relative; z-index: 1; }

.contact-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .contact-form-card .form-row { grid-template-columns: 1fr; } }
.contact-form-card .form-group { margin-bottom: 12px; }
.contact-form-card .form-label { display: block; font-size: .85rem; margin-bottom: 6px; font-weight: 600; }
.newsletter-feedback { margin-top: 12px; font-size: .9rem; }
.slide::before, .slide::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.slide::before { width: 340px; height: 340px; top: -120px; left: -80px; }
.slide::after { width: 220px; height: 220px; bottom: -90px; left: 220px; background: rgba(255,255,255,.07); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 560px; }
.slide-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.18);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: .8rem; font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.slide-content h2 { font-size: 2.4rem; line-height: 1.35; margin-bottom: 14px; font-weight: 800; }
.slide-content p { font-size: 1.05rem; opacity: .92; margin-bottom: 26px; max-width: 440px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.slider-dots {
    position: absolute;
    bottom: 18px; right: 56px;
    display: flex; gap: 8px;
    z-index: 5;
}
.slider-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: all .3s;
}
.slider-dots button.active { background: #fff; width: 30px; border-radius: 6px; }
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: none;
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.4); }
.slider-arrow.prev { right: 16px; }
.slider-arrow.next { left: 16px; }

/* ============ Feature badges ============ */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
    flex: none;
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature-title { font-weight: 700; font-size: .95rem; }
.feature-sub { font-size: .8rem; color: var(--text-muted); }

/* ============ Category showcase ============ */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.cat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.cat-chip-icon {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: var(--gradient-primary);
    color: #fff;
    display: grid; place-items: center;
    overflow: hidden;
}
.cat-chip:nth-child(2n) .cat-chip-icon { background: var(--gradient-accent); }
.cat-chip:nth-child(3n) .cat-chip-icon { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.cat-chip-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip-icon .icon { width: 30px; height: 30px; }
.cat-chip-name { font-weight: 700; font-size: .88rem; }

/* ============ Section ============ */
.section { margin: 44px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.section-title .bar {
    width: 6px; height: 26px;
    background: var(--gradient-accent);
    border-radius: 4px;
}
.section-link {
    color: var(--primary);
    font-size: .88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
}
.section-link:hover { gap: 9px; }

/* ============ Product grid + card ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8dbe6; }

.product-card-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f8fafc, #eef1f7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-image .placeholder { font-size: 3rem; opacity: .25; }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
    font-size: .72rem; font-weight: 700;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    display: inline-flex; align-items: center; gap: 4px;
}
.badge-discount { background: var(--danger); }
.badge-new { background: var(--success); }
.badge-type { background: rgba(15,23,42,.7); }

.card-fav {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    color: var(--text-muted);
    display: grid; place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition: all .2s;
    z-index: 2;
}
.product-card:hover .card-fav { opacity: 1; transform: translateY(0); }
.card-fav:hover { color: var(--danger); }

.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card-cat { font-size: .75rem; color: var(--text-soft); font-weight: 600; }
.product-card-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    color: var(--text);
}
.product-card-title:hover { color: var(--primary); }
.product-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-card-price { display: flex; flex-direction: column; gap: 2px; }
.price-current { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.price-current span { font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.price-old { font-size: .78rem; color: var(--text-soft); text-decoration: line-through; }
.card-add {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    display: grid; place-items: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 6px 14px rgba(79,70,229,.25);
}
.card-add:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79,70,229,.32); }

/* ============ Promo banners ============ */
.banner-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 44px 0; }
.promo-banner {
    border-radius: var(--radius-lg);
    padding: 34px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-a { background: linear-gradient(120deg, #4f46e5, #7c3aed); }
.promo-b { background: linear-gradient(120deg, #f97316, #ec4899); }
.promo-wide { background: var(--gradient-dark); }
.promo-banner::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    top: -60px; left: -40px;
}
.promo-banner h3 { font-size: 1.5rem; margin-bottom: 8px; position: relative; z-index: 2; }
.promo-banner p { opacity: .9; margin-bottom: 18px; position: relative; z-index: 2; }
.promo-banner .btn { position: relative; z-index: 2; align-self: flex-start; }
.banner-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner-cta .cta-text h3 { font-size: 1.7rem; margin-bottom: 6px; }

/* ============ Amazing offer ============ */
.amazing-offer { padding: 28px 0 8px; }
.amazing-offer-box {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 55%, #7f1d1d 100%);
    border-radius: 24px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 50px rgba(185, 28, 28, .28);
    position: relative;
    overflow: hidden;
}
.amazing-offer-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,.12), transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(255,255,255,.08), transparent 40%);
    pointer-events: none;
}
.amazing-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.amazing-offer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.amazing-offer-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.amazing-offer-icon .icon { width: 26px; height: 26px; color: #fde047; }
.amazing-offer-title { font-size: 1.35rem; font-weight: 800; margin: 0; line-height: 1.2; }
.amazing-offer-sub { margin: 4px 0 0; font-size: .85rem; opacity: .9; }
.amazing-offer-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    background: rgba(255,255,255,.14);
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.amazing-offer-more:hover { background: rgba(255,255,255,.24); color: #fff; }
.amazing-offer-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}
.amazing-offer-item .product-card {
    background: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    height: 100%;
}
.amazing-offer-item .product-card-image { border-radius: 16px 16px 0 0; }
.amazing-offer-item .card-badges .badge-discount { background: #ef4444; }

/* ============ Newsletter ============ */
.newsletter {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: #fff;
    margin: 56px 0;
    position: relative;
    overflow: hidden;
}
.newsletter::before, .newsletter::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(99,102,241,.25);
}
.newsletter::before { width: 240px; height: 240px; top: -100px; right: -60px; }
.newsletter::after { width: 180px; height: 180px; bottom: -80px; left: -40px; background: rgba(249,115,22,.2); }
.newsletter h3 { font-size: 1.6rem; margin-bottom: 8px; position: relative; z-index: 2; }
.newsletter p { color: #cbd5e1; margin-bottom: 24px; position: relative; z-index: 2; }
.newsletter-form {
    display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
    position: relative; z-index: 2;
}
.newsletter-form input {
    flex: 1; height: 52px;
    border: none; border-radius: 14px;
    padding: 0 18px;
    font-family: inherit; font-size: .92rem;
}
.newsletter-form input:focus { outline: 2px solid var(--primary-light); }

/* ============ Category pills ============ */
.category-pills { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.category-pill {
    padding: 9px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    font-size: .86rem;
    font-weight: 600;
    transition: all .2s;
}
.category-pill:hover, .category-pill.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(79,70,229,.25);
}

/* ============ Forms ============ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: .9rem;
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
textarea.form-control { min-height: 110px; resize: vertical; }

/* ============ Alerts ============ */
.alert { padding: 13px 17px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: 9px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ============ Cards / sections shared ============ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ============ Cart & checkout ============ */
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 15px; text-align: right; border-bottom: 1px solid var(--border); }
.cart-table th { background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-summary { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 90px; border: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .9rem; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 13px; font-weight: 800; font-size: 1.15rem; }

/* ============ Product detail ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 32px 0; }
.product-gallery-wrap { min-width: 0; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery-main {
    background: var(--surface);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.product-gallery-placeholder { display: flex; align-items: center; justify-content: center; opacity: .25; }
.product-gallery-placeholder .icon { width: 72px; height: 72px; }
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.product-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.06));
    transition: border-color .15s, transform .15s;
}
.product-gallery-thumb:hover { transform: translateY(-2px); }
.product-gallery-thumb.is-active { border-color: var(--primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.45; margin-bottom: 12px; }
.product-info h1 { font-size: 1.7rem; margin-bottom: 12px; font-weight: 800; }
.product-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.product-price-box { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.type-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #e0e7ff; color: var(--primary); border-radius: 8px; font-size: .82rem; font-weight: 600; margin-bottom: 12px; }

/* ============ Pagination ============ */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination a, .pagination span { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .85rem; font-weight: 600; background: var(--surface); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ============ Page header / breadcrumb ============ */
.page-hero {
    background: var(--gradient-dark);
    color: #fff;
    padding: 44px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
}
.page-hero::before, .page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
.page-hero::before { width: 280px; height: 280px; background: rgba(99,102,241,.22); top: -120px; left: -40px; }
.page-hero::after { width: 200px; height: 200px; background: rgba(249,115,22,.16); bottom: -110px; right: 80px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: #cbd5e1; max-width: 600px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-soft); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-soft); }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: #cbd5e1; }

/* ============ Blog ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, #eef2ff, #f5f3ff);
    display: grid; place-items: center;
    overflow: hidden;
    color: var(--text-soft);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-date { font-size: .78rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; }
.blog-card-date .icon { width: 15px; height: 15px; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.6; color: var(--text); }
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt { font-size: .86rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { margin-top: auto; color: var(--primary); font-weight: 700; font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.blog-card:hover .blog-card-more { gap: 10px; }

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.blog-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: .84rem;
    font-weight: 600;
    transition: all .15s;
}

.blog-cat-chip span {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-cat-chip:hover,
.blog-cat-chip.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,70,229,.06);
}

.blog-cat-chip.is-active span { background: var(--primary); color: #fff; }

.blog-cat-chip-child {
    font-size: .78rem;
    padding-right: 22px;
    opacity: .92;
}

/* ============ Category pages ============ */
.category-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
}

.category-subchip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 600;
    transition: all .15s;
}

.category-subchip:hover,
.category-subchip.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,70,229,.06);
}

.category-description {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.category-description-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text);
}

.category-description-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-xs);
}

@media (max-width: 768px) {
    .category-description-body { padding: 20px 18px; }
}

.blog-card-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: .74rem;
    font-weight: 700;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}

.topbar-item--with-badge,
.footer-link-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-item--with-badge .user-badge,
.footer-link-badge .user-badge {
    position: static;
}

.article-meta .blog-card-category { text-decoration: none; }

/* Article */
.article { max-width: 820px; margin: 0 auto; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 28px; box-shadow: var(--shadow); }
.article-meta { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; flex-wrap: wrap; }
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; color: var(--primary); }

/* Prose content */
.prose { line-height: 2; color: #334155; font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 28px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 22px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 22px 16px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose a { color: var(--primary); font-weight: 600; }
.prose blockquote { border-right: 4px solid var(--primary); background: var(--surface-2); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; color: var(--text-muted); }

/* Empty state */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state .empty-icon { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 24px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-soft); }
.empty-state .empty-icon .icon { width: 40px; height: 40px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ============ Contact ============ */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.contact-card-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
    margin-bottom: 12px;
}
.contact-card-label { font-size: .78rem; color: var(--text-soft); margin-bottom: 4px; }
.contact-card-value { font-weight: 700; font-size: .95rem; word-break: break-word; }
.contact-card-value a:hover { color: var(--primary); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--surface-2); }
.contact-map iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.contact-social { display: flex; gap: 10px; margin-top: 8px; }
.contact-social a {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--surface-2);
    display: grid; place-items: center;
    color: var(--text-muted);
    transition: all .2s;
}
.contact-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.5rem; }
}

/* ============ Footer ============ */
.site-footer { background: var(--gradient-dark); color: #94a3b8; padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: .88rem; line-height: 1.9; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 1rem; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .88rem; transition: color .2s, padding .2s; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: #fff; padding-right: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; font-size: .88rem; }
.footer-contact .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center;
    color: #cbd5e1;
    transition: all .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; font-size: .85rem; }

/* ============ Mobile drawer ============ */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 400;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px; max-width: 84vw;
    background: #fff;
    z-index: 401;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 12px; overflow-y: auto; }
.drawer-link { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.drawer-link:hover { background: var(--surface-2); }
.drawer-link .icon { color: var(--primary); }
.drawer-section-title { font-size: .78rem; color: var(--text-soft); font-weight: 700; padding: 16px 14px 8px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cat-strip { grid-template-columns: repeat(4, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .site-nav { display: none; }
    .hamburger { display: grid; }
    .header-main { height: 64px; gap: 14px; }
    .slide { padding: 32px 24px; min-height: 320px; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: .92rem; }
    .slider-dots { right: 24px; }
    .cat-strip { grid-template-columns: repeat(3, 1fr); }
    .banner-row { grid-template-columns: 1fr; }
    .checkout-grid, .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .newsletter-form { flex-direction: column; }
    .section-title { font-size: 1.2rem; }
    .amazing-offer-head { flex-direction: column; align-items: flex-start; }
    .amazing-offer-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .cat-strip { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 12px; }
}

.hidden { display: none !important; }
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: grid; } }

/* Cart toast */
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gradient-dark);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast-error { background: linear-gradient(135deg, #dc2626, #991b1b); }
.card-add.cart-added { background: var(--gradient-accent); transform: scale(1.08); }

/* Floating widgets */
.float-cart {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 450;
}
.float-cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(79,70,229,.35);
    transition: transform .2s, box-shadow .2s;
}
.float-cart-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,70,229,.42); }
.float-cart-toggle .icon { width: 22px; height: 22px; }
.float-cart-count {
    background: var(--accent);
    color: #fff;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: .75rem;
    display: grid;
    place-items: center;
}
.float-cart-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: min(320px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: floatPanelIn .25s ease;
}
@keyframes floatPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.float-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.float-cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
}
.float-cart-close:hover { background: #fff; color: var(--text); }
.float-cart-body { max-height: 280px; overflow-y: auto; padding: 8px; }
.float-cart-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: .88rem; }
.float-cart-list { list-style: none; }
.float-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    transition: background .15s;
}
.float-cart-item:hover { background: var(--surface-2); }
.float-cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--text-soft);
}
.float-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.float-cart-item-info { flex: 1; min-width: 0; }
.float-cart-item-name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.float-cart-item-name:hover { color: var(--primary); }
.float-cart-item-meta { font-size: .74rem; color: var(--text-soft); }
.float-cart-item-total { font-size: .82rem; font-weight: 700; flex: none; }
.float-cart-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
}
.float-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: .9rem;
}
.float-cart-actions { display: flex; gap: 8px; }
.float-cart-actions .btn { flex: 1; }

.float-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 450;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s;
}
.float-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,.45); color: #fff; }
.float-whatsapp .icon { width: 24px; height: 24px; }

@media (max-width: 480px) {
    .float-cart-label, .float-whatsapp-text { display: none; }
    .float-cart-toggle, .float-whatsapp { padding: 14px; border-radius: 50%; }
    .float-cart { left: 14px; bottom: 14px; }
    .float-whatsapp { right: 14px; bottom: 14px; }
}
