/* ─────────────────────────────────────────────────────────────────────
   Shop now — Talabat-inspired UI
   Design tokens, components, layout.
   Layered on top of Bootstrap 5 — only overrides + new classes here.
   ───────────────────────────────────────────────────────────────────── */

:root {
    --brand: #FF5A00;
    --brand-dark: #E04E00;
    --brand-soft: #FFEDE3;

    --ink: #1B1A1F;
    --ink-muted: #7A7A7E;
    --bg: #F7F7F8;
    --card: #FFFFFF;
    --border: #ECECEE;
    --border-strong: #DADADD;

    --success: #2ECC71;
    --danger: #E74C3C;
    --warning: #F2C94C;

    --shadow-sm: 0 1px 2px rgba(20, 20, 20, .05), 0 1px 3px rgba(20, 20, 20, .04);
    --shadow-md: 0 4px 14px rgba(20, 20, 20, .07);
    --shadow-lg: 0 12px 32px rgba(20, 20, 20, .10);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ─── Bootstrap primary color override ───────────────────────────── */
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: .5rem 1.1rem;
    transition: background .15s, transform .05s;
}
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
    border-radius: var(--radius-md);
    font-weight: 600;
}
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.text-primary { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }

/* ─── Header (sticky white) ──────────────────────────────────────── */
.app-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: .65rem 0;
}
.app-header .brand {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}
.app-header .brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
}

.app-search { flex: 1; max-width: 620px; position: relative; }
.app-search input {
    width: 100%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    border-radius: var(--radius-pill);
    padding: .55rem 1rem .55rem 2.5rem;
    font-size: .95rem;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.app-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.app-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }

.app-actions { display: flex; align-items: center; gap: .25rem; }
.app-actions .nav-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ink);
    background: transparent;
    padding: .45rem .8rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 0;
}
.app-actions .nav-pill:hover { background: var(--brand-soft); color: var(--brand-dark); }
.app-actions .nav-pill.primary { background: var(--brand); color: #fff; }
.app-actions .nav-pill.primary:hover { background: var(--brand-dark); color: #fff; }

.cart-pill { position: relative; }
.cart-pill .cart-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--brand); color: #fff; font-size: .65rem;
    border-radius: var(--radius-pill); padding: 2px 6px; line-height: 1;
}

