/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

/* Breadcrumbs */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 40px;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--border); font-size: 10px; }
.breadcrumb-current { color: var(--text); }

/* Page wrapper */
.product-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* 2-column layout */
.product-detail {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* ---- Gallery ---- */
.product-gallery {}

.gallery-main {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}
.gallery-main:hover img { transform: scale(1.04); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border: none;
  font-size: 18px;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--tr);
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:hover { background: #fff; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-light);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--tr);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Info Panel ---- */
.product-panel {}
.panel-inner {
  position: sticky;
  top: 88px;
}

.panel-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.panel-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 12px;
}
.panel-badge.new { background: var(--accent); color: #fff; }
.panel-badge.sale { background: #c0392b; color: #fff; }
.panel-badge.popular { background: var(--bg-dark); color: #fff; }

.panel-seller {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}

.panel-origin {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.panel-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.panel-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.panel-old-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
}
.panel-vat {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.panel-short-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* Specs table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}
.spec-table tr { border-bottom: 1px solid var(--border-light); }
.spec-table tr:first-child { border-top: 1px solid var(--border-light); }
.spec-table td {
  padding: 9px 4px 9px 0;
  font-size: 13px;
  vertical-align: top;
  line-height: 1.4;
}
.spec-table td:first-child {
  color: var(--text-light);
  width: 38%;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-right: 12px;
}
.spec-table td:last-child { color: var(--text); }

/* CTA buttons */
.btn-primary {
  display: block;
  width: 100%;
  background: var(--text);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 17px 24px;
  text-align: center;
  transition: background var(--tr);
  margin-bottom: 10px;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent); }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 24px;
  text-align: center;
  transition: border-color var(--tr), background var(--tr);
  cursor: pointer;
  background: #fff;
}
.btn-secondary:hover { border-color: var(--text); background: var(--bg-light); }
.btn-secondary svg { flex-shrink: 0; }

/* Authenticity badge */
.auth-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-top: 20px;
}
.auth-badge svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.auth-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.auth-badge-text span {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Shipping rows */
.shipping-info { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.shipping-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
}
.shipping-row svg { color: var(--accent); flex-shrink: 0; }

/* ---- Accordion ---- */
.product-accordion {
  padding: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 60px;
}
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: color var(--tr);
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.3s ease;
  line-height: 1;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-content {
  display: none;
  padding: 0 0 28px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 680px;
}
.acc-item.open .acc-content { display: block; }
.acc-content p { margin-bottom: 14px; }
.acc-content p:last-child { margin-bottom: 0; }

.dim-table { width: 100%; max-width: 380px; border-collapse: collapse; }
.dim-table tr { border-bottom: 1px solid var(--border-light); }
.dim-table td { padding: 8px 0; font-size: 13px; }
.dim-table td:first-child { color: var(--text-light); width: 50%; }

/* ---- Related products ---- */
.related-section {}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .product-detail { gap: 40px; }
  .panel-title { font-size: 28px; }
}

@media (max-width: 900px) {
  .product-page { padding: 0 20px 60px; }
  .breadcrumb { padding: 12px 20px; }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
  }
  .panel-inner { position: static; }
  .gallery-nav { opacity: 1; }
}

@media (max-width: 600px) {
  .gallery-thumb { width: 64px; height: 58px; }
  .panel-title { font-size: 24px; }
  .panel-price { font-size: 24px; }
}

/* =============================================
   COLLECTION / CATEGORY PAGES
   ============================================= */

.collection-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
}
.collection-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
}
.collection-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 40px 52px;
  color: #fff;
}
.collection-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.collection-title {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 14px;
}
.collection-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.65;
}

.collection-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 40px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}
.collection-intro-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 680px;
}
.collection-count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  padding-top: 3px;
  white-space: nowrap;
}

.sort-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.sort-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 6px 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--tr);
  font-family: var(--font-sans);
}
.filter-tag:hover { border-color: var(--text); color: var(--text); }
.filter-tag.active { background: var(--text); color: #fff; border-color: var(--text); }
.sort-select select {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 7px 14px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

.collection-products {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 40px 64px;
}

.collection-editorial {
  background: var(--bg-light);
  padding: 0 40px 60px;
}
.collection-editorial-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 0 28px;
}
.collection-editorial-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 300px;
}
.coll-edit-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.coll-edit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.coll-edit-card:hover img { transform: scale(1.05); }
.coll-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: #fff;
  transition: background var(--tr);
}
.coll-edit-card:hover .coll-edit-overlay { background: rgba(0,0,0,0.48); }
.coll-edit-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-light);
}
.coll-edit-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.25;
}
.coll-edit-btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  transition: color var(--tr), border-color var(--tr);
}
.coll-edit-card:hover .coll-edit-btn { color: #fff; border-color: #fff; }

/* Collection responsive */
@media (max-width: 900px) {
  .collection-hero { height: 340px; }
  .collection-title { font-size: 42px; }
  .collection-hero-inner { padding: 0 20px 36px; }
  .collection-intro { padding: 24px 20px 18px; flex-direction: column; }
  .sort-bar { padding: 12px 20px; }
  .collection-products { padding: 28px 20px 48px; }
  .collection-editorial { padding: 0 20px 48px; }
  .collection-editorial-grid { grid-template-columns: 1fr; height: auto; }
  .coll-edit-card { height: 200px; }
}
@media (max-width: 600px) {
  .collection-hero { height: 280px; }
  .collection-title { font-size: 32px; }
  .collection-subtitle { font-size: 14px; }
}
