:root {
  --black: #050505;
  --ink: #151515;
  --paper: #f7f7f4;
  --white: #ffffff;
  --muted: #6f737a;
  --line: #dedede;
  --panel: #111318;
  --cyan: #37d9ff;
  --lime: #aaff00;
  --red: #ff3131;
  --shadow: 0 24px 70px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.topbar { background: #000; color: #fff; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 10px 0; line-height: 1.3; }
.nav { position: sticky; top: 0; z-index: 50; background: #000; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav .container { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { font-weight: 900; font-style: italic; letter-spacing: .08em; font-size: 24px; }
.menu { display: flex; gap: 24px; align-items: center; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.menu a.active, .menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-link, .cart-link { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }

.hero { background: linear-gradient(180deg, #06181f 0%, #050505 72%); color: #fff; min-height: 610px; display: grid; align-items: center; overflow: hidden; padding: 52px 0; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--cyan); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(42px, 7vw, 92px); line-height: .92; margin: 18px 0; text-transform: uppercase; }
.lead { color: #d9dce0; font-size: 20px; line-height: 1.65; max-width: 660px; }
.actions, .product-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.btn { border: 1px solid var(--line); border-radius: 6px; min-height: 46px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #111; font-weight: 900; cursor: pointer; }
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.light { background: #fff; color: #111; }
.btn.secondary { background: transparent; color: inherit; }
.btn.full { width: 100%; }
.hero .btn.secondary { color: #fff; border-color: rgba(255,255,255,.3); }

.showcase-frame, .real-frame {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 4.65 / 1;
  margin: 0 auto;
  border-radius: 18px;
  border: 6px solid #17242c;
  background: linear-gradient(180deg, #627280, #22313a 58%, #020303 59%, #050505);
  box-shadow: 0 28px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.18), 0 0 44px rgba(55,217,255,.22);
  overflow: hidden;
}
.showcase-frame::before, .real-frame::before {
  content: "";
  position: absolute;
  inset: 15px 20px 43px;
  border: 3px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 14px, transparent 15px),
    linear-gradient(28deg, transparent 0 46%, #fff 47% 55%, transparent 56%),
    linear-gradient(152deg, transparent 0 46%, #fff 47% 55%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.96) 18px 26px, transparent 26px 54px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.showcase-frame::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 44px;
  border-radius: 0 0 10px 10px;
  background: #050505;
  z-index: 2;
}
.showcase-frame span, .frame-caption { position: absolute; left: 26%; right: 26%; bottom: 17px; z-index: 4; color: #fff; text-align: center; font-weight: 900; letter-spacing: .06em; text-shadow: 0 0 16px currentColor; white-space: nowrap; }
.frame-caption { font-size: clamp(15px, 2.3vw, 25px); }
.frame-brand { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); z-index: 2; font-size: 11px; color: rgba(255,255,255,.28); font-style: italic; }

.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-title { font-size: clamp(32px, 4vw, 56px); margin: 0; text-transform: uppercase; }
.section-sub { color: var(--muted); line-height: 1.6; max-width: 680px; }
.dark { background: #080808; color: #fff; }
.dark .section-sub, .dark .product-card p { color: #c9ccd1; }

.feature-grid, .products-grid, .collections-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.products-grid { grid-template-columns: repeat(3, 1fr); }
.collections-grid { grid-template-columns: repeat(3, 1fr); }
.feature, .product-card, .collection-card, .box, .notice { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.feature, .box, .notice { padding: 24px; }
.feature b { display: block; margin-bottom: 8px; }
.feature p, .product-card p, .collection-card span, .muted { color: var(--muted); line-height: 1.55; }
.product-card, .collection-card { overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.product-card img, .collection-card img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; background: #f0f0ee; }
.product-body { padding: 20px; }
.product-body h3, .collection-card h3 { margin: 8px 0; font-size: 22px; }
.collection-card { display: block; padding-bottom: 18px; }
.collection-card span, .collection-card h3 { margin-left: 20px; margin-right: 20px; }
.meta { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters .active { background: #111; color: #fff; border-color: #111; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.gallery img { border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
label { display: block; margin: 18px 0 8px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #111; }
textarea { min-height: 120px; resize: vertical; }

.designer-page { background: #f5f5f2; padding: 54px 0 80px; }
.designer-layout { display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(340px, .85fr); gap: 58px; align-items: start; }
.designer-preview { position: sticky; top: 122px; min-height: 520px; display: grid; place-items: center; }
.designer-panel h1 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; text-transform: none; }
.designer-price { font-size: 22px; margin-bottom: 12px; }
.qty { width: 160px; display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.qty button, .qty input { border: 0; border-radius: 0; text-align: center; min-height: 42px; background: #fff; }
.segmented { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-height: 44px; min-width: 96px; font-weight: 900; cursor: pointer; }
.segmented button.active { background: #111; color: #fff; border-color: #111; }
.swatches { display: grid; grid-template-columns: repeat(8, 34px); gap: 10px; }
.swatch { width: 34px; height: 34px; border: 2px solid transparent; border-radius: 999px; background: var(--swatch); box-shadow: 0 0 0 1px rgba(0,0,0,.16); cursor: pointer; }
.swatch.active { border-color: #111; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111; }
.real-frame[data-mode="night"] { background: linear-gradient(180deg, #202932, #07090b 58%, #000 59%, #020202); box-shadow: 0 0 72px rgba(0,0,0,.32); }
.real-frame[data-led="No"] .frame-caption { text-shadow: none !important; }
.frame-hole { position: absolute; z-index: 1; width: 32px; height: 18px; border-radius: 6px; background: #fff; }
.hole-a { left: 105px; top: 34px; } .hole-b { right: 105px; top: 34px; } .hole-c { left: 105px; bottom: 60px; } .hole-d { right: 105px; bottom: 60px; }
.frame-icon { position: absolute; z-index: 3; bottom: 10px; width: 44px; height: 32px; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 0 14px currentColor; }
.frame-icon.left { left: 128px; } .frame-icon.right { right: 128px; }
.frame-line { position: absolute; z-index: 2; left: 26%; right: 26%; height: 2px; background: currentColor; color: #fff; box-shadow: 0 0 14px currentColor; opacity: 0; }
.frame-line.top { bottom: 42px; } .frame-line.bottom { bottom: 9px; }
.real-frame[data-lines="top"] .frame-line.top, .real-frame[data-lines="bottom"] .frame-line.bottom, .real-frame[data-lines="both"] .frame-line { opacity: 1; }
.font-1 { font-family: Arial, Helvetica, sans-serif; }
.font-2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.font-3 { font-family: "Trebuchet MS", Arial, sans-serif; font-style: italic; }
.custom-note { margin: 22px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.benefits { list-style: none; display: grid; gap: 13px; padding: 0; margin: 22px 0; }
.benefits li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 999px; background: #111; color: #fff; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 900; cursor: pointer; }

.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line p { margin: 4px 0 0; color: var(--muted); }
.icon-btn { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px 12px; cursor: pointer; }
.danger { color: #b00020; }
.track-result { margin-top: 20px; padding: 18px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }

.footer { background: #000; color: #fff; padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.footer p, .footer a { color: #cfd2d6; }

@media (max-width: 900px) {
  .nav .container { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .menu { flex-wrap: wrap; gap: 12px; }
  .hero-grid, .split, .designer-layout, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid, .products-grid, .collections-grid { grid-template-columns: 1fr; }
  .designer-preview { position: relative; top: auto; min-height: 260px; }
  .hero { min-height: auto; padding: 56px 0; }
  .cart-line { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(6, 34px); }
  .frame-icon.left { left: 72px; } .frame-icon.right { right: 72px; }
}
