/* Sansar — announcement bar, header, mega menu, drawers, footer */

.announce {
  position: relative; z-index: 60;
  height: 38px; overflow: hidden;
  background: var(--bordeaux-deep); color: var(--cream);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.announce-track {
  display: flex; width: max-content; height: 100%; align-items: center;
  animation: marquee 38s linear infinite;
}
.announce-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.announce-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 238, 228, .9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.header.scrolled { border-color: var(--line); }
.header.hide { transform: translateY(-100%); }
.header.transparent:not(.scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--cream); }
.header.transparent:not(.scrolled):not(.menu-open) .logo img.logo-dark { opacity: 0; }
.header.transparent:not(.scrolled):not(.menu-open) .logo img.logo-light { opacity: 1; }
.header-inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.logo { position: relative; display: block; width: 148px; height: 36px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.logo img.logo-light { opacity: 0; }

.nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav > li { height: 100%; display: flex; align-items: center; }
.nav-link {
  position: relative; height: 100%; display: flex; align-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after, .has-mega:hover .nav-link::after { transform: scaleX(1); }

.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.count-badge {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--velvet); color: #fff; font-size: 10px; font-weight: 600; line-height: 1;
  transform: scale(0); transition: transform .4s var(--ease);
}
.count-badge.show { transform: scale(1); }
.count-badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.burger { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1.1fr 1.1fr 1.1fr 2.2fr; gap: 40px; padding-top: 44px; padding-bottom: 48px; }
.mega h4 { font-family: var(--f-display); font-size: 26px; margin-bottom: 16px; color: var(--bordeaux); }
.mega ul li a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--ink-2); transition: color .3s, transform .3s var(--ease); }
.mega ul li a:hover { color: var(--velvet); transform: translateX(4px); }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.mega-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega-card:hover img { transform: scale(1.06); }
.mega-card span {
  position: absolute; left: 14px; bottom: 14px; right: 14px; color: var(--cream);
  font-family: var(--f-display); font-size: 24px; line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.mega-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 21, 23, .55), transparent 50%); }
.mega-card span { z-index: 1; }

/* Drawers (cart, mobile menu) */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(29, 21, 23, .45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 100; max-width: 100vw;
  width: min(460px, 100vw);
  display: flex; flex-direction: column;
  background: var(--cream);
  transform: translateX(100%); visibility: hidden;
  transition: transform .7s var(--ease), visibility .7s, box-shadow .7s;
}
.drawer.left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .3); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 30px; }
.drawer-head h3 sup { font-family: var(--f-sans); font-size: 12px; color: var(--muted); margin-left: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px; overscroll-behavior: contain; }
.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); background: var(--cream-2); }

.ship-progress { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ship-progress strong { color: var(--bordeaux); }
.ship-bar { margin-top: 10px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--bordeaux), var(--velvet-bright)); width: 0; transition: width .8s var(--ease); }

.line-item { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item h5 { font-family: var(--f-display); font-size: 20px; font-weight: 500; line-height: 1.1; }
.line-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.line-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.line-item .remove { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-item .remove:hover { color: var(--velvet); }

.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty img { width: 70px; margin: 0 auto 24px; opacity: .8; }
.cart-empty h4 { font-family: var(--f-display); font-size: 30px; margin-bottom: 8px; }

.totals-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 4px 0; }
.totals-row.big { font-size: 16px; font-weight: 500; padding-top: 10px; }
.totals-row.big .price { font-family: var(--f-display); font-size: 30px; font-weight: 500; }
.pay-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pay-icons span {
  height: 24px; padding: 0 8px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white);
  font-size: 9px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2);
}

/* Mobile menu */
.mnav { padding: 10px 26px 30px; }
.mnav > li { border-bottom: 1px solid var(--line); }
.mnav > li > a, .mnav summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-family: var(--f-display); font-size: 30px; line-height: 1; cursor: pointer; list-style: none;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; font-family: var(--f-sans); font-size: 22px; font-weight: 300; transition: transform .3s; }
.mnav details[open] summary::after { transform: rotate(45deg); }
.mnav details ul { padding: 0 0 16px 4px; }
.mnav details ul a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.mnav-foot { padding: 0 26px 30px; display: grid; gap: 10px; font-size: 14px; }

