*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #F9F7F5;
  --bg2:     #F2EEE9;
  --bg3:     #EAE5DF;
  --text:    #111010;
  --text2:   #6A6460;
  --text3:   #A09B96;
  --border:  #DDD9D4;
  --borderL: #EAE6E1;
  --black:   #0D0D0D;
  --white:   #FFFFFF;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--borderL);
  height: 64px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-weight: 400;
  font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text2); white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; margin-left: 16px;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 64px 48px 72px;
  background: var(--black); position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25); z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 9vw, 120px); font-weight: 300;
  line-height: 0.97; letter-spacing: -0.015em;
  color: var(--white); margin-bottom: 52px;
}
.hero-title span { font-style: normal; }
.hero-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: rgba(255,255,255,.45); }

/* ── BUTTONS ── */
.btn-dark {
  display: inline-block; background: var(--black); color: var(--white);
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 15px 32px;
  transition: background .2s; border: 1px solid var(--black);
}
.btn-dark:hover { background: #2a2a2a; }
.btn-outline {
  display: inline-block; background: transparent; color: var(--text);
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 14px 32px;
  border: 1px solid var(--border); transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--text2); }

/* hero overrides — buttons on dark video background */
.hero .btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.hero .btn-dark:hover { background: rgba(255,255,255,.85); }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.35); }
.hero .btn-outline:hover { border-color: rgba(255,255,255,.8); }

/* ── SECTIONS ── */
.sec { padding: 100px 48px; }
.sec-alt { background: var(--bg2); }
.sec-inner { max-width: 1200px; margin: 0 auto; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 52px; gap: 20px;
}
.sec-label {
  display: block; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 10px;
}
.sec-title {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.01em;
}
.sec-count { font-size: 12px; color: var(--text3); flex-shrink: 0; }
.link-line {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 400; border-bottom: 1px solid currentColor;
  padding-bottom: 2px; color: var(--text2); flex-shrink: 0; transition: color .2s;
}
.link-line:hover { color: var(--text); }

/* ── DRESS GRID ── */
.dress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.dress-card { cursor: pointer; }
.dress-card-img {
  aspect-ratio: 3/4; overflow: hidden;
  background: var(--bg3); position: relative;
}
.dress-card-img img { position: absolute; top: 0; left: 0; transition: opacity .55s ease; }
.dress-card-img .img-hover { opacity: 0; }
.dress-card:hover .dress-card-img .img-primary { opacity: 0; }
.dress-card:hover .dress-card-img .img-hover   { opacity: 1; }
.dress-card-body {
  padding: 14px 12px 18px; background: var(--bg);
  border-top: 1px solid var(--borderL);
}
.dress-designer {
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 4px;
}
.dress-name { font-family: var(--serif); font-size: 15px; font-weight: 400; margin-bottom: 7px; }
.dress-price { font-size: 12px; color: var(--text2); }
.dress-price strong { font-weight: 400; color: var(--text); font-size: 13px; }

/* ── DESIGNERS ── */
.designer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.designer-card { background: var(--bg); padding: 44px 36px; cursor: pointer; transition: background .2s; }
.designer-card:hover { background: var(--bg3); }
.designer-name {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300; margin-bottom: 8px;
}
.designer-sub { font-size: 11px; color: var(--text3); letter-spacing: 0.06em; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.step-num { font-family: var(--serif); font-size: 52px; font-weight: 300; color: var(--border); line-height: 1; margin-bottom: 20px; }
.step-title { font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.75; }

/* ── FAQS ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0; font-size: 14px; font-weight: 400;
  text-align: left; color: var(--text); background: none;
}
.faq-icon { flex-shrink: 0; font-size: 20px; font-weight: 200; color: var(--text3); transition: transform .3s ease; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden; max-height: 0; font-size: 13px; color: var(--text2);
  line-height: 1.8; max-width: 700px; transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ── TERMS ── */
.terms-body { max-width: 740px; }
.terms-block { margin-bottom: 40px; }
.terms-block h3 { font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.terms-block p, .terms-block li { font-size: 13px; color: var(--text2); line-height: 1.85; }
.terms-block ul { padding-left: 18px; }
.terms-block li { margin-bottom: 5px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.c-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.c-value { font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  padding: 13px 16px; font-family: var(--sans); font-size: 13px;
  font-weight: 300; color: var(--text); margin-bottom: 10px;
  outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--text2); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text3); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form select option[disabled] { color: var(--text3); }

/* ── FOOTER ── */
footer { background: var(--black); color: var(--white); padding: 60px 48px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--serif); font-size: 17px; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,9,8,.6);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s ease; backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg); width: 100%; max-width: 980px;
  height: 92vh; display: grid; grid-template-columns: 1fr 1.15fr;
  overflow: hidden; position: relative;
  transform: translateY(18px); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-left { aspect-ratio: unset; overflow: hidden; background: var(--bg3); }
