:root {
  --bg: #0d0b0a;
  --bg-soft: #151210;
  --surface: #171412;
  --surface-2: #1d1a17;
  --panel: #11100e;
  --panel-alt: #171512;
  --text: #f2efe9;
  --muted: #a7a196;
  --muted-2: #7d766d;
  --gold: #c9a45c;
  --gold-soft: #e1c782;
  --gold-deep: #a8843d;
  --border: rgba(201, 164, 92, 0.25);
  --border-strong: rgba(201, 164, 92, 0.45);
  --shadow: rgba(0, 0, 0, 0.5);
  --success: #9bc79a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

.container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

/* Navbar styles are unified and handled by navbar.css */


.search-panel {
  max-height: 0;
  overflow: hidden;
  background: rgba(17, 16, 14, 0.98);
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease, border-color 0.35s ease;
}

.search-panel.open {
  max-height: 500px;
  border-color: rgba(255,255,255,0.08);
}

.search-panel-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.search-panel-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-panel-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.search-panel-inner input::placeholder {
  color: var(--muted);
}

.search-panel-inner button {
  font-size: 24px;
  color: var(--muted);
  line-height: 1;
}

.search-panel-inner button:hover {
  color: var(--gold-soft);
}

.search-results {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 14px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.sr-brand {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-name {
  margin-top: 2px;
  font-size: 0.95rem;
}

.search-empty {
  color: var(--muted);
  padding: 12px 0 18px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.7);
  display: none;
  z-index: 45;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #120f0d;
  border-left: 1px solid var(--border);
  padding: 24px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.mobile-nav-panel a {
  padding: 10px 8px;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-shell {
  padding: 28px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 26px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold-soft);
}

.breadcrumb span:last-child {
  color: var(--text);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.gallery-panel {
  position: relative;
}

.gallery-stage {
  position: relative;
  background: #0d0b0a;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(18, 16, 15, 0.6);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: 1px solid transparent;
}

.gallery-dot.active {
  background: var(--gold);
}

.product-info {
  padding-top: 6px;
}

.brand-text {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.product-name {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stars {
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.review-link {
  color: var(--muted);
  font-size: 0.82rem;
  border-bottom: 1px solid transparent;
}

.review-link:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.share-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
}

.category-tag {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 14, 14, 0.5);
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-value {
  font-weight: 700;
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  color: var(--gold-soft);
}

.tax-copy {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.size-btn {
  min-width: 72px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.size-btn:hover,
.size-btn:focus-visible {
  border-color: rgba(201,164,92,0.45);
}

.size-btn.selected {
  background: rgba(201,164,92,0.08);
  border-color: rgba(201,164,92,0.8);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(201,164,92,0.25);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  height: 44px;
  margin-bottom: 18px;
}

.qty-btn {
  width: 42px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
}

.qty-value {
  width: 46px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.trust-item .icon {
  color: var(--gold-soft);
  font-size: 1rem;
}

.trust-item a {
  color: var(--gold-soft);
}

.primary-btn,
.secondary-btn {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: transparent;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.primary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible {
  transform: translateY(-1px);
}

.secondary-btn {
  background: var(--gold);
  color: #11100d;
  border-color: var(--gold);
  margin-top: 10px;
}

.offer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 10px 0 14px;
}

.countdown-box {
  margin-top: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 12, 0.55);
  padding: 18px 16px 18px;
}

.countdown-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.countdown-timer {
  font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
}

.delivery-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-block {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.detail-title {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 8px;
}

.product-description {
  color: rgba(242,239,233,0.85);
  margin: 0;
  max-width: 72ch;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: rgba(242,239,233,0.9);
  font-size: 0.96rem;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-label {
  min-width: 140px;
  font-weight: 600;
  color: var(--text);
}

.note-group {
  margin-top: 18px;
}

.note-group + .note-group {
  margin-top: 20px;
}

.note-group h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tag {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 0.75rem;
  border-radius: 2px;
}

.review-section {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.review-empty {
  color: var(--muted);
  margin: 0 0 12px;
}

.signin-link {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(201,164,92,0.3);
}

.review-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.review-form .rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.star-select {
  display: inline-flex;
  gap: 6px;
}

.star {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.34);
  font-size: 1.3rem;
}

.star.active {
  color: var(--gold-soft);
}

.review-form textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
}

.review-submit {
  width: 140px;
  height: 42px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-wrap {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.related-wrap h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.related-visual {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.related-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18,16,15,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.related-nav.prev { left: 10px; }
.related-nav.next { right: 10px; }

.related-meta {
  padding: 14px 14px 18px;
}

.related-brand {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.related-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.related-notes {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.related-price {
  color: var(--gold-soft);
  font-weight: 700;
}

.site-footer {
  background: #0d0b0a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  color: rgba(242,239,233,0.8);
}

.footer-desc,
.footer-contact {
  color: rgba(242,239,233,0.7);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 26px auto 18px;
  width: min(1400px, calc(100% - 40px));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  color: rgba(242,239,233,0.7);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: rgba(242,239,233,0.7);
}

.floating-btn {
  position: fixed;
  right: 20px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #201d1a;
  font-size: 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 25;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(18, 17, 15, 0.96);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 5, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(85vw, 1000px);
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0b0a08;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15, 13, 12, 0.7);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  transform: none;
}

.lightbox-nav.prev { left: 26px; }
.lightbox-nav.next { right: 26px; }

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1400px);
  }

  .logo {
    letter-spacing: 0.16em;
  }

  .gallery-stage {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .share-btn {
    margin-left: 0;
  }

  .review-row {
    align-items: flex-start;
  }

  .footer-top,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
}
