/* ============================================================
   NextUg — Amazon-Style Theme
   Colors: Purple, Yellow, White
   ============================================================ */

:root {
    --nav: #232f3e;
    --nav2: #37475a;
    --accent: #f6c453;
    --accent2: #7c3aed;
    --link: #2563eb;
    --price: #b42318;
    --bg: #f5f5f5;
    --panel: #ffffff;
    --soft: #f3f4f6;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Keep dropdown option lists visible with a readable background */
select option,
select optgroup {
    background: var(--panel);
    color: var(--text);
}

/* ========== HEADER ========== */
.topnav {
    background: var(--nav);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.brand-mark {
    background: var(--accent2);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-weight: 900;
}
.location-pill {
    color: #fff;
    font-size: .8rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.2);
    padding: .35rem .6rem;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
}
.location-pill strong { font-size: .9rem; }
.search {
    flex: 1;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.search select {
    border: none;
    padding: .6rem .5rem;
    background: #f3f4f6;
    color: var(--text);
    font-size: .85rem;
}
.search input {
    flex: 1;
    border: none;
    padding: .6rem .8rem;
    font-size: .95rem;
    outline: none;
}
.search button {
    background: var(--accent);
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    font-weight: 700;
    color: #111;
}
.topnav-links {
    display: flex;
    gap: .6rem;
    align-items: center;
}
.topnav-links a {
    color: #fff;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.topnav-links a.greeting {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    font-size: .8rem;
}
.topnav-links .nav-mini {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .3rem .6rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: .8rem;
}
.topnav-links a:hover, .topnav-links button:hover {
    outline: 1px solid rgba(255,255,255,.4);
}
.cart {
    position: relative;
    font-weight: 800;
    font-size: 1rem;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #111;
    padding: .1rem .4rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 900;
}

.subnav {
    background: var(--nav2);
    color: #fff;
    font-size: .82rem;
    display: flex;
    gap: .8rem;
    padding: .45rem 1rem;
    overflow-x: auto;
}
.subnav a {
    color: #fff;
    white-space: nowrap;
    padding: .2rem .3rem;
    border-radius: 4px;
}
.subnav a:hover { background: rgba(255,255,255,.15); }
.menu-link { font-weight: 700; }

/* ========== SIGNIN DROPDOWN ========== */
.signin-wrap { position: relative; }
.signin-panel {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: 300px;
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    padding: 1rem;
    z-index: 200;
}
.signin-panel.open { display: block; }
.signin-panel form { display: flex; flex-direction: column; gap: .5rem; }
.signin-panel label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}
.signin-panel input {
    width: 100%;
    padding: .5rem .6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.signin-panel .btn-block {
    width: 100%;
    padding: .55rem;
    background: var(--accent2);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.auth-footer {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    font-size: .75rem;
}
.auth-footer a { color: var(--link); }
.auth-vendor {
    display: block;
    margin-top: .5rem;
    font-size: .75rem;
    color: var(--muted);
    text-align: center;
}

/* ========== MAIN LAYOUT ========== */
.store {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    background: var(--nav);
    color: #fff;
    text-align: center;
    padding: .5rem 1rem;
    font-size: .85rem;
    overflow: hidden;
    position: relative;
}
.promo-slider { display: flex; transition: transform .4s ease; }
.promo-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}
.promo-slide a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 700;
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-carousel-inner { display: flex; transition: transform .5s ease; }
.hero-slide {
    min-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #fff5f5, #ffe4e6); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.hero-content { max-width: 900px; text-align: center; }
.hero-content h2 { font-size: 2rem; margin: .3rem 0 .5rem; color: #111; }
.hero-content p { color: #374151; margin-bottom: .8rem; font-size: 1rem; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    color: #374151;
}
.carousel-btn:hover { background: #f3f4f6; }
.carousel-btn.prev { left: .8rem; }
.carousel-btn.next { right: .8rem; }
.carousel-dots {
    position: absolute;
    bottom: .8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4rem;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
}
.carousel-dot.active { background: var(--accent2); width: 18px; border-radius: 4px; }

/* ========== CATEGORIES STRIP ========== */
.categories-strip {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    padding: .7rem 0;
}
.categories-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.categories-inner::-webkit-scrollbar { display: none; }
.category-pill {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    transition: all .15s;
}
.category-pill:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(124,58,237,.15);
}
.cat-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--accent2);
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 800;
}

/* ========== PRODUCT CAROUSEL ========== */
.product-carousel-section {
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
}
.product-carousel-section:last-child { border-bottom: none; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: .8rem;
}
.section-title { font-size: 1.2rem; font-weight: 700; }
.eyebrow {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .15rem;
}
.text-link {
    color: var(--link);
    font-size: .85rem;
    font-weight: 600;
}
.carousel-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: .4rem;
    scrollbar-width: thin;
}
.carousel-scroll::-webkit-scrollbar { height: 5px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all .2s;
}
.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.product-media {
    position: relative;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}
.product-image {
    display: grid;
    place-items: center;
    height: 180px;
    padding: .7rem;
}
.product-image img { max-height: 160px; object-fit: contain; }
.product-card-main { max-height: 160px; object-fit: contain; }
.product-image-switcher {
    position: absolute;
    bottom: .5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .3rem;
}
.card-image-thumb {
    width: 28px; height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: .7;
}
.card-image-thumb.active {
    border-color: var(--accent2);
    opacity: 1;
}
.product-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text);
}
.tile-img {
    height: 180px;
    display: grid;
    place-items: center;
    background: #fafafa;
    padding: .7rem;
    border-bottom: 1px solid #f3f4f6;
}
.tile-img img { max-height: 160px; object-fit: contain; }
.no-img { color: #9ca3af; font-size: .8rem; }
.tile-info { padding: .7rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.tile-info h3 {
    font-size: .88rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-weight: 600;
}
.price-row { display: flex; align-items: baseline; gap: .35rem; margin-top: .15rem; }
.price { font-size: 1.05rem; font-weight: 800; color: #111; }
.old-price { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.rating-row { display: flex; align-items: center; gap: .3rem; margin-top: .15rem; }
.stars { color: #f59e0b; font-size: .78rem; }
.deal-pill {
    align-self: flex-start;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: .12rem .45rem;
    font-size: .72rem;
    font-weight: 700;
    margin-top: .25rem;
}

/* ========== VALUE PROPS ========== */
.value-props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.2rem 0;
}
.value-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
}
.value-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.value-item strong { display: block; font-size: .9rem; margin-bottom: .2rem; color: var(--text); }
.value-item p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ========== RECENTLY VIEWED ========== */
.recent-list { display: flex; gap: .6rem; flex-wrap: wrap; }
.recent-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .4rem .6rem;
    background: var(--panel);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
}
.recent-pill img { width: 38px; height: 38px; object-fit: contain; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    line-height: 1.3;
}
.btn-sm { padding: .3rem .6rem; font-size: .78rem; }
.btn-primary { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.btn-primary:hover { background: #6d28d9; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--soft); }
.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-off { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warn { background: #fef3c7; color: #92400e; }

/* ========== TABLES ========== */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.table th, .table td {
    padding: .6rem .7rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    font-weight: 600;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--soft);
}
.table tbody tr:hover { background: var(--soft); }
.table img.thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.table .actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

/* ========== PRODUCT DETAIL ========== */
.pdp-breadcrumb {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .8rem 0;
    font-size: .85rem;
    color: var(--muted);
}
.pdp-breadcrumb a { color: var(--link); }
.pdp-breadcrumb a:hover { text-decoration: underline; }
.pdp-breadcrumb span { color: var(--border); }
.pdp {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}
.pdp-gallery { display: flex; flex-direction: column; gap: .8rem; }
.gallery {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
}
.gallery-thumb.active { border-color: var(--accent2); }
.gallery-thumb:hover { border-color: var(--link); }
.image-zoom {
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 320px;
    cursor: crosshair;
}
.image-zoom img { max-height: 400px; object-fit: contain; }
.image-share {
    position: absolute;
    top: .8rem;
    right: .8rem;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: .4rem .7rem;
    border-radius: 6px;
    font-size: .8rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.pdp-info { min-width: 0; }
.store-link {
    display: inline-block;
    color: var(--link);
    font-size: .85rem;
    font-weight: 600;
    margin: .3rem 0;
}
.store-link:hover { text-decoration: underline; }
.choice-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    margin: .3rem 0;
}
.pdp-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: .5rem 0;
}
.returns-line {
    color: #166534;
    font-size: .85rem;
    font-weight: 600;
    margin: .3rem 0;
}
.returns-line span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
}
.desc {
    color: #374151;
    font-size: .92rem;
    line-height: 1.6;
    margin: .6rem 0;
}
.variants { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.variants h2 { font-size: 1rem; font-weight: 700; width: 100%; margin-bottom: .2rem; }
.spec-card {
    background: var(--soft);
    border-radius: 8px;
    padding: .8rem 1rem;
    margin-top: .6rem;
}
.spec-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .5rem;
}
.specs div { display: flex; flex-direction: column; gap: .1rem; }
.specs dt {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.specs dd {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
}
.buy-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.membership-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: .8rem;
    font-size: .85rem;
}
.membership-box strong { display: block; color: #166534; margin-bottom: .2rem; }
.offer-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    background: var(--soft);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
}
.radio-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent2);
    flex-shrink: 0;
}
.delivery {
    font-size: .85rem;
    color: var(--text);
    margin: .2rem 0;
}
.delivery strong { color: #b42318; }
.qty {
    width: 70px;
    padding: .5rem .6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: .9rem;
}
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .7rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    background: var(--accent);
    color: #111;
    width: 100%;
}
.btn-buy:hover { background: #e5b140; }
.btn-buy.btn-alt {
    background: var(--accent2);
    color: #fff;
    margin-top: .4rem;
}
.btn-buy.btn-alt:hover { background: #6d28d9; }
.btn-buy:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}
.seller-box {
    background: var(--soft);
    border-radius: 8px;
    padding: .8rem;
    font-size: .85rem;
    text-align: center;
}
.seller-box strong { display: block; margin-bottom: .2rem; }

/* ========== REVIEWS ========== */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.review-list { display: flex; flex-direction: column; gap: .8rem; }
.review-item {
    background: var(--soft);
    border-radius: 8px;
    padding: .8rem;
}
.review-item strong { display: block; margin-bottom: .2rem; }
.review-item p {
    font-size: .88rem;
    color: #374151;
    line-height: 1.5;
    margin-top: .3rem;
}

/* ========== PRODUCT CARD ICONS ========== */
.icon-chip {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
}

/* ========== VENDOR APPLY ========== */
.vendor-apply { padding: 1.5rem 0; }
.vendor-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.vendor-hero h1 { font-size: 1.8rem; font-weight: 800; margin: .3rem 0 .5rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.vendor-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.vendor-features .card { text-align: center; }
.vendor-features .card h3 { margin-bottom: .4rem; }

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-card {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative;
}
.modal-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.modal-close:hover { background: var(--soft); color: var(--text); }

/* ========== CHECKOUT ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.2rem;
}
.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
.checkout-steps > div {
    background: var(--soft);
    border-radius: 8px;
    padding: .8rem;
    text-align: center;
    font-size: .85rem;
}
.checkout-steps strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent2);
    margin-bottom: .2rem;
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
}
.btn-soft:hover { background: var(--border); }

/* ========== CART ========== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.2rem;
    align-items: start;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--text);
    font-weight: 600;
}
.cart-product img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.qtybox {
    width: 70px;
    padding: .4rem .5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    text-align: center;
}
.total-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.total-box strong { font-size: 1.4rem; font-weight: 800; }

/* ========== PRODUCT GRID (category/search) ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* ========== FORM GRID ========== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-grid label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .3rem;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    outline: none;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { border-color: var(--accent2); }

/* ========== MISC CUSTOMER ========== */
.old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.recently-viewed-panel { margin-top: 1rem; }
.return-product-card {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .8rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.card-image-switcher {
    display: flex;
    gap: .3rem;
    justify-content: center;
    margin-top: .5rem;
}

/* ========== FOOTER ========== */
.store-footer {
    background: var(--nav);
    color: #fff;
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}
.footer-service {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--nav2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
}
.store-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}
.store-footer h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: #fff;
}
.store-footer a {
    color: #cbd5e1;
    font-size: .85rem;
    display: block;
    padding: .2rem 0;
}
.store-footer a:hover { color: #fff; }
.store-footer-bottom {
    text-align: center;
    padding: 1.2rem 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: .82rem;
}

/* ========== HEADER ELEMENTS ========== */
.marketplace-shell { }
.nav-mini {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .3rem .6rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: .8rem;
}
.chat-trigger {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .3rem .7rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: .8rem;
}

/* ========== HEADER CART + ACCOUNT ========== */
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: .25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: .25rem .55rem;
    border: 1px solid transparent;
    border-radius: 6px;
}
.nav-cart:hover { border-color: rgba(255,255,255,.45); }
.cart-ico { font-size: 1.4rem; line-height: 1; }
.cart-label { font-size: .82rem; }
.cart-badge {
    position: absolute;
    top: -6px;
    left: 16px;
    background: #febd69;
    color: #131921;
    font-size: .7rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0 .35rem;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}
.account-box { display: flex; flex-direction: column; line-height: 1.15; }
.greeting { color: #fff; font-size: .8rem; font-weight: 400; }
.greeting .hi { font-weight: 700; }
.account-btn {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.account-btn:hover { text-decoration: underline; }
.nav-logout {
    color: #fff;
    font-size: .82rem;
    text-decoration: none;
    align-self: center;
    white-space: nowrap;
}
.nav-logout:hover { text-decoration: underline; }

/* ========== AUTH PAGES ========== */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}
.auth-links {
    display: flex;
    gap: .8rem;
    justify-content: space-between;
    margin-top: .8rem;
    font-size: .85rem;
}
.auth-links a { color: var(--link); }
.auth-links a:hover { text-decoration: underline; }
.auth-muted {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    margin-top: 1rem;
}
.auth-muted a { color: var(--text); font-weight: 700; }

/* ========== ACCOUNT / CUSTOMER DASHBOARD ========== */
.account-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.account-hero h1 { font-size: 1.5rem; font-weight: 800; }
.account-actions { display: flex; gap: .6rem; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--accent2);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover { background: #6d28d9; }
.btn-soft {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
}
.btn-soft:hover { background: var(--border); }
.full { width: 100%; justify-content: center; }
.control-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.control-strip > div {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.control-strip strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}
.control-strip span {
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.section-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
}
.section-panel h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.side-stack { display: flex; flex-direction: column; gap: 1rem; }
.notice {
    padding: .6rem .8rem;
    background: var(--soft);
    border-radius: 6px;
    font-size: .85rem;
    border-left: 3px solid var(--accent2);
}
.status-chip {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #dbeafe;
    color: #1e40af;
}
.empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: .95rem;
}

/* ========== CATALOG / CATEGORY ========== */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.filter-panel {
    background: linear-gradient(135deg, rgba(124, 58, 237, .05) 0%, rgba(59, 130, 246, .05) 100%);
    border: 1px solid rgba(124, 58, 237, .15);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.filter-panel h2 { 
    font-size: 1.15rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
    color: #7c3aed;
    border-bottom: 2px solid rgba(124, 58, 237, .2);
    padding-bottom: .6rem;
}
.filter-panel label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}
.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 8px;
    background: rgba(255,255,255,.5);
    color: var(--text);
    margin-bottom: 1rem;
    outline: none;
    transition: all .2s;
    font-size: .9rem;
}
.filter-panel input:focus,
.filter-panel select:focus { 
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.filter-panel button {
    width: 100%;
    padding: .8rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.filter-panel button:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, .3);
}

.catalog-results { min-width: 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .08) 0%, rgba(59, 130, 246, .08) 100%);
    border: 1px solid rgba(124, 58, 237, .1);
    border-radius: 12px;
}

