/* PlayWithWeb storefront
   Harbour navy structure, soft mist surfaces, marigold for the one action that matters: buying. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

:root {
  --navy: #14213d; --navy-2: #1c2d52; --navy-3: #2a3d66;
  --ink: #1a2233; --ink-2: #3b4658; --muted: #667085; --line: #e3e8ef; --line-2: #d3dae5;
  --bg: #f4f6f9; --card: #ffffff; --soft: #f8f9fb;
  --blue: #2f5bd3; --blue-2: #2449ad; --blue-soft: #eaf0fd;
  --marigold: #ffc247; --marigold-2: #f5b025; --marigold-ink: #3a2a00;
  --coral: #e0524a; --coral-soft: #fdecea; --leaf: #1f8a5b; --leaf-soft: #e6f4ed; --amber: #b46a00;
  --brand: var(--blue); --brand-2: var(--blue-2); --brand-soft: var(--blue-soft);
  --sale: var(--coral); --sale-soft: var(--coral-soft); --warn: #c98200; --danger: #c93b33;
  --radius: 14px; --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(20, 33, 61, .06), 0 1px 1px rgba(20, 33, 61, .04);
  --shadow-2: 0 2px 6px rgba(20, 33, 61, .06), 0 10px 24px rgba(20, 33, 61, .07);
  --shadow-3: 0 12px 40px rgba(20, 33, 61, .18);
  --shadow: var(--shadow-2);
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(47, 91, 211, .45); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.4rem); }
h2 { font-weight: 750; font-size: 1.4rem; }
h3 { font-weight: 700; }
p { margin: 0 0 .9em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

/* ---------- Header ---------- */
.promo { background: var(--navy); color: #c9d3e6; font-size: 13px; text-align: center; padding: 7px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.promo strong { color: var(--marigold); }
.promo a { color: var(--marigold) !important; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(20, 33, 61, .12); }
.header-row { display: flex; align-items: center; gap: 22px; padding-block: 12px; flex-wrap: wrap; }
.site-header > .wrap.header-row { max-width: none; background: var(--navy-2); padding-inline: max(20px, calc((100vw - 1200px) / 2)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.logo img { width: 36px; height: 36px; }
.logo b { color: var(--marigold); font-weight: 800; }
.search { flex: 1 1 360px; position: relative; display: flex; }
.search input { flex: 1; border: 2px solid transparent; border-radius: 12px 0 0 12px; padding: 11px 16px; background: #fff; min-width: 0; font-size: 15px; }
.search input:focus { border-color: var(--marigold); outline: none; }
.search > button { border: 0; background: var(--marigold); color: var(--marigold-ink); padding: 0 22px; border-radius: 0 12px 12px 0; cursor: pointer; font-weight: 700; }
.search > button:hover { background: var(--marigold-2); }
.suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); list-style: none; margin: 0; padding: 6px; z-index: 50; color: var(--ink); }
.suggestions li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--blue-soft); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions a { text-decoration: none; color: #fff; font-weight: 650; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; }
.header-actions a:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.header-actions a::before { content: ""; width: 20px; height: 20px; background: currentColor; opacity: .92; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.header-actions a[data-testid="account-link"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.header-actions a[aria-label="Cart"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.9a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E"); }
.badge { background: var(--marigold); color: var(--marigold-ink); border-radius: 999px; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; }
.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.main-nav > ul { list-style: none; margin: 0 auto; padding-block: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav li { position: relative; list-style: none; }
.main-nav a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.mega { position: absolute; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 10px; margin: 0; display: none; grid-template-columns: repeat(2, 180px); gap: 2px; z-index: 45; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega a { padding: 9px 12px; border-radius: 8px; font-weight: 550; text-transform: capitalize; }
.mega a:hover { background: var(--blue-soft); color: var(--blue-2); }
.cart-wrap { position: relative; }
.mini-cart { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 16px; z-index: 60; }
.mini-cart ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.mini-cart li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-cart .btn-outline { color: var(--ink) !important; }
.mini-cart .btn:not(.btn-outline) { color: var(--marigold-ink) !important; }
.menu-toggle { display: none; color: #fff !important; border-color: rgba(255, 255, 255, .4) !important; background: transparent !important; }
.mobile-menu { display: grid; gap: 2px; padding: 8px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .header-row { gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; background: var(--marigold); color: var(--marigold-ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, box-shadow .15s, transform .05s; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.btn:hover { background: var(--marigold-2); color: var(--marigold-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-outline:hover { background: var(--soft); border-color: #b9c3d3; color: var(--ink); }
.btn-sale { background: var(--coral); color: #fff; }
.btn-sale:hover { background: #c9443c; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 13px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 211, .14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(201, 59, 51, .1); }
select { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 12px; background: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: 17px; height: 17px; }
input[type="range"] { accent-color: var(--blue); }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.success { color: var(--leaf); font-weight: 700; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); background: var(--leaf-soft); color: #155f3f; font-weight: 600; border: 1px solid #c9e6d6; }
.alert.alert-error { background: var(--coral-soft); color: #9e2f29; border-color: #f5c8c4; }
.choice { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- Page scaffolding ---------- */
main { padding-block: 28px 56px; min-height: 60vh; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.narrow { max-width: 560px; margin-inline: auto; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.section { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.center { text-align: center; }
.empty { text-align: center; padding: 48px 24px; }

/* ---------- Home ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; border-radius: 22px; padding: 48px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #22386b 0%, var(--navy) 55%, #0f1a31 100%); color: #e8edf7; box-shadow: var(--shadow-2); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; letter-spacing: -.03em; margin-bottom: 14px; }
.hero p { color: #c3cde0; max-width: 44ch; font-size: 17px; }
.hero .btn { font-size: 16px; padding: 13px 26px; }
.hero .btn.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-3deg); }
.hero-art img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 3px solid rgba(255, 255, 255, .9); }
.hero-art img:nth-child(3n + 2) { transform: translateY(18px); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding: 30px 24px; } .hero-art { transform: none; } }
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px; }
.category-tile { text-decoration: none; color: var(--ink); font-weight: 700; display: grid; gap: 10px; justify-items: center; text-transform: capitalize; padding: 6px; border-radius: var(--radius); }
.category-tile img { width: 100%; max-width: 128px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-2); transition: transform .2s; }
.category-tile:hover { color: var(--blue); }
.category-tile:hover img { transform: scale(1.04); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perk { padding: 20px 22px; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; }
.perk strong { display: block; font-size: 16px; margin-bottom: 2px; }
.newsletter { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.newsletter .field { flex: 1 1 280px; margin: 0; }
#newsletter { background: linear-gradient(135deg, #fff 0%, var(--blue-soft) 100%); }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; box-shadow: var(--shadow-1); transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card img { aspect-ratio: 1; object-fit: cover; background: var(--soft); border-radius: 10px; width: 100%; margin-bottom: 6px; }
.card h3 { font-size: 15px; font-weight: 650; margin: 0; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; }
.price { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.price s, s.muted { font-weight: 500; font-size: 14px; }
.rating { color: var(--warn); font-size: 13px; font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; font-size: 13px; }
.stock-low { color: var(--amber); font-weight: 700; font-size: 13px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; align-items: center; }
.card-actions .btn { flex: 1 1 auto; }
.tag { position: absolute; top: 20px; left: 20px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(224, 82, 74, .35); z-index: 1; }

/* ---------- Catalogue ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }
.filters { padding: 20px; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin: 0 0 16px; }
.filters legend { font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.filters label { text-transform: capitalize; font-size: 15px; }
.filters .choice { margin-bottom: 7px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.toolbar label { font-weight: 600; margin-right: 6px; }
#active-filters .btn { background: var(--blue-soft); border-color: #cddaf8; color: var(--blue-2); }
.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 48px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 10px 8px 20px; display: flex; gap: 14px; align-items: center; z-index: 66; box-shadow: var(--shadow-3); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.gallery-main { overflow: hidden; border-radius: 12px; background: var(--soft); cursor: zoom-in; }
.gallery-main img { transition: transform .3s; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-main.zoomed { cursor: zoom-out; }
.gallery-main.zoomed img { transform: scale(1.8) !important; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14px; }
.qty { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: transparent; width: 40px; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty button:hover:not([disabled]) { background: var(--soft); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-block: 16px; }
.sizes label.choice { transition: border-color .15s, background .15s; }
.sizes label.choice:has(input:checked) { border-color: var(--blue) !important; background: var(--blue-soft) !important; color: var(--blue-2); }
.tooltip-wrap { position: relative; display: inline-block; vertical-align: middle; }
.tooltip { position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 7px 11px; border-radius: 8px; font-size: 13px; white-space: nowrap; display: none; z-index: 5; box-shadow: var(--shadow-2); }
.tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip { display: block; }
.info-icon { border: 1.5px solid var(--line-2); color: var(--muted); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; font-weight: 800; background: #fff; cursor: help; }
.tabs [role="tablist"] { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 32px; flex-wrap: wrap; }
.tabs [role="tab"] { border: 0; background: none; padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--muted); border-radius: 10px 10px 0 0; }
.tabs [role="tab"]:hover { color: var(--ink); background: var(--soft); }
.tabs [role="tab"][aria-selected="true"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.tabs [role="tabpanel"] { padding: 18px 0; max-width: 75ch; }
.recs-frame { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 33, 61, .08); z-index: 65; }
.sticky-buy .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }

/* ---------- Tables, cart, checkout ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
th button { all: unset; cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td input[type="number"] { width: 76px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 6px 9px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.summary { display: grid; gap: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pagination button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 940px) { .checkout { grid-template-columns: 1fr; } }
.payment-frame { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps-bar { display: flex; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--muted); flex-wrap: wrap; align-items: center; }
.steps-bar span { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.steps-bar span[aria-current="step"] { color: #fff; background: var(--navy); border-color: var(--navy); }

/* ---------- Overlays ---------- */
.toast-host { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 90; }
.toast { background: var(--navy); color: #fff; padding: 13px 18px 13px 16px; border-radius: 12px; box-shadow: var(--shadow-3); font-weight: 600; border-left: 4px solid var(--marigold); animation: toast-in .25s ease-out; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 26, 49, .55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { background: var(--card); border-radius: 20px; padding: 28px; width: min(540px, 100%); position: relative; box-shadow: var(--shadow-3); }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal-close:hover { background: var(--line); }
.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(920px, calc(100% - 32px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 70; box-shadow: var(--shadow-3); }
.context-menu { position: fixed; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); list-style: none; margin: 0; padding: 6px; z-index: 85; min-width: 190px; }
.context-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; cursor: pointer; border-radius: 8px; }
.context-menu button:hover { background: var(--blue-soft); }

/* ---------- Calendar ---------- */
.datepicker { position: relative; }
.calendar { position: absolute; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 12px; z-index: 30; width: 300px; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 13px; }
.calendar-grid button { border: 0; background: none; padding: 7px 0; border-radius: 8px; cursor: pointer; font-weight: 600; }
.calendar-grid button:hover:not([disabled]) { background: var(--blue-soft); color: var(--blue-2); }
.calendar-grid button[disabled] { color: #bcc4d0; cursor: not-allowed; font-weight: 400; }

/* ---------- Deals ---------- */
.deal-strip { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(90deg, var(--coral-soft), #fff6e3); border: 1px solid #f6d3c6; border-radius: var(--radius); padding: 16px 20px; flex-wrap: wrap; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; color: var(--coral); letter-spacing: .02em; }
.bundle { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .bundle { grid-template-columns: 1fr; } }
.chip { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: grab; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; box-shadow: var(--shadow-1); }
.dropzone { min-height: 190px; border: 2px dashed #b7c6ec; border-radius: var(--radius); padding: 14px; background: var(--blue-soft); }
.dropzone.over { background: #dbe5fb; border-color: var(--blue); }
.ticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wheel-wrap { position: relative; width: min(280px, 80vw); margin: 10px auto; }
.wheel-wrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(20, 33, 61, .25)); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--navy); z-index: 2; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; font-size: 30px; color: #d3dae5; cursor: pointer; padding: 0 2px; transition: color .1s; }
.stars button.on { color: var(--marigold-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8c3d8; margin-top: 56px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-block: 40px 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b8c3d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p a { color: var(--marigold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.footer-bottom .qa-link { color: #8190ab; font-size: 12px; }

/* ---------- Test cases page ---------- */
.levels-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.level { margin-bottom: 30px; scroll-margin-top: 140px; }
.level-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.level-num { background: var(--navy); color: var(--marigold); font-weight: 800; border-radius: 8px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.tc { border: 1px solid var(--line); background: var(--card); border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow-1); }
.tc summary { cursor: pointer; padding: 13px 16px; display: flex; gap: 12px; align-items: baseline; font-weight: 700; }
.tc summary code { color: var(--blue-2); font-size: 13px; flex: none; }
.tc-body { padding: 0 18px 16px 18px; }
.tc-body ol { margin: 6px 0 12px; padding-left: 22px; }
.tc-body .expected { background: var(--leaf-soft); border-radius: 10px; padding: 10px 14px; }
code, pre { font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace; }
pre { background: var(--navy); color: #dbe3f2; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 13px; }
pre code { background: none; border: 0; padding: 0; }

/* ---------- Refinements ---------- */
.header-actions .menu-toggle { display: none; }
@media (max-width: 760px) { .header-actions .menu-toggle { display: inline-flex; } }
#featured { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cart-layout .table-scroll { margin-bottom: 16px; }
.card .tag[style] { background: var(--navy) !important; box-shadow: 0 2px 6px rgba(20, 33, 61, .3); }
.steps-table td, .steps-table th { vertical-align: top; font-size: 14px; padding: 9px 12px; }
.steps-table td:first-child { width: 56px; color: var(--muted); font-weight: 700; }
.steps-table td:nth-child(3) { width: 24%; }
.steps-table td:nth-child(4) { width: 36%; color: var(--ink-2); }
.steps-table code { white-space: normal; word-break: break-word; }
