/* ==========================================================================
   Essence World — components.css
   Reusable UI: buttons, header, drawers, cards, forms, modal, footer …
   ========================================================================== */

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 34px; border-radius: var(--radius-pill); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s, background .3s, border-color .3s;
}
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn--gold {
  --btn-fg: #2b1f08; --btn-bd: transparent;
  background: linear-gradient(110deg, #B8903F 0%, #E8CB85 30%, #F6E7B8 50%, #D9B76A 70%, #B8903F 100%);
  background-size: 220% 100%; background-position: 0 0;
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(184, 144, 63, .4); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); color: var(--ivory); background: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 11px 22px; font-size: 11px; }
.btn--lg { padding: 20px 46px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: gap .3s var(--ease), color .3s; }
.link-arrow:hover { gap: 18px; color: var(--gold-deep); }

/* ---- Icon buttons --------------------------------------------------------- */
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; color: var(--ink); transition: background .3s, color .3s, transform .4s var(--ease-spring);
}
.icon-btn:hover { background: var(--ink); color: var(--gold-3); transform: translateY(-2px) scale(1.06); }
.icon-btn:hover .icon { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }
.icon-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold-grad); color: #2b1f08; font-size: 10px; font-weight: 500; display: grid; place-items: center; line-height: 1;
}
.icon-btn__count.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.6); } }
.icon-btn--solid { background: var(--white); box-shadow: var(--shadow-sm); width: 40px; height: 40px; font-size: 18px; }
.icon-btn.is-active { color: var(--rose); }
.icon-btn.is-active .icon { fill: currentColor; }