.section-head > div:first-child {
    flex: 1;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: .8rem;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 800;
    margin-bottom: .4rem;
}

.section-head .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}

.section-head p {
    margin: .5rem 0 0 0;
    font-size: .95rem;
}

.result-count {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
    background: rgba(59, 130, 246, .1);
    padding: .5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, .2);
    white-space: nowrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* ========== CART / CHECKOUT ========== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.cart-table th, .cart-table td {
    padding: .6rem .7rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--soft);
}
.cart-table tbody tr:hover { background: var(--soft); }
.cart-table img.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.2rem;
}
.order-summary {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
    height: fit-content;
}
.order-summary h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }
.form-row {
    display: flex;
    gap: .8rem;
    margin-bottom: .8rem;
}
.form-row > * { flex: 1; }

/* ========== PRODUCT DETAIL ========== */
.product-meta { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-meta .name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    text-decoration: none;
}
.product-meta .name:hover { color: var(--accent2); }
.fulfilment {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    margin-top: .2rem;
}
.stock-good { color: #166534; font-weight: 600; }
.stock-low { color: #991b1b; font-weight: 600; }
.card-actions {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}
.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    background: var(--accent);
    color: #111;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-cart:hover { background: #e5b140; }

/* ========== REVIEWS ========== */
.review-form {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}
.star-input {
    display: flex;
    gap: .2rem;
    font-size: 1.4rem;
    cursor: pointer;
}
.star-input span { color: #d1d5db; transition: color .15s; }
.star-input span.active { color: #f59e0b; }
.star-input span:hover,
.star-input span.hover { color: #f59e0b; }

/* ========== RETURNS ========== */
.return-status {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ========== PRODUCT DETAIL PAGE (PDP) STYLES ========== */
.pdp { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 1.5rem; margin: 1.5rem 0; }
.pdp-gallery { position: relative; }
.pdp-gallery .gallery { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: .5rem;
    margin-bottom: 1rem;
}
.gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--soft);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s;
}
.gallery-thumb:hover {
    border-color: #7c3aed;
    transform: scale(1.02);
}
.gallery-thumb.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .2);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-zoom {
    width: 100%;
    aspect-ratio: 1;
    background: var(--soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.image-share {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.image-share:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: scale(1.1);
}

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pdp-info .eyebrow {
    font-size: .85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.pdp-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.store-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: underline;
}
.store-link:hover {
    color: #2563eb;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}
.rating-row .stars {
    color: #f59e0b;
    font-size: 1rem;
}
.rating-row a {
    color: #3b82f6;
    text-decoration: underline;
}

.choice-badge {
    display: inline-block;
    padding: .4rem .8rem;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: #fff;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    width: fit-content;
}

.pdp-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ef4444;
}
.pdp-price .old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 1.2rem;
    margin-left: .5rem;
}

.returns-line {
    color: var(--muted);
    font-size: .9rem;
}
.returns-line span {
    color: #22c55e;
    font-weight: 600;
}

.desc {
    line-height: 1.6;
    color: var(--text);
}

.variants {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.variants h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.variants .badge {
    background: rgba(59, 130, 246, .15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, .3);
}

.spec-card {
    background: var(--soft);
    border-radius: 8px;
    padding: 1rem;
}
.spec-card h2 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .8rem 0;
}
.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.specs > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.specs dt {
    font-weight: 600;
    color: var(--muted);
    font-size: .85rem;
}
.specs dd {
    font-size: .9rem;
}

.buy-box {
    background: linear-gradient(135deg, rgba(255, 251, 235, .9) 0%, rgba(254, 243, 199, .9) 100%);
    border: 1px solid rgba(245, 158, 11, .2);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .1);
}
.membership-box {
    padding: .8rem;
    background: rgba(59, 130, 246, .1);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}
.membership-box strong {
    display: block;
    color: #1e40af;
}
.membership-box span {
    font-size: .8rem;
    color: #3b82f6;
}

.offer-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem;
    background: #fff;
    border-radius: 8px;
}
.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.buy-box .price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ef4444;
}
.buy-box .delivery {
    font-size: .9rem;
}
.buy-box .delivery strong {
    display: block;
    color: #16a34a;
}
.buy-box .stock-good { color: #22c55e; font-weight: 600; }
.buy-box .stock-low { color: #ef4444; font-weight: 600; }

.actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.actions button, .actions input[type="submit"] {
    padding: .8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.actions .btn-primary {
    background: #3b82f6;
    color: #fff;
}
.actions .btn-primary:hover {
    background: #2563eb;
}
.actions .btn-secondary {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, .3);
}
.actions .btn-secondary:hover {
    background: rgba(59, 130, 246, .2);
}

.pdp-breadcrumb {
    display: flex;
    gap: .5rem;
    font-size: .85rem;
    margin-bottom: 1rem;
    color: var(--muted);
}
.pdp-breadcrumb a {
    color: #3b82f6;
}
.pdp-breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .pdp { grid-template-columns: 1fr 1fr; }
    .buy-box { position: static; }
}
@media (max-width: 768px) {
    .pdp { grid-template-columns: 1fr; }
    .pdp-gallery .gallery { grid-template-columns: repeat(4, 1fr); }
    .specs { grid-template-columns: 1fr; }
}
.img-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .8rem;
    padding: .8rem;
    background: var(--soft);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item .btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    font-weight: 800;
    cursor: pointer;
    display: none;
    place-items: center;
    transition: all .2s;
}
.gallery-item:hover .btn-remove {
    display: grid;
    top: 4px;
    right: 4px;
}
.gallery-item .btn-remove:hover {
    background: #dc2626;
}

/* ========== RESPONSIVE CUSTOMER ========== */
@media (max-width: 1024px) {
    .pdp { grid-template-columns: 1fr 1fr; }
    .buy-box { position: static; }
    .catalog-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .account-hero { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 768px) {
    .pdp { grid-template-columns: 1fr; }
    .pdp-gallery .gallery { grid-template-columns: repeat(4, 1fr); }
    .specs { grid-template-columns: 1fr; }
    .table, .cart-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .store { padding: 0 .9rem; }
    .card { padding: 1rem; }
}
@media (max-width: 640px) {
    .topbar { flex-wrap: wrap; }
    .search { order: 3; flex-basis: 100%; }
    .form-row { flex-direction: column; }
    .control-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-service { flex-direction: column; align-items: center; text-align: center; }
    .table, .cart-table { font-size: .82rem; }
    .table th, .table td, .cart-table th, .cart-table td { padding: .55rem .5rem; }
}
@media (max-width: 480px) {
    .store { padding: 0 .7rem; }
    .card { padding: .8rem; }
    .control-strip { grid-template-columns: 1fr; }
    .topbar { gap: .6rem; padding: .6rem .8rem; }
    .stat-num, .account-hero h1 { font-size: 1.3rem; }
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--nav);
    color: #fff;
    padding: .8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    font-size: .9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 1000;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ========== MISC ========== */
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.alert {
    padding: .7rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 500;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ========== AMAZON-STYLE CUSTOMER ACCOUNT ========== */
.amz-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(180deg, #232f3e 0%, #37475a 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
}
.amz-hero-inner h1 { color: #fff; font-size: 1.7rem; font-weight: 800; margin: .2rem 0; }
.amz-eyebrow {
    display: block;
    color: #ffd814;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}
.amz-hero p { color: #d5dbdb; margin: .2rem 0 0; }
.amz-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.amz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.amz-stat {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 10px;
    padding: 1.1rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #0f1111;
    transition: .15s;
    box-shadow: 0 1px 2px rgba(15,17,17,.06);
}
.amz-stat:hover { border-color: #ff9900; box-shadow: 0 4px 12px rgba(255,153,0,.15); }
.amz-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #0f1111; }
.amz-stat span { font-size: .8rem; color: #565959; text-transform: uppercase; letter-spacing: .04em; }

.amz-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
.amz-main { min-width: 0; }
.amz-panel {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 2px rgba(15,17,17,.06);
    margin-bottom: 1.2rem;
}
.amz-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.amz-panel-head h2 { font-size: 1.15rem; font-weight: 700; color: #0f1111; margin: 0; }
.amz-link { color: #007185; font-size: .85rem; font-weight: 600; text-decoration: none; }
.amz-link:hover { text-decoration: underline; }
.amz-link.block { display: block; margin-top: .7rem; text-align: center; }

.amz-orders { display: flex; flex-direction: column; gap: .9rem; }
.amz-order { border: 1px solid #d5d9d9; border-radius: 10px; padding: .9rem 1rem; background: #fff; }
.amz-order-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.amz-order-no { display: block; font-weight: 800; color: #0f1111; font-size: 1rem; }
.amz-order-meta { display: block; font-size: .8rem; color: #565959; margin-top: .15rem; }
.amz-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.amz-badge-ok { background: #d4f0d4; color: #0a7a0a; }
.amz-badge-info { background: #e7f0f7; color: #0a5fa3; }
.amz-badge-off { background: #fbe3e3; color: #b12704; }
.amz-cancelled { font-size: .85rem; color: #b12704; background: #fbeaea; border-radius: 8px; padding: .6rem .8rem; margin: 0; }

.amz-track { display: flex; align-items: center; margin: .6rem 0 .9rem; }
.amz-step { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 56px; }
.amz-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .8rem; font-weight: 800;
    background: #fff; border: 2px solid #d5d9d9; color: #565959;
}
.amz-step-label { font-size: .72rem; color: #565959; font-weight: 600; }
.amz-step.done .amz-dot { background: #0a7a0a; border-color: #0a7a0a; color: #fff; }
.amz-step.done .amz-step-label { color: #0a7a0a; }
.amz-step.current .amz-dot { border-color: #ff9900; color: #ff9900; box-shadow: 0 0 0 3px rgba(255,153,0,.18); }
.amz-step.current .amz-step-label { color: #c45500; font-weight: 800; }
.amz-line { flex: 1; height: 3px; background: #e3e6e6; margin-top: 13px; }
.amz-line.done { background: #0a7a0a; }

.amz-order-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.amz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .5rem .9rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .15s;
}
.amz-btn-amber { background: #ffd814; border-color: #fcd200; color: #0f1111; }
.amz-btn-amber:hover { background: #f7ca00; }
.amz-btn-dark { background: #232f3e; color: #fff; border-color: #232f3e; }
.amz-btn-dark:hover { background: #37475a; }
.amz-btn-soft { background: #fff; border-color: #d5d9d9; color: #0f1111; }
.amz-btn-soft:hover { background: #f7f8f8; }
.amz-btn.full { width: 100%; margin-top: .6rem; }

.amz-side { min-width: 0; }
.amz-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.amz-feed-item { display: flex; gap: .6rem; align-items: flex-start; }
.amz-feed-icon { font-size: 1.1rem; line-height: 1.4; }
.amz-feed-item strong { display: block; font-size: .85rem; color: #0f1111; }
.amz-feed-time { font-size: .72rem; color: #898989; }

/* ========== CART ========== */
.cart-head-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cart-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.summary-lines { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0; padding-top: .6rem; border-top: 1px solid #e3e6e6; }
.summary-lines div { display: flex; justify-content: space-between; font-size: .9rem; }
.amz-link.block { display: block; margin-top: .7rem; text-align: center; }
.order-items-preview { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.order-item-row { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid #eef0f0; }
.order-item-row img { width: 44px; height: 44px; object-fit: contain; border: 1px solid #e3e6e6; border-radius: 6px; }
.oi-info { flex: 1; min-width: 0; }
.oi-info strong { display: block; font-size: .9rem; }
.oi-price { font-weight: 700; color: #0f1111; }

/* ========== CHECKOUT PAYMENT METHODS ========== */
.pay-title { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 .6rem; color: #0f1111; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pay-method {
    display: flex; align-items: center; gap: .7rem;
    border: 1px solid #d5d9d9; border-radius: 10px;
    padding: .8rem .9rem; cursor: pointer; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.pay-method:hover { border-color: #ff9900; }
.pay-method input { accent-color: #ff9900; width: 18px; height: 18px; flex-shrink: 0; }
.pay-method:has(input:checked) { border-color: #ff9900; box-shadow: 0 0 0 2px rgba(255,153,0,.25); background: #fffdf5; }
.pay-ico { font-size: 1.5rem; line-height: 1; }
.pay-text { display: flex; flex-direction: column; }
.pay-text strong { font-size: .9rem; color: #0f1111; }
.pay-text small { font-size: .76rem; color: #565959; }
.checkout-steps strong { color: #ff9900; }

/* ========== ADDED TO CART PANEL (Amazon-style) ========== */
.added-panel {
    position: fixed; top: 86px; right: 1rem; width: 300px;
    background: #fff; border: 1px solid #d5d9d9; border-radius: 10px;
    box-shadow: 0 12px 34px rgba(15,17,17,.22); z-index: 1200;
    padding: 1rem; animation: addedPop .2s ease;
}
.added-panel[hidden] { display: none; }
.added-head { display: flex; align-items: center; gap: .45rem; color: #0a7a0a; font-weight: 800; font-size: .95rem; margin-bottom: .6rem; }
.added-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0a7a0a; color: #fff; font-size: .8rem; }
.added-body { display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.added-img { width: 48px; height: 48px; object-fit: contain; border: 1px solid #e3e6e6; border-radius: 6px; }
.added-info { font-size: .85rem; min-width: 0; }
.added-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.added-price { color: #565959; font-size: .8rem; }
.added-actions { display: flex; gap: .5rem; }
.added-actions .amz-btn { flex: 1; padding: .5rem .6rem; font-size: .82rem; }
.added-close { position: absolute; top: .4rem; right: .6rem; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: #565959; line-height: 1; }
@keyframes addedPop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .added-panel { left: 1rem; right: 1rem; width: auto; } .pay-methods { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
    .amz-layout { grid-template-columns: 1fr; }
    .amz-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .amz-stats { grid-template-columns: 1fr; }
    .amz-hero { flex-direction: column; align-items: flex-start; }
    .amz-step-label { font-size: .66rem; }
}

/* ================= Advertising / Sponsored placements ================= */
.ad-banner-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}
.ad-banner {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    min-height: 150px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.ad-banner img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: .85;
}
.ad-banner-body {
    position: relative;
    z-index: 1;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
}
.ad-banner-body h3 { margin: .2rem 0 0; font-size: 1.25rem; }
.ad-banner-body p { margin: .25rem 0 0; font-size: .9rem; opacity: .9; }
.ad-sponsor {
    align-self: flex-start;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.85);
    color: #111;
    padding: .15rem .5rem;
    border-radius: 999px;
}

/* Sponsored product cards reuse .product-card but get an "Ad" tag */
.sponsored-card { position: relative; }
.ad-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: #f59e0b;
    color: #111;
    padding: .12rem .45rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* Sponsored stores strip */
.sponsored-stores { margin: 1.4rem 0; }
.store-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    padding: 1.2rem 1rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.store-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.store-card-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.store-card-mark {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
}
.store-card strong { font-size: 1rem; }
.store-card .ad-tag { position: static; align-self: center; }

@media (max-width: 560px) {
    .ad-banner-strip { grid-template-columns: 1fr; }
}
