/* ==========================================================================
   COMPONENTS — reusable UI blocks shared by every page
   Buttons · Badges · Cards · Forms · Ratings · Drawers · Modal · Toast
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--grad-rose);
  --btn-color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 2rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--sh-glow);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  position: relative;
  overflow: hidden;
}

/* Sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left var(--t-slow);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-md); color: var(--white); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(-1px); }

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--deep-rose);
  border: 1.5px solid var(--deep-rose);
  box-shadow: none;
}
.btn--outline:hover { background: var(--deep-rose); color: var(--white); }

.btn--ghost {
  --btn-bg: var(--white);
  --btn-color: var(--deep-rose);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover { background: var(--blush-50); color: var(--deep-rose); }

.btn--dark {
  --btn-bg: var(--ink);
  box-shadow: 0 10px 24px rgba(62, 58, 58, 0.25);
}

.btn--sm { padding: 0.6rem 1.3rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 2.6rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn svg { width: 16px; height: 16px; }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--deep-rose);
}
.link-arrow svg { width: 15px; transition: transform var(--t-base); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   2. Badges & pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--blush);
  color: var(--deep-rose);
}
.badge--sale { background: var(--deep-rose); color: var(--white); }
.badge--new { background: var(--ink); color: var(--white); }
.badge--soldout { background: var(--ink-muted); color: var(--white); }
.badge--stock { background: rgba(63, 143, 107, 0.12); color: var(--success); }

/* --------------------------------------------------------------------------
   3. Icon buttons (header actions, wishlist, quick view)
   -------------------------------------------------------------------------- */
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover {
  background: var(--blush-50);
  color: var(--deep-rose);
  transform: translateY(-2px);
}
.icon-btn svg { width: 21px; height: 21px; }

.icon-btn__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--deep-rose);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.icon-btn__count.is-bump { animation: bump 0.45s var(--ease-out); }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   4. Product card
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }

.product-card__media {
  position: relative;
  aspect-ratio: 7 / 9;
  overflow: hidden;
  background: var(--blush-50);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t-base);
}
/* Second image cross-fades in on hover */
.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card__img--hover { opacity: 1; }
.product-card:hover .product-card__img { transform: scale(1.06); }

.product-card__flags {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 2;
}

/* Floating wishlist button */
.product-card__wish {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  color: var(--deep-rose);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
}
.product-card:hover .product-card__wish,
.product-card__wish.is-active { opacity: 1; transform: none; }
.product-card__wish:hover { background: var(--white); }
.product-card__wish svg { width: 18px; height: 18px; }
.product-card__wish.is-active svg { fill: var(--deep-rose); }

/* Slide-up action bar */
.product-card__actions {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--t-base), opacity var(--t-base);
  z-index: 2;
}
.product-card:hover .product-card__actions { transform: none; opacity: 1; }

.product-card__action {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  color: var(--deep-rose);
  transition: background var(--t-fast), color var(--t-fast);
}
.product-card__action--primary { background: var(--deep-rose); color: var(--white); border-color: var(--deep-rose); }
.product-card__action:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.product-card__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}
.product-card__cat {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--ink);
  line-height: var(--lh-snug);
}
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--deep-rose); }

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
}
.price { font-size: var(--fs-md); font-weight: 600; color: var(--deep-rose); }
.price--old { font-size: var(--fs-sm); color: var(--ink-muted); text-decoration: line-through; font-weight: 400; }
.price--off { font-size: var(--fs-xs); font-weight: 600; color: var(--success); }

/* --------------------------------------------------------------------------
   5. Star rating
   -------------------------------------------------------------------------- */
.rating { display: inline-flex; align-items: center; gap: 3px; }
.rating svg { width: 14px; height: 14px; fill: var(--star); }
.rating svg.is-empty { fill: var(--line-strong); }
.rating__count { margin-left: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.field__label .req { color: var(--deep-rose); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-muted); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(231, 140, 168, 0.16);
}
.textarea { resize: vertical; min-height: 130px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c65a7c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--danger);
  min-height: 1em;
}
.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid { border-color: var(--danger); }

