/* ==========================================================================
   TIRAZ — Components : buttons, cards, badges, forms, drawer, modal, slider
   ========================================================================== */

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding-inline: 26px; border-radius: var(--r-full);
  font-size: var(--fs-base); font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brass); box-shadow: 0 8px 20px var(--brass-glow); }

.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: var(--ink); box-shadow: var(--sh-3); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--brass); color: var(--brass); }

.btn--onDark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(8px); }
.btn--onDark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { height: 38px; padding-inline: 18px; font-size: var(--fs-sm); }
.btn--lg { height: 54px; padding-inline: 34px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* Shine sweep on primary CTAs */
.btn--shine::before {
  content: ''; position: absolute; top: 0; inset-inline-start: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transition: inset-inline-start .7s var(--e-out);
}
.btn--shine:hover::before { inset-inline-start: 130%; }

/* Link-arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--fs-base);
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: var(--t-fast);
}
.link-arrow:hover { color: var(--brass); border-color: var(--brass); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ============ Badges ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding-inline: 9px;
  border-radius: var(--r-xs); font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  font-family: var(--f-latin); text-transform: uppercase; line-height: 1;
}
[dir="rtl"] .badge.ar { font-family: var(--f-body); letter-spacing: 0; font-size: var(--fs-xs); }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--olive); color: #fff; }
.badge--soon { background: var(--brass); color: #fff; }
.badge--out { background: #E8E3DA; color: var(--graphite); }
.badge--ghost { background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line); }
.badge svg { width: 11px; height: 11px; }

/* ============ Product card ============ */
.pcard {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.pcard:hover { border-color: var(--line); box-shadow: var(--sh-4); transform: translateY(-5px); }

.pcard__media {
  position: relative; aspect-ratio: 3 / 4; background: var(--bone);
  overflow: hidden; display: block;
}
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--t-slow), transform var(--t-slow); }
.pcard__img--back { opacity: 0; transform: scale(1.06); }
.pcard:hover .pcard__img--front { opacity: 0; transform: scale(1.04); }
.pcard:hover .pcard__img--back { opacity: 1; transform: scale(1); }

.pcard__flags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }

