:root {
  --bg: #faf9f7;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e6e4e0;
  --accent: #222222;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* HERO */
.hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 51px 24px 77px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.7);
}
.hero-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.1; margin-bottom: 16px; font-weight: 300; letter-spacing: -1px; }
.hero-sub { color: rgba(255,255,255,0.9); font-size: 18px; line-height: 1.6; max-width: 700px; margin: 0 auto 32px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }
.hero-btn { padding: 14px 28px; background: #fff; color: #111; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 15px; transition: opacity 0.2s; }
.hero-btn:hover { opacity: 0.9; }
.hero-btn.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.hero-btn.outline:hover { background: rgba(255,255,255,0.1); }

/* NAV */
.sticky-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17,17,17,0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  overflow: visible;
  margin: -54px auto 0;
  max-width: 1400px;
  border-radius: 16px;
}
.nav-inner {
  display: flex; gap: 14px; padding: 14px 18px; overflow: visible; align-items: stretch; align-content: flex-start; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; justify-content: center;
}
.nav-link-top {
  flex: 0 0 196px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.28); background: rgba(17,17,17,0.38); white-space: nowrap; font-size: 18px; font-weight: 700; color: #fff; backdrop-filter: blur(8px);
}
.menu-group { position: relative; flex: 0 0 auto; }
.menu-trigger {
  width: 196px; border: 1px solid rgba(255,255,255,0.28); background: rgba(17,17,17,0.38); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; text-align: center; color: #fff; backdrop-filter: blur(8px); justify-content: center;
}
.menu-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; align-items: center; }
.menu-title { font-size: 18px; font-weight: 700; }
.menu-caret { font-size: 14px; color: rgba(255,255,255,0.82); position: absolute; right: 14px; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; box-shadow: 0 14px 30px rgba(0,0,0,0.08); display: none; z-index: 50;
}
.menu-group.open .submenu { display: block; }
.submenu a {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--ink);
}
.submenu a:hover, .nav-link-top:hover, .menu-trigger:hover { background: rgba(255,255,255,0.12); }
.submenu-thumb {
  width: 38px; height: 38px; border-radius: 8px; overflow: hidden; background: #f1ece6; flex: 0 0 auto; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.submenu-thumb svg { width: 22px; height: 22px; stroke: #5f5750; }
.submenu-label { font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
  .nav-inner { padding-bottom: 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; justify-content: flex-start; }
}

/* SHELL */
.page-shell { padding: 90px 24px 100px; max-width: 1400px; margin: 0 auto; }
.section-block { margin-bottom: 100px; }
.section-heading {
  margin-bottom: 40px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.section-heading h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.5px; }

/* PRODUCT LAYOUT */
.product-grid { display: flex; flex-direction: column; gap: 80px; }
.showroom-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

@media (min-width: 900px) {
  .showroom-item { grid-template-columns: 60% 40%; }
}

.item-visuals { padding: 32px; background: #f9f9f9; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--line); }
.main-img { width: 100%; height: auto; border-radius: 8px; object-fit: contain; max-height: 80vh; }
.img-btn { border: none; background: transparent; width: 100%; display: block; cursor: zoom-in; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: none; border-radius: 999px; background: rgba(17,17,17,0.75); color: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.gallery-thumb {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0; overflow: hidden;
  width: 100%; height: 110px;
}
.gallery-thumb.active { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-stage { width: 100%; }
.gallery-stage[hidden] { display: none !important; }
.gallery-video-thumb,
.gallery-image-thumb {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.gallery-video-thumb { background: #111; color: #fff; }
.gallery-image-thumb { background: #f3f1ec; color: var(--ink); }

.video-section { background: #fff; padding: 16px; border-radius: 8px; border: 1px solid var(--line); }
.video-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--ink); display: flex; align-items: center; gap: 8px;}
.video-label::before { content: '▶'; }
.video-wrap { position: relative; }
.featured-video { width: 100%; border-radius: 8px; display: block; background: #000; min-height: 280px; }

.item-details { padding: 48px 40px; display: flex; flex-direction: column; }
.price { font-size: 32px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.name { font-size: 32px; font-weight: 400; margin-bottom: 8px; line-height: 1.1; letter-spacing: -0.5px; }
.model-cat { font-size: 15px; color: var(--muted); margin-bottom: 32px; font-weight: 500; }
.collection-sub { font-size: 18px; color: var(--ink); margin: -18px 0 24px; font-weight: 500; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.info-badge {
  min-width: 160px; height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.info-badge.is-clickable { cursor: pointer; }
.info-badge.sleep { background: #f0a24a; color: #fff; }
.info-badge.brand { background: #efe7dc; color: #5a4736; }
.info-badge.fabric { background: #e7efe9; color: #365245; }

.hook { font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 40px; font-weight: 300; }
.ashley-cart-link {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px; background: #111; color: #fff;
  font-size: 14px; font-weight: 700; margin: 0 0 28px; width: fit-content;
}
.ashley-cart-link:hover { opacity: 0.9; }

.specs h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--muted); }
.feature-list { padding-left: 20px; margin-bottom: 32px; }
.feature-list li { margin-bottom: 10px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.rug-pricing { margin-bottom: 28px; }
.rug-pricing h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; color: var(--muted); }
.rug-pricing-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rug-pricing-row:last-child { border-bottom: none; }
.rug-sku { font-weight: 700; color: var(--ink); }
.rug-size { color: var(--muted); }
.rug-row-price { font-weight: 700; color: var(--ink); }

.empty-state { padding: 40px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 24px; right: 24px; background: #fff; border: none; width: 40px; height: 40px; border-radius: 20px; font-size: 24px; cursor: pointer; color: #111; }
[hidden] { display: none !important; }
