/* ============================================================
   MIRADO — Halaman Detail Produk (WooCommerce single product)
   Layout: thumbnail kiri + foto besar + panel info kanan
   Berlaku otomatis untuk SEMUA produk. Tidak perlu edit per produk.
   ============================================================ */

:root {
  --ink: #1A1203;
  --cream: #F5F0E8;
  --cream-dark: #EDE6D6;
  --gold: #B8933A;
  --gold-light: #D4AD5A;
  --maroon: #4A2323;
  --text-muted: #6B5F47;
}

/* ── canvas ── */
body.single-product {
  background: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
}

/* hide GeneratePress chrome we replace */
body.single-product .site-header,
body.single-product .inside-page-header,
body.single-product .woocommerce-breadcrumb,
body.single-product .entry-meta { display: none !important; }

body.single-product .site-content,
body.single-product .content-area,
body.single-product .inside-article {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ── two-column stage ── */
body.single-product div.product {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 48px 88px;
}

/* ── gallery: thumbnails rail LEFT of the big image (Berluti) ── */
body.single-product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  display: flex;
  flex-direction: row;
  gap: 16px;
  opacity: 1 !important;
}

body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  order: 2;
  flex: 1;
  background: var(--cream-dark);
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 72px;
  margin: 0;
  padding: 0;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 72px;
  float: none;
  margin: 0;
  list-style: none;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  border: 1px solid transparent;
  opacity: 0.55;
  transition: opacity .2s, border-color .2s;
  cursor: pointer;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--gold);
}

/* ── right panel: type scale ala John Lobb (besar, lega) ── */
body.single-product .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  padding-top: 16px;
}

body.single-product .product_title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

body.single-product .summary .price {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 18px 0 6px;
}

body.single-product .summary .price del {
  color: var(--text-muted);
  font-size: 17px;
  margin-right: 10px;
}

body.single-product .summary .price ins {
  text-decoration: none;
  color: var(--maroon);
}

/* tax note ala Berluti */
body.single-product .summary .price::after {
  content: "Harga sudah termasuk pajak";
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* short description in panel */
body.single-product .woocommerce-product-details__short-description {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 22px 0 26px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(26,18,3,0.12);
  border-bottom: 1px solid #D9D5CC;   /* garis abu pemisah seksi */
}

/* ── variations (Ukuran) ── */
body.single-product table.variations { margin: 26px 0 8px; width: 100%; }
body.single-product table.variations,
body.single-product table.variations tbody,
body.single-product table.variations tr,
body.single-product table.variations th,
body.single-product table.variations td {
  display: block;          /* label di atas, dropdown di bawah */
  width: 100%;
  padding: 0;
}
body.single-product table.variations th.label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  text-align: left;
}
body.single-product table.variations tr { margin-bottom: 18px; }

body.single-product table.variations select {
  width: 100%;
  max-width: 100%;
  padding: 17px 16px;     /* kotak lebih panjang */
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid rgba(26,18,3,0.25);
  border-radius: 0;
}

body.single-product .reset_variations { font-size: 12px; color: var(--text-muted); }

/* quantity: hidden by default for clean Berluti look — uncomment to restore
body.single-product .quantity { display: none !important; } */
body.single-product .quantity .qty {
  width: 72px;
  padding: 14px 10px;
  border: 1px solid rgba(26,18,3,0.25);
  background: #FFFFFF;
  font-size: 15px;
  text-align: center;
}

/* ── ADD TO BAG: hitam, full width, uppercase ── */
body.single-product form.cart { margin-top: 26px; }

body.single-product .single_add_to_cart_button {
  display: block;
  width: 100%;
  background: var(--ink) !important;
  color: var(--cream) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px 24px !important;
  border: none;
  border-radius: 0 !important;
  margin-top: 14px;
  transition: background .2s;
  cursor: pointer;
}

body.single-product .single_add_to_cart_button:hover { background: var(--maroon) !important; }

/* stock notices */
body.single-product .stock.in-stock { color: var(--gold); font-size: 13px; letter-spacing: 0.06em; }
body.single-product .stock.out-of-stock { color: var(--maroon); font-size: 13px; letter-spacing: 0.06em; }

/* ── long description below the stage ── */
body.single-product .mirado-product-desc {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px 88px;
  font-size: 18px;
  line-height: 2.0;
  color: var(--text-muted);
}

body.single-product .mirado-product-desc h2,
body.single-product .mirado-product-desc h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  margin: 28px 0 12px;
}

/* ── related products ── */
body.single-product .related.products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 48px 88px;
  border-top: 1px solid rgba(26,18,3,0.1);
}

body.single-product .related.products > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 34px;
  margin-bottom: 36px;
  text-align: center;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
}

body.single-product ul.products li.product .price { font-size: 18px; color: var(--ink); }
body.single-product ul.products li.product .button { display: none; } /* kartu bersih: klik gambar saja */

/* ── sale flash ── */
body.single-product .onsale {
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 5px 12px;
  min-height: 0;
  line-height: 1.4;
}

/* ── mobile ── */
@media (max-width: 900px) {
  body.single-product div.product {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 20px 56px;
  }
  body.single-product .woocommerce-product-gallery { flex-direction: column; }
  body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    order: 2;
    flex-direction: row;
    width: 100%;
  }
  body.single-product .product_title { font-size: 34px; }
  body.single-product .mirado-product-desc { padding: 0 20px 56px; }
}

