:root {
  --bg: #060b1d;
  --panel: #0d1630;
  --panel-soft: #111f42;
  --text: #edf2ff;
  --muted: #a8b6d9;
  --accent: #ff922d;
  --accent-2: #37b7ff;
  --line: rgba(167, 188, 233, 0.22);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; background: linear-gradient(180deg, #081022 0%, #050914 100%); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(5, 9, 20, 0.8); border-bottom: 1px solid rgba(255,255,255,0.06); }
.store-flash { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 146, 45, 0.28); background: rgba(255, 146, 45, 0.1); color: #ffd6b0; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark { color: var(--accent); font-size: 1.15rem; }
.brand-sub { color: #fff; font-size: 1rem; }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-size: 0.96rem; }
.main-nav a:hover, .main-nav a:focus { color: #fff; }
.cart-link { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); }
.cart-link span { color: var(--accent); margin-left: 6px; }

.hero-band, .content-band { padding: 44px 0; }
.alt-band { background: rgba(255,255,255,0.02); }
.hero-grid, .two-column, .about-grid, .product-layout, .cart-layout { display: grid; gap: 28px; }
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr); align-items: center; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.77rem; color: var(--accent-2); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: 1.02; max-width: 12ch; }
h2 { font-size: clamp(1.7rem, 2.2vw, 2.5rem); line-height: 1.1; }
.hero-text { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.hero-pills, .badge-row, .hero-actions, .hero-card-actions, .action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-pills span, .badge { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,0.03); font-size: 0.9rem; }
.badge { color: #fff; background: rgba(255, 146, 45, 0.15); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: white; background: transparent; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, #ff6d2d 100%); border: 0; box-shadow: 0 18px 42px rgba(255, 125, 33, 0.35); }
.btn-secondary { background: rgba(255,255,255,0.03); }
.btn-block { width: 100%; }
.text-link { color: var(--accent-2); }

.hero-card, .product-card, .bundle-card, .summary-card, .notice-card, .gallery-panel, .detail-panel, .panel-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 24, 48, 0.95), rgba(8, 14, 31, 0.98));
  box-shadow: var(--shadow);
}

.hero-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); padding: 18px; gap: 22px; }
.hero-card-media { display: flex; align-items: center; justify-content: center; border-radius: 18px; background: rgba(255,255,255,0.03); min-height: 320px; }
.hero-card-media img { max-height: 300px; object-fit: contain; }
.hero-card-copy { padding: 12px 8px 12px 0; }
.price-row { margin: 18px 0; font-size: 1.25rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack-grid { display: grid; gap: 18px; }
.product-card { overflow: hidden; }
.product-media { aspect-ratio: 4 / 4.8; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; padding: 18px; }
.product-media img { max-height: 300px; object-fit: contain; }
.product-body { padding: 18px; display: grid; gap: 12px; }
.product-type, .meta-line { color: var(--muted); font-size: 0.92rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.subdued-card { opacity: 0.92; }
.bundle-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; }
.about-photo { padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,0.02); }
.about-photo img { border-radius: 18px; }

.product-layout { grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr); align-items: start; }
.gallery-panel, .detail-panel, .summary-card { padding: 24px; }
.gallery-main { width: 100%; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 20px; min-height: 460px; display: flex; align-items: center; justify-content: center; position: relative; cursor: zoom-in; }
.gallery-main img { max-height: 420px; object-fit: contain; }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; border-radius: 999px; padding: 8px 12px; background: rgba(6, 11, 29, 0.86); border: 1px solid var(--line); color: white; font-size: 0.88rem; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.gallery-thumb { border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 8px; aspect-ratio: 1 / 1; cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 146, 45, 0.3) inset; }
.gallery-strip img { width: 100%; height: 100%; border-radius: 10px; object-fit: contain; }
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.is-open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); }
.lightbox-dialog { position: relative; max-width: min(92vw, 1100px); max-height: 88vh; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: #0b1328; z-index: 1; box-shadow: var(--shadow); }
.lightbox-dialog img { max-width: 100%; max-height: calc(88vh - 44px); object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: white; cursor: pointer; }
.detail-panel { display: grid; gap: 18px; }
.price-panel { display: flex; align-items: baseline; gap: 16px; font-size: 1.4rem; }
.detail-copy { color: var(--muted); line-height: 1.75; }
.purchase-panel { display: grid; gap: 16px; padding-top: 12px; }
.purchase-panel label { display: grid; gap: 8px; }
.share-panel { display: grid; gap: 12px; padding-top: 6px; }
.share-panel span { color: var(--muted); font-size: 0.94rem; }
.share-links { display: flex; gap: 10px; flex-wrap: wrap; }
.share-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: white; }
.purchase-panel input, .purchase-panel select, textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: white; padding: 14px;
}

.cart-layout { grid-template-columns: minmax(0, 1.5fr) 360px; align-items: start; }
.cart-list { display: grid; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; gap: 18px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.cart-item img { width: 100%; border-radius: 14px; background: rgba(255,255,255,0.03); }
.cart-copy { color: var(--muted); }
.cart-side { display: grid; gap: 14px; justify-items: end; }
.cart-side input { width: 84px; }
.summary-card dl { display: grid; gap: 14px; margin: 0 0 20px; }
.summary-card dl div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.summary-card .summary-total { color: white; font-size: 1.15rem; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }

.narrow-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.notice-card { padding: 30px; text-align: center; }
.success-card { border-color: rgba(80, 221, 145, 0.35); }
.empty-state { padding: 28px; border-radius: 20px; border: 1px dashed var(--line); }
.page-body { color: var(--muted); line-height: 1.8; }
.site-footer { padding: 24px 0 40px; color: var(--muted); font-size: 0.94rem; }

@media (max-width: 1080px) {
  .hero-grid, .two-column, .about-grid, .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-shell, .main-nav, .hero-card, .bundle-card, .cart-item { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .main-nav { display: grid; width: 100%; }
  .card-grid, .compact-grid, .gallery-strip { grid-template-columns: 1fr; }
  .hero-card { display: grid; }
  .cart-item { display: grid; }
}