.modal-left img { width: 100%; height: 100%; object-fit: cover; }
.modal-right {
  min-height: 0; overflow-y: auto; padding: 44px 38px 40px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 200;
  color: var(--text2); z-index: 10; background: var(--bg);
  border: 1px solid var(--borderL); transition: color .15s;
}
.modal-close:hover { color: var(--text); }
.modal-designer { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 7px; }
.modal-name { font-family: var(--serif); font-size: 30px; font-weight: 300; margin-bottom: 10px; }
.modal-hire { font-size: 17px; font-weight: 300; margin-bottom: 5px; }
.modal-rrp { font-size: 12px; color: var(--text3); margin-bottom: 22px; }
.modal-desc { font-size: 13px; color: var(--text2); line-height: 1.8; padding-top: 20px; border-top: 1px solid var(--borderL); margin-bottom: 28px; }
.m-label { display: block; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.sizes { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
.sz {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; font-size: 11px; letter-spacing: 0.04em;
  border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.sz:hover { border-color: var(--text2); }
.sz.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── CALENDAR ── */
.cal-wrap { margin-bottom: 26px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-btn {
  width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--text2);
  border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, color .15s;
}
.cal-btn:hover { border-color: var(--text2); color: var(--text); }
.cal-month-label { font-size: 12px; font-weight: 400; letter-spacing: 0.06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dh { text-align: center; font-size: 9.5px; letter-spacing: 0.09em; color: var(--text3); padding: 6px 0; text-transform: uppercase; }
.cal-d { text-align: center; font-size: 12px; padding: 9px 4px; color: var(--text2); border: 1px solid transparent; cursor: pointer; transition: background .12s, color .12s; }
.cal-d.empty { cursor: default; }
.cal-d.past { color: var(--borderL); cursor: not-allowed; }
.cal-d.today { color: var(--text); font-weight: 400; }
.cal-d.selected { background: var(--black); color: var(--white) !important; }
.cal-d.in-range { background: var(--bg2); color: var(--text); }
.cal-d.return { background: var(--bg3); color: var(--text); font-weight: 400; }
.cal-d.day-blocked { background: var(--bg3); color: var(--borderL); cursor: not-allowed; text-decoration: line-through; }
.cal-d.day-blocked:hover { border-color: transparent; }
.cal-d:not(.past):not(.empty):not(.selected):not(.day-blocked):hover { border-color: var(--text3); }
.cal-info { margin-top: 10px; padding: 13px 14px; background: var(--bg2); display: none; }
.cal-info.show { display: block; }
.cal-info-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.cal-info-row:last-child { margin-bottom: 0; }
.cal-info-row span:first-child { color: var(--text3); }
.cal-info-row span:last-child { font-weight: 400; }

/* ── DELIVERY ── */
.delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.d-opt { padding: 16px; border: 1px solid var(--border); cursor: pointer; transition: border-color .15s; }
.d-opt.active { border-color: var(--black); }
.d-opt input { display: none; }
.d-opt-name { display: block; font-size: 12px; font-weight: 400; margin-bottom: 4px; }
.d-opt-detail { font-size: 11px; color: var(--text3); }

.map-wrap { margin-bottom: 20px; display: none; }
.map-wrap.show { display: block; }
.map-wrap iframe { width: 100%; height: 200px; border: none; display: block; }
.map-addr { font-size: 11.5px; color: var(--text2); margin-top: 10px; line-height: 1.7; }
.map-addr strong { font-weight: 400; color: var(--text); }

.delivery-addr { display: none; margin-bottom: 20px; }
.delivery-addr.show { display: block; }
.delivery-addr input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  padding: 13px 16px; font-family: var(--sans); font-size: 13px;
  font-weight: 300; color: var(--text); outline: none;
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.delivery-addr input:focus { border-color: var(--text2); }
.delivery-addr input::placeholder { color: var(--text3); }
.delivery-addr-note { font-size: 11px; color: var(--text3); margin-top: 6px; }

.order-summary { display: none; margin-bottom: 18px; }
.order-summary.show { display: block; }
.os-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text2); padding: 9px 0; border-bottom: 1px solid var(--borderL);
}
.os-row:first-child { border-top: 1px solid var(--border); }
.os-row.os-total { border-bottom: none; padding-top: 14px; margin-top: 2px; }
.os-total-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.os-total-price { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--text); }

.checkout-btn {
  width: 100%; text-align: center; background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 17px 32px; border: none; cursor: pointer;
  transition: background .2s; font-family: var(--sans);
}
.checkout-btn:hover { background: #2a2a2a; }

/* ── CATEGORY PAGES ── */
.page-main { padding-top: 64px; min-height: 100vh; }
.page-sec { padding: 56px 48px 100px; max-width: 1248px; margin: 0 auto; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 40px; margin-bottom: 48px;
  border-bottom: 1px solid var(--borderL); gap: 20px;
}
.back-link {
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 18px; display: inline-flex;
  align-items: center; gap: 7px; transition: color .2s; width: fit-content;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--text); }
.page-count { font-size: 12px; color: var(--text3); flex-shrink: 0; padding-bottom: 4px; }

/* Designers grouped page */
.designer-group { margin-bottom: 80px; }
.designer-group:last-child { margin-bottom: 0; }
.designer-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--borderL);
}
.designer-group-name {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 36px);
  font-weight: 300; letter-spacing: -0.01em;
}
.designer-group-meta { font-size: 11px; color: var(--text3); letter-spacing: 0.06em; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .dress-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .designer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; background: var(--bg);
    padding: 28px 24px; border-bottom: 1px solid var(--border);
    gap: 22px; z-index: 99;
  }
  .sec { padding: 72px 24px; }
  .hero { padding: 100px 24px 64px; }
  /* Mobile: esconde o vídeo e usa a primeira frame como imagem estática */
  .hero-video { display: none; }
  .hero {
    background-image: url('https://res.cloudinary.com/dhvqnggjk/video/upload/v1777273825/copy_5C1AAE85-1E67-438D-9D48-224154EA7E0E_plhczm.jpg');
    background-size: cover; background-position: center top;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .modal { grid-template-columns: 1fr; }
  .modal-left { aspect-ratio: 4/3; max-height: 280px; }
  .modal-right { padding: 32px 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer { padding: 48px 24px; }
  .page-sec { padding: 40px 24px 72px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .designer-group-head { flex-direction: column; gap: 4px; }
}
@media (max-width: 620px) {
  .dress-grid { grid-template-columns: repeat(2, 1fr); }
  .designer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .delivery-opts { grid-template-columns: 1fr; }
}
