/* Five Ringgit Digital — site styles */

:root {
  --night: #0E0A1A;
  --surface: #171028;
  --plum: #20173A;
  --line: #2A1F4A;
  --line-strong: #3A2D63;
  --line-bright: #6B56A8;
  --violet: #7A3FF2;
  --feather: #C9B3FF;
  --feather-hi: #E4DAFF;
  --gold: #F2C35B;
  --gold-hi: #F7D27C;
  --ink-on-gold: #1A1206;
  --text: #F3EEFF;
  --text-2: #B9AEDA;
  --text-3: #9488B8;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--feather); text-decoration: none; }
a:hover { color: var(--feather-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 760px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.skip { position: absolute; left: -9999px; top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--ink-on-gold); font-weight: 700; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { flex: none; width: 50px; height: 38px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--display); font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; }
.brand__by { font-size: 11px; line-height: 14px; color: var(--text-3); }
.site-nav { display: none; gap: 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (min-width: 760px) { .site-nav { display: flex; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.btn svg { flex: none; }
.btn--gold { background: var(--gold); color: var(--ink-on-gold); }
.btn--gold:hover { background: var(--gold-hi); color: var(--ink-on-gold); }
.btn--ghost { background: transparent; border-color: var(--line-bright); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--feather); color: var(--text); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; border-radius: 14px; font-size: 16px; }
.btn--small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.link-strong { display: inline-flex; align-items: center; min-height: 48px; font-size: 15px; font-weight: 600; }

/* Hero */
.hero { background-image: repeating-linear-gradient(120deg, rgba(201, 179, 255, 0.06) 0 1px, rgba(201, 179, 255, 0) 1px 13px); }
.hero__grid { display: grid; gap: 36px; padding-top: 36px; padding-bottom: 40px; }
.eyebrow { margin: 0 0 16px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--feather); }
.hero__title { margin: 0 0 16px; display: flex; flex-direction: column; gap: 4px; font-family: var(--display); font-weight: 800; }
.hero__price { font-size: clamp(112px, 32vw, 168px); line-height: 0.84; letter-spacing: -0.04em; white-space: nowrap; color: var(--gold); }
.hero__rest { font-size: clamp(34px, 9.2vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.hero__lead { margin: 0 0 24px; max-width: 34em; font-size: 16px; line-height: 24px; color: var(--text-2); }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .hero__lead { font-size: 18px; line-height: 28px; }
}

/* Sections */
.section { padding-top: 8px; padding-bottom: 40px; }
.section--first { padding-top: 32px; }
.section-title { margin: 0 0 16px; font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .section { padding-bottom: 64px; }
  .section--first { padding-top: 64px; }
  .section-title { margin-bottom: 20px; font-size: 28px; line-height: 34px; }
}

/* Product card */
.product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease; }
.product-card:hover { border-color: var(--line-bright); color: var(--text); }
.product-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.kicker { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--feather); }
.product-card__name { font-family: var(--display); font-size: 18px; line-height: 23px; font-weight: 700; letter-spacing: -0.01em; }
.product-card__desc { font-size: 14px; line-height: 21px; color: var(--text-2); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.price { font-family: var(--display); font-weight: 800; color: var(--gold); }
.product-card__price { font-size: 26px; line-height: 30px; }
.product-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--feather); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 112px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease; }
a.cat:hover { border-color: var(--line-bright); color: var(--text); }
.cat__decor { position: absolute; top: -8px; right: -10px; width: 90px; height: 90px; }
.cat__icon { position: relative; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--plum); color: var(--feather); }
.cat__label { position: relative; display: flex; flex-direction: column; }
.cat__name { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-size: 18px; line-height: 22px; font-weight: 700; }
.cat__sub { font-size: 11px; line-height: 14px; color: var(--feather); }
.cat--soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.cat--soon .cat__icon { background: var(--surface); color: var(--text-3); }
.cat--soon .cat__name { color: var(--text-2); }
.cat--soon .cat__sub { color: var(--text-3); }
@media (min-width: 760px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat { min-height: 140px; padding: 18px; }
}

