/* ==========================================================================
   AMAZING THAILAND CLUB — pages.css
   Shared styles for the content, commerce and auth pages:
   about, contact, terms, privacy, wishlist, cart, checkout, confirmation,
   login, register, forgot-password, otp.

   01. Page tokens              09. Cart
   02. Page hero + shell        10. Checkout
   03. Content blocks           11. Order confirmation
   04. Contact page             12. Auth pages
   05. Legal pages              13. Mini header / footer
   06. Header cart & account    14. Toasts
   07. Empty states             15. Utilities
   08. Wishlist
   ========================================================================== */

/* ==========================================================================
   01. PAGE TOKENS
   ========================================================================== */
.pg, .auth, .shop {
  --wine:      #B3265D;
  --wine-dk:   #8E1C49;
  --wine-lt:   #D2447B;
  --teal:      #0F766E;
  --teal-pale: #E6F5F3;
  --amber:     #D4A24C;
  --amber-dk:  #8A5A05;
  --amber-pale:#FEF4E2;
  --ok:        #157243;
  --ok-pale:   #E8F6EE;
  --bad:       #C0271F;
  --bad-pale:  #FDECEA;
  --mute:      #5A6880;
  --line:      #EFE3D6;
  --line-soft: #F6EEE4;
  --panel:     #FFFFFF;
  --page-bg:   #FFF9F4;
  --r-card:    22px;
  --sh:        0 6px 24px rgba(72, 48, 20, .08);
  --sh-hi:     0 18px 44px rgba(72, 48, 20, .16);
}

/* ==========================================================================
   02. PAGE HERO + SHELL
   ========================================================================== */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(210px, 22vw, 320px);
  margin-top: var(--header-h);
  padding: clamp(28px, 4vw, 52px) 0;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; display: block; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 249, 244, .96) 0%, rgba(255, 246, 236, .74) 42%, rgba(255, 249, 244, .97) 100%);
}
.page-hero__title { margin-top: 10px; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); }
.page-hero__sub { max-width: 62ch; margin: 12px auto 0; font-size: var(--fs-sm); color: var(--ink); }

.pg, .shop {
  padding-bottom: clamp(40px, 5vw, 76px);
  background:
    radial-gradient(60% 34% at 10% 2%, rgba(217, 164, 65, .08), transparent 62%),
    radial-gradient(52% 30% at 92% 6%, rgba(194, 31, 79, .05), transparent 60%),
    var(--page-bg);
}
/* the commerce pages paint their body from storage, so the region reserves
   height up front — the footer never jumps once the rows arrive. */
.shop {
  padding-top: calc(var(--header-h) + clamp(16px, 2vw, 28px));
  min-height: 88vh;
  min-height: 88dvh;
}
.pg .crumbs, .shop .crumbs { padding-top: clamp(14px, 1.8vw, 22px); }

.pg-sec { padding-top: clamp(30px, 3.6vw, 56px); }
.pg-h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.2; }
.pg-h2--sm { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.pg-lead { margin-top: 8px; font-size: var(--fs-sm); color: var(--mute); }

/* ==========================================================================
   03. CONTENT BLOCKS
   ========================================================================== */
.pg-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.pg-split__copy p { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.85; color: var(--ink); }
.pg-split__media { margin: 0; }
.pg-split__media img { width: 100%; border-radius: var(--r-card); box-shadow: var(--sh-hi); }
.pg-split__media figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--mute); text-align: center; }

.pg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.pg-card {
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.pg-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hi); border-color: rgba(217, 164, 65, .55); }
.pg-card__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(247, 223, 160, .6), rgba(247, 223, 160, .22));
  color: var(--gold-dk);
}
.pg-card__ico svg { width: 22px; height: 22px; }
.pg-card h3 { font-size: 1.06rem; color: var(--navy); }
.pg-card p { margin-top: 7px; font-size: var(--fs-xs); line-height: 1.7; color: var(--mute); }

.pg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); counter-reset: step; }
.pg-step {
  position: relative;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, #FFFCF7 0%, #FEF6EB 100%);
  border: 1px solid var(--line);
}
.pg-step__n {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--grad-gold);
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  box-shadow: var(--sh-gold);
}
.pg-step h3 { font-size: 1rem; color: var(--navy); }
.pg-step p { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.7; color: var(--mute); }

