:root {
  --ink: #17130f;
  --paper: #f4f0e8;
  --paper-deep: #e9e2d7;
  --wine: #731f2d;
  --rust: #b65e36;
  --line: rgba(23, 19, 15, .16);
  --muted: #777069;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 84px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px); background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; }
.brand-mark {
  width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid currentColor;
  border-radius: 50%; font: 20px/1 "Prata", serif;
}
.brand span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand b { font: 19px/1 "Prata", serif; letter-spacing: .2em; }
.brand small { font-size: 8px; letter-spacing: .22em; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.admin-entry { display: none; align-items: center; gap: 8px; border: 1px solid var(--wine); border-radius: 30px; padding: 11px 16px; color: var(--wine); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 600; }
.admin-entry.visible { display: inline-flex; }
.admin-entry svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-button {
  color: var(--paper); background: var(--ink); border: 0; border-radius: 30px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.cart-button span { background: var(--paper); color: var(--ink); border-radius: 50%; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }

.hero { min-height: calc(100vh - 84px); height: 780px; position: relative; color: white; overflow: hidden; }
.hero-men { background: #14110f; isolation: isolate; }
.hero-men::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .72; background: radial-gradient(circle at 83% 18%, #8b4938 0, transparent 30%), radial-gradient(circle at 52% 95%, #582026 0, transparent 36%), linear-gradient(110deg, #100e0c 0 48%, #2d1715 76%, #70402d); }
.hero-men::after { content: ""; position: absolute; inset: -30%; z-index: -1; opacity: .18; background: repeating-radial-gradient(circle at center, transparent 0 29px, rgba(255,255,255,.28) 30px, transparent 31px); animation: heroLines 24s linear infinite; }
.hero-aurora { position: absolute; width: 34vw; height: 34vw; right: 9vw; top: 12%; border-radius: 50%; background: #b46848; filter: blur(95px); opacity: .24; animation: auroraPulse 7s ease-in-out infinite; }
.hero-copy { position: absolute; z-index: 4; left: clamp(24px, 7vw, 105px); top: 50%; transform: translateY(-51%); max-width: 620px; }
.eyebrow { margin: 0 0 24px; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 600; }
.eyebrow.dark { color: var(--wine); }
h1, h2 { font-family: "Prata", serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: .98; letter-spacing: -.035em; }
.hero-text { font-size: 17px; line-height: 1.65; max-width: 420px; margin: 28px 0 34px; color: rgba(255,255,255,.82); }
.primary-button, .light-button {
  display: inline-flex; gap: 28px; align-items: center; text-decoration: none; text-transform: uppercase;
  letter-spacing: .12em; font-size: 12px; padding: 16px 22px; border: 1px solid rgba(255,255,255,.55);
}
.primary-button span, .light-button span { font-size: 18px; }
.hero-index { position: absolute; right: 55px; bottom: 30px; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.hero-index span { opacity: .6; }
.hero-showcase { position: absolute; z-index: 3; top: 6%; right: clamp(28px, 5.5vw, 85px); width: min(42vw, 590px); height: 86%; }
.hero-fragrance { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transform: translate3d(40px, 12px, 0) scale(.94); animation: fragranceCycle 15s cubic-bezier(.7,0,.25,1) infinite; }
.fragrance-two { animation-delay: 5s; }
.fragrance-three { animation-delay: 10s; }
.hero-bottle-frame { position: relative; justify-self: end; width: min(100%, 470px); height: 100%; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: 46% 46% 18px 18px; background: linear-gradient(145deg, rgba(245,238,226,.98), rgba(197,181,163,.84)); box-shadow: 0 35px 90px rgba(0,0,0,.3); }
.hero-bottle-frame::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 8%; border-radius: 50%; background: rgba(52,36,30,.3); filter: blur(20px); }
.hero-bottle-frame > span { position: absolute; left: 28px; top: 25px; color: rgba(39,28,23,.55); font: 13px "Prata", serif; letter-spacing: .16em; }
.hero-bottle-frame img { position: relative; z-index: 1; width: 82%; height: 84%; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.04); animation: bottleFloat 5s ease-in-out infinite; }
.hero-fragrance-meta { position: absolute; z-index: 3; right: -2px; bottom: 30px; width: min(82%, 390px); padding: 24px 28px; color: #17130f; background: rgba(247,242,233,.94); backdrop-filter: blur(12px); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.hero-fragrance-meta small { text-transform: uppercase; letter-spacing: .22em; font-size: 9px; color: var(--wine); }
.hero-fragrance-meta h2 { margin: 7px 0 6px; font-size: clamp(26px, 3vw, 43px); line-height: 1; }
.hero-fragrance-meta p { margin: 0; color: #6f655e; font-size: 11px; letter-spacing: .05em; }
.hero-progress { position: absolute; z-index: 4; left: 0; bottom: 36px; display: flex; gap: 8px; }
.hero-progress i { width: 25px; height: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-progress i::after { content: ""; display: block; height: 100%; background: #e9b28d; transform: translateX(-100%); animation: progressCycle 15s linear infinite; }
.hero-progress i:nth-child(2)::after { animation-delay: 5s; }
.hero-progress i:nth-child(3)::after { animation-delay: 10s; }
@keyframes fragranceCycle { 0% { opacity: 0; transform: translate3d(55px,12px,0) scale(.94); clip-path: inset(0 0 0 100%); } 7%, 29% { opacity: 1; transform: translate3d(0,0,0) scale(1); clip-path: inset(0); } 33%, 100% { opacity: 0; transform: translate3d(-35px,-8px,0) scale(1.025); clip-path: inset(0 100% 0 0); } }
@keyframes bottleFloat { 0%,100% { transform: translateY(5px) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
@keyframes progressCycle { 0% { transform: translateX(-100%); } 6% { transform: translateX(0); } 30% { transform: translateX(0); } 33%,100% { transform: translateX(100%); } }
@keyframes auroraPulse { 0%,100% { transform: scale(.9); opacity: .18; } 50% { transform: scale(1.12); opacity: .34; } }
@keyframes heroLines { to { transform: rotate(360deg); } }

.service-line {
  min-height: 66px; padding: 20px clamp(24px, 5vw, 76px); background: var(--ink); color: #e8ded0;
  display: flex; justify-content: space-between; align-items: center; gap: 25px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
}
.service-line span::before { content: "◇"; color: #c9916c; margin-right: 12px; }

.catalog-section { padding: 110px clamp(24px, 6vw, 92px) 125px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 56px; }
.section-heading h2 { font-size: clamp(42px, 5.5vw, 78px); letter-spacing: -.035em; }
.section-heading > p { max-width: 410px; color: var(--muted); line-height: 1.7; font-size: 14px; margin: 0 0 8px; }
.catalog-tools { display: flex; justify-content: space-between; gap: 28px; align-items: center; border-top: 1px solid var(--line); padding: 22px 0 30px; }
.search-wrap { flex: 1; max-width: 390px; }
.search-wrap input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 12px 2px; outline: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.facet-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 22px; color: var(--ink); background: transparent; font-size: 12px; cursor: pointer; white-space: nowrap; }
.facet-toggle[aria-expanded="true"], .facet-toggle.has-selection { border-color: var(--wine); color: var(--wine); background: #e9dfda; }
.facet-toggle:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.facet-toggle span { font-size: 10px; font-weight: 600; }
.catalog-facets[hidden] { display: none; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 22px; padding: 9px 15px; cursor: pointer; font-size: 12px; }
.filter.active { background: var(--ink); color: white; }
.catalog-facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--line); background: #ece7df; }
.catalog-facets label { display: grid; gap: 9px; min-width: 0; }
.catalog-facets label > span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.catalog-facets select { width: 100%; min-width: 0; color: var(--ink); border: 0; border-bottom: 1px solid #c7bdb1; border-radius: 0; background: transparent; padding: 8px 22px 10px 0; font: inherit; font-size: 14px; cursor: pointer; text-overflow: ellipsis; }
.catalog-facets select:focus-visible, .search-wrap input:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.catalog-facets:disabled { opacity: .6; }
.catalog-results { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.catalog-results p { margin: 0; font-size: 12px; color: var(--muted); }
.catalog-results button { border: 0; padding: 8px 0; background: transparent; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--wine); cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 14px; }
.product-card { cursor: pointer; min-width: 0; }
.product-photo {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #f8f5ef 0 32%, #e9e2d8 82%);
}
.product-photo img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(.2,.65,.3,1);
}
.product-photo img.clean { object-fit: contain; padding: clamp(12px, 2vw, 24px); mix-blend-mode: multiply; }
.product-card:hover img { transform: scale(1.025); }
.product-card.request .product-photo img { filter: grayscale(.88); opacity: .65; }
.card-status { position: absolute; top: 12px; left: 12px; background: rgba(244,240,232,.92); padding: 7px 9px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.sale-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--wine); color: white; padding: 8px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.card-add { position: absolute; right: 11px; bottom: 11px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: white; font-size: 20px; cursor: pointer; }
.product-info { padding: 15px 4px 0; }
.product-brand { color: var(--wine); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 600; margin: 0 0 7px; }
.product-title { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.product-title h3 { font: 19px/1.25 "Prata", serif; margin: 0; }
.product-title b { white-space: nowrap; font-size: 13px; font-weight: 500; }
.sale-price { display: flex; flex-direction: column; align-items: flex-end; color: var(--wine); }
.sale-price s { color: var(--muted); font-size: 10px; font-weight: 400; }
.product-family { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.load-more { display: block; margin: 54px auto 0; background: transparent; border: 1px solid var(--ink); padding: 13px 26px; cursor: pointer; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; }
.empty-results { grid-column: 1/-1; padding: 70px 0; text-align: center; color: var(--muted); }

.consultation { background: var(--wine); color: #f6eee5; padding: 90px clamp(24px, 10vw, 150px); display: grid; grid-template-columns: 1fr 1fr; gap: 12vw; align-items: end; }
.consultation h2 { font-size: clamp(46px, 6vw, 88px); line-height: 1.04; }
.consultation > div:last-child p { max-width: 460px; color: rgba(255,255,255,.75); line-height: 1.75; margin: 0 0 30px; }
footer { padding: 70px clamp(24px, 6vw, 92px) 26px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; background: var(--ink); color: #e9e1d7; }
footer > p { color: #9d958c; line-height: 1.7; margin: 0; }
.socials { display: flex; flex-direction: column; gap: 13px; }
.socials a { text-underline-offset: 4px; }
footer > small { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 25px; color: #77716b; }

.product-dialog { width: min(1050px, calc(100% - 32px)); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px rgba(0,0,0,.35); }
.product-dialog::backdrop { background: rgba(15,11,8,.75); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 2; right: 17px; top: 14px; border: 0; background: var(--paper); border-radius: 50%; width: 38px; height: 38px; font-size: 24px; cursor: pointer; }
.dialog-product { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.dialog-visual { position: relative; aspect-ratio: 3 / 4; align-self: start; background: radial-gradient(circle at 50% 42%, #f8f5ef 0 32%, #e7e0d7 84%); }
.dialog-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dialog-visual img.clean { object-fit: contain; padding: clamp(20px, 4vw, 42px); mix-blend-mode: multiply; }
.dialog-copy { padding: 62px 52px 42px; overflow: auto; max-height: 85vh; }
.dialog-copy h2 { font-size: clamp(34px, 4vw, 55px); line-height: 1.04; }
.dialog-copy .description { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 20px 0 28px; }
.dialog-sale { display: inline-block; margin-top: 17px; background: var(--wine); color: white; padding: 7px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.variant-option s { opacity: .55; margin-right: 4px; }
.notes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 0; }
.note-row { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 12px 0; font-size: 13px; }
.note-row span { color: var(--wine); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; padding-top: 3px; }
.variant-label { margin: 26px 0 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { border: 1px solid var(--line); background: transparent; padding: 10px 12px; cursor: pointer; font-size: 12px; }
.variant-option.active { background: var(--ink); color: white; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }
.add-main { flex: 1; background: var(--wine); color: white; border: 0; padding: 15px; cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.source-link { display: inline-block; color: var(--muted); margin-top: 17px; font-size: 11px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; z-index: 40; top: 0; right: 0; height: 100%; width: min(470px, 100%); transform: translateX(100%); transition: transform .32s; background: var(--paper); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .eyebrow { margin: 0 0 5px; }
.drawer-head h2 { font-size: 37px; }
.drawer-head button { border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.cart-items { padding: 8px 28px; overflow: auto; flex: 1; }
.cart-empty { text-align: center; color: var(--muted); padding: 80px 20px; line-height: 1.7; }
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { display: block; width: 68px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #e6e0d8; }
.cart-line h3 { font: 15px/1.3 "Prata", serif; margin: 0 0 5px; }
.cart-line p { font-size: 11px; color: var(--muted); margin: 0 0 8px; }
.quantity { display: flex; gap: 9px; align-items: center; }
.quantity button { width: 24px; height: 24px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-price { font-size: 12px; text-align: right; }
.remove { display: block; margin: 10px 0 0 auto; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 10px; }
.cart-footer { padding: 20px 28px 28px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font: 22px "Prata", serif; margin-bottom: 16px; }
.order-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-buttons a { text-align: center; text-decoration: none; padding: 14px 8px; background: var(--ink); color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.order-buttons a:last-child { background: #26765a; }
.cart-note { color: var(--muted); font-size: 10px; line-height: 1.45; margin: 12px 0 0; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: white; padding: 12px 20px; pointer-events: none; transition: .25s; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 18px; }
  .site-header nav { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand b { font-size: 16px; }
  .hero { height: 840px; min-height: calc(100svh - 70px); }
  .hero-copy { left: 23px; right: 20px; top: 62px; transform: none; }
  h1 { font-size: clamp(43px, 12.7vw, 60px); }
  .hero-text { font-size: 13px; max-width: 290px; margin: 18px 0 23px; }
  .primary-button { padding: 13px 16px; }
  .hero-showcase { left: 23px; right: 23px; top: 455px; width: auto; height: 320px; }
  .hero-bottle-frame { width: 100%; border-radius: 160px 160px 15px 15px; }
  .hero-bottle-frame img { width: 72%; height: 82%; }
  .hero-fragrance-meta { width: 72%; right: 0; bottom: 14px; padding: 15px 17px; }
  .hero-fragrance-meta h2 { font-size: 22px; }
  .hero-fragrance-meta p { font-size: 9px; }
  .hero-progress { left: 11px; bottom: 20px; }
  .hero-index { display: none; }
  .service-line { overflow: auto; justify-content: flex-start; }
  .service-line span { white-space: nowrap; }
  .catalog-section { padding-top: 75px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading > p { margin-top: 20px; }
  .catalog-tools { display: block; }
  .catalog-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 20px 16px; }
  .catalog-facets select { font-size: 14px; }
  .search-wrap { display: block; max-width: none; margin-bottom: 18px; }
  .catalog-actions { gap: 12px; }
  .filters { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .filter { padding: 8px 10px; }
  .filter { white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
  .product-title { display: block; }
  .product-title h3 { font-size: 16px; }
  .product-title b { display: block; margin-top: 7px; }
  .consultation { grid-template-columns: 1fr; gap: 40px; padding-block: 70px; }
  footer { grid-template-columns: 1fr; }
  footer > small { grid-column: auto; }
  .dialog-product { grid-template-columns: 1fr; }
  .dialog-copy { padding: 34px 24px; max-height: none; }
  .product-dialog { max-height: 92vh; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-men::after, .hero-aurora, .hero-bottle-frame img { animation: none; }
  .hero-fragrance { animation-duration: 30s; }
}
@media (max-width: 390px) {
  .header-actions { gap: 6px; }
  .admin-entry { padding: 8px 11px; }
  .admin-entry span { display: none; }
  .admin-entry svg { width: 18px; height: 18px; }
  .cart-button { padding: 9px 11px; font-size: 0; gap: 0; }
  .cart-button span { font-size: 11px; }
}
.checkout { padding:24px 28px; overflow:auto; display:grid; gap:16px; }
.checkout[hidden], .cart-drawer [hidden]{display:none}
.checkout h3 {font:24px Prata,Georgia,serif}
.checkout label {display:grid;gap:6px;font-size:13px}
.checkout input {width:100%;background:white;border:1px solid var(--line);padding:12px;font:inherit}
.checkout p,.checkout-back,#checkoutStatus{font-size:12px;line-height:1.55}
.checkout-back{background:transparent;border:0;text-decoration:underline;cursor:pointer}
#startCheckout{width:100%;margin-bottom:10px}
.cart-footer{max-height:52dvh;overflow:auto}