/* How to order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.step__num { flex: none; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--violet); color: #FFFFFF; font-family: var(--display); font-size: 16px; font-weight: 800; }
.step__text { display: flex; flex-direction: column; gap: 2px; }
.step__text strong { font-size: 15px; line-height: 20px; font-weight: 700; }
.step__text span { font-size: 14px; line-height: 20px; color: var(--text-2); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .step { padding: 18px; } }

/* Follow */
.follow { display: grid; gap: 12px; }
.social { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease; }
.social:hover { border-color: var(--line-bright); color: var(--text); }
.social svg { flex: none; color: var(--feather); }
.social__text { display: flex; flex-direction: column; }
.social__text strong { font-size: 15px; line-height: 20px; font-weight: 700; }
.social__text span { font-size: 13px; line-height: 18px; color: var(--text-3); }
@media (min-width: 760px) { .follow { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__in { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 28px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; line-height: 20px; font-weight: 700; }
.site-footer__brand svg { flex: none; width: 40px; height: 30px; }
.site-footer p { margin: 0; font-size: 12px; line-height: 18px; color: var(--text-3); }

/* Inner pages */
.page { padding-top: 4px; padding-bottom: 40px; }
@media (min-width: 900px) { .page { padding-top: 16px; padding-bottom: 72px; } }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--text-3); }
.crumbs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.page-title { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.page-title__icon { flex: none; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--plum); color: var(--feather); }
.page-title h1 { margin: 0; font-family: var(--display); font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; }
.page-lead { margin: 8px 0 16px; font-size: 14px; line-height: 21px; color: var(--text-2); }
@media (min-width: 900px) { .page-title h1 { font-size: 44px; line-height: 50px; } .page-lead { font-size: 16px; line-height: 24px; margin-bottom: 24px; } }

.chips { display: flex; gap: 8px; margin: 0 -20px 16px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--feather); font-size: 14px; font-weight: 600; }
.chip[aria-current] { border-color: var(--feather); background: var(--feather); color: #150D2B; font-weight: 700; }
.chip[aria-current]:hover { color: #150D2B; }
.chip--soon { padding: 0 14px; border-style: dashed; color: var(--text-3); }
.chip--soon small { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
@media (min-width: 760px) { .chips { margin: 0 0 24px; padding: 0; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.more-card { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; border: 1px dashed var(--line-strong); }
.more-card strong { font-size: 15px; line-height: 20px; font-weight: 700; }
.more-card__text { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.more-card a { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Product page */
.product { display: grid; gap: 20px; }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery__main { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.gallery__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { display: block; min-height: 44px; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--line-bright); }
.thumb[aria-pressed="true"] { border-color: var(--feather); }

.product__info { min-width: 0; }
.tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 12px; font-weight: 500; }
.tag--cat { border-color: transparent; background: var(--plum); color: var(--feather); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.product__title { margin: 12px 0 0; font-family: var(--display); font-size: 26px; line-height: 31px; font-weight: 800; letter-spacing: -0.02em; }
.product__lead { margin: 10px 0 0; font-size: 16px; line-height: 24px; color: var(--text-2); }
.product__price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.product__price .price { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
.product__price small { font-size: 13px; line-height: 18px; color: var(--text-3); }

.order { display: flex; flex-direction: column; margin-top: 20px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.msg__label { font-size: 13px; line-height: 18px; color: var(--text-3); }
.msg__bubble { margin: 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--plum); font-size: 14px; line-height: 21px; }
.order__alt-label { margin: 16px 0 8px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.order__alt { display: flex; gap: 12px; }
.order__alt > * { flex: 1 1 0; }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px 40px; margin-top: 32px; }
.details h2 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
.details p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-2); }
.details .fine { margin-top: 12px; font-size: 13px; line-height: 19px; color: var(--text-3); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.checks svg { flex: none; width: 20px; height: 22px; color: var(--feather); }
.levels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.levels li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.levels b { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--violet); color: #FFFFFF; font-size: 11px; font-weight: 700; }
.levels .boss { border-color: var(--gold); }
.levels .boss b { background: var(--gold); color: var(--ink-on-gold); font-size: 10px; }

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
  .product__title { font-size: 34px; line-height: 40px; }
  .details { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
}