.pg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 36px);
  border-radius: var(--r-card);
  background: linear-gradient(120deg, #FFF6E7 0%, #FDECD9 60%, #FFF8EE 100%);
  border: 1px solid rgba(217, 164, 65, .4);
  box-shadow: var(--sh);
}
.pg-cta__title { font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); }
.pg-cta__sub { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink); }
.pg-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   04. CONTACT PAGE
   ========================================================================== */
.pg-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.pg-contact__card {
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pg-contact__card:hover { transform: translateY(-5px); box-shadow: var(--sh-hi); }
.pg-contact__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--teal-pale);
  color: var(--teal);
}
.pg-contact__ico svg { width: 22px; height: 22px; }
.pg-contact__card h2 { font-size: 1.02rem; color: var(--navy); }
.pg-contact__card p { margin-top: 7px; font-size: var(--fs-sm); line-height: 1.8; }
.pg-contact__card a { color: var(--wine); font-weight: 600; }
.pg-contact__card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-contact__card small { display: block; margin-top: 7px; font-size: var(--fs-xs); color: var(--mute); }

.pg-contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; }

.pg-offices {
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, #FFFCF7 0%, #FEF5E9 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.pg-office { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.pg-office h3 { display: flex; align-items: center; gap: 8px; font-family: var(--ff-sans); font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.pg-office h3 svg { width: 16px; height: 16px; color: var(--gold-dk); }
.pg-office p { margin-top: 5px; font-size: var(--fs-xs); line-height: 1.7; color: var(--ink); }
.pg-office__meta { color: var(--mute) !important; }

.pg-map {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border-radius: var(--r-md);
  background:
    radial-gradient(70% 90% at 22% 40%, rgba(20, 184, 166, .16), transparent 62%),
    radial-gradient(60% 80% at 80% 50%, rgba(217, 164, 65, .18), transparent 60%),
    linear-gradient(180deg, #F3F8FB 0%, #EAF2F6 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  color: rgba(15, 118, 110, .5);
}
.pg-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-map__dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(179, 38, 93, .18);
}
.pg-map__dot b {
  position: absolute;
  top: 14px;
  font-size: .62rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.pg-map__dot--a { left: 22%; top: 26%; }
.pg-map__dot--b { left: 19%; top: 66%; }
.pg-map__dot--c { left: 78%; top: 42%; }
.pg-offices .social { margin-top: 20px; }

/* ==========================================================================
   05. LEGAL PAGES
   ========================================================================== */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 40px); align-items: start; padding-top: clamp(20px, 2.6vw, 36px); }

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  max-height: calc(100vh - var(--header-h) - 34px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.legal__toc-t { font-size: var(--fs-sm); font-family: var(--ff-sans); font-weight: 700; color: var(--navy); }
.legal__toc-list { counter-reset: toc; margin-top: 12px; display: grid; gap: 2px; }
.legal__toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.legal__toc-list a::before { counter-increment: toc; content: counter(toc) ". "; color: var(--gold-dk); font-weight: 700; }
.legal__toc-list a:hover { background: rgba(179, 38, 93, .06); color: var(--wine); }
.legal__toc-list a.is-active { background: rgba(179, 38, 93, .1); color: var(--wine); font-weight: 600; }

.legal__body {
  padding: clamp(18px, 2.2vw, 34px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  counter-reset: legal;
}
.legal__sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__sec + .legal__sec { margin-top: clamp(22px, 2.6vw, 34px); padding-top: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line-soft); }
.legal__h { display: flex; gap: 12px; font-size: clamp(1.06rem, .94rem + .5vw, 1.32rem); color: var(--navy); }
.legal__h::before {
  counter-increment: legal;
  content: counter(legal);
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--amber-pale);
  font-family: var(--ff-sans);
  font-size: .8rem;
  font-weight: 700;
  color: var(--amber-dk);
}
.legal__sec p { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.85; color: var(--ink); }
.legal__sec a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal__list { margin-top: 10px; display: grid; gap: 8px; }
.legal__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ink);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.legal__stamp { font-size: var(--fs-xs) !important; color: var(--mute) !important; font-style: italic; }

/* ==========================================================================
   06. HEADER CART + ACCOUNT
   ========================================================================== */
.icon-btn--badge { position: relative; }
.icon-btn__badge {
  position: absolute;
  top: -4px; right: -4px;
  display: grid;
  place-items: center;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--crimson);
  border: 2px solid #FFF7EE;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.account { position: relative; }