/* ── swatch warna (ala Berluti) ── */
body.single-product .mirado-swatches { margin: 24px 0 4px; }

body.single-product .mirado-swatch-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
body.single-product .mirado-swatch-label strong { font-weight: 500; color: var(--text-muted); }

body.single-product .mirado-swatch-row { display: flex; gap: 12px; }

body.single-product .mirado-swatch {
  width: 64px;
  height: 64px;
  border-radius: 0;                       /* kotak, ala Berluti */
  border: 1px solid rgba(26,18,3,0.18);
  cursor: pointer;
  padding: 0;
  transition: border-color .2s, opacity .2s;
  opacity: 0.75;
}
body.single-product .mirado-swatch:hover { opacity: 1; }
body.single-product .mirado-swatch.aktif {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* sembunyikan baris dropdown Warna (digantikan swatch); Ukuran tetap dropdown */
body.single-product table.variations tr:has(select[name*="warna"]),
body.single-product table.variations tr:has(select[name*="color"]) { display: none; }

/* ════════════════════════════════════════════
   HEADER & FOOTER MIRADO (halaman toko/produk)
   ════════════════════════════════════════════ */
.mrd-bar {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.mrd-bar a { color: var(--gold-light); text-decoration: none; }

.mrd-nav {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(26,18,3,0.12);
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;          /* header ikut bergerak saat scroll */
  top: 0;
  z-index: 100;
}
.mrd-nav-side { display: flex; gap: 26px; align-items: center; }
.mrd-nav-side a {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s;
}
.mrd-nav-side a:hover { color: var(--gold); }
.mrd-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.mrd-logo span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 300;
  color: var(--gold);
  margin-top: -2px;
}

.mrd-footer {
  background: var(--maroon);
  color: rgba(245,240,232,0.7);
  padding: 56px 48px 28px;
  border-top: 1px solid rgba(245,240,232,0.15);
  font-family: 'DM Sans', sans-serif;
}
.mrd-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245,240,232,0.12);
  max-width: 1400px;
  margin: 0 auto;
}
.mrd-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 4px;
}
.mrd-footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-light);
  font-size: 16px;
  margin: 0;
}
.mrd-footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  margin: 0 0 16px;
  font-weight: 500;
}
.mrd-footer-col a {
  display: block;
  font-size: 16px;
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.mrd-footer-col a:hover { color: var(--gold-light); }
.mrd-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════
   LINK & PANEL "UKURAN SAYA APA?"
   ════════════════════════════════════════════ */
.mirado-size-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  margin: 4px 0 10px;
}
.mirado-size-link:hover { color: var(--gold) !important; border-color: var(--gold); }

.mirado-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,3,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 9998;
}
.mirado-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 25vw;
  min-width: 340px;
  max-width: 480px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 9999;
  padding: 56px 40px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .35s ease;
  box-shadow: -12px 0 40px rgba(26,18,3,0.18);
}
body.mirado-drawer-open .mirado-drawer { transform: translateX(0); }
body.mirado-drawer-open .mirado-drawer-overlay { opacity: 1; pointer-events: auto; }

.mirado-drawer-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.mirado-drawer h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 14px;
  color: var(--ink);
}
.mirado-drawer p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }
.mirado-drawer table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.mirado-drawer th, .mirado-drawer td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(26,18,3,0.12);
  font-size: 15px;
  color: var(--ink);
}
.mirado-drawer th {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.mirado-drawer-tip { font-size: 13px !important; }

/* ════════════════════════════════════════════
   TAB INFORMASI (ala John Lobb)
   ════════════════════════════════════════════ */
.mirado-tabs { margin-top: 40px; }
.mirado-tab-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgba(26,18,3,0.15);
  flex-wrap: wrap;
}
.mirado-tab-btn {
  background: none;
  border: none;
  padding: 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s;
}
.mirado-tab-btn:hover { color: var(--ink); }
.mirado-tab-btn.aktif { color: var(--ink); border-bottom-color: var(--ink); }

.mirado-tab-panel { display: none; padding: 24px 0 0; }
.mirado-tab-panel.aktif { display: block; }
.mirado-tab-panel p, .mirado-tab-panel li {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
}
.mirado-tab-panel ul { padding-left: 18px; margin: 0; }
.mirado-tab-panel li { margin-bottom: 6px; }

/* ════════════════════════════════════════════
   TERUS JELAJAHI (related, 3 kolom)
   ════════════════════════════════════════════ */
body.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
}
body.single-product .related.products ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  text-align: left;
}
body.single-product .related.products ul.products li.product img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  background: var(--cream-dark);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .mrd-nav { padding: 16px 20px; }
  .mrd-nav-side { gap: 14px; }
  .mrd-nav-side a { font-size: 11px; }
  .mrd-footer-top { grid-template-columns: 1fr 1fr; }
  .mirado-drawer { width: 86vw; min-width: 0; }
  body.single-product .related.products ul.products { grid-template-columns: 1fr; }
}

/* ── hover ganti foto: kartu produk di Terus Jelajahi & Shop ── */
.mrd-loop-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.mrd-loop-img img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  display: block;
  background: var(--cream-dark);
  margin: 0 !important;
}
.mrd-loop-img .mrd-loop-hover {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .35s ease;
}
li.product:hover .mrd-loop-hover { opacity: 1; }