.pcard__tools {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
}
.ptool {
  width: 36px; height: 36px; border-radius: var(--r-full); background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink-3);
  box-shadow: var(--sh-2); transition: var(--t-fast);
  opacity: 0; transform: translateX(var(--tx, 10px));
}
[dir="ltr"] .ptool { --tx: -10px; }
.pcard:hover .ptool { opacity: 1; transform: none; }
.pcard:hover .ptool:nth-child(2) { transition-delay: .05s; }
.pcard:hover .ptool:nth-child(3) { transition-delay: .1s; }
.ptool:hover { background: var(--ink); color: #fff; }
.ptool.on { background: var(--sale); color: #fff; opacity: 1; transform: none; }
.ptool svg { width: 16px; height: 16px; stroke-width: 1.7; }
@media (hover: none) { .ptool { opacity: 1; transform: none; } }

/* Quick add bar slides up on hover */
.pcard__quick {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 3;
  transform: translateY(calc(100% + 14px)); opacity: 0;
  transition: transform var(--t-med), opacity var(--t-med);
}
.pcard:hover .pcard__quick { transform: none; opacity: 1; }
@media (hover: none) { .pcard__quick { position: static; transform: none; opacity: 1; margin: 0 12px 12px; } }

.pcard__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard__brand { font-family: var(--f-latin); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard__name {
  font-family: var(--f-body); font-size: var(--fs-base); font-weight: 500; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-fast); min-height: 2.9em;
}
.pcard:hover .pcard__name { color: var(--brass); }

.pcard__rate { display: flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1.5px; }
.stars svg { width: 13px; height: 13px; color: #DFD7C8; }
.stars svg.on { color: #E0A93B; }
.pcard__rate span { font-size: var(--fs-xs); color: var(--muted); font-family: var(--f-latin); }

.pcard__price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.price { font-family: var(--f-latin); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.price .cur { font-size: .68em; font-weight: 500; color: var(--muted); margin-inline-start: 3px; }
.price--old { font-size: var(--fs-sm); color: var(--muted); text-decoration: line-through; font-weight: 400; }
.price--off { font-size: var(--fs-xs); color: var(--sale); font-weight: 600; font-family: var(--f-latin); }

/* colour swatches on card */
.pcard__swatches { display: flex; gap: 5px; align-items: center; }
.swatch {
  width: 16px; height: 16px; border-radius: 99px; border: 1px solid rgba(0,0,0,.14);
  cursor: pointer; transition: var(--t-fast); position: relative;
}
.swatch:hover, .swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.pcard__swatches .more { font-size: 10px; color: var(--muted); font-family: var(--f-latin); }

/* out of stock */
.pcard.is-out .pcard__media { filter: grayscale(.75) opacity(.72); }
.pcard.is-out .pcard__quick { display: none; }

/* stock meter */
.stockbar { height: 4px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.stockbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sale), #C4636B); border-radius: 99px; }
.stocktxt { font-size: 10.5px; color: var(--muted); }
.stocktxt b { color: var(--sale); font-family: var(--f-latin); }

/* List view variant (shop page) */
.pcard--list { flex-direction: row; }
.pcard--list .pcard__media { width: 230px; flex: none; aspect-ratio: 3/4; }
.pcard--list .pcard__body { padding: var(--sp-6); gap: 10px; }
.pcard--list .pcard__desc { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard--list .pcard__quick { position: static; transform: none; opacity: 1; margin-top: 8px; }
.pcard--list .pcard__actions { display: flex; gap: 10px; }
@media (max-width: 640px) { .pcard--list { flex-direction: column; } .pcard--list .pcard__media { width: 100%; } }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.pgrid--5 { grid-template-columns: repeat(5, 1fr); }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .pgrid--5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .pgrid, .pgrid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .pgrid, .pgrid--5, .pgrid--3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (max-width: 400px)  { .pgrid, .pgrid--5 { grid-template-columns: 1fr; } }

/* ============ Horizontal rail (carousel) ============ */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 1fr);
  gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 38%; width: 42px; height: 42px; border-radius: var(--r-full);
  background: #fff; box-shadow: var(--sh-3); display: grid; place-items: center;
  color: var(--ink); z-index: 5; transition: var(--t-fast); border: 1px solid var(--line-2);
}
.rail-btn:hover { background: var(--ink); color: #fff; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn--prev { inset-inline-start: -18px; }
.rail-btn--next { inset-inline-end: -18px; }
.rail-btn svg { width: 18px; height: 18px; }
@media (max-width: 1380px) { .rail-btn--prev { inset-inline-start: 4px; } .rail-btn--next { inset-inline-end: 4px; } }

/* ============ Forms ============ */
.field { display: grid; gap: 7px; }
.label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); }
.label .req { color: var(--sale); }
.input, .select, .textarea {
  height: 48px; padding-inline: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; width: 100%;
  font-size: var(--fs-base); transition: var(--t-fast);
}
.textarea { height: auto; padding: 13px 16px; resize: vertical; min-height: 120px; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-glow);
}
.input::placeholder, .textarea::placeholder { color: #A69C8D; }
.select {
  appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E766A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px; background-position: left 15px center;
}
[dir="ltr"] .select { background-position: right 15px center; }
.hint { font-size: var(--fs-xs); color: var(--muted); }

/* Checkbox / radio */
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 19px; height: 19px; border-radius: var(--r-xs); border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center; flex: none; transition: var(--t-fast);
}
.check__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.4); transition: var(--t-fast); }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px var(--brass-glow); border-color: var(--brass); }
.check:hover .check__box { border-color: var(--brass); }
.check__count { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--muted); font-family: var(--f-latin); }

/* Qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-full); height: 46px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-3); transition: var(--t-fast); }
.qty button:hover { background: var(--bone); color: var(--brass); }
.qty button svg { width: 15px; height: 15px; }
.qty input {
  width: 46px; height: 100%; border: 0; text-align: center; background: transparent;
  font-family: var(--f-latin); font-weight: 600; font-size: var(--fs-md);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 36px; font-size: var(--fs-sm); }

/* Size / option pills */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 48px; height: 42px; padding-inline: 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--t-fast);
  font-family: var(--f-latin);
}
.opt:hover { border-color: var(--brass); color: var(--brass); }
.opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt.off { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.opt.off:hover { border-color: var(--line); color: inherit; }

.opt-color {
  width: 40px; height: 40px; border-radius: var(--r-full); border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: var(--t-fast);
}
.opt-color:hover { transform: scale(1.08); }
.opt-color.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(0,0,0,.1); }

/* ============ Drawer (cart / filters) ============ */
.scrim {
  position: fixed; inset: 0; background: rgba(20,18,16,.45); backdrop-filter: blur(3px);
  z-index: calc(var(--z-drawer) - 1); opacity: 0; visibility: hidden; transition: var(--t-med);
}
.scrim.on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(92vw, 430px);
  background: #fff; z-index: var(--z-drawer); box-shadow: var(--sh-5);
  display: flex; flex-direction: column; transform: translateX(var(--tx-out, 100%));
  transition: transform .38s var(--e-out);
}
[dir="rtl"] .drawer { --tx-out: -100%; }
.drawer.open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5); border-bottom: 1px solid var(--line-2); flex: none;
}
.drawer__head h3 { font-size: var(--fs-lg); display: flex; align-items: center; gap: 10px; }
.drawer__head .cnt {
  font-family: var(--f-latin); font-size: var(--fs-xs); background: var(--bone); color: var(--text-soft);
  padding: 3px 9px; border-radius: var(--r-full);
}
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.drawer__foot { flex: none; padding: var(--sp-5); border-top: 1px solid var(--line-2); background: var(--bone-2); }

.iconclose {
  width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center;
  color: var(--text-soft); transition: var(--t-fast); flex: none;
}
.iconclose:hover { background: var(--bone); color: var(--ink); transform: rotate(90deg); }
.iconclose svg { width: 18px; height: 18px; }

/* Cart line item */
.citem { display: flex; gap: 14px; padding-block: var(--sp-4); border-bottom: 1px solid var(--line-2); }
.citem:last-child { border-bottom: 0; }
.citem__img { width: 78px; height: 96px; border-radius: var(--r-md); background: var(--bone); overflow: hidden; flex: none; }
.citem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.citem__name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.5; }
.citem__name:hover { color: var(--brass); }
.citem__meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.citem__meta i { width: 11px; height: 11px; border-radius: 99px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); vertical-align: -1px; margin-inline-end: 4px; }
.citem__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.citem__rm { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: var(--t-fast); }
.citem__rm:hover { color: var(--sale); }
.citem__rm svg { width: 13px; height: 13px; }

.empty-state { text-align: center; padding: var(--sp-9) var(--sp-4); }
.empty-state svg { width: 74px; height: 74px; color: var(--line); margin-inline: auto; margin-bottom: var(--sp-4); }
.empty-state h4 { font-size: var(--fs-lg); margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

/* Totals */
.totals { display: grid; gap: 11px; margin-bottom: var(--sp-4); }
.totals__row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--text-soft); }
.totals__row b { font-family: var(--f-latin); font-weight: 600; color: var(--ink); }
.totals__row--big { font-size: var(--fs-md); font-weight: 600; color: var(--ink); padding-top: 11px; border-top: 1px dashed var(--line); }
.totals__row--big b { font-size: var(--fs-xl); color: var(--brass); }
.totals__row--save b { color: var(--success); }