.account__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(217, 164, 65, .55);
  background: rgba(255, 255, 255, .55);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  transition: background var(--t-base), color var(--t-base);
}
.account__btn > svg:first-child { width: 17px; height: 17px; }
.account__caret { width: 14px; height: 14px; transition: transform var(--t-base); }
.account__btn:hover { background: var(--grad-gold); color: var(--navy-deep); }
.account:hover .account__caret, .account:focus-within .account__caret { transform: rotate(180deg); }

.account__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 194px;
  padding: 8px;
  border-radius: var(--r-md);
  background: rgba(255, 252, 247, .98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 164, 65, .3);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: 5;
}
.account__menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.account:hover .account__menu,
.account:focus-within .account__menu,
.account[data-open="true"] .account__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account[data-open="true"] .account__caret { transform: rotate(180deg); }
.account__menu a, .account__menu button {
  display: block;
  width: 100%;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--navy);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.account__menu a:hover, .account__menu button:hover {
  background: linear-gradient(90deg, rgba(247, 223, 160, .55), rgba(247, 223, 160, 0));
  color: var(--crimson);
  padding-left: 19px;
}

.offcanvas__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.offcanvas__quick a, .offcanvas__quick button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(217, 164, 65, .35);
  background: rgba(255, 255, 255, .6);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.offcanvas__quick svg { width: 17px; height: 17px; color: var(--gold-dk); }
.oc-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--crimson);
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   07. EMPTY STATES
   ========================================================================== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(40px, 7vw, 86px) 20px;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px dashed var(--line);
  text-align: center;
}
.empty__ico {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(247, 223, 160, .55), rgba(247, 223, 160, .18));
  color: var(--gold-dk);
}
.empty__ico svg { width: 32px; height: 32px; }
.empty h2 { font-size: 1.24rem; color: var(--navy); }
.empty p { max-width: 46ch; font-size: var(--fs-sm); color: var(--mute); }

/* ==========================================================================
   08. WISHLIST
   ========================================================================== */
.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.shop-head__title { font-size: clamp(1.44rem, 1.2rem + 1.2vw, 2.1rem); }
.shop-head__sub { margin-top: 6px; font-size: var(--fs-sm); color: var(--mute); }

.wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.wish-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.wish-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hi); }
.wish-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.wish-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
.wish-card:hover .wish-card__media img { transform: scale(1.07); }
.wish-card__drop {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .94);
  color: var(--crimson);
  box-shadow: 0 4px 12px rgba(30, 16, 6, .24);
  transition: transform var(--t-base), background var(--t-base);
}
.wish-card__drop svg { width: 17px; height: 17px; }
.wish-card__drop:hover { transform: scale(1.09); background: var(--crimson); color: #fff; }
.wish-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.wish-card__title { font-size: 1.06rem; color: var(--navy); }
.wish-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: var(--fs-xs); color: var(--mute); }
.wish-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.wish-card__meta svg { width: 14px; height: 14px; color: var(--gold-dk); }
.wish-card__price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 14px; }
.wish-card__price b { font-family: var(--ff-serif); font-size: 1.3rem; color: var(--navy); }
.wish-card__price s { font-size: var(--fs-xs); color: var(--mute); }
.wish-card__btns { display: flex; gap: 8px; margin-top: auto; }
.wish-card__btns .btn { flex: 1; min-width: 0; }