/* ---- Announcement bar ----------------------------------------------------- */
.announce { background: var(--ink); color: var(--gold-3); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; overflow: hidden; }
.announce__track { display: flex; width: max-content; padding-block: 11px; animation: marquee 32s linear infinite; }
.announce__track span { padding-inline: 36px; display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.announce__track span::after { content: '✦'; color: var(--gold); }
.announce:hover .announce__track { animation-play-state: paused; }

/* ---- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(252, 250, 246, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); transition: box-shadow .4s, background .4s; }
.site-header.is-scrolled { box-shadow: 0 10px 40px rgba(60, 40, 10, .08); background: rgba(252, 250, 246, .96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.logo em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 3px; }
.header__burger { display: none; }
.header__actions { display: flex; align-items: center; gap: 2px; }

.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-block: 28px; font-size: 11.5px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link .icon { width: 12px; height: 12px; transition: transform .3s; }
.nav__item:hover .nav__link .icon { transform: rotate(180deg); }
.nav__tag { font-size: 9px; padding: 3px 7px; border-radius: 10px; background: var(--rose); color: #fff; letter-spacing: .1em; margin-left: -2px; align-self: flex-start; margin-top: 22px; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-top: 1px solid var(--line); box-shadow: 0 40px 80px rgba(60, 40, 10, .12); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .45s var(--ease); }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 40px; padding-block: 40px; }
.mega h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 18px; }
.mega li a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--ink-2); transition: color .3s, transform .3s var(--ease); }
.mega li a:hover { color: var(--gold-deep); transform: translateX(6px); }
.mega__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 22px; color: #fff; }
.mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__card:hover img { transform: scale(1.06); }
.mega__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 14, 6, .75)); }
.mega__card > div { position: relative; z-index: 1; }
.mega__card strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; margin-top: 4px; }

/* ---- Overlay / drawers ---------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 1900; background: rgba(20, 14, 6, .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 2000; width: min(440px, 100%); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .55s var(--ease); box-shadow: var(--shadow-lg); }
.drawer--left { right: auto; left: 0; transform: translateX(-104%); }
.drawer.is-open { transform: none; }
.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: 28px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 26px; overscroll-behavior: contain; }
.drawer__foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 12px; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__row strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; }

.ship-progress { padding: 18px 26px; background: var(--cream); font-size: 13px; }
.ship-progress__bar { height: 6px; background: rgba(28, 24, 20, .1); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.ship-progress__bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); border-radius: 6px; transition: width .8s var(--ease); }

/* Cart line item (drawer + cart page share this) */
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 78px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--cream); }
.line__name { font-family: var(--font-display); font-size: 21px; line-height: 1.1; font-weight: 500; }
.line__meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 3px 0 10px; }
.line__price { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-align: right; }
.line__remove { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.line__remove:hover { color: var(--coral); }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state .icon { width: 56px; height: 56px; stroke-width: 1; color: var(--gold); margin: 0 auto 16px; }
.empty-state h4 { font-size: 26px; color: var(--ink); margin-bottom: 8px; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.qty button:hover { background: var(--cream); }
.qty input { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 400; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---- Search overlay ------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(252, 250, 246, .97); backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; padding: 14vh var(--gutter) 40px; opacity: 0; visibility: hidden; transition: all .5s var(--ease); overflow-y: auto; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__close { position: absolute; top: 24px; right: var(--gutter); }
.search-overlay form { width: min(860px, 100%); display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.search-overlay input { flex: 1; border: 0; background: none; outline: none; font-family: var(--font-display); font-size: clamp(30px, 5vw, 56px); min-width: 0; }
.search-overlay input::placeholder { color: rgba(28, 24, 20, .3); }
.search-overlay__tags { width: min(860px, 100%); margin-top: 32px; }
.search-overlay__tags p { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.search-results { display: grid; gap: 4px; margin-top: 8px; }
.search-results a { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 12px; transition: background .3s; }
.search-results a:hover { background: var(--cream); }
.search-results img { width: 52px; border-radius: 8px; aspect-ratio: 4/5; object-fit: cover; }
.search-results strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; display: block; line-height: 1.1; }
.search-results small { color: var(--muted); }

/* ---- Mobile menu ---------------------------------------------------------- */
.mobile-menu__list { padding: 10px 0 30px; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a, .mobile-menu__list summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--font-display); font-size: 26px; cursor: pointer; list-style: none; }
.mobile-menu__list summary::-webkit-details-marker { display: none; }
.mobile-menu__list details[open] summary .icon { transform: rotate(180deg); }
.mobile-menu__list summary .icon { transition: transform .3s; }
.mobile-menu__sub { padding: 0 0 14px 14px; display: grid; }
.mobile-menu__sub a { font-family: var(--font-body); font-size: 15px; padding: 10px 0; color: var(--ink-2); letter-spacing: .04em; }

/* ---- Badges / ratings / prices ------------------------------------------- */
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 13px; border-radius: var(--radius-pill); background: var(--ink); color: var(--gold-3); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.badge--rose { background: var(--rose); color: #fff; }
.badge--emerald { background: var(--emerald); color: #fff; }
.badge--violet { background: var(--violet); color: #fff; }
.badge--sapphire { background: var(--sapphire); color: #fff; }
.badge--gold { background: var(--gold-grad); color: #2b1f08; }
.badge--static { position: static; display: inline-block; }
.stars { --rating: 5; font-size: 14px; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, var(--gold) calc(var(--rating) / 5 * 100%), #dcd3c2 0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__now { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.price s { color: var(--muted); font-size: 14px; }
.price__save { font-size: 11px; letter-spacing: .1em; color: var(--emerald); font-weight: 500; text-transform: uppercase; }

/* ---- Section heading ------------------------------------------------------ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; }
.section-head h2 em { color: var(--gold-deep); }
.section-head p { margin-top: 14px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---- Product card --------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 4/5; }
.product-card__link { display: block; height: 100%; }
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.product-card__img--hover { opacity: 0; transform: scale(1.06); }
.product-card:hover .product-card__img--hover { opacity: 1; transform: none; }
.product-card:hover .product-card__img:not(.product-card__img--hover) { transform: scale(1.05); }
.product-card__actions { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; gap: 8px; transform: translateX(16px); opacity: 0; transition: all .45s var(--ease); }
.product-card:hover .product-card__actions, .product-card:focus-within .product-card__actions { transform: none; opacity: 1; }
.product-card__add { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; width: auto; max-width: calc(100% - 28px); padding-inline: 16px; opacity: 0; visibility: hidden; transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease), opacity .4s, visibility .4s, box-shadow .4s, background .3s; }
.product-card:hover .product-card__add, .product-card:focus-within .product-card__add { opacity: 1; visibility: visible; transform: none; }
.product-card:hover .product-card__add:hover { transform: translateY(-3px); }
.product-card__body { padding: 18px 4px 0; display: grid; gap: 7px; }
.product-card__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.product-card__title { font-size: 24px; line-height: 1.1; }
.product-card__title a:hover { color: var(--gold-deep); }
.product-card__notes { font-size: 13px; color: var(--muted); font-style: italic; }
.product-card .price__now { font-size: 24px; }
.is-list .product-card { flex-direction: row; gap: 24px; align-items: center; }
.is-list .product-card__media { width: 220px; flex-shrink: 0; }

/* ---- Tabs / chips ---------------------------------------------------------- */
.tabs__list { display: flex; gap: 10px; flex-wrap: wrap; }
.tab, .chip { padding: 11px 24px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); transition: all .35s var(--ease); }
.tab:hover, .chip:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.tab.is-active, .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold-3); box-shadow: var(--shadow-sm); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } }

/* ---- Accordion ------------------------------------------------------------- */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; text-align: left; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.accordion__btn .icon { transition: transform .4s var(--ease); }
.accordion__item.is-open .accordion__btn .icon { transform: rotate(45deg); color: var(--gold); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; color: var(--ink-2); }
.accordion__panel p { padding-bottom: 22px; max-width: 70ch; }

/* ---- Forms ----------------------------------------------------------------- */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 18px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none;
  transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 14px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); transform-origin: left; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 144, 63, .14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.field--toggle button { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; transition: all .3s; background: var(--white); }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--gold-3); border-bottom: 2px solid var(--gold-3); transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--gold-3); transform: none; }
.radio-card input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--white); cursor: pointer; transition: all .3s; }
.radio-card input:checked { background: var(--ink); border-color: var(--ink); }
.radio-card input:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-3); }
.radio-card .icon { color: var(--gold-deep); }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; transition: all .3s; }
.radio-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 144, 63, .15); }
.radio-card strong { font-weight: 400; display: block; }
.radio-card small { color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; padding: 6px; background: var(--white); border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 0 20px; }

