/* ============================================================
   P4SHOP storefront themes
   Loaded only on the public shop (main layout), after app.css.
   Each theme keeps every link, product and checkout flow intact.
   ============================================================ */

/* ---------- AURORA : crisp, cool, airy ---------- */
html[data-theme="aurora"] {
    --brand: #0b7db3;
    --brand-dark: #08658f;
    --brand-light: #e7f5fc;
    --accent: #f3b83e;
    --accent-dark: #dda128;
    --text: #1b2733;
    --muted: #6c7b88;
    --line: #e4ebf1;
    --bg: #f4f8fb;
    --white: #ffffff;
    --success: #138a5b;
    --danger: #dc4b4b;
    --warn: #c77a12;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16, 36, 54, .05), 0 5px 16px rgba(16, 36, 54, .05);
    --shadow-lg: 0 14px 32px rgba(16, 36, 54, .13);
    --hero-bg: #eaf6fd;
    --hero-bg2: #ffffff;
}
html[data-theme="aurora"] body { background: var(--bg); }
html[data-theme="aurora"] .topbar { background: linear-gradient(90deg, #0b7db3, #1199c7); }
html[data-theme="aurora"] .site-header { background: #fff; }
html[data-theme="aurora"] .search-bar { background: #f1f8fc; border-color: #d6e8f2; }
html[data-theme="aurora"] .cat-nav { background: #fff; }
html[data-theme="aurora"] .cat-nav .all-cats { background: var(--brand); color: #fff; border-radius: 8px; padding: 6px 12px; border-bottom: 0; }
html[data-theme="aurora"] .cat-nav .all-cats:hover { background: var(--brand-dark); color: #fff; }
html[data-theme="aurora"] .section-head h2 { letter-spacing: -.25px; }
html[data-theme="aurora"] .trust-item { background: rgba(255,255,255,.9); }
html[data-theme="aurora"] .cat-tile.t0 { background: linear-gradient(165deg,#d9effc,#f2faff); border-color:#c7e5f5; }
html[data-theme="aurora"] .cat-tile.t1 { background: linear-gradient(165deg,#d8f4e5,#f2fcf7); border-color:#bde7d2; }
html[data-theme="aurora"] .cat-tile.t2 { background: linear-gradient(165deg,#ffedbd,#fff9e9); border-color:#f3dd9b; }
html[data-theme="aurora"] .cat-tile.t3 { background: linear-gradient(165deg,#fce2ef,#fff5fa); border-color:#f2c4da; }
html[data-theme="aurora"] .cat-tile.t4 { background: linear-gradient(165deg,#e8e1ff,#f8f5ff); border-color:#d5c9f5; }
html[data-theme="aurora"] .cat-tile.t5 { background: linear-gradient(165deg,#d9f1f5,#f2fbfc); border-color:#bde3ea; }
html[data-theme="aurora"] .section-head.fancy.tone-amber { background: linear-gradient(100deg,#dff2fb,#e8f3ff); border-color:#c5e3f3; }
html[data-theme="aurora"] .section-head.fancy.tone-blue { background: linear-gradient(100deg,#d8ecff,#e7e8ff); border-color:#bdd8f5; }
html[data-theme="aurora"] .section-head.fancy.tone-pink { background: linear-gradient(100deg,#ffe2ee,#eee7ff); border-color:#f0c6dc; }
html[data-theme="aurora"] .section-head.fancy.tone-green { background: linear-gradient(100deg,#d5f2e4,#e3f8f2); border-color:#b9e6d2; }
html[data-theme="aurora"] .site-footer { background: #0b2234; }
html[data-theme="aurora"] .footer-bottom { border-top-color: #1d3548; }
html[data-theme="aurora"] .pay-methods span { background: #fff; color: #0b2234; }

/* ---------- BOTANICAL : fresh, warm, editorial ---------- */
html[data-theme="botanical"] {
    --brand: #0f6b4f;
    --brand-dark: #0a503a;
    --brand-light: #e8f5ee;
    --accent: #d7b25a;
    --accent-dark: #b99139;
    --text: #1d2b25;
    --muted: #66756d;
    --line: #e5e1d6;
    --bg: #f7f5ee;
    --white: #fffdf8;
    --success: #187a52;
    --danger: #c4513c;
    --warn: #a7771d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 0 rgba(37,48,40,.03), 0 7px 20px rgba(37,48,40,.045);
    --shadow-lg: 0 16px 34px rgba(37,48,40,.12);
    --hero-bg: #edf4ea;
    --hero-bg2: #fffdf8;
}
html[data-theme="botanical"] body { background: var(--bg); }
html[data-theme="botanical"] .topbar { background: #073d2d; color: #f6edda; }
html[data-theme="botanical"] .topbar a { color: #f6edda; }
html[data-theme="botanical"] .topbar a:hover { color: #fff; }
html[data-theme="botanical"] .site-header { background: #fffdf8; border-bottom-color: #e5e1d6; }
html[data-theme="botanical"] .logo { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -1.2px; }
html[data-theme="botanical"] .search-bar { background: #f5f1e6; border-color: #e2dccd; border-radius: 12px; }
html[data-theme="botanical"] .search-bar button { background: var(--brand); }
html[data-theme="botanical"] .cat-nav { background: #fffdf8; border-bottom-color: #e5e1d6; }
html[data-theme="botanical"] .cat-nav a { padding-top: 11px; padding-bottom: 11px; }
html[data-theme="botanical"] .cat-nav .all-cats { background: var(--brand); color: #fff; border-radius: 10px; padding: 6px 13px; border-bottom: 0; }
html[data-theme="botanical"] .cat-nav .all-cats:hover { background: var(--brand-dark); color: #fff; }
html[data-theme="botanical"] .section-head h2,
html[data-theme="botanical"] .hero-slide .hero-text h3,
html[data-theme="botanical"] .footer-about h4,
html[data-theme="botanical"] .site-footer h4 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -.25px; }
html[data-theme="botanical"] .section-head h2 { position: relative; padding-bottom: 7px; }
html[data-theme="botanical"] .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--accent); }
html[data-theme="botanical"] .hero-slider,
html[data-theme="botanical"] .hero-side a { border: 1px solid #e5e1d6; box-shadow: 0 12px 26px rgba(37,48,40,.08); }
html[data-theme="botanical"] .trust-item { background: #fffdf8; border-color: #e5e1d6; }
html[data-theme="botanical"] .trust-item svg { stroke: var(--brand); }
html[data-theme="botanical"] .cat-tile { background: #fffdf8; border-color: #e5e1d6; }
html[data-theme="botanical"] .cat-tile.t0 { background: linear-gradient(165deg,#dcece0,#f6fbf5); border-color:#c9e2d1; }
html[data-theme="botanical"] .cat-tile.t1 { background: linear-gradient(165deg,#d8ecd9,#f5fbf3); border-color:#c3dfc6; }
html[data-theme="botanical"] .cat-tile.t2 { background: linear-gradient(165deg,#f6e6bb,#fffaf0); border-color:#e8d39b; }
html[data-theme="botanical"] .cat-tile.t3 { background: linear-gradient(165deg,#f4ddcf,#fff7f1); border-color:#e8c9b8; }
html[data-theme="botanical"] .cat-tile.t4 { background: linear-gradient(165deg,#e5e4cf,#faf9ef); border-color:#d5d4bb; }
html[data-theme="botanical"] .cat-tile.t5 { background: linear-gradient(165deg,#d8e9e6,#f4fbfa); border-color:#c2dcd7; }
html[data-theme="botanical"] .section-head.fancy.tone-amber { background: linear-gradient(100deg,#f5e7bf,#f9f0d8); border-color:#e4d09b; }
html[data-theme="botanical"] .section-head.fancy.tone-blue { background: linear-gradient(100deg,#dcece0,#eaf5e8); border-color:#c9e0cf; }
html[data-theme="botanical"] .section-head.fancy.tone-pink { background: linear-gradient(100deg,#f4dfd2,#f9eee6); border-color:#e7cbbc; }
html[data-theme="botanical"] .section-head.fancy.tone-green { background: linear-gradient(100deg,#d3e8d5,#e8f4e4); border-color:#bfdcc3; }
html[data-theme="botanical"] .section-head.fancy h2 { color: #263c31; }
html[data-theme="botanical"] .product-card { background: #fffdf8; border-color: #e5e1d6; }
html[data-theme="botanical"] .product-card:hover { border-color: #c9d9c9; }
html[data-theme="botanical"] .btn { border-radius: 10px; }
html[data-theme="botanical"] .btn-primary,
html[data-theme="botanical"] .btn-add { background: var(--brand); }
html[data-theme="botanical"] .flash-bar { background: linear-gradient(90deg,#0a503a,#17845f); }
html[data-theme="botanical"] .site-footer { background: #073d2d; color: #c9dfd2; }
html[data-theme="botanical"] .site-footer h4 { color: #fff8e9; }
html[data-theme="botanical"] .site-footer a { color: #c9dfd2; }
html[data-theme="botanical"] .site-footer a:hover { color: #fff; }
html[data-theme="botanical"] .footer-about p { color: #a9c3b4; }
html[data-theme="botanical"] .footer-bottom { border-top-color: #1c5945; color: #93b2a0; }
html[data-theme="botanical"] .pay-methods span { background: #fff8e9; color: #073d2d; }
html[data-theme="botanical"] .newsletter-form button { background: var(--accent); color: #2f250c; }

/* ---------- SUNSET : warm, modern, energetic ---------- */
html[data-theme="sunset"] {
    --brand: #e65d40;
    --brand-dark: #c94b31;
    --brand-light: #fff0ea;
    --accent: #f1b84b;
    --accent-dark: #d89e2d;
    --text: #2d2522;
    --muted: #7c6e68;
    --line: #f0e2d9;
    --bg: #fbf7f2;
    --white: #fffdfb;
    --success: #2c8b64;
    --danger: #d3453b;
    --warn: #b8741c;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 1px 2px rgba(82,43,30,.04), 0 7px 20px rgba(82,43,30,.05);
    --shadow-lg: 0 16px 34px rgba(82,43,30,.13);
    --hero-bg: #fff0e8;
    --hero-bg2: #fffdfb;
}
html[data-theme="sunset"] body { background: var(--bg); }
html[data-theme="sunset"] .topbar { background: linear-gradient(90deg, #38251f, #56352a); color: #ffe7d8; }
html[data-theme="sunset"] .topbar a { color: #ffe7d8; }
html[data-theme="sunset"] .topbar a:hover { color: #fff; }
html[data-theme="sunset"] .site-header { background: #fffaf6; border-bottom-color: #f0e2d9; }
html[data-theme="sunset"] .logo { letter-spacing: -1.2px; }
html[data-theme="sunset"] .search-bar { background: #fff1e9; border-color: #f1d9cb; border-radius: 999px; }
html[data-theme="sunset"] .search-bar button { background: var(--brand); border-radius: 999px; margin: 3px; }
html[data-theme="sunset"] .cat-nav { background: #fffaf6; border-bottom-color: #f0e2d9; }
html[data-theme="sunset"] .cat-nav .all-cats { background: var(--brand); color: #fff; border-radius: 999px; padding: 6px 13px; border-bottom: 0; }
html[data-theme="sunset"] .cat-nav .all-cats:hover { background: var(--brand-dark); color: #fff; }
html[data-theme="sunset"] .hero-slider,
html[data-theme="sunset"] .hero-side a { border-radius: 24px; box-shadow: 0 12px 28px rgba(82,43,30,.08); }
html[data-theme="sunset"] .trust-item { background: #fffdfb; border-color: #f0e2d9; border-radius: 16px; }
html[data-theme="sunset"] .trust-item svg { stroke: var(--brand); }
html[data-theme="sunset"] .cat-tile { background: #fffdfb; border-color: #f0e2d9; border-radius: 16px; }
html[data-theme="sunset"] .cat-tile.t0 { background: linear-gradient(165deg,#ffe2d6,#fff8f3); border-color:#f4d0c0; }
html[data-theme="sunset"] .cat-tile.t1 { background: linear-gradient(165deg,#f9dfd2,#fff7f2); border-color:#efc9b9; }
html[data-theme="sunset"] .cat-tile.t2 { background: linear-gradient(165deg,#ffe8b9,#fffaf0); border-color:#f2d796; }
html[data-theme="sunset"] .cat-tile.t3 { background: linear-gradient(165deg,#fbd3d8,#fff5f6); border-color:#efb8bf; }
html[data-theme="sunset"] .cat-tile.t4 { background: linear-gradient(165deg,#f4dec9,#fff9f3); border-color:#e8c9ac; }
html[data-theme="sunset"] .cat-tile.t5 { background: linear-gradient(165deg,#f2e3c8,#fffaf1); border-color:#e5d0aa; }
html[data-theme="sunset"] .section-head.fancy.tone-amber { background: linear-gradient(100deg,#ffe3c9,#fff0e0); border-color:#f0caa4; }
html[data-theme="sunset"] .section-head.fancy.tone-blue { background: linear-gradient(100deg,#fbe3d3,#fff0e7); border-color:#efcdb9; }
html[data-theme="sunset"] .section-head.fancy.tone-pink { background: linear-gradient(100deg,#ffd9dd,#fff0f0); border-color:#efbdc3; }
html[data-theme="sunset"] .section-head.fancy.tone-green { background: linear-gradient(100deg,#e8e4cf,#faf7e8); border-color:#d7d1b5; }
html[data-theme="sunset"] .section-head.fancy h2 { color: #4a2d23; }
html[data-theme="sunset"] .product-card { background: #fffdfb; border-color: #f0e2d9; border-radius: 18px; }
html[data-theme="sunset"] .product-card:hover { border-color: #e8c9b9; }
html[data-theme="sunset"] .btn { border-radius: 999px; }
html[data-theme="sunset"] .btn-add { border-radius: 999px; }
html[data-theme="sunset"] .flash-bar { background: linear-gradient(90deg,#c7462f,#ed7458); }
html[data-theme="sunset"] .site-footer { background: #33211d; color: #e4d1c8; }
html[data-theme="sunset"] .site-footer h4 { color: #fff7ef; }
html[data-theme="sunset"] .site-footer a { color: #e4d1c8; }
html[data-theme="sunset"] .site-footer a:hover { color: #fff; }
html[data-theme="sunset"] .footer-about p { color: #bfa69b; }
html[data-theme="sunset"] .footer-bottom { border-top-color: #51362d; color: #b99e93; }
html[data-theme="sunset"] .pay-methods span { background: #fff7ef; color: #33211d; }
html[data-theme="sunset"] .newsletter-form button { background: var(--accent); color: #38230f; }

/* ---------- shared theme polish ---------- */
html[data-theme] .site-header { box-shadow: 0 4px 18px rgba(20, 40, 30, .045); }
html[data-theme] .topbar .container { height: 36px; }
html[data-theme] .header-action:hover { background: var(--brand-light); }
html[data-theme] .cart-count { background: var(--brand); color: #fff; }
html[data-theme="botanical"] .cart-count,
html[data-theme="sunset"] .cart-count { background: var(--brand); }
html[data-theme] .section-head .see-all { color: var(--brand); }
html[data-theme] .product-title a:hover { color: var(--brand); }
html[data-theme] .btn-outline:hover { border-color: var(--brand); color: var(--brand); }
html[data-theme] .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
html[data-theme] .tab-head button.active { color: var(--brand); border-bottom-color: var(--brand); }
html[data-theme] .pagination .current { background: var(--brand); border-color: var(--brand); }
html[data-theme] .bottom-nav { background: var(--white); border-top-color: var(--line); }
html[data-theme] .bottom-nav a.active,
html[data-theme] .bottom-nav a:hover { color: var(--brand); }
html[data-theme] .drawer { background: var(--white); }
html[data-theme] .notif-menu { border-color: var(--line); }
html[data-theme] .notif-all { color: var(--brand); }

/* Keep the existing app CTA orange, so it stays recognisable in every theme. */
html[data-theme] .bottom-nav a.app-nav-link { background: #f58427; color: #fff; }
html[data-theme] .bottom-nav a.app-nav-link:hover { background: #d96f16; color: #fff; }

@media (max-width: 720px) {
    html[data-theme] .topbar .container { height: 34px; }
    html[data-theme] .search-bar button { border-radius: 0; }
    html[data-theme="sunset"] .search-bar button { margin: 0; }
    html[data-theme] .header-main { gap: 8px; position: relative; }
    html[data-theme] .header-actions { gap: 0; flex-wrap: nowrap; position: absolute; right: 0; top: 7px; margin: 0; z-index: 3; }
    html[data-theme] .header-action { padding: 6px; }
    html[data-theme] .header-action.app-action { padding: 5px 8px; }
    html[data-theme] .header-action.app-action .app-action-label { display: none; }
    html[data-theme] .logo { font-size: 20px; gap: 4px; }
    html[data-theme] .hamburger { padding: 4px; }
}
@media (max-width: 380px) {
    html[data-theme] .logo { font-size: 18px; }
    html[data-theme] .header-actions .header-action:nth-last-child(1) { padding-right: 2px; }
}

/* ============================================================
   STRUCTURAL LAYOUT VARIANTS
   These make the three themes feel like different shops, not
   just different colour palettes. Same markup, same links.
   ============================================================ */

/* ========== BOTANICAL : editorial boutique ========== */
html[data-theme="botanical"] .header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px 16px;
    padding: 17px 0 14px;
}
html[data-theme="botanical"] .hamburger { display: none; }
html[data-theme="botanical"] .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 31px;
    letter-spacing: -1.5px;
}
html[data-theme="botanical"] .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
}
html[data-theme="botanical"] .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(720px, 100%);
    max-width: 720px;
    margin: 0 auto;
    border-radius: 999px;
}
html[data-theme="botanical"] .cat-nav .container { justify-content: center; }
html[data-theme="botanical"] .cat-nav a { padding: 12px 14px; font-size: 12.5px; letter-spacing: .15px; }
html[data-theme="botanical"] .hero {
    display: flex;
    align-items: stretch;
    grid-template-columns: none;
    height: 470px;
    padding-top: 22px;
    gap: 16px;
}
html[data-theme="botanical"] .hero-slider {
    flex: 2 1 0;
    width: auto;
    height: 100%;
    min-width: 0;
    aspect-ratio: auto;
    border-radius: 24px;
}
html[data-theme="botanical"] .hero-side { display: flex; flex: 1 1 0; flex-direction: column; gap: 16px; height: 100%; min-width: 0; }
html[data-theme="botanical"] .hero-side a { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 20px; }
html[data-theme="botanical"] .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin-top: 18px;
    padding: 15px 22px;
    background: #fffdf8;
    border: 1px solid #e5e1d6;
    border-radius: 16px;
}
html[data-theme="botanical"] .trust-item { border: 0; border-bottom: 1px solid #ece6d9; border-radius: 0; padding: 10px 0; background: transparent; }
html[data-theme="botanical"] .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
html[data-theme="botanical"] .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html[data-theme="botanical"] .cat-tile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    text-align: left;
    padding: 10px 13px;
    border-radius: 14px;
}
html[data-theme="botanical"] .cat-tile .thumb { width: 44px; height: 44px; margin: 0; animation: none; flex: 0 0 44px; }
html[data-theme="botanical"] .cat-tile strong { font-size: 12.5px; line-height: 1.25; }
html[data-theme="botanical"] .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
html[data-theme="botanical"] .product-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
html[data-theme="botanical"] .product-card:hover { box-shadow: none; transform: translateY(-2px); border-color: transparent; }
html[data-theme="botanical"] .product-thumb { padding: 12px; background: #f1ede2; border-radius: 16px; }
html[data-theme="botanical"] .product-body { padding: 10px 2px 2px; }
html[data-theme="botanical"] .product-title { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; font-weight: 600; min-height: 0; }
html[data-theme="botanical"] .btn-add {
    width: auto;
    align-self: flex-start;
    background: transparent;
    color: var(--brand);
    border: 1px solid #cfd9ce;
    border-radius: 8px;
    padding: 7px 13px;
}
html[data-theme="botanical"] .btn-add:hover { background: var(--brand); color: #fff; }
html[data-theme="botanical"] .product-row > .product-card { flex-basis: 29%; max-width: 29%; }
html[data-theme="botanical"] .footer-top { grid-template-columns: 1fr 1fr 1.3fr; gap: 26px; padding-top: 38px; }
html[data-theme="botanical"] .footer-about { grid-column: 1 / -1; text-align: center; max-width: 620px; margin: 0 auto; }
html[data-theme="botanical"] .footer-about .social-row { justify-content: center; }

/* ========== SUNSET : bold catalogue ========== */
html[data-theme="sunset"] .topbar { background: #38251f; }
html[data-theme="sunset"] .site-header { background: #33221c; border-bottom: 0; color: #fff8f0; }
html[data-theme="sunset"] .logo { color: #fff6ec; }
html[data-theme="sunset"] .logo span em { color: #ffc95f; }
html[data-theme="sunset"] .header-action { color: #f6cfbc; }
html[data-theme="sunset"] .header-action svg { stroke: #fff1e4; }
html[data-theme="sunset"] .header-action:hover { background: rgba(255,255,255,.10); color: #fff; }
html[data-theme="sunset"] .header-action .label strong,
html[data-theme="sunset"] .header-action .label small { color: #fff6ec; }
html[data-theme="sunset"] .header-action.app-action,
html[data-theme="sunset"] .header-action.app-action:hover { color: #fff; }
html[data-theme="sunset"] .search-bar { background: #fffaf6; border: 0; border-radius: 999px; padding: 3px; }
html[data-theme="sunset"] .search-bar button { margin: 0; border-radius: 999px; }
html[data-theme="sunset"] .cat-nav { background: #fff4ec; border-bottom: 1px solid #efd7c8; }
html[data-theme="sunset"] .cat-nav a { border-radius: 999px; padding: 8px 13px; margin: 4px 1px; }
html[data-theme="sunset"] .cat-nav a:hover,
html[data-theme="sunset"] .cat-nav a.active { background: #fff; border-bottom-color: transparent; color: var(--brand); }
html[data-theme="sunset"] .cat-nav .all-cats { background: var(--brand); color: #fff; }
html[data-theme="sunset"] .cat-nav .all-cats:hover { background: var(--brand-dark); color: #fff; }
html[data-theme="sunset"] .hero { grid-template-columns: 1fr; gap: 14px; height: auto; padding-top: 22px; }
html[data-theme="sunset"] .hero-slider { aspect-ratio: 2.35 / 1; min-height: 330px; border-radius: 18px; }
html[data-theme="sunset"] .hero-slider .slide-img { object-fit: contain; }
html[data-theme="sunset"] .hero-slider .slide-bg { display: block; filter: blur(22px) saturate(1.05) brightness(.94); }
html[data-theme="sunset"] .hero-side { display: flex; flex-direction: row; gap: 14px; height: auto; }
html[data-theme="sunset"] .hero-side a { flex: 1; aspect-ratio: 2.4 / 1; border-radius: 16px; }
html[data-theme="sunset"] .hero-side .slide-img { object-fit: cover; }
html[data-theme="sunset"] .hero-side .slide-bg { display: none; }
html[data-theme="sunset"] .trust {
    display: flex;
    gap: 0;
    padding: 10px 0;
    margin-top: 18px;
    background: #fff1e8;
    border: 1px solid #efd7c8;
    border-radius: 16px;
    overflow: hidden;
}
html[data-theme="sunset"] .trust-item { flex: 1; background: transparent; border: 0; border-right: 1px solid #e9d1c2; border-radius: 0; padding: 8px 16px; }
html[data-theme="sunset"] .trust-item:last-child { border-right: 0; }
html[data-theme="sunset"] .cat-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme="sunset"] .cat-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 6px 13px 6px 7px;
    border-radius: 999px;
    text-align: left;
}
html[data-theme="sunset"] .cat-tile .thumb { width: 34px; height: 34px; margin: 0; animation: none; flex: 0 0 34px; }
html[data-theme="sunset"] .cat-tile strong { font-size: 12px; line-height: 1.2; }
html[data-theme="sunset"] .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html[data-theme="sunset"] .product-card { flex-direction: row; border-radius: 20px; }
html[data-theme="sunset"] .product-thumb { width: 44%; padding: 8px; background: #fff5ee; flex-shrink: 0; }
html[data-theme="sunset"] .product-thumb img { height: 100%; object-fit: contain; }
html[data-theme="sunset"] .product-body { width: 56%; padding: 14px 14px 13px 10px; }
html[data-theme="sunset"] .product-title { font-size: 13.5px; min-height: 0; }
html[data-theme="sunset"] .btn-add { width: auto; align-self: flex-start; border-radius: 999px; padding: 8px 14px; }
html[data-theme="sunset"] .product-row > .product-card { flex-basis: 44%; max-width: 44%; flex-direction: row; }
html[data-theme="sunset"] .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
html[data-theme="sunset"] .footer-newsletter { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #54382e; padding-top: 22px; margin-top: 4px; }
html[data-theme="sunset"] .footer-newsletter h4 { margin: 0; white-space: nowrap; }
html[data-theme="sunset"] .footer-newsletter p { display: none; }
html[data-theme="sunset"] .footer-newsletter .newsletter-form { margin: 0; flex: 1; max-width: 440px; }
html[data-theme="sunset"] .footer-bottom { justify-content: center; text-align: center; }

/* ========== structural responsive safeguards ========== */
@media (max-width: 900px) {
    html[data-theme="botanical"] .header-main {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
        padding: 12px 0;
    }
    html[data-theme="botanical"] .logo { order: 1; font-size: 23px; margin: 0; }
    html[data-theme="botanical"] .hamburger { display: block; order: 0; }
    html[data-theme="botanical"] .header-actions { order: 2; margin-left: auto; }
    html[data-theme="botanical"] .search-bar { order: 3; flex-basis: 100%; width: 100%; max-width: none; margin: 0; }
    html[data-theme="botanical"] .cat-nav .container { justify-content: flex-start; }
    html[data-theme="botanical"] .hero { display: flex; flex-direction: column; height: auto; }
    html[data-theme="botanical"] .hero-slider { flex: none; width: 100%; min-height: 320px; height: auto; aspect-ratio: 1 / 1; }
    html[data-theme="botanical"] .hero-side { flex: none; flex-direction: row; height: auto; }
    html[data-theme="botanical"] .hero-side a { aspect-ratio: 1 / 1; }
    html[data-theme="sunset"] .hero-slider { min-height: 0; aspect-ratio: 1 / 1; }
    html[data-theme="sunset"] .hero-side { flex-direction: row; }
    html[data-theme="sunset"] .hero-side a { aspect-ratio: 1 / 1; }
    html[data-theme="sunset"] .trust { flex-wrap: wrap; }
    html[data-theme="sunset"] .trust-item { flex: 1 1 50%; border-bottom: 1px solid #e9d1c2; }
    html[data-theme="sunset"] .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
    html[data-theme="sunset"] .footer-newsletter { display: block; }
    html[data-theme="sunset"] .footer-newsletter .newsletter-form { max-width: none; margin-top: 10px; }
}
@media (max-width: 720px) {
    html[data-theme="botanical"] .hero-slider { aspect-ratio: 1 / 1; min-height: 0; }
    html[data-theme="botanical"] .hero-side a { aspect-ratio: 1 / 1; }
    html[data-theme="botanical"] .trust { grid-template-columns: 1fr; gap: 0; padding: 12px 16px; }
    html[data-theme="botanical"] .trust-item:nth-last-child(-n+2) { border-bottom: 1px solid #ece6d9; }
    html[data-theme="botanical"] .trust-item:last-child { border-bottom: 0; }
    html[data-theme="botanical"] .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-theme="botanical"] .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    html[data-theme="botanical"] .product-thumb { padding: 8px; }
    html[data-theme="botanical"] .product-row > .product-card { flex-basis: 44%; max-width: 44%; }
    html[data-theme="botanical"] .footer-top { grid-template-columns: 1fr 1fr; }
    html[data-theme="botanical"] .footer-about { grid-column: 1 / -1; }
    html[data-theme="sunset"] .products-grid { grid-template-columns: 1fr; }
    html[data-theme="sunset"] .product-row > .product-card { flex-basis: 82%; max-width: 82%; }
    html[data-theme="sunset"] .product-card { flex-direction: row; }
    html[data-theme="sunset"] .footer-top { grid-template-columns: 1fr 1fr; }
    html[data-theme="sunset"] .footer-about { grid-column: 1 / -1; }
    html[data-theme="sunset"] .footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    html[data-theme="botanical"] .products-grid { grid-template-columns: 1fr; }
    html[data-theme="sunset"] .product-row > .product-card { flex-basis: 92%; max-width: 92%; }
}

/* ========== MARKETPLACE : Jumia-inspired high-density shop ========== */
html[data-theme="marketplace"] {
    --brand: #f68b1e;
    --brand-dark: #d97706;
    --brand-light: #fff3e3;
    --accent: #ffc107;
    --accent-dark: #e0a800;
    --text: #212121;
    --muted: #757575;
    --line: #e5e5e5;
    --bg: #f5f5f5;
    --white: #ffffff;
    --success: #2e7d32;
    --danger: #d32f2f;
    --warn: #b26a00;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.12);
    --hero-bg: #fff1dd;
    --hero-bg2: #ffffff;
}
html[data-theme="marketplace"] body { background: var(--bg); }
html[data-theme="marketplace"] .topbar { background: #2f2f2f; color: #fff; font-size: 11.5px; }
html[data-theme="marketplace"] .topbar .container { height: 30px; }
html[data-theme="marketplace"] .topbar a { color: #fff; opacity: .92; }
html[data-theme="marketplace"] .site-header { background: #f68b1e; border-bottom: 0; }
html[data-theme="marketplace"] .header-main { padding: 9px 0; gap: 14px; }
html[data-theme="marketplace"] .logo { color: #fff; font-size: 28px; letter-spacing: -1.2px; }
html[data-theme="marketplace"] .logo span em { color: #fff; }
html[data-theme="marketplace"] .header-action { color: #fff; }
html[data-theme="marketplace"] .header-action svg { stroke: #fff; }
html[data-theme="marketplace"] .header-action:hover { background: rgba(255,255,255,.13); color: #fff; }
html[data-theme="marketplace"] .header-action .label small,
html[data-theme="marketplace"] .header-action .label strong { color: #fff; }
html[data-theme="marketplace"] .header-action.app-action,
html[data-theme="marketplace"] .header-action.app-action:hover { background: #2b2b2b; color: #fff; }
html[data-theme="marketplace"] .search-bar { background: #fff; border: 0; border-radius: 4px; padding: 2px; }
html[data-theme="marketplace"] .search-bar input { color: #333; }
html[data-theme="marketplace"] .search-bar button { background: #f68b1e; border-radius: 3px; margin: 0; }
html[data-theme="marketplace"] .cat-nav { background: #fff; border-bottom: 1px solid #e5e5e5; }
html[data-theme="marketplace"] .cat-nav a { padding: 9px 11px; font-size: 12.5px; }
html[data-theme="marketplace"] .cat-nav a:hover,
html[data-theme="marketplace"] .cat-nav a.active { color: #f68b1e; border-bottom-color: #f68b1e; }
html[data-theme="marketplace"] .cat-nav .all-cats { color: #f68b1e; font-weight: 800; border-bottom: 0; }
html[data-theme="marketplace"] .cat-nav .all-cats:hover { color: #d97706; }
html[data-theme="marketplace"] .hero { display: flex; align-items: stretch; grid-template-columns: none; height: 360px; gap: 8px; padding-top: 12px; }
html[data-theme="marketplace"] .hero-slider { flex: 2 1 0; width: auto; height: 100%; min-width: 0; aspect-ratio: auto; border-radius: 6px; }
html[data-theme="marketplace"] .hero-side { display: flex; flex: 1 1 0; flex-direction: column; gap: 8px; height: 100%; min-width: 0; }
html[data-theme="marketplace"] .hero-side a { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 6px; }
html[data-theme="marketplace"] .hero-slide .hero-text { left: 18px; bottom: 17px; }
html[data-theme="marketplace"] .hero-slide .hero-text h3 { font-size: 23px; }
html[data-theme="marketplace"] .hero-slide .hero-text p { font-size: 12.5px; }
html[data-theme="marketplace"] .trust { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 12px 0 2px; }
html[data-theme="marketplace"] .trust-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 9px 11px; }
html[data-theme="marketplace"] .trust-item svg { width: 24px; height: 24px; stroke: #f68b1e; }
html[data-theme="marketplace"] .trust-item strong { font-size: 12px; }
html[data-theme="marketplace"] .trust-item small { font-size: 10.5px; }
html[data-theme="marketplace"] .section { padding-top: 18px; }
html[data-theme="marketplace"] .section-head { margin-bottom: 10px; }
html[data-theme="marketplace"] .section-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
html[data-theme="marketplace"] .section-head .see-all { color: #f68b1e; font-weight: 700; }
html[data-theme="marketplace"] .cat-tiles { grid-template-columns: repeat(8, minmax(0,1fr)); gap: 8px; }
html[data-theme="marketplace"] .cat-tile,
html[data-theme="marketplace"] .cat-tile.t0,
html[data-theme="marketplace"] .cat-tile.t1,
html[data-theme="marketplace"] .cat-tile.t2,
html[data-theme="marketplace"] .cat-tile.t3,
html[data-theme="marketplace"] .cat-tile.t4,
html[data-theme="marketplace"] .cat-tile.t5 { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px 5px; }
html[data-theme="marketplace"] .cat-tile:hover { border-color: #f68b1e; box-shadow: 0 7px 17px rgba(0,0,0,.09); transform: translateY(-2px); }
html[data-theme="marketplace"] .cat-tile .thumb { width: 55px; height: 55px; margin-bottom: 6px; border: 1px solid #f1f1f1; background: #fff; animation: none; }
html[data-theme="marketplace"] .cat-tile strong { font-size: 11.5px; font-weight: 600; }
html[data-theme="marketplace"] .products-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
html[data-theme="marketplace"] .product-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; }
html[data-theme="marketplace"] .product-card:hover { border-color: #f68b1e; box-shadow: 0 9px 20px rgba(0,0,0,.10); transform: translateY(-1px); }
html[data-theme="marketplace"] .product-thumb { padding: 8px 8px 2px; }
html[data-theme="marketplace"] .product-thumb img { aspect-ratio: 1 / 1; object-fit: contain; }
html[data-theme="marketplace"] .product-body { padding: 0 9px 9px; }
html[data-theme="marketplace"] .product-title { font-size: 12.5px; line-height: 1.35; min-height: 34px; }
html[data-theme="marketplace"] .price-row { gap: 5px; margin-bottom: 6px; min-height: 22px; }
html[data-theme="marketplace"] .price { color: #f68b1e; font-size: 16px; font-weight: 800; }
html[data-theme="marketplace"] .price-old { font-size: 11.5px; }
html[data-theme="marketplace"] .btn-add { background: #f68b1e; border-radius: 4px; padding: 8px; font-size: 12px; }
html[data-theme="marketplace"] .btn-add:hover { background: #d97706; }
html[data-theme="marketplace"] .badge-discount,
html[data-theme="marketplace"] .badge-deal { background: #e53935; color: #fff; border-radius: 3px; }
html[data-theme="marketplace"] .section-head.fancy { border-radius: 6px; border-color: #ffd9ae; background: linear-gradient(100deg,#fff0dc,#fff7ee); }
html[data-theme="marketplace"] .section-head.fancy.tone-amber { background: linear-gradient(100deg,#ffe4bf,#fff2df); border-color:#ffd39b; }
html[data-theme="marketplace"] .section-head.fancy.tone-blue { background: linear-gradient(100deg,#fff0dc,#fff7ee); border-color:#ffd9ae; }
html[data-theme="marketplace"] .section-head.fancy.tone-pink { background: linear-gradient(100deg,#ffe7d6,#fff5ee); border-color:#ffd0b3; }
html[data-theme="marketplace"] .section-head.fancy.tone-green { background: linear-gradient(100deg,#fff0dc,#fff8ef); border-color:#ffd9ae; }
html[data-theme="marketplace"] .flash-bar { background: linear-gradient(90deg,#e53935,#f4511e); border-radius: 6px; }
html[data-theme="marketplace"] .flash-bar .timer { color: #fff; }
html[data-theme="marketplace"] .product-row > .product-card { flex-basis: 18.6%; max-width: 18.6%; }
html[data-theme="marketplace"] .site-footer { background: #2b2b2b; color: #bdbdbd; }
html[data-theme="marketplace"] .site-footer h4 { color: #fff; }
html[data-theme="marketplace"] .site-footer a { color: #bdbdbd; }
html[data-theme="marketplace"] .site-footer a:hover { color: #fff; }
html[data-theme="marketplace"] .footer-about p { color: #9e9e9e; }
html[data-theme="marketplace"] .footer-bottom { border-top-color: #444; color: #9e9e9e; }
html[data-theme="marketplace"] .pay-methods span { background: #fff; color: #2b2b2b; }
html[data-theme="marketplace"] .newsletter-form button { background: #f68b1e; color: #fff; }
html[data-theme="marketplace"] .bottom-nav a.active,
html[data-theme="marketplace"] .bottom-nav a:hover { color: #f68b1e; }

@media (max-width: 900px) {
    html[data-theme="marketplace"] .hero { display: flex; flex-direction: column; height: auto; }
    html[data-theme="marketplace"] .hero-slider { flex: none; width: 100%; height: auto; aspect-ratio: 1 / 1; min-height: 0; }
    html[data-theme="marketplace"] .hero-side { flex: none; flex-direction: row; height: auto; }
    html[data-theme="marketplace"] .hero-side a { flex: 1; aspect-ratio: 1 / 1; }
}
@media (max-width: 720px) {
    html[data-theme="marketplace"] .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    html[data-theme="marketplace"] .product-row > .product-card { flex-basis: 46%; max-width: 46%; }
    html[data-theme="marketplace"] .cat-tiles { grid-template-columns: repeat(4, minmax(0,1fr)); }
    html[data-theme="marketplace"] .trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
}