/* Checkbox & radio */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.check input {
  appearance: none;
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked {
  background: var(--deep-rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--deep-rose);
}
.check input[type="radio"]:checked { background-image: none; box-shadow: inset 0 0 0 4px var(--white); }

/* Inline newsletter / coupon field */
.inline-form {
  display: flex;
  gap: var(--sp-2);
  background: var(--white);
  padding: 6px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.inline-form .input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: var(--sp-4);
}
.inline-form .input:focus { box-shadow: none; }

/* --------------------------------------------------------------------------
   7. Quantity stepper
   -------------------------------------------------------------------------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--white);
}
.qty__btn {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--deep-rose);
  font-size: var(--fs-lg);
  transition: background var(--t-fast);
}
.qty__btn:hover { background: var(--blush-50); }
.qty__input {
  width: 46px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --------------------------------------------------------------------------
   8. Swatches (size & colour)
   -------------------------------------------------------------------------- */
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.swatch-size {
  min-width: 52px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t-fast);
}
.swatch-size:hover { border-color: var(--rose); }
.swatch-size.is-active { background: var(--deep-rose); border-color: var(--deep-rose); color: var(--white); }
.swatch-size[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(to top left, transparent 47%, var(--line-strong) 48%, var(--line-strong) 52%, transparent 53%);
}

.swatch-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.swatch-color:hover { transform: scale(1.1); }
.swatch-color.is-active { box-shadow: 0 0 0 2px var(--deep-rose); }

/* --------------------------------------------------------------------------
   9. Drawer (cart / mobile nav / filters)
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 58, 58, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: var(--z-drawer);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--white);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform var(--t-base);
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--deep-rose);
}
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer__foot { padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--blush-50); }

.drawer__close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--t-fast), transform var(--t-fast);
}
.drawer__close:hover { background: var(--blush-50); transform: rotate(90deg); }

/* Compact line item used in the cart drawer */
.mini-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.mini-item__img {
  width: 78px;
  aspect-ratio: 7/9;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--blush-50);
}
.mini-item__name { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.mini-item__meta { font-size: var(--fs-xs); color: var(--ink-muted); }
.mini-item__price { font-size: var(--fs-sm); font-weight: 600; color: var(--deep-rose); }
.mini-item__remove {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-decoration: underline;
  align-self: flex-end;
}
.mini-item__remove:hover { color: var(--danger); }

/* Empty state shared by cart / wishlist / filtered grids */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.empty-state svg { width: 62px; height: 62px; margin: 0 auto var(--sp-4); color: var(--rose); }
.empty-state h4 { font-size: var(--fs-xl); color: var(--deep-rose); margin-bottom: var(--sp-2); }
.empty-state p { font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

/* --------------------------------------------------------------------------
   10. Modal (quick view / search)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(62, 58, 58, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: var(--z-modal);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translateY(24px) scale(0.98);
  transition: transform var(--t-base);
  position: relative;
}
.modal.is-open .modal__box { transform: none; }

.modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  transition: transform var(--t-fast), color var(--t-fast);
}
.modal__close:hover { transform: rotate(90deg); color: var(--deep-rose); }

/* Quick-view body: image beside a condensed product summary */
.qv { display: grid; grid-template-columns: 1fr 1.1fr; }
.qv__media { background: var(--blush-50); }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
@media (max-width: 768px) {
  .qv { grid-template-columns: 1fr; }
  .qv__media { max-height: 260px; }
  .qv__info { padding: var(--sp-5); }
}

/* Inline +/- used inside the cart drawer line items */
.qty-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blush-50);
  color: var(--deep-rose);
  font-size: 13px;
  line-height: 1;
  transition: background var(--t-fast);
}
.qty-mini:hover { background: var(--blush); }