/* ==========================================================================
   09. CART
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: clamp(16px, 2vw, 28px); align-items: start; }

.cart-list { display: grid; gap: clamp(12px, 1.4vw, 16px); }
.cart-row {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr) auto;
  gap: clamp(12px, 1.5vw, 20px);
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.cart-row:hover { box-shadow: var(--sh-hi); border-color: rgba(217, 164, 65, .5); }
.cart-row__media { border-radius: var(--r-md); overflow: hidden; align-self: start; }
.cart-row__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.cart-row__body { min-width: 0; }
.cart-row__title { font-size: 1.1rem; }
.cart-row__title a { color: var(--navy); }
.cart-row__title a:hover { color: var(--wine); }
.cart-row__meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 6px; font-size: var(--fs-xs); color: var(--mute); }
.cart-row__meta span { display: inline-flex; align-items: center; gap: 5px; }
.cart-row__meta svg { width: 14px; height: 14px; color: var(--gold-dk); }

.cart-ctrls { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cart-step { display: flex; align-items: center; gap: 9px; }
.cart-step__k { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); }
.cart-step__k small { display: block; font-size: .62rem; font-weight: 400; color: var(--mute); }
.cart-step__ctl { display: inline-flex; align-items: center; gap: 4px; }
.cart-step__btn {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  color: var(--wine);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.cart-step__btn svg { width: 13px; height: 13px; }
.cart-step__btn:hover:not([disabled]) { background: var(--wine); border-color: var(--wine); color: #fff; }
.cart-step__btn[disabled] { opacity: .35; cursor: default; }
.cart-step__out { min-width: 24px; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.cart-date {
  padding: 8px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #FFFDFA;
  font-size: var(--fs-xs);
  color: var(--navy);
}
.cart-date:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .15); }

.cart-row__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; padding-left: clamp(10px, 1.4vw, 18px); border-left: 1px dashed var(--line); }
.cart-row__price { text-align: right; }
.cart-row__price small { display: block; font-size: var(--fs-xs); color: var(--mute); }
.cart-row__price b { font-family: var(--ff-serif); font-size: 1.28rem; color: var(--navy); }
.cart-row__acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--mute);
  transition: color var(--t-fast);
}
.link-btn svg { width: 14px; height: 14px; }
.link-btn:hover { color: var(--crimson); }
.link-btn--wish:hover { color: var(--wine); }

.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* --- summary panel (cart + checkout) --- */
.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.summary-card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--ff-sans); font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.summary-card__h span { font-size: var(--fs-xs); font-weight: 500; color: var(--mute); }

.sum-lines { display: grid; gap: 9px; margin-top: 14px; }
.sum-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum-line dt { font-size: var(--fs-xs); color: var(--mute); }
.sum-line dd { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); white-space: nowrap; }
.sum-line--save dd { color: var(--ok); }
.sum-line--total { margin-top: 6px; padding-top: 11px; border-top: 1px dashed var(--line); }
.sum-line--total dt { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.sum-line--total dd { font-family: var(--ff-serif); font-size: 1.2rem; }

.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon__input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--r-pill);
  border: 1.5px dashed var(--line);
  background: #FFFDFA;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.coupon__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .15); }
.coupon__msg { margin-top: 8px; font-size: .72rem; line-height: 1.55; min-height: 1em; }
.coupon__msg.is-ok { color: var(--ok); }
.coupon__msg.is-bad { color: var(--bad); }
.coupon__hint { margin-top: 6px; font-size: .68rem; color: var(--mute); }
.coupon__hint code { padding: 1px 6px; border-radius: 5px; background: var(--amber-pale); color: var(--amber-dk); font-weight: 700; }

.summary-card .btn--wine, .summary-card .btn--gold { margin-top: 16px; }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.trust-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 5px;
  border-radius: 13px;
  background: var(--ok-pale);
  font-size: .6rem;
  line-height: 1.35;
  text-align: center;
  color: var(--ok);
}
.trust-row svg { width: 18px; height: 18px; }