/* ─── Hero carousel ──────────────────────────────────────────────── */
.hero-carousel { margin: 1.25rem 0 1.75rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
/* ─── Hero carousel — clean, focused, no clutter ─────────────────── */
.hero-carousel { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); position: relative; }
.hero-slide { position: relative; height: 380px; overflow: hidden; }
.hero-slide::after { content: none; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* Gradient strong on the left fading to transparent on the right — only the text panel is darkened */
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-orange::before { background: linear-gradient(90deg, rgba(255,90,0,.95) 0%, rgba(255,90,0,.85) 35%, rgba(255,90,0,.4) 55%, rgba(255,90,0,0) 75%); }
.hero-blue::before   { background: linear-gradient(90deg, rgba(13,110,253,.95) 0%, rgba(13,110,253,.85) 35%, rgba(13,110,253,.4) 55%, rgba(13,110,253,0) 75%); }
.hero-pink::before   { background: linear-gradient(90deg, rgba(232,62,140,.95) 0%, rgba(232,62,140,.85) 35%, rgba(232,62,140,.4) 55%, rgba(232,62,140,0) 75%); }
.hero-green::before  { background: linear-gradient(90deg, rgba(28,138,77,.95) 0%, rgba(28,138,77,.85) 35%, rgba(28,138,77,.4) 55%, rgba(28,138,77,0) 75%); }

/* Single-column left-aligned copy. Max 460px so it never overlaps the image. */
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding: 0 3rem; }
.hero-copy { color: #fff; max-width: 460px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
    color: #fff; font-size: .75rem; font-weight: 700;
    padding: 5px 12px; border-radius: 20px;
    margin-bottom: 1rem; letter-spacing: .3px;
    border: 1px solid rgba(255,255,255,.22);
}
.hero-copy h2 {
    font-weight: 800; font-size: 2.6rem; line-height: 1.1;
    letter-spacing: -1px; margin: 0 0 .85rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hero-copy h2 .hero-accent { display: block; font-weight: 700; font-size: .65em; opacity: .92; margin-top: .15rem; }
.hero-copy p {
    font-size: 1rem; line-height: 1.5; opacity: .95;
    margin: 0 0 1.4rem;
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-cta {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .75rem 1.4rem;
    border-radius: 10px;
    font-weight: 700; font-size: .92rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.hero-cta.primary { background: #fff; color: #1a1a1a; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hero-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); color: #1a1a1a; }
.hero-cta.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.hero-cta.ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero-cta .cta-arrow { transition: transform .15s; }
.hero-cta.primary:hover .cta-arrow { transform: translateX(3px); }

.hero-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; color: rgba(255,255,255,.92); font-size: .78rem; }
.hero-meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.hero-meta-item .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .7; }

/* Hide the sticker entirely — eliminates the overlap that the user saw */
.hero-visual, .hero-sticker { display: none !important; }

/* Pagination — small dots, centered at bottom */
.hero-dots {
    bottom: 1rem !important; left: 0; right: 0; margin: 0 auto;
    padding: 0; background: transparent; display: flex; justify-content: center; gap: 6px;
    width: auto;
}
.hero-dots button {
    background: rgba(255,255,255,.45) !important; border: 0 !important;
    width: 22px !important; height: 4px !important; border-radius: 2px !important;
    opacity: 1 !important; text-indent: -9999px !important;
    transition: width .2s, background .2s;
    overflow: hidden;
    color: transparent !important; font-size: 0 !important;
}
.hero-dots button span { display: none !important; }
.hero-dots button.active { background: #fff !important; width: 36px !important; }
.hero-dots button:hover { background: rgba(255,255,255,.75) !important; }

/* Hide the progress bar — too much going on visually */
.hero-progress { display: none; }

/* Prev/next — circular white buttons, fade in on hover */
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 4rem; opacity: 0; transition: opacity .25s; z-index: 4; }
.hero-carousel:hover .carousel-control-prev, .hero-carousel:hover .carousel-control-next { opacity: 1; }
.hero-carousel .carousel-control-prev-icon, .hero-carousel .carousel-control-next-icon { width: 40px; height: 40px; background-color: rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.2); background-size: 16px; }
.hero-carousel .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23222'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E"); }
.hero-carousel .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23222'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); }

@media (max-width: 768px) {
    .hero-slide { height: 360px; }
    .hero-slide::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%) !important; }
    .hero-orange::before, .hero-blue::before, .hero-pink::before, .hero-green::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%) !important; }
    .hero-content { padding: 1.5rem; align-items: flex-end; }
    .hero-copy { max-width: 100%; }
    .hero-copy h2 { font-size: 1.7rem; }
    .hero-copy p { font-size: .9rem; }
    .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
}
.hero-slide .hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 3rem; color: #fff; z-index: 2; }
.hero-slide .hero-copy h2 { font-weight: 800; font-size: 2.25rem; letter-spacing: -0.5px; }
.hero-slide .hero-copy p { font-size: 1.05rem; opacity: .92; }
.hero-slide .hero-cta {
    align-self: flex-start;
    background: #fff; color: var(--brand);
    border-radius: var(--radius-pill);
    padding: .55rem 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.hero-slide .hero-cta:hover { background: var(--brand-soft); }

/* ─── Section header ─────────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2rem 0 1rem; }
.section-head h3 { font-weight: 800; font-size: 1.35rem; margin: 0; letter-spacing: -0.3px; }
.section-head a.see-all { color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ─── Category circles ───────────────────────────────────────────── */
.category-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.category-tile {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem .5rem;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--brand); border-color: var(--brand); }
.category-tile .icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto .5rem;
    background: var(--brand-soft); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.category-tile .icon-wrap svg { width: 32px; height: 32px; }
.category-tile .label { font-size: .85rem; font-weight: 600; line-height: 1.2; }

