/* ===== SHOP.CSS — Collection & Product pages ===== */
/* Uses design tokens from theme.css */

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(45, 27, 61, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--light-gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--lavender);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  background: rgba(29, 14, 42, 0.98);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-drawer-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.nav-drawer-link:last-child { border-bottom: none; }
.nav-drawer-link:hover { color: var(--light-gold); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-open .nav-drawer { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ===== BODY OFFSET for fixed nav ===== */
.shop-body {
  padding-top: 64px;
  background: var(--cream);
}

/* Landing page body with nav */
body:not(.shop-body) {
  /* nav overlays hero on landing page — no offset */
}

/* ===== SHOP HERO ===== */
.shop-hero {
  position: relative;
  padding: 6rem 2rem 5rem;
  background: linear-gradient(160deg, var(--deep-plum) 0%, var(--royal-purple) 55%, var(--soft-purple) 100%);
  overflow: hidden;
  text-align: center;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 85%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(184, 159, 212, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-gold);
  text-decoration: none;
  margin-bottom: 2rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.breadcrumb-back:hover { opacity: 1; }

.shop-hero-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.shop-hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--lavender);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  background: var(--white);
  border-bottom: 1px solid rgba(107, 63, 160, 0.08);
  position: sticky;
  top: 64px;
  z-index: 50;
}

.category-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs-inner::-webkit-scrollbar { display: none; }

.category-tab {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 1.1rem 1.4rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.category-tab:hover { color: var(--soft-purple); }

.category-tab.active {
  color: var(--soft-purple);
  border-bottom-color: var(--gold);
}

/* ===== PRODUCTS GRID ===== */
.shop-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(107, 63, 160, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 27, 61, 0.1);
  border-color: rgba(107, 63, 160, 0.2);
}

.product-card-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--pearl) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(107, 63, 160, 0.06) 0%, transparent 60%);
}

.product-card-icon {
  font-size: 2.5rem;
  color: var(--lavender);
  position: relative;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.product-card:hover .product-card-icon {
  opacity: 0.9;
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-plum);
  background: var(--light-gold);
  padding: 0.3rem 0.6rem;
  z-index: 2;
}

.product-card-info {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107, 63, 160, 0.07);
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.product-arrow {
  font-size: 0.9rem;
  color: var(--gold);
  transition: transform 0.2s;
}

.product-card:hover .product-arrow { transform: translateX(3px); }

/* ===== PRODUCT DETAIL ===== */
.product-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid rgba(107, 63, 160, 0.07);
  padding: 0.85rem 2rem;
}

.product-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-breadcrumb-inner a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.product-breadcrumb-inner a:hover { color: var(--soft-purple); }

.bc-sep {
  color: var(--lavender);
  font-size: 0.8rem;
}

.product-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* Visual panel */
.product-visual {
  position: sticky;
  top: calc(64px + 2rem);
}

.product-visual-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--pearl) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(107, 63, 160, 0.07);
}

.product-visual-icon {
  font-size: 6rem;
  color: var(--lavender);
  opacity: 0.35;
  position: relative;
  z-index: 1;
}

.product-visual-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vis-line {
  position: absolute;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.12), transparent);
  height: 1px;
}
.vis-line-1 { top: 30%; width: 100%; }
.vis-line-2 { top: 50%; width: 100%; opacity: 0.6; }
.vis-line-3 { top: 70%; width: 100%; opacity: 0.3; }

.product-badge-large {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-plum);
  background: var(--light-gold);
  padding: 0.4rem 0.8rem;
  z-index: 2;
}

/* Info panel */
.product-info-category {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.product-info-category a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.product-info-category a:hover { opacity: 0.75; }

.product-info-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.product-info-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--soft-purple);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.product-info-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 2rem;
}

.product-info-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

/* Purchase block */
.product-purchase {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--pearl);
  border: 1px solid rgba(107, 63, 160, 0.08);
}

.product-price-display {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.price-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1;
}

.btn-add-to-cart {
  flex: 1;
  background: var(--deep-plum);
  color: var(--light-gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-add-to-cart:hover {
  background: var(--royal-purple);
  border-color: rgba(201, 168, 76, 0.6);
}

.btn-add-to-cart.btn-added {
  background: var(--soft-purple);
  border-color: transparent;
  color: var(--white);
}

/* Accordion */
.product-details-accordion {
  border-top: 1px solid rgba(107, 63, 160, 0.1);
}

.accordion-item {
  border-bottom: 1px solid rgba(107, 63, 160, 0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-align: left;
  transition: color 0.2s;
}

.accordion-trigger:hover { color: var(--soft-purple); }

.acc-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.accordion-item.open .acc-icon { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding: 0 0 1.25rem;
}

.accordion-item.open .accordion-body { display: block; }

.accordion-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
  background: var(--white);
  padding: 5rem 2rem;
  border-top: 1px solid rgba(107, 63, 160, 0.07);
}

.related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.related-inner .section-label {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  text-decoration: none;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(107, 63, 160, 0.08);
  background: var(--pearl);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 27, 61, 0.07);
  border-color: rgba(107, 63, 160, 0.18);
}

.related-visual {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid rgba(107, 63, 160, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-icon {
  font-size: 1.2rem;
  color: var(--lavender);
  opacity: 0.6;
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.related-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== CARD-CTA (landing page link cards) ===== */
.card-cta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 63, 160, 0.1);
  transition: letter-spacing 0.2s;
}

.collection-card:hover .card-cta { letter-spacing: 0.25em; }

/* collection-card is a link now — reset anchor styles */
a.collection-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .product-visual { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-purchase {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .btn-add-to-cart { text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .shop-hero { padding: 4rem 1.5rem 3.5rem; }
}