/* ==========================================================================
   10. CHECKOUT
   ========================================================================== */
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  padding: 12px clamp(12px, 1.6vw, 20px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  overflow-x: auto;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.steps__item { display: flex; align-items: center; gap: 10px; flex: none; }
.steps__dot {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: var(--mute);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.steps__dot svg { width: 15px; height: 15px; }
.steps__label { font-size: var(--fs-xs); font-weight: 600; color: var(--mute); white-space: nowrap; }
.steps__bar { flex: 1 1 24px; min-width: 18px; height: 2px; border-radius: 2px; background: var(--line); }
.steps__item.is-active .steps__dot { background: var(--wine); border-color: var(--wine); color: #fff; }
.steps__item.is-active .steps__label { color: var(--wine); }
.steps__item.is-done .steps__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps__item.is-done .steps__label { color: var(--ok); }

.panel {
  padding: clamp(16px, 2vw, 26px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.panel + .panel { margin-top: clamp(12px, 1.5vw, 18px); }
.panel__h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.1rem; color: var(--navy); }
.panel__h svg { width: 19px; height: 19px; color: var(--wine); }
.panel__note { margin-top: 12px; font-size: var(--fs-xs); line-height: 1.7; color: var(--mute); }

.pay-opts { display: grid; gap: 9px; }
.pay-opt {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-opt:hover { border-color: rgba(179, 38, 93, .5); }
.pay-opt input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.pay-opt__box { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C3CBD8; transition: border-color var(--t-fast); }
.pay-opt__box::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--wine); transform: scale(0); transition: transform var(--t-fast); }
.pay-opt input:checked ~ .pay-opt__box { border-color: var(--wine); }
.pay-opt input:checked ~ .pay-opt__box::after { transform: scale(1); }
.pay-opt input:focus-visible ~ .pay-opt__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.pay-opt b { display: block; font-size: var(--fs-sm); color: var(--navy); }
.pay-opt small { display: block; margin-top: 3px; font-size: .68rem; color: var(--mute); }
.pay-opt__tag { font-size: .64rem; font-weight: 700; color: var(--ok); white-space: nowrap; }

.mini-cart { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mini-cart__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mini-cart__row img { width: 52px; height: 40px; border-radius: 9px; object-fit: cover; }
.mini-cart__row b { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); line-height: 1.35; }
.mini-cart__row small { font-size: .64rem; color: var(--mute); }
.mini-cart__row span { font-size: var(--fs-xs); font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ==========================================================================
   11. ORDER CONFIRMATION
   ========================================================================== */
.done { max-width: 720px; margin-inline: auto; text-align: center; }
.done__badge {
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok-pale);
  color: var(--ok);
  animation: pop-in .5s cubic-bezier(.22, .9, .36, 1.2) both;
}
.done__badge svg { width: 44px; height: 44px; }
.done__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.done__sub { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink); }
.done__ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--amber-pale);
  border: 1px dashed var(--amber);
  font-size: var(--fs-sm);
  color: var(--amber-dk);
}
.done__ref b { font-family: var(--ff-serif); font-size: 1.1rem; letter-spacing: .05em; color: var(--navy); }
.done__panel { margin-top: clamp(22px, 3vw, 34px); text-align: left; }
.done__next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(18px, 2.4vw, 26px); }
.done__next li {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
}
.done__next svg { width: 20px; height: 20px; color: var(--wine); }
.done__next b { display: block; margin-top: 8px; font-size: var(--fs-sm); color: var(--navy); }
.done__next p { margin-top: 4px; font-size: var(--fs-xs); line-height: 1.6; color: var(--mute); }
.done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(22px, 3vw, 32px); }

@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   12. AUTH PAGES
   ========================================================================== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 76px - 64px);
  min-height: calc(100dvh - 76px - 64px);
  background: var(--page-bg);
}
.auth__art { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; }
.auth__art img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth__art-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 20, 38, .3) 0%, rgba(14, 20, 38, .22) 40%, rgba(12, 16, 32, .84) 100%);
}
.auth__quote { padding: clamp(24px, 4vw, 56px); color: #fff; }
.auth__quote-mark { width: 34px; height: 34px; color: rgba(255, 255, 255, .5); }
.auth__quote p { margin-top: 12px; font-family: var(--ff-serif); font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem); line-height: 1.45; }
.auth__quote cite { display: block; margin-top: 14px; font-style: normal; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.auth__stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .24); }
.auth__stats div b { display: block; font-family: var(--ff-serif); font-size: 1.3rem; }
.auth__stats div span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.auth__panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) clamp(18px, 3vw, 44px); }
.auth__box { width: 100%; max-width: 420px; }
.auth__title { font-size: clamp(1.44rem, 1.2rem + 1.1vw, 2rem); }
.auth__sub { margin-top: 8px; font-size: var(--fs-sm); color: var(--mute); }

.auth__form { margin-top: clamp(20px, 2.6vw, 28px); }
.auth__form .field + .field,
.auth__form .form__row + .field,
.auth__form .field + .form__row { margin-top: 14px; }
.auth__form .btn { margin-top: 18px; }

.field__toggle {
  position: absolute;
  right: 12px; top: 14px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  color: var(--mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.field__toggle svg { width: 17px; height: 17px; }
.field__toggle:hover { background: var(--line-soft); color: var(--navy); }
.field:has(.field__toggle) .field__input { padding-right: 48px; }

.pw-meter { margin-top: 9px; }
.pw-meter__track { display: flex; gap: 4px; }
.pw-meter__track i { flex: 1; height: 4px; border-radius: 3px; background: var(--line); transition: background var(--t-base); }
.pw-meter__label { margin-top: 6px; font-size: .68rem; color: var(--mute); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: #DC2626; }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #F59E0B; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #65A30D; }
.pw-meter[data-score="4"] i { background: var(--ok); }

.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-xs); color: var(--ink); cursor: pointer; }
.check input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.check__box {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.6px solid #CBD3E0;
  background: #fff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check__box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--t-fast), transform var(--t-fast);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l4.8 4.8L19.5 7.4' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l4.8 4.8L19.5 7.4' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check input:checked + .check__box { background: var(--wine); border-color: var(--wine); }
.check input:checked + .check__box::after { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.check a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.auth__link { font-size: var(--fs-xs); font-weight: 600; color: var(--wine); }
.auth__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth__alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: var(--fs-sm); color: var(--mute); }
.auth__alt a { color: var(--wine); font-weight: 700; }
.auth__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth__or { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: var(--fs-xs); color: var(--mute); }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth__social button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy);
  transition: border-color var(--t-base), transform var(--t-base);
}
.auth__social button:hover { border-color: var(--wine); transform: translateY(-2px); }
.auth__social svg { width: 17px; height: 17px; }

