:root {
  --bg: #0b0d14;
  --bg-2: #121522;
  --card: #171a2a;
  --line: #262a3d;
  --ink: #f3f4f8;
  --ink-2: #b7bccf;
  --muted: #8a90a8;
  --brand: #ffcb05;
  --brand-2: #ff8a00;
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.block { display: block; }

/* Announce + header */
.announce { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #1a1200; font-size: .85rem; text-align: center; padding: 7px 12px; font-weight: 500; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,20,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo span:not(.logo-ball) { color: var(--brand); }
.logo-ball { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, var(--red) 0 46%, #111 46% 54%, #fff 54%); position: relative; box-shadow: 0 0 0 2px #111; }
.logo-ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #111; transform: translate(-50%, -50%); }
.nav-links { display: flex; gap: 16px; font-size: .9rem; color: var(--ink-2); flex: 1; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.search { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { background: transparent; border: 0; color: var(--ink); padding: 8px 14px; width: 210px; outline: none; font: inherit; font-size: .9rem; }
.search button { background: transparent; border: 0; padding: 0 12px; cursor: pointer; }
.cart-link { position: relative; font-size: 1.3rem; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -6px; background: var(--brand); color: #1a1200; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.burger { display: none; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--bg-2); }
.mobile-nav a { padding: 12px 20px; border-bottom: 1px solid var(--line); }
body.nav-open .mobile-nav { display: flex; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #1a1200; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 700; transition: transform .1s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.input, .input-sm, select, input[type=number], input[type=text], input[type=search] { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: inherit; }
.input-sm { width: 90px; }
select { cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 48px 0 30px; min-height: 440px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.hero-cards { position: relative; height: 420px; }
.hc { position: absolute; width: 230px; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.6); transition: transform .4s; }
.hc1 { left: 8%; top: 40px; transform: rotate(-12deg); z-index: 1; }
.hc2 { left: 32%; top: 0; transform: rotate(2deg); z-index: 3; width: 250px; }
.hc3 { left: 58%; top: 50px; transform: rotate(13deg); z-index: 2; }
.hero-cards:hover .hc1 { transform: rotate(-16deg) translateX(-14px); }
.hero-cards:hover .hc3 { transform: rotate(17deg) translateX(14px); }
.hero-cards:hover .hc2 { transform: rotate(0) translateY(-10px) scale(1.03); }

/* Category strip */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 18px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.cat-chip:hover { border-color: var(--brand); }

/* Sections + grid */
.section { padding: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-head a { color: var(--brand); font-weight: 600; font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid > *, .hero > *, .product > *, .cart-layout > *, .order-grid > *, .footer-grid > *, .usp > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: #3a3f58; }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-single .card-img { padding: 14px; background: radial-gradient(circle at 50% 30%, #23273a, var(--bg-2)); }
.card-single .card-img img { object-fit: contain; border-radius: 8px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--brand-2); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.ribbon-out { background: #475569; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-set { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-weight: 600; line-height: 1.3; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }

/* USP */
.usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 30px 0 50px; }
.usp div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.usp span { color: var(--muted); font-size: .9rem; }

/* Product list */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 0 10px; flex-wrap: wrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 8px; }
.crumbs a:hover { color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 22px; }
.chip { background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip.active { background: var(--brand); color: #1a1200; border-color: var(--brand); }
.empty { text-align: center; padding: 70px 0; }
.empty .btn { margin-top: 12px; }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 10px 0 40px; }
.product-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-media.is-card { padding: 30px; background: radial-gradient(circle at 50% 30%, #23273a, var(--bg-2)); }
.product-media.is-card img { max-height: 620px; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.product-price { font-family: var(--display); font-size: 2rem; font-weight: 800; margin: 8px 0 12px; }
.stock { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stock .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.stock.out .dot { background: var(--red); box-shadow: none; }
.add-form-lg { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 20px; }
.qty { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 4px; }
.qty input { width: 80px; padding: 12px; font-size: 1rem; }
.desc { color: var(--ink-2); font-size: 1.02rem; }
.product-usps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }

/* Payment badges */
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pay-badges.center { justify-content: center; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.badge-swish { background: #fff; color: #1e2a44; font-style: italic; }
.badge-klarna { background: #ffb3c7; color: #17120f; }
.badge-visa { background: #1a1f71; color: #fff; font-style: italic; }
.badge-mc { background: #eb001b; color: #fff; }
.hero-pay { display: flex; gap: 8px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; padding-bottom: 40px; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.cart-name { font-weight: 600; }
.cart-qty input { width: 70px; }
.cart-total { font-weight: 700; min-width: 90px; text-align: right; }
.cart-remove button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }
.cart-remove button:hover { color: var(--red); border-color: var(--red); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.row.col { flex-direction: column; gap: 4px; }
.row.total { font-family: var(--display); font-weight: 800; font-size: 1.2rem; border-bottom: 0; }
.notice { background: rgba(255,203,5,.12); border: 1px solid rgba(255,203,5,.35); color: var(--brand); padding: 12px 14px; border-radius: 10px; margin: 10px 0; }
address { font-style: normal; color: var(--ink-2); }

/* Order / success */
.order-page { padding: 30px 0 50px; }
.order-hero { text-align: center; padding: 30px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.order-hero.warn { border-color: rgba(255,203,5,.4); }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; font-weight: 800; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #334155; color: #fff; vertical-align: middle; }
.status-paid { background: var(--green); color: #052e16; }
.status-shipped { background: var(--blue); }
.status-pending { background: var(--brand); color: #1a1200; }
.status-cancelled, .status-failed { background: var(--red); }

/* Prose */
.prose { max-width: 760px; padding: 30px 0 60px; color: var(--ink-2); }
.prose h1 { color: var(--ink); }
.prose h2 { color: var(--ink); font-size: 1.2rem; margin-top: 1.6em; }

/* Admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 10px; flex-wrap: wrap; gap: 12px; }
.admin-nav { display: flex; gap: 14px; }
.admin-nav a { color: var(--ink-2); font-weight: 600; }
.admin-nav a.active { color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat strong { font-family: var(--display); font-size: 1.6rem; }
.table-wrap { overflow-x: auto; margin-bottom: 30px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table tr.inactive { opacity: .5; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-form.center { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; padding: 40px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid a { display: block; color: var(--ink-2); padding: 3px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; flex-wrap: wrap; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--brand); color: var(--ink); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; display: flex; gap: 14px; align-items: center; }
.toast a { color: var(--brand); font-weight: 700; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-cards { height: 300px; }
  .hc { width: 160px; } .hc2 { width: 175px; }
  .hc1 { left: 2%; } .hc3 { left: 60%; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .order-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search { display: none; }
  .burger { display: inline-block; }
  .nav { gap: 12px; }
  .cart-line { grid-template-columns: 70px 1fr auto; }
  .cart-thumb img { width: 70px; height: 70px; }
  .cart-total { grid-column: 2; text-align: left; }
  .cart-qty { grid-column: 3; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .card-foot .add-form, .card-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