/* ─── Product grid + card ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: inherit; }
.product-card .img-wrap {
    position: relative;
    background: linear-gradient(135deg, #f5f6f8 0%, #e9ebf0 100%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    min-height: 200px;
}
.product-card .card-img,
.product-card .card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card .card-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.product-card .card-img { transition: opacity .25s ease, transform .35s ease; opacity: 1; z-index: 1; }
.product-card .card-video { opacity: 0; transition: opacity .25s ease; pointer-events: none; z-index: 2; background: #000; }
.product-card:hover .card-img { opacity: 0; transform: scale(1.04); }
.product-card:hover .card-video { opacity: 1; }
.product-card .img-wrap .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-muted);
    font-size: 2rem;
}
.product-card .video-indicator {
    position: absolute;
    bottom: .55rem; right: .55rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    transition: opacity .2s;
}
.product-card:hover .video-indicator { opacity: 0; }
.product-card .discount-badge {
    position: absolute; top: .6rem; left: .6rem;
    background: var(--danger); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: 3px 8px; border-radius: var(--radius-pill);
    letter-spacing: .3px;
}
.product-card .body { padding: .85rem; flex: 1; display: flex; flex-direction: column; }
.product-card .vendor-name { font-size: .75rem; color: var(--ink-muted); margin-bottom: .15rem; }
.product-card .name {
    font-weight: 600; font-size: .92rem; color: var(--ink);
    line-height: 1.3; margin-bottom: .35rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.product-card .price { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.product-card .compare { color: var(--ink-muted); text-decoration: line-through; font-size: .8rem; }
.product-card .rating { font-size: .75rem; color: var(--ink-muted); margin-top: .3rem; }
.product-card .rating .star { color: var(--warning); }

/* ─── Detail page polish ─────────────────────────────────────────── */
.pdp-gallery { background: var(--card); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); }
.pdp-gallery img { max-height: 480px; object-fit: contain; width: 100%; }
.pdp-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; }
.pdp-price { font-size: 2rem; font-weight: 800; color: var(--ink); }
.pdp-compare { color: var(--ink-muted); text-decoration: line-through; font-size: 1rem; }
.pdp-discount {
    background: var(--brand-soft); color: var(--brand);
    padding: 2px 8px; border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 700;
}

