/* =====================================================================
   Dashboard (green theme) - header / drawer base comes from style.css
   Optional photos: put banner.jpg and promo.jpg next to this file and they
   are used automatically (the gradients show when the files are missing).
   ===================================================================== */

:root {
    --bg: #f6f4ee;
    --card: #ffffff;
    --text: #13261f;
    --muted: #66736d;
    --border: #e8e4d9;
    --green: #0e4b3a;
    --green-2: #176a52;
    --green-soft: #e4f3ea;
    --gold: #e0a526;
    --danger: #d64541;
    --shadow: 0 2px 14px rgba(20, 40, 30, .06);
}
html[data-theme="dark"] {
    --bg: #0e1613;
    --card: #17211d;
    --text: #eaf1ed;
    --muted: #9bada5;
    --border: #25332d;
    --green: #1f8a68;
    --green-2: #27a37b;
    --green-soft: #1c3128;
    --shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

body[data-page="dashboard"] { background: var(--bg); color: var(--text); }
body[data-page="dashboard"] * { border-color: var(--border); }
[hidden] { display: none !important; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.big { width: 26px; height: 26px; }
.ic.crown { fill: var(--gold); stroke: var(--gold); width: 22px; height: 22px; }
.ic.go { width: 16px; height: 16px; margin-left: auto; opacity: 0; }

/* ---------- header (matches the mockup) ---------- */
.site-header { gap: 24px; }
.site-header svg.ic { width: 24px; height: 24px; }
.menu-toggle { display: grid; place-items: center; }
.main-nav a { font-size: 13px; }
.product-store-logo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 26px; letter-spacing: 6px; }
.product-store-logo .ic.crown { width: 26px; height: 26px; }
.search { flex: 0 1 380px; }
.search button { display: grid; place-items: center; order: -1; padding: 0; background: none; border: 0; color: #444; }
.search button .ic { width: 18px; height: 18px; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; background: #e53935; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }

html[data-theme="dark"] .site-header { background: #101a16; }
html[data-theme="dark"] .site-header a, html[data-theme="dark"] .menu-toggle { color: var(--text); }
html[data-theme="dark"] .search { background: #17211d; }
html[data-theme="dark"] .search input { color: var(--text); }
html[data-theme="dark"] .side-drawer { background: #101a16; color: var(--text); }

.loading { text-align: center; color: var(--muted); padding: 90px 0; }
.dash-page { max-width: 1280px; margin: 0 auto; padding: 0 24px 70px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--green); }

.dash { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-main { min-width: 0; }

/* ---------- sidebar ---------- */
.dash-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

.user-card {
    display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 45%), linear-gradient(145deg, #0b3a2c 0%, #14583f 100%);
    box-shadow: var(--shadow);
}
.avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.08); }
.uc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-text strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-text small { font-size: 12px; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.tier { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--gold); border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.2); }
.tier .ic.crown { width: 14px; height: 14px; }

.side-nav { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.side-nav a, .side-nav button {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; border: 0; border-radius: 12px;
    background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; transition: background .15s;
}
.side-nav a:hover, .side-nav button:hover { background: var(--green-soft); }
.side-nav a.active { background: var(--green); color: #fff; font-weight: 600; }
.side-nav a.active .go { opacity: 1; }
.side-nav hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.side-nav .logout { color: var(--danger); font-weight: 600; }
.side-nav .logout:hover { background: rgba(214, 69, 65, .1); }

.promo {
    display: block; padding: 26px 22px; border-radius: 18px; color: #fff; position: relative; overflow: hidden; min-height: 210px;
    background: url("promo.jpg") center/cover no-repeat, linear-gradient(150deg, #1b5a45, #0b3a2c 70%, #2a1f12);
    box-shadow: var(--shadow);
}
.promo small { letter-spacing: 2px; font-size: 11px; opacity: .85; }
.promo strong { display: block; margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.1; font-weight: 700; }
.promo p { margin: 0 0 18px; font-size: 13px; opacity: .85; max-width: 170px; }
.promo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 700; font-size: 14px; }
.promo-btn .ic { width: 16px; height: 16px; }

/* ---------- hero banner ---------- */
.hero {
    position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    min-height: 210px; padding: 34px 40px; margin-bottom: 26px; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
    background: url("banner.jpg") right center/cover no-repeat, linear-gradient(110deg, #f1f7f2 0%, #dcebe0 55%, #c6dfcf 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,250,247,.92) 0%, rgba(246,250,247,.55) 55%, transparent 100%); }
html[data-theme="dark"] .hero { background: url("banner.jpg") right center/cover no-repeat, linear-gradient(110deg, #16241e 0%, #1b3328 60%, #21402f 100%); }
html[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgba(14,22,19,.88), rgba(14,22,19,.4) 60%, transparent); }
.hero > * { position: relative; z-index: 1; }
.hero-sm { min-height: 170px; padding: 28px 40px; }
.hero h2 { margin: 0 0 12px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.hero h2 .js-name { text-transform: none; }
.hero p { margin: 0; max-width: 360px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero p b { color: var(--green); }
.hero-art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; min-width: 240px; }
.hero-art .leaves { position: absolute; right: -20px; top: -30px; width: 260px; opacity: .9; }
.hero-art .script { position: relative; font-family: "Caveat", "Brush Script MT", cursive; font-size: 44px; line-height: .95; color: var(--green); transform: rotate(-8deg); padding-right: 24px; text-align: center; }
.hero-sm h2 { font-size: 38px; }
.hero-sm .script { font-size: 34px; }

/* ---------- section titles ---------- */
.sec-title { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; }
.sec-title h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; position: relative; padding-bottom: 10px; }
.sec-title h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--green); }
.sec-title a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--green); }
.page-title { margin: 0 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

/* ---------- product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 40, 30, .14); }
.pimg { position: relative; aspect-ratio: 3 / 3.7; background: #e9ece9; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #222; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.heart .ic { width: 18px; height: 18px; }
.heart.on { color: var(--danger); }
.heart.on .ic { fill: var(--danger); }
.pbody { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pbody h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pbody h4 a:hover { color: var(--green); }
.pbody .cat { color: var(--muted); font-size: 13px; }
.pbody .price { margin: 6px 0 10px; font-size: 20px; font-weight: 800; }
.add-cart { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.add-cart:hover { background: var(--green-2); }
.add-cart .ic { width: 18px; height: 18px; }

/* ---------- cards / tiles (profile) ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px 24px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-head > div { flex: 1; min-width: 0; }
.card-head h3 { margin: 0; font-size: 21px; font-weight: 700; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card.editing { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 106, 82, .14); }

.ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--tone); }
.ico.ico-lg { flex-basis: 56px; width: 56px; height: 56px; }
.ico.ico-lg .ic { width: 26px; height: 26px; }
.t-green  { --tint: #cfeedd; --tone: #15704f; --tile: rgba(46, 158, 91, .10); }
.t-blue   { --tint: #d3e5fb; --tone: #2563b8; --tile: rgba(52, 120, 220, .10); }
.t-orange { --tint: #fbddc9; --tone: #d4561f; --tile: rgba(240, 130, 60, .12); }
.t-purple { --tint: #ddd5fa; --tone: #5b3fc4; --tile: rgba(110, 80, 220, .10); }
.t-yellow { --tint: #fbe9c0; --tone: #b87a0a; --tile: rgba(235, 170, 30, .12); }
.t-red    { --tint: #f9d5d3; --tone: #c33a35; --tile: rgba(214, 69, 65, .10); }
html[data-theme="dark"] .ico { background: rgba(255,255,255,.08); }

.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn-pill:hover { border-color: var(--green); color: var(--green); }
.btn-pill .ic { width: 16px; height: 16px; }

.tiles { display: grid; gap: 14px; margin-bottom: 14px; }
.tiles:last-child { margin-bottom: 0; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--tile); border: 1px solid transparent; }
.tile .ico { background: var(--tint); }
.tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tile-body b { font-size: 15px; font-weight: 700; }
.tile input, .tile select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.tile input:focus, .tile select:focus { outline: 2px solid var(--green-2); outline-offset: -1px; }
.tile input[readonly], .tile select:disabled, .tile input:disabled { cursor: default; opacity: 1; color: var(--text); -webkit-text-fill-color: var(--text); }
.tile input:disabled { opacity: .8; }

.form-actions { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.btn-green, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 210px; padding: 16px 34px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; }
.btn-green { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-green:hover { background: var(--green-2); }
.btn-green:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn-green.sm, .btn-outline.sm { min-width: 0; padding: 10px 22px; font-size: 14px; border-radius: 8px; }
.btn-outline.sm { border-color: var(--border); }
#btn-2fa { color: var(--danger); border-color: var(--danger); }

.msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.msg.ok { background: #e1f4e8; color: #17703f; }
.msg.err { background: #fdeceb; color: #b3261e; }
html[data-theme="dark"] .msg.ok { background: #173326; color: #8fe0b2; }
html[data-theme="dark"] .msg.err { background: #3a1d1b; color: #ffaaa5; }

/* ---------- orders ---------- */
.order { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--green-soft); }
.order-head small { display: block; color: var(--muted); margin-top: 2px; }
.badge { padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: #eee; color: #444; }
.badge.placed { background: #fff2c9; color: #8a6d00; }
.badge.shipped { background: #dcebff; color: #0b5cad; }
.badge.delivered { background: #d8f2e2; color: #17703f; }
.badge.cancelled { background: #fbdcda; color: #b3261e; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.order-item img { flex: 0 0 56px; width: 56px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #e9ece9; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .info strong { display: block; font-size: 14px; }
.order-item .info small { color: var(--muted); }
.order-foot { display: flex; justify-content: space-between; padding: 16px 20px; font-weight: 800; }
.empty { background: var(--card); border: 1px dashed var(--border); border-radius: 18px; padding: 60px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; }
.empty a { min-width: 0; padding: 12px 28px; }

/* ---------- settings ---------- */
.sec { background: var(--card); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sec-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.sec-head > div { flex: 1; min-width: 0; }
.sec-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.chev { transition: transform .2s; color: var(--muted); display: grid; }
.sec:not(.open) .chev { transform: rotate(-90deg); }
.sec:not(.open) .sec-body { display: none; }
.sec-body { padding: 4px 22px 24px; display: grid; gap: 20px; }
.sec-grid-2 { grid-template-columns: 1.1fr 1fr; }
.sec-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

#password-form { display: flex; flex-direction: column; gap: 12px; padding-right: 20px; border-right: 1px solid var(--border); }
#password-form h4, .side-item h4, .toggle-item h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.pw { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--muted); }
.pw input { flex: 1; min-width: 0; border: 0; background: none; padding: 13px 0; font: inherit; color: var(--text); outline: none; }
.pw:focus-within { outline: 2px solid var(--green-2); outline-offset: -1px; }
.eye { display: grid; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }
.strength { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.bars { display: flex; gap: 6px; }
.bars i { width: 52px; height: 5px; border-radius: 5px; background: var(--border); }
.strength.lvl-1 .bars i:nth-child(1) { background: #e53935; }
.strength.lvl-2 .bars i:nth-child(-n+2) { background: #f2a516; }
.strength.lvl-3 .bars i { background: #2e9e5b; }
.strength.lvl-1 b { color: #e53935; } .strength.lvl-2 b { color: #d48a00; } .strength.lvl-3 b { color: #2e9e5b; }
#password-form .btn-green { align-self: flex-start; }

.sec-side { display: flex; flex-direction: column; gap: 22px; }
.side-item, .toggle-item, .help-link { display: flex; align-items: flex-start; gap: 14px; }
.side-item p, .toggle-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.toggle-item { align-items: flex-start; }
.toggle-item > div { flex: 1; min-width: 0; }
.toggle-item p { margin: 0; }
.side-item > .ic, .toggle-item > .ic { color: var(--text); margin-top: 2px; }

.pref { display: flex; align-items: center; gap: 14px; }
.pref-ico { color: var(--text); display: grid; }
.pref label, .pref-theme { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pref select { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-weight: 400; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button .ic { width: 15px; height: 15px; }
.seg button.on { background: var(--green-soft); border-color: var(--green-2); color: var(--green-2); font-weight: 700; }

.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd5d2; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + span { background: var(--green-2); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }

.help-link { width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; align-items: center; }
.help-link:hover { border-color: var(--green-2); }
.help-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.help-link small { color: var(--muted); font-size: 12px; }
.help-link > .ic:last-child { color: var(--muted); width: 16px; height: 16px; }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: 85vh; overflow: auto; padding: 28px; border-radius: 18px; background: var(--card); color: var(--text); }
.modal-box h3 { margin: 0 0 4px; font-size: 20px; }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; }
#activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#activity-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
#activity-list small { color: var(--muted); display: block; }
#activity-list .now { color: var(--green-2); font-weight: 700; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 3500; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: 90vw; padding: 13px 22px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .dash { grid-template-columns: 1fr; }
    .dash-side { display: none; }
    .dash-page { padding: 0 16px 60px; }
    .hero { padding: 24px 22px; min-height: 160px; }
    .hero h2, .hero-sm h2 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero-art { min-width: 120px; }
    .hero-art .script, .hero-sm .script { font-size: 28px; padding-right: 6px; }
    .tiles-3, .sec-grid-3, .sec-grid-2 { grid-template-columns: 1fr; }
    #password-form { border-right: 0; padding-right: 0; }
    .product-store-logo { justify-content: flex-start; font-size: 18px; letter-spacing: 3px; }
    .main-nav { display: none; }
}
@media (max-width: 600px) {
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sec-grid-4 { grid-template-columns: 1fr; }
    .btn-green, .btn-outline { width: 100%; min-width: 0; }
    .page-title { font-size: 28px; }
    .hero-art .leaves { width: 180px; }
    .pbody .price { font-size: 17px; }
}

/* drawer menu (mobile) uses the same nav styling */
.drawer-account { margin: 8px 14px 20px; box-shadow: none; border: 0; padding: 0; }

/* ---------- fixes after visual check ---------- */
.promo-btn { color: #13261f; }                       /* stays readable in dark theme */

@media (max-width: 900px) {
    /* phone header like the mockup: menu, centred logo, cart */
    .search, .header-actions a:not(.cart-link) { display: none; }
    .site-header { flex-wrap: nowrap; gap: 12px; }
    .header-left { flex: 0 0 auto; }
    .product-store-logo { flex: 1; justify-content: center; white-space: nowrap; font-size: 17px; letter-spacing: 3px; text-align: center; }
    .product-store-logo .ic.crown { width: 20px; height: 20px; }
    .header-actions { flex: 0 0 auto; }
}
@media (max-width: 600px) {
    .add-cart { padding: 10px 6px; font-size: 13px; gap: 6px; white-space: nowrap; }
    .add-cart .ic { width: 16px; height: 16px; }
    .pbody h4 { font-size: 14px; }
}