/* ---- Modal (quick view / success) ----------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: all .4s var(--ease); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 6, .55); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; width: min(940px, 100%); max-height: 92vh; overflow-y: auto; background: var(--ivory); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.96); transition: transform .5s var(--ease); }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.quickview { display: grid; grid-template-columns: 1fr 1fr; }
.quickview__media { aspect-ratio: 4/5; background: var(--cream); }
.quickview__media img { width: 100%; height: 100%; object-fit: cover; }
.quickview__info { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.quickview__info h3 { font-size: clamp(30px, 3.4vw, 44px); }
.modal__dialog--sm { width: min(520px, 100%); padding: 48px 36px; text-align: center; }
.success-mark { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; background: var(--gold-grad); display: grid; place-items: center; color: #2b1f08; font-size: 38px; animation: pop .7s var(--ease-spring); }
@keyframes pop { from { transform: scale(0); } }

/* ---- Toast ----------------------------------------------------------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2500; display: grid; gap: 10px; justify-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: var(--radius-pill); background: var(--ink); color: var(--cream); font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease-spring); }
.toast .icon { color: var(--gold-2); }
.toast.is-out { opacity: 0; transform: translateY(14px); transition: all .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.9); } }

/* ---- Breadcrumb / page hero / pagination ---------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-hero { position: relative; padding-block: clamp(48px, 7vw, 96px); text-align: center; background: radial-gradient(ellipse 70% 120% at 50% 0%, var(--gold-3) 0%, transparent 70%), var(--cream); overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6vw, 78px); margin: 18px 0 14px; }
.page-hero h1 em { color: var(--gold-deep); }
.page-hero .breadcrumb { justify-content: center; }
.page-hero .lead { margin-inline: auto; }
.page-hero::before, .page-hero::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(184, 144, 63, .3); pointer-events: none; }
.page-hero::before { width: 420px; height: 420px; left: -120px; top: -160px; }
.page-hero::after { width: 300px; height: 300px; right: -60px; bottom: -140px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: all .3s; }
.pagination a:hover { border-color: var(--gold); }
.pagination a.is-active { background: var(--ink); color: var(--gold-3); border-color: var(--ink); }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(246, 240, 230, .7); padding-top: clamp(56px, 7vw, 96px); position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-grad); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); padding-bottom: 56px; }
.footer__brand .logo { color: var(--cream); font-size: 38px; }
.footer__brand p { margin: 18px 0 26px; max-width: 36ch; }
.footer__col h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-bottom: 22px; }
.footer__col li { margin-bottom: 11px; }
.footer__col a { transition: color .3s, padding .3s; }
.footer__col a:hover { color: var(--gold-3); padding-left: 6px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--gold-2); margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 240, 230, .2); color: var(--cream); transition: all .4s var(--ease-spring); }
.social a:hover { background: var(--gold-grad); color: #2b1f08; border-color: transparent; transform: translateY(-5px) rotate(8deg); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 26px; border-top: 1px solid rgba(246, 240, 230, .1); font-size: 12px; letter-spacing: .12em; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { padding: 6px 12px; border: 1px solid rgba(246, 240, 230, .2); border-radius: 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

/* ---- Floating widgets ------------------------------------------------------ */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; display: grid; place-items: center; font-size: 28px; animation: pulse-ring 2.4s infinite; transition: transform .4s var(--ease-spring); }
.float-wa:hover { transform: scale(1.1) rotate(-8deg); }
.to-top { position: fixed; right: 28px; bottom: 96px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold-3); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { transform: rotate(-90deg); }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header__burger { display: inline-grid; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__inner { gap: 8px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 28px; }
  .header__inner { position: relative; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card__title { font-size: 20px; }
  .product-card__actions { opacity: 1; transform: none; }
  .product-card__add { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; max-width: none; margin-top: 10px; }
  .product-card:hover .product-card__add:hover { transform: none; }
  .product-card__notes { display: none; }
  .quickview { grid-template-columns: 1fr; }
  .quickview__media { aspect-ratio: 16/12; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo { font-size: 24px; }
  .btn { padding: 15px 26px; }
  .to-top { right: 22px; bottom: 90px; }
  .is-list .product-card { flex-direction: column; align-items: stretch; }
  .is-list .product-card__media { width: 100%; }
}
@media (max-width: 420px) {
  .header__actions .icon-btn--wishlist { display: none; }
  .price__now, .product-card .price__now { font-size: 21px; }
}
