/* Dawn: navy header with a strip of promises, a search box with a gold button and a row of category links, a sunrise photo banner with pastel 3D category
   tiles over its lower edge, light cards and a navy floating tab bar on phones. Layout comes from app/themes/dawn/views; pictures from assets/themes/dawn/img
   (the page works without them). */
:root {
    --bg: #f5f8f2; --card: #fff; --ink: #14301f; --muted: #5b7060; --line: #e0e9dc;
    --green: #2c8a37; --green-d: #17561f; --green-soft: #e6f3e2; --green-hi: #43a34b; --green-line: #cde5c8; --tint: #eef6ea;
    --img-bg: #f1f6ee; --radius: 20px;
    --shadow: 0 1px 2px rgba(14, 36, 65, .05), 0 8px 22px rgba(14, 36, 65, .09);
    --logo-a: #6fdc5a; --logo-b: #1f8a2e;
    --foot-bg: #0c1f3a; --foot-ink: #b9c8de; --foot-link: #e6eefb; --foot-accent: #f6c34a;
    --dw-navy: #0e2441; --dw-navy2: #12305a; --dw-navy3: #0a1b33; --dw-gold: #f6b72c; --dw-gold2: #e8931a; --dw-price: #c62828;
}
body.theme-dawn { background: linear-gradient(180deg, var(--c-tint2, #eaf2ee) 0, var(--bg) 480px); overflow-x: clip; }
.theme-dawn .wrap { width: min(1240px, 100% - 28px); }
.dw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- strip of promises ---------- */
.dw-strip { background: var(--dw-navy3); color: var(--c-on-deep, #e6eefb); font-size: 13.5px; }
.dw-strip-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 8px; }
.dw-strip-in li { display: inline-flex; align-items: center; gap: 9px; }
.dw-strip-in .i { width: 20px; height: 20px; color: var(--dw-gold); }
@media (max-width: 899px) { .dw-strip { display: none; } }

/* ---------- header ---------- */
.theme-dawn .topbar.dw-top { background: var(--dw-navy); border: 0; }
.dw-top-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: 14px; }
.dw-top .logo-word { color: #fff; }
.dw-top .logo-word i { color: var(--c-pri-lt, #8fe08f); }
.dw-top .logo-img { max-height: 46px; width: auto; }
.dw-burger { display: none; width: 42px; height: 42px; padding: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: none; color: #fff; place-items: center; }
.dw-burger .i { width: 24px; height: 24px; }
.dw-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 660px; justify-self: center; height: 52px; padding: 0 6px 0 22px; background: #fff; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.dw-search:focus-within { box-shadow: 0 0 0 3px rgba(246, 183, 44, .7); }
.dw-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.dw-sbtn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, var(--c-acc-hi, #ffcf4d), var(--dw-gold2)); color: var(--dw-navy); box-shadow: 0 3px 8px rgba(232, 147, 26, .45); }
.dw-sbtn .i { width: 22px; height: 22px; stroke-width: 2.2; }
.dw-acts { display: flex; align-items: flex-start; gap: 22px; }
.dw-act { position: relative; display: grid; justify-items: center; gap: 3px; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.dw-act .i { width: 28px; height: 28px; }
.dw-act:hover { color: var(--dw-gold); }
.theme-dawn .cart-link.dw-act { width: auto; height: auto; border: 0; border-radius: 0; background: none; display: grid; place-items: initial; justify-items: center; }
.theme-dawn .cart-link.dw-act:hover { background: none; }
.dw-act-ic { position: relative; display: grid; }
.dw-act-ic .cart-count { inset-block-start: -9px; inset-inline-end: -13px; background: var(--dw-gold); color: var(--dw-navy); box-shadow: 0 0 0 2px var(--dw-navy); }

.dw-nav { background: var(--dw-navy2); border-top: 1px solid rgba(255, 255, 255, .08); }
.dw-nav-in { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.dw-nav-in::-webkit-scrollbar { display: none; }
.dw-nav-in a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; padding: 6px 9px; color: var(--c-on-deep, #eaf1fc); font-weight: 700; font-size: 14px; white-space: nowrap; }
.dw-nav-in a + a { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.dw-nav-in a .i { width: 22px; height: 22px; color: var(--dw-gold); stroke-width: 1.8; }
.dw-nav-in a .i-badge { width: 30px; height: 30px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.dw-nav-in a:hover, .dw-nav-in a.on { color: var(--dw-gold); }
.dw-allbtn { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-inline-start: 10px; padding: 10px 18px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--c-acc-hi, #ffd25a), var(--dw-gold2)); color: var(--dw-navy); font: inherit; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.dw-allbtn .i { width: 22px; height: 22px; }
@media (max-width: 899px) {
    .dw-nav { display: none; }
    .dw-top-in { gap: 10px; padding-block: 10px; }
    .dw-burger { display: grid; }
    .theme-dawn .brand { justify-self: center; }
    .dw-search { grid-column: 1 / -1; order: 4; max-width: none; height: 46px; padding-inline-start: 18px; }
    .dw-sbtn { width: 36px; height: 36px; }
    .dw-acts { gap: 10px; }
    .dw-act { width: 42px; height: 42px; align-content: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; }
    .dw-act > span:not(.dw-act-ic) { display: none; }   /* labels go, the icon (and the cart badge) stay */
    .dw-act .i { width: 22px; height: 22px; }
    .theme-dawn .cart-link.dw-act { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; align-content: center; }
    .dw-act-ic .cart-count { inset-block-start: -9px; inset-inline-end: -10px; }
}

/* ---------- home order: banner, tiles (over its lower edge), "products" title, (phone picker), products ---------- */
main:has(.dw-hero) { display: flex; flex-direction: column; padding-top: 0; }
main:has(.dw-hero) > * { order: 5; }
main:has(.dw-hero) > .dw-hero { order: 1; }
main:has(.dw-hero) > #chips { order: 2; }
main:has(.dw-hero) > .dw-sect { order: 3; }
main:has(.dw-hero) > .filterbar { order: 4; }

/* ---------- banner ---------- */
.dw-hero { position: relative; width: 100vw; margin-inline: calc(50% - 50vw); }
.dw-hero-link { display: block; max-width: 1920px; margin-inline: auto; overflow: hidden; background: var(--c-tint2, #cfe3f2); }
.dw-hero-link img { width: 100%; height: auto; display: block; }
.dw-hero-text { text-align: center; padding: 54px 20px 90px; background: linear-gradient(120deg, var(--dw-navy), var(--c-pri-d, #2a6b53)); color: #fff; display: grid; justify-items: center; gap: 12px; }
.dw-hero-text h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.dw-hero-text p { color: var(--c-on-deep3, #d4e2f2); max-width: 520px; }
.dw-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 32px; border-radius: 999px; background: linear-gradient(180deg, var(--c-acc-hi, #ffd25a), var(--dw-gold2)); color: var(--dw-navy); font-weight: 800; font-size: 17px; }
.dw-sect { margin-top: 26px; }
.dw-sect h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--ink); }
.dw-sect .i { width: 30px; height: 30px; color: var(--green); }
.dw-cathead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 18px; padding: 18px 26px; border-radius: 22px; background: linear-gradient(120deg, var(--dw-navy), var(--dw-navy2)); color: #fff; }
.dw-cathead h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.dw-back { display: inline-flex; align-items: center; gap: 8px; color: var(--dw-gold); font-weight: 700; }
.theme-dawn .hero .search { display: none; }
.theme-dawn .hero { padding-top: 22px; }
@media (max-width: 899px) { .dw-sect { display: none; } .dw-hero { margin-bottom: 6px; } }

/* ---------- categories: pastel tiles with a 3D picture, in a white panel over the banner's edge ---------- */
main:has(.dw-hero) > #chips { position: relative; z-index: 2; margin-top: calc(-1 * min(56px, 4.2vw)); }
.theme-dawn .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding: 14px; margin: 0; background: rgba(255, 255, 255, .97); border: 1px solid #fff; border-radius: 28px; box-shadow: 0 14px 34px rgba(14, 36, 65, .18); }
.theme-dawn .chip {
    flex: 1 0 112px; flex-direction: column; justify-content: flex-end; text-align: center; gap: 8px; padding: 14px 6px 13px; white-space: normal; line-height: 1.35;
    border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px; box-shadow: 0 2px 8px rgba(14, 36, 65, .1); font-size: 15px; font-weight: 800; color: var(--ink);
    background: linear-gradient(180deg, var(--c-tint1, #f3f7f1), var(--c-tint2, #e6eee2));
}
.theme-dawn .chip:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(14, 36, 65, .18); }
.theme-dawn .chip:nth-child(7n+2) { background: linear-gradient(180deg, var(--c-tint2, #ecf7e8), var(--c-line, #d3e9cb)); color: var(--c-pri-d, #1b5e20); }
.theme-dawn .chip:nth-child(7n+3) { background: linear-gradient(180deg, #fff2dc, #ffe0b0); color: #8a4a00; }
.theme-dawn .chip:nth-child(7n+4) { background: linear-gradient(180deg, #ffeae2, #ffd0c0); color: #a2381d; }
.theme-dawn .chip:nth-child(7n+5) { background: linear-gradient(180deg, #f1e9ff, #dccdfa); color: #4b2f8f; }
.theme-dawn .chip:nth-child(7n+6) { background: linear-gradient(180deg, #fff7da, #ffeaa8); color: #7a5a00; }
.theme-dawn .chip:nth-child(7n+7) { background: linear-gradient(180deg, #e6f2ff, #c4dffb); color: #12508f; }
.theme-dawn .chip:nth-child(7n+8) { background: linear-gradient(180deg, #fee8f0, #f8c9dc); color: #a01f55; }
.theme-dawn .chip[data-cat="all"] { background: linear-gradient(180deg, var(--c-pri-d, #1f6b2c), var(--c-pri-dd, #0f4a1a)); color: #fff; border-color: var(--c-pri-dd, #0f4a1a); }
.theme-dawn .chip .i-badge { width: 100%; height: 84px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(14, 36, 65, .22)); }
.theme-dawn .chip .i:not(.i-badge) { box-sizing: content-box; width: 44px; height: 44px; padding: 20px calc(50% - 22px); color: currentColor; stroke-width: 1.7; }
.theme-dawn .chip[data-cat="all"] .i:not(.i-badge) { color: #fff; }
.theme-dawn .chip.is-active { box-shadow: 0 0 0 3px var(--dw-gold), 0 8px 18px rgba(14, 36, 65, .2); }
@media (max-width: 899px) {
    .theme-dawn .chips { display: none; }
    .theme-dawn .filterbar { display: flex; }
    .theme-dawn .catbtn { border-radius: 18px; border-color: var(--green-line); }
    .theme-dawn .catbtn-ic { background: var(--green-soft); color: var(--green); }
}

/* the same pictures in the phone picker and in the popup */
.theme-dawn .catbtn-ic:has(.i-badge) { background: none; width: 52px; height: 52px; }
.theme-dawn .catbtn-ic .i-badge { width: 52px; height: 52px; object-fit: contain; }
.theme-dawn .cs-tile .ic:has(.i-badge), .theme-dawn .cs-tile.is-active .ic:has(.i-badge) { background: none; width: 58px; height: 58px; }
.theme-dawn .cs-tile .i-badge { width: 58px; height: 58px; object-fit: contain; }

/* ---------- product cards ---------- */
.theme-dawn .grid { gap: 16px; scroll-margin-top: 12px; margin-top: 12px; }
.theme-dawn .card { padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.theme-dawn .card-img { aspect-ratio: 1 / .9; border-radius: 16px; background: linear-gradient(180deg, var(--c-tint1, #f6f9f4), var(--c-tint2, #ecf3e9)); }
.theme-dawn .card-body { padding: 12px 4px 2px; }
.theme-dawn .card-title { font-size: 15.5px; }
.theme-dawn .price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.theme-dawn .price-now { color: var(--dw-price); font-size: 21px; font-weight: 800; }
.theme-dawn .price small { font-size: 13px; }
.theme-dawn .price s { font-size: 13.5px; color: var(--muted); font-weight: 400; margin: 0; }
.theme-dawn .tag { border-radius: 999px; padding: 3px 11px; }
.theme-dawn .card-actions { display: grid; gap: 8px; padding: 10px 0 0; }
.theme-dawn .card-actions .btn { border-radius: 999px; }
.theme-dawn .card-actions .btn-ghost { color: var(--dw-navy2); border-color: var(--c-line, #cfdbec); }
@media (max-width: 480px) { .theme-dawn .card { padding: 9px; border-radius: 18px; } .theme-dawn .card-actions .btn { font-size: 13.5px; } }
.theme-dawn .foot { margin-top: 32px; }

/* ---------- phone tab bar (navy, floating) ---------- */
.dw-bar { display: none; }
@media (max-width: 899px) {
    body.theme-dawn { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .dw-bar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45;
        background: rgba(14, 36, 65, .97); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(10, 27, 51, .4);
    }
    .dw-bar a, .dw-bar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; background: none; border: 0; border-radius: 16px; font-size: 12px; font-weight: 700; color: var(--c-on-deep2, #b7c7e0); }
    .dw-bar .on { color: var(--dw-gold); background: rgba(255, 255, 255, .1); }
    .dw-bar-ic { position: relative; display: grid; }
    .dw-bar-ic .i { width: 24px; height: 24px; }
    .dw-bar .cart-count { inset-inline-end: -9px; background: var(--dw-gold); color: var(--dw-navy); box-shadow: 0 0 0 2px var(--dw-navy); }
    body.theme-dawn:has(.sticky-cta) { padding-bottom: 80px; }
    body:has(.sticky-cta) .dw-bar { display: none; }
    .theme-dawn .fab { display: none; }
    .theme-dawn .cookie { bottom: 92px; }
    .theme-dawn .cart-toast { bottom: 96px; }
}

/* back-to-top arrow: navy with a gold arrow */
.theme-dawn .to-top { background: var(--dw-navy); color: var(--dw-gold); border-color: rgba(255, 255, 255, .25); box-shadow: 0 6px 18px rgba(10, 27, 51, .4); }
.theme-dawn .to-top:hover { background: var(--dw-gold); color: var(--dw-navy); border-color: var(--dw-gold); }

/* narrower desktops: keep the whole category row visible */
@media (min-width: 900px) and (max-width: 1180px) {
    .dw-nav-in a { gap: 5px; padding-inline: 5px; font-size: 12.5px; }
    .dw-nav-in a .i-badge { width: 24px; height: 24px; }
    .dw-nav-in a .i { width: 18px; height: 18px; }
    .dw-allbtn { padding: 8px 12px; font-size: 13.5px; margin-inline-start: 6px; }
}
@media (min-width: 900px) and (max-width: 1020px) { .dw-nav-in a span { display: none; } .dw-nav-in a .i-badge { width: 32px; height: 32px; } }   /* pictures only (the name is the link's title) */