.auth__status {
  max-height: 0;
  overflow: hidden;
  border-radius: 12px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  transition: max-height var(--t-base), padding var(--t-base), margin var(--t-base);
}
.auth__status.is-shown { max-height: 140px; margin-top: 14px; padding: 12px 14px; }
.auth__status.is-ok { background: var(--ok-pale); color: var(--ok); }
.auth__status.is-bad { background: var(--bad-pale); color: var(--bad); }

/* --- OTP --- */
.otp { display: flex; justify-content: space-between; gap: clamp(6px, 1.6vw, 12px); margin-top: 22px; }
.otp__input {
  width: 100%;
  max-width: 58px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border-radius: 14px;
  border: 1.6px solid var(--line);
  background: #FFFDFA;
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.otp__input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(179, 38, 93, .14); transform: translateY(-2px); }
.otp__input.is-filled { border-color: var(--wine); background: rgba(179, 38, 93, .05); }
.otp.is-error .otp__input { border-color: var(--bad); animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

.otp__resend { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: var(--fs-xs); color: var(--mute); }
.otp__resend button { font-weight: 700; color: var(--wine); }
.otp__resend button:hover:not([disabled]) { text-decoration: underline; text-underline-offset: 3px; }
.otp__resend button[disabled] { color: var(--mute); cursor: default; }
.otp__sent { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--teal-pale); font-size: var(--fs-xs); color: var(--teal); }
.otp__sent svg { width: 15px; height: 15px; }
.otp__sent b { color: var(--navy); }

/* ==========================================================================
   13. MINI HEADER / FOOTER
   ========================================================================== */
.mini-header { background: rgba(255, 251, 245, .96); border-bottom: 1px solid var(--line); }
.mini-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.mini-header__back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--mute); }
.mini-header__back svg { width: 16px; height: 16px; }
.mini-header__back:hover { color: var(--wine); }

.mini-footer { background: linear-gradient(180deg, #232B3A 0%, #1A2130 100%); color: rgba(255, 250, 242, .82); }
.mini-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 16px; font-size: var(--fs-xs); }
.mini-footer ul { display: flex; gap: 18px; }
.mini-footer a { color: rgba(255, 250, 242, .82); }
.mini-footer a:hover { color: var(--gold-lt); }

/* ==========================================================================
   14. TOASTS
   ========================================================================== */
.toasts {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 260;
  display: grid;
  gap: 8px;
  max-width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(20, 28, 42, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 16, 28, .34);
  animation: toast-in .32s cubic-bezier(.22, .9, .36, 1.1) both;
}
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #5BE0A0; }
.toast.is-out { animation: toast-out .4s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */
.pg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9px;
  background: var(--ok-pale);
  font-size: .68rem;
  font-weight: 600;
  color: var(--ok);
}
.pg-badge svg { width: 14px; height: 14px; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   16. CARD WISHLIST BUTTON (packages grid, listing cards)
   ========================================================================== */
.card-wish {
  position: absolute;
  inset: 14px 14px auto auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(12, 26, 51, .18);
  color: var(--navy);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), background .25s cubic-bezier(.22, .61, .36, 1), color .25s cubic-bezier(.22, .61, .36, 1);
  z-index: 3;
}
.card-wish:hover,
.card-wish:focus-visible { transform: scale(1.09); background: #fff; color: var(--crimson); }
.card-wish svg { width: 19px; height: 19px; }
.card-wish__f { display: none; }
.card-wish[aria-pressed="true"] { background: var(--crimson); color: #fff; }
.card-wish[aria-pressed="true"] .card-wish__o { display: none; }
.card-wish[aria-pressed="true"] .card-wish__f { display: block; animation: wish-pop .32s cubic-bezier(.22, .61, .36, 1); }
@keyframes wish-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .card-wish, .card-wish[aria-pressed="true"] .card-wish__f { transition: none; animation: none; }
}
