* { box-sizing: border-box; margin: 0; padding: 0; }
/* Marketplace palette — used across the home/products/trust pages only.
   The per-product landing page templates (.lp-*) and checkout forms keep
   the original blue brand color — they're a separate flow, not part of
   this marketplace redesign.
   Two accents, deliberately not one: --mp-accent (orange) drives every
   action — buttons, active nav/pills — while --mp-price (red) is reserved
   for money: prices and discount badges. Real AliExpress splits these the
   same way, and it reads as a designed hierarchy instead of "everything's
   the same color". --mp-ink is a near-black used for headings/product
   names so text carries the "deep charcoal" contrast on its own, without
   leaning on the accent colors to do that work. */
:root {
    --mp-accent: #FF6A00; --mp-accent-dark: #e35f00; --mp-accent-soft: #fff4ec;
    --mp-price: #E11D2E; --mp-price-dark: #c8172a;
    --mp-ink: #14151a;
}
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f8fafc; color: var(--mp-ink); line-height: 1.6; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 0; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-header-sell-link {
    font-size: 13px; font-weight: 800; color: var(--mp-ink); text-decoration: none;
    border: 1.5px solid #e2e8f0; border-radius: 999px; padding: 8px 18px; transition: border-color .15s, color .15s;
}
.site-header-sell-link:hover { border-color: var(--mp-accent); color: var(--mp-accent); }
.logo { font-size: 20px; font-weight: 900; color: #1877f2; text-decoration: none; }

/* ── Brand lockup (icon + wordmark + tagline) — global header, every public page ── */
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-logo-name { font-size: 19px; font-weight: 900; color: var(--mp-ink); letter-spacing: -.2px; }
.brand-logo-tagline { font-size: 11px; font-weight: 500; color: #94a3b8; }

@media (max-width: 480px) {
    .brand-logo-icon { width: 30px; height: 30px; }
    .brand-logo-name { font-size: 16px; }
    .brand-logo-tagline { font-size: 9.5px; }
}

.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }

.marketplace-search { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.marketplace-search input {
    flex: 1; border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 11px 16px;
    font-family: inherit; font-size: 14px;
}
.marketplace-search input:focus { outline: none; border-color: var(--mp-accent); }
.marketplace-search button {
    background: var(--mp-accent); color: #fff; border: none; border-radius: 9px;
    padding: 11px 22px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 12px rgba(255,106,0,.28); transition: background .15s, box-shadow .15s;
}
.marketplace-search button:hover { background: var(--mp-accent-dark); box-shadow: 0 6px 16px rgba(255,106,0,.38); }

.marketplace-categories { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.category-pill {
    display: inline-block; background: #fff; border: 1.5px solid #e2e8f0; color: #334155;
    text-decoration: none; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.category-pill:hover { border-color: #1877f2; color: #1877f2; }
.category-pill.active { background: #1877f2; border-color: #1877f2; color: #fff; }

.page-header { padding: 32px 0 8px; }
.page-header h1 { font-size: 24px; font-weight: 900; }
.section-title { font-size: 18px; font-weight: 900; letter-spacing: -.2px; color: var(--mp-ink); padding: 24px 0 0; }

.store-header { padding: 32px 0 8px; display: flex; align-items: center; gap: 14px; }
.store-header h1 { font-size: 24px; font-weight: 900; }
.store-logo { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }

/* ── Store > Templates: list layout alternative to the default product-grid ── */
.product-list { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; }
.product-list-row {
    display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 12px;
    padding: 12px 16px; text-decoration: none; color: inherit; box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.product-list-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.product-list-img img { width: 100%; height: 100%; object-fit: cover; }
.product-list-name { flex: 1; font-weight: 700; font-size: 14px; }
.product-list-price { font-weight: 900; }

.products-section { padding-bottom: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 24px 0; }
/* .product-card is a plain div (not the link) so the store-name link below
   can be its own separate <a>, sibling to .product-card-link — nesting an
   <a> inside another <a> is invalid HTML and browsers handle it inconsistently. */
.product-card {
    background: #fafafa; border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05);
    transition: transform .18s, box-shadow .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,21,26,.14); }
.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-card-img { aspect-ratio: 1; background: #f1f5f9; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-body { padding: 14px 14px 8px; }
.product-card-name { font-weight: 800; font-size: 14px; letter-spacing: -.1px; margin-bottom: 4px; color: var(--mp-ink); }
.product-card-price, .product-card-price.on-sale { color: var(--mp-price); font-weight: 900; font-size: 16px; letter-spacing: -.2px; }
.product-card-store {
    display: block; text-decoration: none; padding: 0 14px 4px;
    font-size: 11px; font-weight: 700; color: #94a3b8;
}
.product-card-store:hover { color: var(--mp-accent); text-decoration: underline; }

/* ── Marketplace portal card enhancements (AliExpress-style grid) ──────── */
.marketplace-hero { padding: 40px 0 8px; text-align: center; }
.marketplace-hero h1 { font-size: 29px; font-weight: 900; letter-spacing: -.4px; color: var(--mp-ink); }
.marketplace-hero-sub { color: #64748b; margin-top: 4px; font-size: 14px; }

.product-card-media { position: relative; }
.product-badge {
    position: absolute; top: 8px; z-index: 2; padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 800; color: #fff;
}
.product-badge-discount { left: 8px; background: var(--mp-price); }
.product-badge-outofstock { right: 8px; background: #64748b; }
.product-badge-lowstock { right: 8px; background: #f59e0b; }
/* Bottom corner, not top — top-left/top-right are already used by the
   discount and stock badges above, which can appear at the same time. */
.product-badge-wholesale { top: auto; bottom: 8px; right: 8px; background: #7c3aed; }
.product-badge-rental { top: auto; bottom: 8px; right: 8px; background: #0891b2; }

.product-quickview-btn {
    position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 12px);
    display: flex; align-items: center; gap: 6px; background: rgba(20,25,40,.82); color: #fff;
    border: none; border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700;
    font-family: inherit; cursor: pointer; opacity: 0; transition: opacity .15s, transform .15s; z-index: 2;
}
.product-card:hover .product-quickview-btn { opacity: 1; transform: translate(-50%, 0); }
.product-quickview-btn:hover { background: var(--mp-accent); }

.product-card-name-link { text-decoration: none; color: inherit; display: block; padding: 14px 14px 0; }
.product-card-name-link .product-card-name { padding: 0; }
.product-card-body { padding: 0 0 8px; }

.quickview-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.quickview-rating .rating-value { font-weight: 800; color: #334155; }
.quickview-rating .rating-count { color: #94a3b8; }

.product-card-price-row { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 0; }
.product-card-compare { color: #94a3b8; text-decoration: line-through; font-size: 12px; font-weight: 600; }
.product-card-meta { display: flex; align-items: center; gap: 5px; padding: 5px 14px 0; font-size: 11.5px; color: #94a3b8; }
.product-card-meta-rating { color: #f59e0b; font-weight: 800; }
.product-card-meta-dot { color: #cbd5e1; }

.product-buy-btn {
    display: block; margin: 10px 14px 14px; text-align: center; background: var(--mp-accent); color: #fff;
    text-decoration: none; font-weight: 800; font-size: 13px; padding: 10px 0; border-radius: 9px;
    box-shadow: 0 4px 12px rgba(255,106,0,.28); transition: background .15s, box-shadow .15s, transform .15s;
}
.product-buy-btn:hover { background: var(--mp-accent-dark); box-shadow: 0 6px 16px rgba(255,106,0,.38); transform: translateY(-1px); }
.product-buy-btn.disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; }

.marketplace-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 0 32px; }
.marketplace-pagination .page-link {
    background: #fff; border: 1.5px solid #e2e8f0; color: var(--mp-accent); text-decoration: none;
    padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 13px;
}
.marketplace-pagination .page-link:hover { border-color: var(--mp-accent); }
.marketplace-pagination .page-current { color: #64748b; font-size: 13px; font-weight: 600; }

/* ── Quick View modal ────────────────────────────────────────────────── */
/* display is only ever set via .is-open, never unconditionally on the base
   class: an author rule that sets `display` on this element would always
   beat the browser's own `[hidden] { display: none }` rule (author styles
   win over the user-agent stylesheet regardless of specificity), which
   would make the `hidden` attribute a no-op and leave the overlay stuck
   permanently visible — this is exactly that bug, fixed. */
.quickview-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100;
    align-items: center; justify-content: center; padding: 20px;
}
.quickview-overlay.is-open { display: flex; }
.quickview-modal {
    position: relative; background: #fff; border-radius: 22px; max-width: 720px; width: 100%;
    max-height: 90vh; overflow-y: auto; display: flex; gap: 0; flex-wrap: wrap;
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
/* Subtle grey panel behind the image, pure white on the info side — the
   contrast is what makes the product photo "pop" rather than blend into
   the modal's own background. */
.quickview-img { flex: 1 1 280px; background: #f3f4f6; aspect-ratio: 1; min-width: 260px; }
.quickview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quickview-info { flex: 1 1 320px; padding: 30px 28px; min-width: 260px; background: #fff; }
.quickview-info h3 { font-size: 23px; font-weight: 900; letter-spacing: -.3px; line-height: 1.3; margin-bottom: 10px; color: var(--mp-ink); }
.quickview-rating { margin-bottom: 10px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.quickview-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.quickview-price { font-size: 28px; font-weight: 900; color: var(--mp-price); letter-spacing: -.4px; }
.quickview-compare { color: #94a3b8; text-decoration: line-through; font-size: 14px; }
.quickview-desc { color: #475569; font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.quickview-store-link { display: block; font-size: 12px; color: #64748b; text-decoration: none; margin-bottom: 18px; font-weight: 700; }
.quickview-store-link:hover { color: var(--mp-accent); text-decoration: underline; }
/* High-contrast orange-to-red CTA, deliberately distinct from the site's
   blue brand buttons elsewhere — this is the one button in the whole flow
   meant to demand attention the way AliExpress's own order button does. */
.quickview-buy {
    margin: 0; background: linear-gradient(135deg, var(--mp-accent), var(--mp-price)); font-size: 15px; padding: 13px 0;
    box-shadow: 0 8px 20px rgba(225,29,46,.3); border: none;
}
.quickview-buy:hover { background: linear-gradient(135deg, var(--mp-accent-dark), var(--mp-price-dark)); box-shadow: 0 10px 24px rgba(225,29,46,.4); }
.quickview-close {
    position: absolute; top: 14px; left: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 999px;
    background: #fff; border: 1.5px solid #e2e8f0; font-size: 20px; line-height: 1; cursor: pointer; color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.quickview-close:hover { color: var(--mp-accent); border-color: var(--mp-accent); }

.product-detail-store { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 4px; }
.product-detail-store a { color: var(--mp-accent); text-decoration: none; font-weight: 700; }
.product-detail-store a:hover { text-decoration: underline; }
.product-detail-price { font-size: 26px; font-weight: 900; color: var(--mp-price); letter-spacing: -.3px; }
.product-detail-rating { font-size: 14px; color: #64748b; font-weight: 700; margin-bottom: 6px; }

/* ── Landing page: Hero (mobile-first — single column by default, two
   columns from tablet width up since that's where a side-by-side hero
   actually has room to breathe) ────────────────────────────────────────── */
.lp-hero { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px 0; }
.lp-hero-media {
    aspect-ratio: 1; background: #f3f4f6; border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05);
}
.lp-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s ease; }
.lp-hero-headline { font-size: 24px; font-weight: 900; letter-spacing: -.3px; line-height: 1.3; margin: 6px 0 4px; color: var(--mp-ink); }
.lp-hero-desc { font-size: 14px; color: #475569; margin: 14px 0; }
.lp-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.lp-price-compare { font-size: 15px; color: #94a3b8; text-decoration: line-through; }
.lp-wholesale-tiers { margin: 10px 0; }
.lp-tier-table { width: 100%; max-width: 320px; border-collapse: collapse; font-size: 14px; }
.lp-tier-table th, .lp-tier-table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid #f1f5f9; }
.lp-tier-table th { color: #64748b; font-weight: 700; font-size: 12px; }
.lp-tier-table td:last-child, .lp-tier-table th:last-child { font-weight: 800; color: var(--mp-price); }
@media (min-width: 701px) {
    .lp-hero { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; }
    .lp-hero-headline { font-size: 30px; }
}

/* ── Urgency: real stock-based badge + real merchant-set countdown ──────── */
.lp-urgency { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lp-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.lp-badge-urgent { background: #fee2e2; color: var(--mp-price); }
.lp-countdown { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--mp-ink); color: #fff; }

/* ── Variant selectors (color/size) — color swap the hero image, size is
   informational only, matching product_variants' plain options-list model */
.lp-variant-group { margin: 12px 0; }
.lp-variant-label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.lp-variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-variant-pill { padding: 7px 16px; border-radius: 999px; border: 2px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.lp-variant-pill:hover { border-color: #94a3b8; }
.lp-variant-pill.active { border-color: var(--mp-accent); background: var(--mp-accent-soft); color: var(--mp-accent); }

/* Color swatches that have a merchant-uploaded photo render as clickable
   thumbnails instead of a text pill — the actual "click to switch" visual. */
.lp-variant-thumb {
    width: 52px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden;
    border: 2px solid #e2e8f0; background: #fff; cursor: pointer;
    transition: border-color .15s, transform .1s;
}
.lp-variant-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-variant-thumb:hover { border-color: #94a3b8; }
.lp-variant-thumb.active { border-color: var(--mp-accent); }
.lp-variant-thumb:active { transform: scale(.95); }

/* ── CTA button (hero + sticky mobile bar share this look) ──────────────── */
.lp-cta-btn {
    background: var(--mp-accent); color: #fff; border: none; border-radius: 11px;
    padding: 15px 24px; font-size: 16px; font-weight: 900; cursor: pointer;
    font-family: inherit; width: 100%; margin-top: 8px;
    box-shadow: 0 6px 16px rgba(255,106,0,.3); transition: background .15s, box-shadow .15s, transform .15s;
}
.lp-cta-btn:hover { background: var(--mp-accent-dark); box-shadow: 0 8px 20px rgba(255,106,0,.4); transform: translateY(-1px); }
@media (min-width: 701px) { .lp-cta-btn { width: auto; } }

/* ── Trust Bar — real per-store guarantee text, see products/show.php ───── */
.lp-trust-bar {
    display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
    background: #fff; border-radius: 14px; padding: 16px 20px; margin: 16px 0;
    box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05);
}
.lp-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #334155; padding: 4px 6px; max-width: 260px; }
.lp-trust-icon { font-size: 17px; flex-shrink: 0; }

/* ── Product Details: tabs ────────────────────────────────────────────────── */
.lp-tabs-section { padding: 20px 0; border-top: 1px solid #e2e8f0; }
.lp-tabs-nav { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.lp-tab-btn {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 999px;
    padding: 9px 18px; font-size: 13px; font-weight: 800; color: #64748b;
    cursor: pointer; font-family: inherit;
}
.lp-tab-btn.active { background: var(--mp-accent); border-color: var(--mp-accent); color: #fff; }
.lp-tab-panel { display: none; background: #fff; border-radius: 14px; padding: 20px; font-size: 14px; color: #334155; line-height: 1.8; box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05); }
.lp-tab-panel.active { display: block; }

/* ── Sticky mobile "Order Now" bar — hidden on desktop; the hero CTA and
   the real checkout form are both already visible/reachable there. ─────── */
.lp-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    padding: 10px 16px; align-items: center; gap: 12px;
}
.lp-sticky-price { font-size: 16px; font-weight: 900; color: var(--mp-price); white-space: nowrap; }
.lp-sticky-cta .lp-cta-btn { margin-top: 0; padding: 12px 18px; font-size: 14px; }
@media (max-width: 700px) {
    .lp-sticky-cta { display: flex; }
    /* Room at the bottom so the sticky bar never covers the page footer/content. */
    body { padding-bottom: 68px; }
}

/* ── Up Sells + Reviews (public product page) ────────────────────────────── */
.upsells-section, .reviews-section { padding: 24px 0; border-top: 1px solid #e2e8f0; }
.upsells-section h2, .reviews-section h2 { font-size: 18px; font-weight: 900; color: var(--mp-ink); margin-bottom: 16px; }
.review-thanks { background: #dcfce7; color: #15803d; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.review-item { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05); }
.review-avatar {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 15px;
}
.review-body { flex: 1; min-width: 0; }
.review-stars { font-size: 13px; margin-bottom: 4px; }
.review-author { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.review-comment { font-size: 13px; color: #475569; }
.review-form { background: #fff; border-radius: 14px; padding: 20px; margin-top: 16px; max-width: 420px; box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05); }
.review-form h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.review-form input, .review-form select, .review-form textarea {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 9px 12px;
    font-family: inherit; font-size: 14px; margin-bottom: 10px;
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: none; border-color: var(--mp-accent); }
.review-form button {
    background: var(--mp-accent); color: #fff; border: none; padding: 10px 18px;
    border-radius: 8px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.review-form button:hover { background: var(--mp-accent-dark); }

.checkout-form { background: #fff; border-radius: 16px; padding: 22px; margin-top: 16px; max-width: 420px; box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 8px 22px rgba(20,21,26,.07); }
.checkout-form h3 { font-size: 16px; font-weight: 900; color: var(--mp-ink); margin-bottom: 12px; }
.checkout-form input, .checkout-form select {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 10px 12px;
    font-family: inherit; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; transition: border-color .15s;
    background: #fff; color: #141519;
}
.checkout-form input:focus, .checkout-form select:focus { outline: none; border-color: var(--mp-accent); }
.checkout-form button {
    width: 100%; background: var(--mp-accent); color: #fff; border: none; padding: 13px 18px;
    border-radius: 9px; font-weight: 800; font-size: 15px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(255,106,0,.3); transition: background .15s, box-shadow .15s;
}
.checkout-form button:hover { background: var(--mp-accent-dark); box-shadow: 0 8px 20px rgba(255,106,0,.4); }
.checkout-trust-line { font-size: 12px; color: #64748b; text-align: center; margin-bottom: 10px; }
.checkout-thanks { background: #dcfce7; color: #15803d; border-radius: 12px; padding: 16px 20px; margin-top: 16px; font-weight: 700; max-width: 420px; }

/* ── Rental Products (Phase 1) — booking form on products/show.php ──────── */
.rental-date-label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin: 4px 0 4px; }
.rental-price-summary { background: #f8fafc; border-radius: 10px; padding: 10px 14px; margin: 6px 0 14px; font-size: 13px; color: #334155; }
.rental-price-summary div { padding: 2px 0; }
.rental-price-total-row { margin-top: 6px; padding-top: 8px !important; border-top: 1px dashed #cbd5e1; font-size: 14.5px; font-weight: 700; }
.rental-terms-details { font-size: 12.5px; color: #475569; margin-bottom: 10px; }
.rental-terms-details summary { cursor: pointer; font-weight: 700; color: var(--mp-accent); }
.rental-terms-details p { margin-top: 8px; line-height: 1.7; }
.rental-terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #334155; margin-bottom: 14px; }
.rental-terms-check input { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.rental-readonly-field { background: #f1f5f9; color: #475569; font-weight: 700; cursor: default; }
.rental-time-row { display: flex; gap: 10px; margin-bottom: 10px; }
.rental-time-row > div { flex: 1 1 0; min-width: 0; }
.rental-time-row input { margin-bottom: 0; }
.rental-time-sublabel { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.rental-notes-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 12.5px; color: #78350f; line-height: 1.7; }
.lp-checkout-section { padding: 24px 0 40px; border-top: 1px solid #e2e8f0; }

/* ── Availability & Conflict Prevention — live date-range check ──────────── */
.rental-availability-msg { display: none; border-radius: 10px; padding: 10px 14px; margin: 4px 0 14px; font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.rental-availability-msg.is-checking { display: block; background: #f1f5f9; color: #64748b; }
.rental-availability-msg.is-available { display: block; background: #dcfce7; color: #15803d; }
.rental-availability-msg.is-unavailable { display: block; background: #fee2e2; color: #b91c1c; }
.rental-alt-color-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rental-alt-color-pill { background: #fff; border: 1.5px solid #b91c1c; color: #b91c1c; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.rental-alt-color-pill:hover { background: #b91c1c; color: #fff; }
.rental-alt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rental-alt-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 10px; text-decoration: none; color: #1e293b; font-weight: 700; }
.rental-alt-card:hover { border-color: var(--mp-accent); }
.rental-alt-card img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.rental-alt-card-info { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.rental-alt-card-price { color: #64748b; font-weight: 600; }

/* ── Order Success — rental booking confirmation modal (products/show.php) ── */
.order-success-overlay {
    position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.order-success-card {
    background: #fff; border-radius: 22px; max-width: 420px; width: 100%; padding: 40px 32px 34px;
    text-align: center; box-shadow: 0 24px 64px rgba(15,23,42,.28);
    animation: darnaSuccessPop .45s cubic-bezier(.22,1,.36,1);
}
.order-success-check { margin: 0 auto 20px; width: 76px; height: 76px; }
.order-success-check svg { width: 100%; height: 100%; }
.order-success-check-circle {
    stroke: #16a34a; stroke-dasharray: 226; stroke-dashoffset: 226;
    animation: darnaDrawCircle .5s ease-out .1s forwards;
}
.order-success-check-mark {
    stroke: #16a34a; stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: darnaDrawCheck .35s ease-out .55s forwards;
}
.order-success-title { font-size: 21px; font-weight: 800; color: #0f172a; line-height: 1.4; margin: 0 0 12px; }
.order-success-title span { display: block; font-size: 14px; font-weight: 600; color: #16a34a; margin-top: 4px; font-style: italic; }
.order-success-sub { font-size: 13.5px; color: #64748b; line-height: 1.7; margin: 0 0 20px; }
.order-success-sub span { display: block; font-size: 12.5px; color: #94a3b8; font-style: italic; margin-top: 2px; }
.order-success-ref {
    display: inline-block; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px;
    padding: 8px 18px; font-size: 12.5px; font-weight: 700; color: #475569; margin-bottom: 24px;
    direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; cursor: default;
}
.order-success-ref strong { color: var(--mp-accent); }
.order-success-btn {
    display: block; background: var(--mp-accent); color: #fff; text-decoration: none; font-weight: 800;
    font-size: 14.5px; border-radius: 12px; padding: 14px 20px; transition: background .15s, box-shadow .15s;
}
.order-success-btn span { display: block; font-size: 12px; font-weight: 600; opacity: .9; margin-top: 2px; }
.order-success-btn:hover { background: var(--mp-accent-dark); box-shadow: 0 8px 20px rgba(255,106,0,.35); }
/* Secondary actions (Track/Voucher) — outline/ghost so they read as
   optional follow-ups, never competing with the primary "Back to Shop"
   button above them. */
.order-success-secondary-actions { display: flex; gap: 8px; margin-top: 10px; }
.order-success-btn-ghost {
    flex: 1; display: block; background: transparent; color: #475569; text-decoration: none;
    font-weight: 700; font-size: 12.5px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 11px 10px; transition: border-color .15s, color .15s, background .15s;
}
.order-success-btn-ghost:hover { border-color: var(--mp-accent); color: var(--mp-accent-dark); background: var(--mp-accent-soft); }

@keyframes darnaSuccessPop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes darnaDrawCircle { to { stroke-dashoffset: 0; } }
@keyframes darnaDrawCheck { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .order-success-card { animation: none; }
    .order-success-check-circle, .order-success-check-mark { animation: none; stroke-dashoffset: 0; }
}

/* ── Track My Booking — public status page (RentalTrackingController) ───── */
.rental-track-wrap { display: flex; justify-content: center; padding: 48px 16px; }
.rental-track-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; max-width: 420px; width: 100%;
    padding: 32px 28px; text-align: center; box-shadow: 0 8px 28px rgba(15,23,42,.08);
}
.rental-track-ref { font-size: 22px; font-weight: 900; color: #0f172a; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.rental-track-status { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; margin-bottom: 22px; }
.rental-track-status-pending { background: #fef3c7; color: #b45309; }
.rental-track-status-confirmed { background: #dcfce7; color: #15803d; }
.rental-track-status-completed { background: #dbeafe; color: #1d4ed8; }
.rental-track-status-cancelled { background: #fee2e2; color: #b91c1c; }
.rental-track-rows { text-align: right; border-top: 1px solid #f1f5f9; padding-top: 18px; margin-bottom: 22px; }
.rental-track-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.rental-track-rows span { color: #94a3b8; }
.rental-track-rows strong { color: #1e293b; font-weight: 700; }
.rental-track-voucher-btn {
    display: block; background: var(--mp-accent-soft); color: var(--mp-accent-dark); text-decoration: none;
    font-weight: 800; font-size: 14px; border-radius: 12px; padding: 13px 18px; margin-bottom: 12px;
    border: 1.5px solid transparent; transition: border-color .15s;
}
.rental-track-voucher-btn:hover { border-color: var(--mp-accent); }
.rental-track-back-link { display: block; color: #64748b; font-size: 13px; font-weight: 600; text-decoration: none; }
.rental-track-back-link:hover { color: var(--mp-accent); text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.site-footer { padding: 24px 0; text-align: center; color: #94a3b8; font-size: 13px; margin-top: 40px; }

/* ── Top Navigation/Filter Bar (Retail / Wholesale / Rental) ─────────────
   A bolder underline-tab treatment, deliberately distinct from the
   pill/card styles below it — this is the page's top-level menu bar,
   departments are a narrower filter layered underneath it. */
.type-tab-bar { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid #e2e8f0; margin: 4px 0 22px; }
.type-tab-bar::-webkit-scrollbar { display: none; }
.type-tab {
    flex: 0 0 auto; padding: 12px 20px; font-size: 14.5px; font-weight: 800; color: #64748b;
    text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.type-tab:hover { color: var(--mp-accent); }
.type-tab.active { color: var(--mp-ink); border-color: var(--mp-accent); }

/* ── Department Cards (primary, top-of-page hierarchy entry point) ──────
   "All Products" + one card per top-level group (Footwear, Apparel) or
   standalone department (Home Appliances). The finer sub-department pill
   row (.dept-pill-bar below) only appears once one of these is active. */
.department-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; padding: 4px 0 22px; }
.department-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
    background: #fff; border-radius: 16px; padding: 20px 12px; text-align: center; color: var(--mp-ink);
    box-shadow: 0 1px 3px rgba(20,21,26,.04), 0 6px 16px rgba(20,21,26,.05);
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.department-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,21,26,.1); }
.department-card.active { background: var(--mp-accent); color: #fff; box-shadow: 0 10px 26px rgba(255,106,0,.32); }
.department-card-icon {
    width: 52px; height: 52px; border-radius: 50%; background: var(--mp-accent-soft); color: var(--mp-accent);
    display: flex; align-items: center; justify-content: center; transition: background .18s, color .18s;
}
.department-card-icon svg { width: 26px; height: 26px; }
.department-card.active .department-card-icon { background: rgba(255,255,255,.22); color: #fff; }
.department-card-label { font-size: 13.5px; font-weight: 800; }
.department-card-count { font-size: 11px; color: #94a3b8; }
.department-card.active .department-card-count { color: rgba(255,255,255,.85); }

@media (max-width: 780px) {
    .department-cards { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }
    .department-card { padding: 16px 8px; }
    .department-card-icon { width: 44px; height: 44px; }
    .department-card-icon svg { width: 22px; height: 22px; }
    /* Rental category cards carry a longer label + a separate "تصفح" button
       on top of icon/label/count, so they run taller than a plain retail
       department-card at the same narrow auto-fit width — a fixed 2-column
       grid gives each card more horizontal room, which cuts down label
       wrapping (and therefore card height) instead of squeezing into 3. */
    .rental-categories .department-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Marketplace department pill bar (horizontal, AliExpress-style) ─────
   Replaces the old right-side sidebar: same real department data/counts,
   just laid out as a scrollable row so the grid below gets the full page
   width instead of sharing it with a fixed side column. */
.dept-pill-bar { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 20px; scrollbar-width: none; }
.dept-pill-bar::-webkit-scrollbar { display: none; }
.dept-pill {
    flex: 0 0 auto; display: flex; align-items: center; gap: 7px; text-decoration: none;
    color: #3a3d46; font-size: 12px; font-weight: 700; letter-spacing: -.1px; white-space: nowrap;
    background: #fff; border-radius: 999px; padding: 7px 15px 7px 7px;
    box-shadow: 0 1px 2px rgba(20,21,26,.04), 0 3px 10px rgba(20,21,26,.05);
    transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.dept-pill:hover {
    background: var(--mp-accent-soft); color: var(--mp-accent);
    box-shadow: 0 4px 14px rgba(255,106,0,.16); transform: translateY(-1px);
}
.dept-pill:hover .dept-pill-icon { background: #ffe4d1; color: var(--mp-accent); }
.dept-pill.active { background: var(--mp-accent); color: #fff; box-shadow: 0 4px 14px rgba(255,106,0,.3); }
.dept-pill.active .dept-pill-icon { background: rgba(255,255,255,.25); color: #fff; }
.dept-pill-icon {
    flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center; color: #64748b; transition: background .12s, color .12s;
}
.dept-icon { width: 14px; height: 14px; }
.dept-pill-count { font-size: 10.5px; color: #94a3b8; }
.dept-pill.active .dept-pill-count { color: rgba(255,255,255,.85); }

@media (max-width: 780px) {
    .dept-pill-bar { margin: 0 -20px; padding: 6px 20px 20px; }
}

/* ── Marketplace app-style header (search + top department nav) ────────── */
.mp-header {
    background: #fff; border-bottom: 1px solid #e2e8f0; margin: 0 -20px; padding: 12px 20px 0;
    position: sticky; top: 0; z-index: 80;
}
.mp-search {
    display: flex; align-items: center; gap: 8px; background: #f1f5f9; border-radius: 999px;
    padding: 5px 16px 5px 5px; border: 1.5px solid transparent; transition: border-color .12s;
}
.mp-search:focus-within { border-color: var(--mp-accent); background: #fff; }
.mp-search-btn {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--mp-accent); color: #fff;
    border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 3px 10px rgba(255,106,0,.3); transition: background .15s, box-shadow .15s;
}
.mp-search-btn svg { width: 16px; height: 16px; }
.mp-search-btn:hover { background: var(--mp-accent-dark); box-shadow: 0 4px 14px rgba(255,106,0,.4); }
.mp-search input {
    flex: 1; border: none; background: none; padding: 9px 4px; font-family: inherit; font-size: 14px; outline: none;
}

.mp-top-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.mp-top-nav::-webkit-scrollbar { display: none; }
.mp-top-pill {
    flex: 0 0 auto; text-decoration: none; color: #3a3d46; font-size: 12px; font-weight: 700; letter-spacing: -.1px;
    padding: 7px 15px; border-radius: 999px; background: #f1f5f9; white-space: nowrap;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.mp-top-pill:hover { background: var(--mp-accent-soft); color: var(--mp-accent); transform: translateY(-1px); }
.mp-top-pill.active { background: var(--mp-accent); color: #fff; box-shadow: 0 4px 14px rgba(255,106,0,.3); }

/* ── Smart Discovery type toggle (Shop / Wholesale / Rental) — a bolder,
     bordered pill row sitting above the department pills, so the two never
     get visually confused despite both being horizontal pill rows. ──────── */
.mp-type-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 0; scrollbar-width: none; }
.mp-type-nav::-webkit-scrollbar { display: none; }
.mp-type-pill {
    flex: 0 0 auto; text-decoration: none; color: var(--mp-ink); font-size: 13px; font-weight: 800;
    padding: 8px 16px; border-radius: 10px; background: #fff; white-space: nowrap;
    border: 1.5px solid #e2e8f0; transition: border-color .15s, color .15s, background .15s;
}
.mp-type-pill:hover { border-color: var(--mp-accent); color: var(--mp-accent); }
.mp-type-pill.active { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }

/* ── Top Deals banner (real discounts only, see Product::marketplaceWhere 'deals_only') ── */
.deals-banner {
    margin: 16px -20px 0; padding: 18px 20px 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.deals-banner-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.deals-banner-title h2 { font-size: 17px; font-weight: 900; color: #9a3412; }
.deals-banner-sub { font-size: 12px; color: #c2410c; }
.deals-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.deals-strip::-webkit-scrollbar { display: none; }
.deals-strip-item { flex: 0 0 165px; }
.deals-strip-item .product-card { height: 100%; }

/* ── Fixed bottom nav (mobile-app style) ─────────────────────────────────── */
.bottom-nav-spacer { height: 66px; }
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff;
    border-top: 1px solid #e2e8f0; display: flex; padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(0,0,0,.05);
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px 8px; text-decoration: none; color: #94a3b8; font-size: 10.5px; font-weight: 700;
    position: relative;
}
.bottom-nav-item svg { width: 21px; height: 21px; }
.bottom-nav-item.active { color: var(--mp-accent); }
.bottom-nav-item.active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--mp-accent);
}

/* ── Trust page ──────────────────────────────────────────────────────────── */
.trust-hero { padding: 36px 0 8px; text-align: center; }
.trust-hero h1 { font-size: 24px; font-weight: 900; }
.trust-hero-sub { color: #64748b; margin-top: 6px; font-size: 14px; }
.trust-stats { display: flex; justify-content: center; gap: 40px; padding: 24px 0; }
.trust-stat { text-align: center; }
.trust-stat-value { font-size: 26px; font-weight: 900; color: var(--mp-accent); }
.trust-stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.trust-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 12px 0 32px; }
.trust-point { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.trust-point-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--mp-accent-soft); color: var(--mp-accent);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.trust-point-icon svg { width: 22px; height: 22px; }
.trust-point h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.trust-point p { font-size: 13px; color: #64748b; line-height: 1.7; }
.trust-cta { text-align: center; padding: 0 0 40px; }
.trust-cta .product-buy-btn { display: inline-block; margin: 0; padding: 12px 32px; }

.rental-categories { padding: 12px 0 40px; }

/* Card body reuses .department-card / .department-card-icon /
   .department-card-label verbatim (see the /products marketplace grid) so
   this is a pixel-exact match, not a lookalike copy. The only addition is
   the "تصفح" button, since .department-card is normally itself the link and
   has no room for a second click target — .department-card is a plain <div>
   here instead of an <a> for that reason, with .product-buy-btn as the
   actual link. No count is shown: these categories aren't backed by real
   product data yet, and this codebase never displays a fabricated number
   (see the sale-countdown / stock-urgency / trust-stat comments elsewhere). */
.department-card .product-buy-btn { width: 100%; margin: 4px 0 0; }

/* ── Community Standards ───────────────────────────────────────────────────
   Subtle slate tint (not the brand's orange/red accents, which are reserved
   for buying actions/prices) — enough to read as a serious, separate
   notice from the marketing content above it without looking alarming. */
.standards-section { background: #eef1f6; border-top: 1px solid #e2e8f0; padding: 28px 0; margin-top: 40px; }
.standards-section-inner { display: flex; gap: 16px; align-items: flex-start; max-width: 720px; margin: 0 auto; }
.standards-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
    color: var(--mp-ink);
}
.standards-icon svg { width: 20px; height: 20px; }
.standards-body h2 { font-size: 15px; font-weight: 800; color: var(--mp-ink); margin-bottom: 6px; }
.standards-body p { font-size: 12.5px; color: #64748b; line-height: 1.8; margin: 0; }
.standards-link { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--mp-accent); text-decoration: none; }
.standards-link:hover { text-decoration: underline; }

/* Full detail block on the dedicated /terms page — same tint, larger. */
.standards-section--page {
    background: #eef1f6; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 28px; margin: 20px 0 32px;
}
.standards-section--page .standards-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.standards-section--page .standards-icon { width: 44px; height: 44px; }
.standards-section--page .standards-icon svg { width: 22px; height: 22px; }
.standards-section--page h2 { font-size: 18px; font-weight: 900; color: var(--mp-ink); margin-bottom: 8px; }
.standards-intro { font-size: 13.5px; color: #475569; line-height: 1.8; margin: 0; }
.standards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.standards-list li {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 4px;
}
.standards-list li strong { font-size: 13.5px; font-weight: 800; color: var(--mp-ink); }
.standards-list li span { font-size: 13px; color: #64748b; line-height: 1.7; }
.standards-list li:last-child { border-color: #fecaca; background: #fff5f5; }
.standards-list li:last-child strong { color: var(--mp-price-dark); }

@media (max-width: 560px) {
    .standards-section-inner, .standards-section--page .standards-header { flex-direction: column; }
}

@media (max-width: 780px) {
    .mp-header { margin: 0 -20px; }
}

/* ── /sell — merchant-acquisition landing page, "Power Design" ────────────
   A deliberately distinct visual identity from the rest of the public
   marketplace: full dark mode (Tailwind's gray-950/900/800/400/100 scale,
   translated to hex below), blue accent instead of the marketplace's
   orange — this page is pitching a serious business tool to prospective
   merchants, not shopping. Scoped entirely to body.page-dark (see the
   $bodyClass hook in layouts/app.php and pages/sell.php) so nothing else
   on the public site is affected.
   Still no webfont: the "massive" headline comes from size/weight alone
   (same lever as before), so this stays exactly as fast to load as the
   rest of the public site — dark mode is a color change, not a new
   network request. */
body.page-dark { background: #030712; }
body.page-dark .site-header { background: #030712; border-bottom-color: #1f2937; }
body.page-dark .brand-logo-name { color: #f3f4f6; }
body.page-dark .brand-logo-tagline { color: #6b7280; }
body.page-dark .site-header-sell-link { color: #f3f4f6; border-color: #374151; }
body.page-dark .site-header-sell-link:hover { border-color: #3b82f6; color: #3b82f6; }
body.page-dark .standards-section { background: #111827; border-top-color: #1f2937; }
body.page-dark .standards-icon { background: #030712; border-color: #374151; color: #f3f4f6; }
body.page-dark .standards-body h2 { color: #f3f4f6; }
body.page-dark .standards-body p { color: #9ca3af; }
body.page-dark .standards-link { color: #3b82f6; }
body.page-dark .site-footer { background: #030712; color: #6b7280; }
body.page-dark .bottom-nav { background: #111827; border-top-color: #1f2937; box-shadow: 0 -4px 16px rgba(0,0,0,.3); }
body.page-dark .bottom-nav-item { color: #6b7280; }
body.page-dark .bottom-nav-item.active { color: #3b82f6; }
body.page-dark .bottom-nav-item.active::before { background: #3b82f6; }

.sell-hero { padding: 96px 20px 64px; text-align: center; }
.sell-hero-inner { max-width: 720px; margin: 0 auto; }
.sell-hero-eyebrow {
    display: inline-block; background: #111827; border: 1px solid #1f2937; color: #3b82f6;
    font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.sell-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1px; color: #f3f4f6; line-height: 1.15; text-align: center; }
.sell-hero-sub { font-size: 20px; color: #9ca3af; line-height: 1.7; margin: 20px auto 0; max-width: 560px; text-align: center; }
.sell-hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.sell-btn-primary {
    display: inline-block; background: #2563eb; color: #fff; text-decoration: none;
    font-weight: 800; font-size: 15px; padding: 15px 34px; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37,99,235,.35); transition: background .15s, box-shadow .15s, transform .1s;
}
.sell-btn-primary:hover { background: #1d4ed8; box-shadow: 0 10px 28px rgba(37,99,235,.45); transform: translateY(-1px); }
.sell-btn-secondary {
    display: inline-block; background: transparent; color: #f3f4f6; text-decoration: none; border: 1.5px solid #374151;
    font-weight: 700; font-size: 15px; padding: 13.5px 28px; border-radius: 12px; transition: border-color .15s, background .15s;
}
.sell-btn-secondary:hover { border-color: #4b5563; background: #111827; }

/* "Subtle, framed box" for the live store-count stat */
.sell-hero-proof {
    display: inline-block; margin-top: 30px; font-size: 13px; color: #9ca3af;
    background: #111827; border: 1px solid #1f2937; border-radius: 999px; padding: 8px 20px;
}
.sell-hero-proof strong { color: #f3f4f6; font-weight: 900; }

.sell-section-title { font-size: 30px; font-weight: 800; letter-spacing: -.4px; color: #f3f4f6; text-align: center; padding: 0 0 40px; }

.sell-features { padding: 24px 0 8px; }
.sell-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sell-feature {
    background: #111827; border: 1px solid #1f2937; border-radius: 24px; padding: 32px;
    transition: border-color .15s, transform .15s;
}
.sell-feature:hover { border-color: #3b82f6; transform: translateY(-2px); }
.sell-feature-icon { color: #3b82f6; margin-bottom: 20px; }
.sell-feature-icon svg { width: 40px; height: 40px; stroke-width: 1.4; }
.sell-feature h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sell-feature p { font-size: 16px; color: #9ca3af; line-height: 1.7; }

.sell-steps { padding: 96px 20px; }
.sell-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 960px; margin: 0 auto; }
.sell-step { text-align: center; }
.sell-step-num {
    width: 44px; height: 44px; border-radius: 50%; background: #1f2937; color: #3b82f6; border: 1px solid #374151;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px;
    margin: 0 auto 16px;
}
.sell-step h3 { font-size: 17px; font-weight: 800; color: #f3f4f6; margin-bottom: 8px; }
.sell-step p { font-size: 14px; color: #9ca3af; line-height: 1.7; max-width: 260px; margin: 0 auto; }

.sell-cta { text-align: center; padding: 96px 20px; }
.sell-cta h2 { font-size: 30px; font-weight: 800; color: #f3f4f6; }
.sell-cta p { font-size: 15px; color: #9ca3af; margin: 12px 0 28px; }

.sell-rental { padding: 24px 20px 96px; }
.sell-rental-inner {
    max-width: 620px; margin: 0 auto; text-align: center;
    background: #111827; border: 1px solid #1f2937; border-radius: 20px;
    padding: 56px 40px;
}
.sell-rental-icon {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; max-width: 56px; max-height: 56px;
    margin: 0 auto 20px; border-radius: 14px;
    background: rgba(59, 130, 246, .12); color: #3b82f6;
}
.sell-rental-icon svg { width: 26px; height: 26px; max-width: 26px; max-height: 26px; stroke-width: 1.6; }
.sell-rental-inner h2 { font-size: 26px; font-weight: 800; color: #f3f4f6; line-height: 1.3; }
.sell-rental-sub { font-size: 15px; color: #9ca3af; line-height: 1.7; margin: 14px auto 28px; max-width: 460px; }

@media (max-width: 780px) {
    .sell-hero { padding: 64px 16px 44px; }
    .sell-hero h1 { font-size: 32px; }
    .sell-hero-sub { font-size: 16px; }
    .sell-btn-primary, .sell-btn-secondary { width: 100%; text-align: center; }
    .sell-hero-actions { flex-direction: column; }
    .sell-feature-grid { grid-template-columns: 1fr; gap: 20px; }
    .sell-feature { padding: 26px; }
    .sell-steps { padding: 56px 16px; }
    .sell-steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .sell-cta { padding: 56px 20px; }
    .sell-section-title { font-size: 24px; padding: 0 0 28px; }
    .sell-rental { padding: 16px 16px 56px; }
    .sell-rental-inner { padding: 40px 24px; }
    .sell-rental-inner h2 { font-size: 22px; }
}

@media (min-width: 481px) and (max-width: 780px) {
    .sell-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