/* Search overlay variant */
.modal--search { align-items: flex-start; padding-top: 14vh; }
.modal--search .modal__box { width: min(680px, 100%); padding: var(--sp-6); }

.search-suggestions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.search-suggestions button {
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  background: var(--blush-50);
  color: var(--deep-rose);
  font-size: var(--fs-xs);
  transition: background var(--t-fast);
}
.search-suggestions button:hover { background: var(--blush); }

.search-results { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); max-height: 46vh; overflow-y: auto; }
.search-result {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.search-result:hover { background: var(--blush-50); }
.search-result img { width: 52px; aspect-ratio: 7/9; object-fit: cover; border-radius: var(--r-sm); }

/* --------------------------------------------------------------------------
   11. Toast notifications
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 250px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-md);
  border-left: 4px solid var(--deep-rose);
  font-size: var(--fs-sm);
  color: var(--ink);
  animation: fadeUp 0.35s var(--ease-out);
}
.toast--success { border-left-color: var(--success); }
.toast--info { border-left-color: var(--rose); }
.toast.is-leaving { opacity: 0; transform: translateY(10px); transition: all var(--t-base); }
.toast svg { width: 18px; height: 18px; color: var(--deep-rose); flex: none; }

/* --------------------------------------------------------------------------
   12. Breadcrumb & pagination
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--deep-rose); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--line-strong); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb [aria-current] { color: var(--deep-rose); }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}
.pagination button,
.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding-inline: 0.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: all var(--t-fast);
}
.pagination button:hover:not([disabled]),
.pagination a:hover { border-color: var(--rose); color: var(--deep-rose); }
.pagination button.is-active,
.pagination .is-active span { background: var(--deep-rose); border-color: var(--deep-rose); color: var(--white); }
.pagination button[disabled],
.pagination .disabled span { opacity: 0.4; cursor: not-allowed; border-color: var(--line); }

/* --------------------------------------------------------------------------
   13. Accordion (filters, FAQ, product info)
   -------------------------------------------------------------------------- */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
}
.accordion__trigger svg {
  width: 18px;
  flex: none;
  color: var(--deep-rose);
  transition: transform var(--t-base);
}
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
}
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { padding-bottom: var(--sp-4); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   14. Tabs
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--sp-6);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: var(--sp-3) 0;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--t-fast);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--deep-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.tab:hover { color: var(--deep-rose); }
.tab.is-active { color: var(--deep-rose); }
.tab.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; padding-top: var(--sp-5); }
.tab-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease-out); }

/* --------------------------------------------------------------------------
   15. Slider / carousel shell (best sellers, reviews, related)
   -------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: var(--sp-2) var(--sp-4);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  flex: 0 0 calc((100% - (var(--sp-5) * 3)) / 4);
  scroll-snap-align: start;
}
.slider__nav {
  position: absolute;
  top: 38%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--sh-md);
  color: var(--deep-rose);
  z-index: 3;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.slider__nav:hover { background: var(--deep-rose); color: var(--white); }
.slider__nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.slider__nav--prev { left: -18px; }
.slider__nav--next { right: -18px; }
.slider__nav svg { width: 20px; }

/* Dot pagination shared by hero + sliders */
.dots { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all var(--t-base);
}
.dots button.is-active { width: 28px; border-radius: var(--r-pill); background: var(--deep-rose); }

/* --------------------------------------------------------------------------
   16. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-pill);
  background: #25d366;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-base);
}
.whatsapp-fab:hover { transform: translateY(-3px); color: var(--white); }
.whatsapp-fab svg { width: 22px; height: 22px; fill: currentColor; }
.whatsapp-fab span { display: none; }

/* Back-to-top */
.to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: calc(var(--sp-5) + 62px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-rose);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--t-base);
  z-index: var(--z-header);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--deep-rose); color: var(--white); }
.to-top svg { width: 18px; }