/* free-shipping progress */
.shipbar { background: var(--bone); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: var(--sp-4); }
.shipbar__txt { font-size: var(--fs-xs); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.shipbar__txt svg { width: 15px; height: 15px; color: var(--brass); flex: none; }
.shipbar__txt b { color: var(--brass); font-family: var(--f-latin); }
.shipbar__track { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.shipbar__fill { height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-2)); border-radius: 99px; transition: width .5s var(--e-out); }

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center;
  padding: var(--sp-5); opacity: 0; visibility: hidden; transition: var(--t-med);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-5);
  width: 100%; max-height: 90vh; overflow: auto; transform: scale(.94) translateY(14px);
  transition: transform .38s var(--e-out);
}
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; background: rgba(255,255,255,.9); }

/* Newsletter popup (estore.iq has one) */
.pop-news .modal__box { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.pop-news__art { background: var(--ink); position: relative; min-height: 400px; }
.pop-news__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pop-news__body { padding: var(--sp-8) var(--sp-7); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); }
.pop-news__body h3 { font-size: var(--fs-2xl); line-height: 1.3; }
.pop-news__body p { color: var(--text-dim); font-size: var(--fs-sm); }
.pop-news__off { font-family: var(--f-latin); font-size: var(--fs-5xl); font-weight: 600; color: var(--brass); line-height: 1; letter-spacing: -.03em; }
.pop-news__skip { font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .pop-news .modal__box { grid-template-columns: 1fr; } .pop-news__art { min-height: 170px; } }

/* Quick view */
.pop-qv .modal__box { max-width: 940px; }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__media { background: var(--bone); position: relative; aspect-ratio: 1; }
.qv__body { padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
@media (max-width: 780px) { .qv { grid-template-columns: 1fr; } .qv__media { aspect-ratio: 4/3; } }

/* Size guide table */
.sizetable { font-size: var(--fs-sm); }
.sizetable th, .sizetable td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line-2); }
.sizetable thead th { background: var(--bone); font-weight: 600; color: var(--ink); font-size: var(--fs-xs); letter-spacing: .04em; }
.sizetable tbody tr:hover { background: var(--bone-2); }
.sizetable td:first-child { font-weight: 600; font-family: var(--f-latin); }

/* ============ Toast ============ */
.toasts {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: var(--z-toast);
  display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  padding: 13px 18px; border-radius: var(--r-md); box-shadow: var(--sh-4);
  font-size: var(--fs-sm); min-width: 280px; max-width: 380px; pointer-events: auto;
  animation: toastIn .4s var(--e-out);
}
.toast.out { animation: toastOut .3s var(--e-in-out) forwards; }
.toast__ico { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: rgba(255,255,255,.1); }
.toast__ico svg { width: 16px; height: 16px; }
.toast--ok .toast__ico { background: var(--success); }
.toast--heart .toast__ico { background: var(--sale); }
.toast a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: auto; white-space: nowrap; font-size: var(--fs-xs); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (max-width: 560px) { .toasts { inset-inline: 14px; bottom: 14px; } .toast { min-width: 0; max-width: none; } }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 14px 20px; font-size: var(--fs-base); font-weight: 500; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: var(--t-fast);
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brass); border-bottom-color: var(--brass); }
.tab .n { font-family: var(--f-latin); font-size: var(--fs-xs); color: var(--muted); margin-inline-start: 4px; }
.tabpane { display: none; padding-top: var(--sp-6); }
.tabpane.on { display: block; animation: fadeUp .45s var(--e-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Pill tabs (home sections) */
.pilltabs { display: inline-flex; gap: 4px; background: var(--bone); padding: 4px; border-radius: var(--r-full); border: 1px solid var(--line-2); }
.pilltab { padding: 8px 18px; border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 500; color: var(--text-soft); transition: var(--t-fast); white-space: nowrap; }
.pilltab.on { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.pilltab:not(.on):hover { color: var(--brass); }

/* ============ Accordion ============ */
.acc { border-bottom: 1px solid var(--line-2); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; text-align: start; font-size: var(--fs-base); font-weight: 500; transition: var(--t-fast); }
.acc__head:hover { color: var(--brass); }
.acc__head svg { width: 17px; height: 17px; flex: none; color: var(--muted); transition: transform var(--t-med); }
.acc.open .acc__head svg { transform: rotate(45deg); color: var(--brass); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--e-out); }
.acc.open .acc__body { max-height: 620px; }
.acc__inner { padding-bottom: 19px; color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.85; }

/* ============ Breadcrumb ============ */
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); padding-block: var(--sp-5); }
.crumb a { transition: var(--t-fast); }
.crumb a:hover { color: var(--brass); }
.crumb svg { width: 13px; height: 13px; opacity: .5; }
.crumb .cur { color: var(--ink); font-weight: 500; }