/* Search overlay */
.search-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--cream); padding: 30px 0 40px;
  transform: translateY(-100%); visibility: hidden; transition: transform .7s var(--ease), visibility .7s;
  max-height: 90vh; overflow-y: auto;
}
.search-panel.open { transform: none; visibility: visible; }
.search-bar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--bordeaux); padding-bottom: 10px; }
.search-bar svg { width: 26px; height: 26px; color: var(--bordeaux); flex: none; }
.search-bar input { flex: 1; border: 0; background: transparent; outline: none; font-family: var(--f-display); font-size: clamp(28px, 4vw, 52px); color: var(--ink); min-width: 0; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.search-hints button { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 30px; font-size: 13px; transition: all .3s; }
.search-hints button:hover { background: var(--bordeaux); color: var(--cream); border-color: var(--bordeaux); }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 60px;
  background: var(--ink); color: var(--cream); font-size: 13px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 160px); opacity: 0; visibility: hidden;
  transition: transform .6s var(--ease), opacity .4s, visibility .6s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.toast b { font-weight: 500; }

/* Footer */
.newsletter {
  position: relative; overflow: hidden;
  background: var(--bordeaux); color: var(--cream);
  padding: clamp(70px, 9vw, 130px) 0;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/brand/monogram-cream.png) no-repeat right -60px center / auto 140%;
  opacity: .06;
}
.newsletter .container { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.newsletter h2 { font-size: clamp(40px, 5vw, 78px); line-height: .95; }
.newsletter form { display: flex; border-bottom: 1px solid rgba(244, 238, 228, .5); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 16px 0; color: var(--cream); font-size: 16px; }
.newsletter input::placeholder { color: rgba(244, 238, 228, .6); }
.newsletter form button { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding: 0 0 0 20px; }
.newsletter .small { margin-top: 14px; opacity: .7; }

.footer { background: var(--bordeaux-deep); color: rgba(244, 238, 228, .82); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 60px; }
.footer h5 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); margin-bottom: 20px; }
.footer ul li a { display: inline-block; padding: 4px 0; font-size: 14px; transition: color .3s; }
.footer ul li a:hover { color: #fff; }
.footer .brand-col img { width: 170px; margin-bottom: 22px; }
.footer .brand-col p { font-size: 14px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 238, 228, .25); transition: all .3s; }
.socials a:hover { background: var(--cream); color: var(--bordeaux); }
.socials svg { width: 18px; height: 18px; }
.footer-huge {
  font-family: var(--f-display); color: rgba(244, 238, 228, .07);
  font-size: clamp(90px, 26vw, 420px); line-height: .75; letter-spacing: -.04em; text-align: center;
  user-select: none; margin-bottom: -.06em; overflow: hidden;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center;
  padding: 22px 0; border-top: 1px solid rgba(244, 238, 228, .12); font-size: 12px;
}
.footer-bottom .pay-icons { margin: 0; }
.footer-bottom .pay-icons span { background: transparent; color: var(--cream); border-color: rgba(244, 238, 228, .25); }

.reassure { background: var(--cream-2); border-top: 1px solid var(--line); }
.reassure .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.reassure-item { display: flex; gap: 16px; align-items: center; padding: 30px 20px; border-right: 1px solid var(--line); }
.reassure-item:last-child { border-right: 0; }
.reassure-item svg { width: 30px; height: 30px; color: var(--bordeaux); flex: none; stroke-width: 1.2; }
.reassure-item b { display: block; font-weight: 500; font-size: 14px; }
.reassure-item span { font-size: 13px; color: var(--muted); }

/* Demo badge (for the pitch) */
.demo-pill {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  padding: 8px 14px; border-radius: 30px; background: var(--white); color: var(--bordeaux);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-left { display: flex; align-items: center; gap: 4px; }
  .logo { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: 1 / -1; }
  .reassure .container { grid-template-columns: 1fr 1fr; }
  .reassure-item:nth-child(2) { border-right: 0; }
  .reassure-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .newsletter .container { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .logo { width: 116px; height: 30px; }
  .header-tools .hide-sm { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .reassure .container { grid-template-columns: 1fr; padding: 0; }
  .reassure-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px var(--gutter); }
  .footer-grid { gap: 30px; }
  .demo-pill { display: none; }
}