/* ─── Cards / list rows ──────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.card.no-shadow { box-shadow: none; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.app-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    font-size: .85rem;
}
.app-footer .brand-mini { color: var(--brand); font-weight: 800; }

/* ─── Misc ───────────────────────────────────────────────────────── */
.badge-soft-success { background: rgba(46,204,113,.12); color: #1f8a4d; font-weight: 600; padding: .3rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; }
.badge-soft-warning { background: rgba(242,201,76,.18); color: #8a6e0f; font-weight: 600; padding: .3rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; }
.badge-soft-danger  { background: rgba(231,76,60,.10); color: #b73228; font-weight: 600; padding: .3rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }

main { min-height: calc(100vh - 240px); }

@media (max-width: 768px) {
    .hero-slide { height: 220px; }
    .hero-slide .hero-copy { padding: 0 1.5rem; }
    .hero-slide .hero-copy h2 { font-size: 1.5rem; }
    .app-search { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   v2 additions — vendor cards, deals strip, card overlays, mobile nav
   ───────────────────────────────────────────────────────────────────── */

/* Quick view + wishlist overlay on product cards */
.product-card .card-actions {
    position: absolute;
    top: .55rem; right: .55rem;
    display: flex; flex-direction: column; gap: .35rem;
    opacity: 0; transform: translateX(8px);
    transition: opacity .2s, transform .2s;
    z-index: 4;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.card-action-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background .15s, color .15s, transform .1s;
    text-decoration: none;
}
.card-action-btn:hover { background: var(--brand); color: #fff; }
.card-action-btn:active { transform: scale(.92); }
.card-action-btn.is-active { background: var(--brand); color: #fff; }

/* Featured vendor card */
.vendor-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.vendor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: .85rem;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vendor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand); color: inherit; }
.vendor-card .logo {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); font-weight: 800; font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}
.vendor-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.vendor-card .meta { min-width: 0; }
.vendor-card .meta .name { font-weight: 700; line-height: 1.2; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-card .meta .stats { font-size: .75rem; color: var(--ink-muted); }

/* Deals / offers strip */
.deals-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.deal-card {
    background: linear-gradient(135deg, var(--brand) 0%, #FF8A3D 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.deal-card .deal-tag {
    display: inline-block;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(2px);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.deal-card .deal-code {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    background: rgba(0,0,0,.18);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 1px;
}
.deal-card h4 { font-size: 1.4rem; font-weight: 800; margin: .5rem 0 .25rem; letter-spacing: -0.3px; }
.deal-card p  { font-size: .85rem; opacity: .92; margin: 0 0 .5rem; }
.deal-card::after {
    content: "";
    position: absolute; right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile bottom nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 14px rgba(20,20,20,.06);
    z-index: 1030;
}
.mobile-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.mobile-nav a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: .55rem 0 .4rem;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    gap: 2px;
    position: relative;
}
.mobile-nav a.active { color: var(--brand); }
.mobile-nav a:hover { color: var(--brand); }
.mobile-nav .mn-badge {
    position: absolute;
    top: 4px;
    right: 30%;
    background: var(--brand);
    color: #fff;
    font-size: .55rem;
    padding: 1px 5px;
    border-radius: var(--radius-pill);
    line-height: 1;
}

@media (max-width: 768px) {
    .mobile-nav { display: block; }
    main { padding-bottom: 4.5rem; }  /* leave space for the bottom nav */
}

/* Vendor store page hero */
.store-hero {
    position: relative;
    background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1d 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    color: #fff;
}
.store-hero-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.store-hero-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%);
}
.store-hero-content {
    position: relative;
    padding: 1.5rem 2rem 1.5rem 2rem;
    margin-top: -50px;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    z-index: 2;
}
.store-hero-logo {
    width: 110px; height: 110px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; color: var(--brand);
    overflow: hidden;
    flex-shrink: 0;
}
.store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-info { flex: 1; min-width: 0; }
.store-hero-info h1 { font-size: 1.75rem; font-weight: 800; margin: 0; letter-spacing: -0.5px; }
.store-hero-info .meta { display: flex; gap: 1.25rem; margin-top: .5rem; opacity: .92; font-size: .9rem; }
.store-hero-info .meta .star { color: var(--warning); }

@media (max-width: 768px) {
    .store-hero-content { padding: 1rem; flex-direction: column; align-items: flex-start; margin-top: -40px; }
    .store-hero-logo { width: 80px; height: 80px; font-size: 1.8rem; }
    .store-hero-info h1 { font-size: 1.3rem; }
}

/* Related products on PDP */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
}

/* ─────────────────────────────────────────────────────────────────────
   Mobile — single-column stacked layout for product/related grids;
   vendor + deals strips remain horizontal swipe for compactness.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .product-grid,
    .related-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .vendor-strip,
    .deals-strip,
    .category-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .75rem;
        padding-bottom: .5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .vendor-strip::-webkit-scrollbar,
    .deals-strip::-webkit-scrollbar,
    .category-strip::-webkit-scrollbar { display: none; }
    .vendor-strip .vendor-card { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
    .deals-strip .deal-card    { flex: 0 0 auto; width: 240px; scroll-snap-align: start; }
    .category-strip .category-tile { flex: 0 0 auto; width: 90px; scroll-snap-align: start; }
    .category-strip .category-tile .icon-wrap { width: 56px; height: 56px; }
    .category-strip .category-tile .icon-wrap span { font-size: 26px !important; }
    .category-strip .category-tile .label { font-size: .75rem; }
}

/* Category tiles with real photos: circular crop, hover zoom */
.category-tile .icon-wrap { box-shadow: 0 4px 12px rgba(0,0,0,.08); overflow: hidden; padding: 0; }
.category-tile .icon-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; transition: transform .3s; }
.category-tile:hover .icon-wrap img { transform: scale(1.12); }
.category-tile:hover .icon-wrap { box-shadow: 0 8px 20px rgba(255,90,0,.18); }

/* ─────────────────────────────────────────────────────────────────────
   TikTok Shop card style — portrait, video-first, bold price, persistent heart
   ───────────────────────────────────────────────────────────────────── */
.product-card {
    border-radius: 14px;
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    background: #fff;
}
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.product-card .img-wrap {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f5f6f8 0%, #e9ebf0 100%);
    border-radius: 14px 14px 0 0;
}
.product-card .body {
    padding: .55rem .7rem .7rem;
    gap: .15rem;
}
.product-card .vendor-name { font-size: .7rem; color: var(--ink-muted); margin: 0; }
.product-card .name {
    font-size: .88rem; font-weight: 600; color: var(--ink);
    line-height: 1.25; margin: .1rem 0 .25rem;
    -webkit-line-clamp: 2;
}
.product-card .price-row { gap: .4rem; align-items: baseline; margin-top: .15rem; }
.product-card .price {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.2px;
}
.product-card .compare { font-size: .78rem; color: #9aa1ad; }
.product-card .rating {
    font-size: .72rem; margin: .15rem 0 0;
    display: flex; align-items: center; gap: .25rem;
}
.product-card .rating .star { font-size: .8rem; }

/* Persistent wishlist heart (always visible, top-right) — TikTok-style */
.product-card .card-actions {
    opacity: 1;
    transform: none;
    top: .5rem; right: .5rem;
    flex-direction: column;
    gap: .3rem;
    pointer-events: auto;
    z-index: 5;
}
.product-card .card-actions .card-action-btn {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.product-card .card-actions .card-action-btn[title="Quick view"] { display: none; }

/* Bigger, bolder discount badge — TikTok Shop signature */
.product-card .discount-badge {
    top: .5rem; left: .5rem;
    background: var(--brand);
    font-size: .72rem; font-weight: 800;
    padding: 3px 9px;
    box-shadow: 0 2px 6px rgba(255,90,0,.35);
}

/* Video indicator pill — smaller, bottom-left to match TikTok play pill */
.product-card .video-indicator {
    bottom: .5rem; left: .5rem; right: auto;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    font-size: .65rem;
    padding: 2px 7px;
}

/* Mobile: full-width single-column TikTok-style cards */
@media (max-width: 768px) {
    .product-card .img-wrap { aspect-ratio: 4 / 3; }
    .product-card .body { padding: .75rem .9rem .95rem; }
    .product-card .name { font-size: 1rem; }
    .product-card .price { font-size: 1.15rem; }
    .product-card .vendor-name { font-size: .78rem; }
    .product-card .card-actions .card-action-btn { width: 34px; height: 34px; }
    .product-card .discount-badge { font-size: .78rem; padding: 4px 10px; }
}

/* ─── PDP Ken Burns "video" — CSS animation on product image ──────── */
.pdp-video-link .pdp-kb-image { transition: transform .3s; transform-origin: center; }
.pdp-video-link.playing .pdp-kb-image { animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.pdp-video-link[data-variant="kb-zoomin"].playing .pdp-kb-image    { animation-name: kbZoomIn; }
.pdp-video-link[data-variant="kb-zoomout"].playing .pdp-kb-image   { animation-name: kbZoomOut; }
.pdp-video-link[data-variant="kb-panright"].playing .pdp-kb-image  { animation-name: kbPanRight; }
.pdp-video-link[data-variant="kb-panleft"].playing .pdp-kb-image   { animation-name: kbPanLeft; }

@keyframes kbZoomIn    { 0% { transform: scale(1.0)  translate(0, 0); }     100% { transform: scale(1.25) translate(2%, -2%); } }
@keyframes kbZoomOut   { 0% { transform: scale(1.25) translate(2%, 2%); }   100% { transform: scale(1.0)  translate(0, 0); } }
@keyframes kbPanRight  { 0% { transform: scale(1.15) translate(-5%, 0); }   100% { transform: scale(1.15) translate(5%, 0); } }
@keyframes kbPanLeft   { 0% { transform: scale(1.15) translate(5%, 0); }    100% { transform: scale(1.15) translate(-5%, 0); } }

.pdp-video-link.playing .pdp-tagline { animation: taglineFadeUp .6s ease-out forwards; }
@keyframes taglineFadeUp { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }

to { transform: scale(1.15) translate(-4%,0); } }

/* removed */

/* card actions replaced below */

/* ─── Product card actions ─────────────────────────────────────── */
.card-cart-fab {
    position: absolute;
    bottom: .55rem; right: .55rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(255,90,0,.35);
    cursor: pointer;
    z-index: 4;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.card-cart-fab:hover { background: var(--brand-dark); transform: scale(1.1); box-shadow: 0 6px 16px rgba(255,90,0,.5); }
.card-cart-fab:active { transform: scale(.96); }

.card-actions-row {
    display: flex;
    gap: .4rem;
    margin-top: .7rem;
}
.card-action-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .5rem .55rem;
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: background .15s, transform .1s, color .15s, border-color .15s;
    line-height: 1;
    white-space: nowrap;
}
.card-action-cart {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.card-action-cart:hover { background: var(--brand-soft); }
.card-action-buy {
    background: var(--brand);
    color: #fff;
}
.card-action-buy:hover { background: var(--brand-dark); color: #fff; }
.card-action-buy svg { transition: transform .15s; }
.card-action-buy:hover svg { transform: translateX(2px); }
.card-action-pill:active { transform: scale(.97); }

@media (max-width: 768px) {
    .card-cart-fab { width: 40px; height: 40px; bottom: .65rem; right: .65rem; }
    .card-action-pill { font-size: .82rem; padding: .6rem .55rem; }
}
