*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --stone: #2e2d2b; --warm-black: #3a3835; --cream: #f5f0e8;
  --gold: #b89a6a; --gold-light: #d4b896; --muted: #8a8278; --white: #ffffff;
  --text-lg: 16px; --text-md: 15px; --text-sm: 14px; --text-xs: 13px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--stone); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 60px; background: rgba(245,240,232,0.97); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
nav .logo img { height: 40px; }
nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }
nav ul li a { text-decoration: none; color: var(--stone); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); color: var(--gold) !important; padding: 10px 24px; transition: all 0.3s !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }

/* BREADCRUMB */
.breadcrumb { padding: 50px 60px 0; display: flex; align-items: center; gap: 10px; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }

/* PRODUCT HERO */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; margin-top: 20px; }
.product-hero-gallery { position: relative; overflow: hidden; background: #e8e4dc; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.4s; }
.gallery-thumbs { position: absolute; bottom: 24px; left: 24px; display: flex; gap: 8px; }
.thumb { width: 64px; height: 64px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s, opacity 0.3s; opacity: 0.65; }
.thumb.active { border-color: var(--gold); opacity: 1; }
.thumb:hover { opacity: 1; }

/* PRODUCT INFO */
.product-info { padding: 70px 70px 70px 60px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.product-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.product-tag { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); background: var(--gold); padding: 5px 12px; font-weight: 500; }
.product-tag.outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.product-info h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(44px, 5vw, 72px); font-weight: 300; line-height: 1.05; color: var(--stone); margin-bottom: 28px; letter-spacing: 0.02em; }
.product-desc { font-size: var(--text-lg); color: var(--muted); line-height: 1.8; font-weight: 300; margin-bottom: 40px; border-left: 2px solid var(--gold); padding-left: 20px; }

/* SPECS */
.specs { display: flex; flex-direction: column; margin-bottom: 44px; }
.spec-row { display: flex; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(26,23,20,0.1); }
.spec-row:first-child { border-top: 1px solid rgba(26,23,20,0.1); }
.spec-label { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 140px; flex-shrink: 0; padding-top: 2px; }
.spec-value { font-size: var(--text-sm); color: var(--stone); font-weight: 300; line-height: 1.5; }

/* BUTTONS */
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--gold); color: var(--white); text-decoration: none; padding: 16px 36px; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; transition: background 0.3s, transform 0.3s; border: none; cursor: pointer; font-family: 'Jost', sans-serif; }
.btn-primary:hover { background: #a08050; transform: translateY(-2px); }
.btn-outline { display: inline-block; background: transparent; color: var(--stone); text-decoration: none; padding: 15px 36px; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; border: 1px solid rgba(26,23,20,0.25); transition: all 0.3s; cursor: pointer; font-family: 'Jost', sans-serif; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { display: inline-block; background: var(--gold); color: var(--white); text-decoration: none; padding: 16px 36px; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; flex-shrink: 0; transition: background 0.3s, transform 0.3s; }
.btn-gold:hover { background: #a08050; transform: translateY(-2px); }

/* GALLERY TABS */
.gallery-section { padding: 90px 60px; background: var(--white); }
.gallery-section-inner { max-width: 1000px; margin: 0 auto; }
.gallery-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 30px; flex-wrap: wrap; }
.gallery-section h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 300; color: var(--stone); }
.gallery-section h2 em { font-style: italic; color: var(--gold); }
.tab-btns { display: flex; border-bottom: 1px solid rgba(26,23,20,0.1); }
.tab-btn { background: none; border: none; border-bottom: 2px solid transparent; padding: 12px 24px; font-family: 'Jost', sans-serif; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all 0.3s; margin-bottom: -1px; }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 30px; }
.gallery-grid-item { aspect-ratio: 3/2; overflow: hidden; cursor: zoom-in; background: #e8e4dc; }
.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; display: block; }
.gallery-grid-item:hover img { transform: scale(1.05); }

/* 1 imagem: proporção original */
.gallery-grid.grid-1 { display: block; }
.gallery-grid.grid-1 .gallery-grid-item { width: 100%; height: auto; aspect-ratio: unset; overflow: visible; }
.gallery-grid.grid-1 .gallery-grid-item img { width: 100%; height: auto; object-fit: unset; object-position: unset; display: block; }

/* 2 imagens: lado a lado, iguais */
.gallery-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 3 imagens: primeira linha inteira (16/9) + 2 lado a lado */
.gallery-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.grid-3 .gallery-grid-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* 4+ imagens: primeira linha inteira (16/9) + grade de 3 colunas */
.gallery-grid.grid-4plus .gallery-grid-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.93); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: var(--white); font-size: 32px; cursor: pointer; background: none; border: none; line-height: 1; opacity: 0.7; transition: opacity 0.3s; }
.lightbox-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: var(--white); cursor: pointer; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: opacity 0.3s, background 0.3s; }
.lb-nav:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.45); font-family: 'Jost', sans-serif; font-size: var(--text-xs); letter-spacing: 0.14em; pointer-events: none; }

/* INVENTORY STRIP */
.inventory-strip { background: var(--stone); padding: 50px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.inventory-strip p { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2.5vw, 32px); font-weight: 300; color: var(--white); }
.inventory-strip p em { font-style: italic; color: var(--gold-light); }

/* RELATED */
.related-section { padding: 90px 60px; background: var(--cream); }
.related-header { display: flex; align-items: center; gap: 16px; margin-bottom: 50px; }
.related-header::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.related-header h2 { font-size: var(--text-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.related-card { text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.related-card-img { aspect-ratio: 3/4; overflow: hidden; background: #e8e4dc; position: relative; margin-bottom: 8px; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--white); font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; font-weight: 500; }
.related-card-name { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); font-weight: 500; font-family: 'Jost', sans-serif; transition: color 0.3s; }
.related-card:hover .related-card-name { color: var(--gold); }
.related-card-type { font-size: var(--text-xs); color: var(--muted); font-weight: 300; font-family: 'Jost', sans-serif; }

/* FOOTER */
footer { background: var(--warm-black); padding: 80px 60px 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 40px; }
.footer-brand img { height: 36px; margin-bottom: 20px; }
.footer-brand p { font-size: var(--text-md); color: rgba(255,255,255,0.4); font-weight: 300; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { text-decoration: none; font-size: var(--text-sm); color: rgba(255,255,255,0.45); font-weight: 300; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.footer-contact-item .city { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.footer-contact-item a { font-size: var(--text-sm); color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.2); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav, .breadcrumb, .product-info, .gallery-section, .inventory-strip, .related-section, footer { padding-left: 30px; padding-right: 30px; }
  .product-hero { grid-template-columns: 1fr; min-height: auto; }
  .product-hero-gallery { height: 60vw; min-height: 340px; }
  .product-info { padding: 50px 30px; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid-item { flex: 0 0 calc(50% - 2px); }
  .gallery-grid-item.wide { flex: 0 0 calc(100% - 0px); aspect-ratio: 3/2; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  nav ul { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-item { flex: 0 0 calc(50% - 2px); }
  .gallery-grid-item.wide { flex: 0 0 100%; aspect-ratio: 4/3; }
  .inventory-strip { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
}