/* ============ Pagination ============ */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding-inline: 8px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-latin); font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--text-soft); transition: var(--t-fast);
}
.pager a:hover { border-color: var(--brass); color: var(--brass); }
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: transparent; color: var(--muted); min-width: 24px; }
.pager svg { width: 15px; height: 15px; }

/* ============ Range slider (price filter) ============ */
.range { position: relative; height: 30px; margin-top: 8px; }
.range__track { position: absolute; inset-inline: 0; top: 13px; height: 4px; background: var(--line); border-radius: 99px; }
.range__fill { position: absolute; top: 13px; height: 4px; background: var(--brass); border-radius: 99px; }
.range input[type="range"] {
  position: absolute; inset-inline: 0; top: 0; width: 100%; height: 30px;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 99px;
  background: #fff; border: 2px solid var(--brass); box-shadow: var(--sh-2);
  cursor: grab; pointer-events: auto; margin-top: 0;
}
.range input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 99px; background: #fff;
  border: 2px solid var(--brass); box-shadow: var(--sh-2); cursor: grab; pointer-events: auto;
}
.range-vals { display: flex; justify-content: space-between; font-family: var(--f-latin); font-size: var(--fs-xs); color: var(--text-soft); margin-top: 6px; }

/* ============ Skeleton ============ */
.sk { background: linear-gradient(90deg, var(--line-2) 25%, #F5F1EA 50%, var(--line-2) 75%); background-size: 200% 100%; animation: skl 1.4s infinite; border-radius: var(--r-sm); }
@keyframes skl { to { background-position: -200% 0; } }

/* ============ Countdown ============ */
.cd { display: flex; gap: 8px; }
.cd__cell {
  min-width: 62px; padding: 9px 8px; border-radius: var(--r-md); text-align: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.cd__cell b { display: block; font-family: var(--f-latin); font-size: var(--fs-xl); font-weight: 600; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.cd__cell span { font-size: 10px; color: rgba(255,255,255,.65); letter-spacing: .04em; }
.cd--light .cd__cell { background: var(--bone); border-color: var(--line); }
.cd--light .cd__cell b { color: var(--ink); }
.cd--light .cd__cell span { color: var(--muted); }

/* ============ Rating bars (reviews) ============ */
.rbar { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.rbar__n { width: 34px; color: var(--text-soft); font-family: var(--f-latin); display: flex; align-items: center; gap: 3px; }
.rbar__n svg { width: 11px; height: 11px; color: #E0A93B; }
.rbar__track { flex: 1; height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.rbar__fill { height: 100%; background: #E0A93B; border-radius: 99px; }
.rbar__p { width: 34px; text-align: end; color: var(--muted); font-family: var(--f-latin); }

/* ============ Chips ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding-inline: 13px;
  border-radius: var(--r-full); background: var(--bone); border: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-soft); transition: var(--t-fast);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip button { display: grid; place-items: center; opacity: .5; }
.chip button:hover { opacity: 1; color: var(--sale); }
.chip svg { width: 12px; height: 12px; }
