/* ==========================================================================
   PATOTSALERA — overlays, commerce UI & shop page
   ========================================================================== */

/* ---------- Scrim ---------- */

.page-scrim {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(14, 13, 10, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s, visibility 0.32s;
}
.page-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}
.filter-scrim {
  position: fixed;
  inset: 0;
  z-index: 315;
  background: rgba(14, 13, 10, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.filter-scrim.is-visible { opacity: 1; visibility: visible; }

/* ---------- Drawers ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(450px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -24px 0 60px rgba(21, 20, 15, 0.15);
  transform: translateX(103%);
  transition: transform 0.42s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.drawer-head h2 span { color: var(--ink-muted); font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.drawer-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.drawer-close:hover { color: var(--white); background: var(--ink); }
.drawer-close .icon { width: 15px; height: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.drawer-body::-webkit-scrollbar { width: 5px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.drawer-foot { padding: 18px 24px 23px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.drawer-empty {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.drawer-empty-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.drawer-empty-icon .icon { width: 26px; height: 26px; }
.drawer-empty h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.drawer-empty p { max-width: 260px; margin: 7px auto 0; color: var(--ink-muted); font-size: 11px; line-height: 1.7; }
.drawer-empty .btn { margin-top: 21px; }

/* Cart */

.shipping-progress { margin-bottom: 19px; padding: 14px 15px; background: var(--paper); border-radius: 12px; }
.shipping-progress p { color: var(--ink-soft); font-size: 9px; line-height: 1.55; }
.shipping-progress p strong { color: var(--ink); font-weight: 800; }
.shipping-track { height: 4px; margin-top: 9px; overflow: hidden; background: var(--paper-deep); border-radius: 99px; }
.shipping-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.5s var(--ease); }
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:first-child { padding-top: 2px; }
.cart-thumb { width: 74px; height: 86px; overflow: hidden; border-radius: 11px; background: var(--paper-deep); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item-title { font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.cart-item-title:hover { color: var(--accent); }
.cart-remove { width: 23px; height: 23px; display: grid; place-items: center; flex: none; color: var(--ink-muted); border-radius: 50%; transition: color 0.2s, background 0.2s; }
.cart-remove:hover { color: var(--accent); background: var(--accent-soft); }
.cart-remove .icon { width: 13px; height: 13px; }
.cart-variant { margin-top: 2px; color: var(--ink-muted); font-size: 8.5px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty-stepper button { width: 27px; height: 27px; display: grid; place-items: center; color: var(--ink-soft); transition: color 0.2s, background 0.2s; }
.qty-stepper button:hover { color: var(--ink); background: var(--paper); }
.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-stepper .icon { width: 11px; height: 11px; }
.qty-stepper span { min-width: 23px; text-align: center; font-size: 10px; font-weight: 800; }
.cart-price { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.cart-price del { display: block; color: var(--ink-muted); font-family: var(--font-body); font-size: 8px; font-weight: 400; text-align: right; }
.drawer-summary { margin-bottom: 14px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; }
.summary-row + .summary-row { margin-top: 7px; }
.summary-row span { color: var(--ink-muted); }
.summary-row strong { font-weight: 700; }
.summary-row.total { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.summary-row.total span { color: var(--ink); font-size: 11px; font-weight: 800; }
.summary-row.total strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.drawer-note { margin-top: 11px; color: var(--ink-muted); font-size: 8.5px; line-height: 1.6; text-align: center; }
.drawer-foot .btn { min-height: 46px; }
.drawer-continue { display: block; margin-top: 11px; color: var(--ink-muted); font-size: 9px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.drawer-continue:hover { color: var(--ink); }

/* Wishlist */

.wishlist-item { display: grid; grid-template-columns: 77px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.wishlist-thumb { width: 77px; height: 89px; overflow: hidden; border-radius: 11px; background: var(--paper-deep); }
.wishlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-info { min-width: 0; }
.wishlist-info h3 { font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.wishlist-info p { margin-top: 2px; color: var(--ink-muted); font-size: 8.5px; }
.wishlist-info strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 11px; font-weight: 600; }
.wishlist-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.wishlist-remove { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink-muted); border-radius: 50%; }
.wishlist-remove:hover { color: var(--accent); background: var(--accent-soft); }
.wishlist-remove .icon { width: 13px; height: 13px; }
.wishlist-add { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; color: var(--white); background: var(--ink); border-radius: 99px; font-size: 7.5px; font-weight: 800; white-space: nowrap; transition: background 0.2s; }
.wishlist-add:hover { background: var(--accent); }
.wishlist-add .icon { width: 10px; height: 10px; }

/* ---------- Modal base ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 12, 9, 0.6); backdrop-filter: blur(5px); }
.modal-dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.4s var(--ease);
}
.modal.is-open .modal-dialog { transform: translateY(0) scale(1); }
.modal-dialog::-webkit-scrollbar { width: 6px; }
.modal-dialog::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 8;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--white); background: var(--ink); }
.modal-close .icon { width: 15px; height: 15px; }

/* ---------- Quick view ---------- */

.quickview-dialog { width: min(100%, 1000px); }
.quickview-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 575px; }
.quickview-media {
  position: relative;
  overflow: hidden;
  border-radius: 27px 0 0 27px;
  background: var(--paper-deep);
}
.quickview-media img { width: 100%; height: 100%; object-fit: cover; }
.quickview-media .product-badge { top: 17px; left: 17px; font-size: 8px; padding: 6px 9px; }
.quickview-media-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.9);
  border-radius: 99px;
  backdrop-filter: blur(7px);
  font-size: 8px;
  font-weight: 700;
}
.quickview-media-caption .icon { width: 11px; height: 11px; color: var(--accent); }
.quickview-info { padding: 44px 43px 35px; display: flex; flex-direction: column; }
.quickview-category { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.quickview-category::before { content: ""; width: 15px; height: 1px; background: var(--accent); }
.quickview-info h2 { margin-top: 11px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 37px); font-weight: 600; line-height: 1.1; letter-spacing: -0.055em; }
.quickview-rating { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--ink-muted); font-size: 9px; }
.quickview-rating .stars { color: var(--accent); font-size: 11px; }
.quickview-rating strong { color: var(--ink); }
.quickview-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.quickview-price strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.045em; }
.quickview-price del { color: var(--ink-muted); font-size: 12px; }
.quickview-price .save-pill { padding: 3px 7px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 4px; font-size: 8px; font-weight: 800; }
.quickview-desc { margin-top: 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.quickview-divider { height: 1px; margin: 23px 0; background: var(--line-soft); }
.option-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 9px; font-weight: 800; letter-spacing: 0.03em; }
.option-label span { color: var(--ink-muted); font-weight: 500; }
.size-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.size-picker button {
  min-width: 37px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.size-picker button:hover { border-color: var(--ink); }
.size-picker button.is-selected { color: var(--white); background: var(--ink); border-color: var(--ink); }
.quickview-buy-row { display: flex; gap: 8px; margin-top: 21px; }
.quickview-buy-row .qty-stepper { height: 46px; border-radius: 99px; padding-inline: 2px; flex: none; }
.quickview-buy-row .qty-stepper button { width: 30px; height: 40px; }
.quickview-buy-row .qty-stepper span { min-width: 20px; font-size: 11px; }
.quickview-buy-row .btn { flex: 1; min-height: 46px; font-size: 10.5px; }
.quickview-wish {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.quickview-wish:hover { border-color: var(--accent); color: var(--accent); }
.quickview-wish.is-active { color: var(--white); background: var(--accent); border-color: var(--accent); }
.quickview-wish .icon { width: 16px; height: 16px; }
.quickview-perks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.quickview-perks span { display: flex; align-items: center; gap: 5px; color: var(--ink-muted); font-size: 8px; }
.quickview-perks .icon { width: 13px; height: 13px; color: var(--accent); }
.stock-note { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: #557743; font-size: 8px; font-weight: 700; }
.stock-note .dot { width: 5px; height: 5px; border-radius: 50%; background: #68a04c; }
.stock-note.low { color: #b06c1e; }
.stock-note.low .dot { background: #e29a3b; }
.stock-note.out { color: var(--accent-deep); }
.stock-note.out .dot { background: var(--accent); }

/* ---------- Checkout ---------- */

.checkout-dialog { width: min(100%, 1040px); }
.checkout-grid { display: grid; grid-template-columns: 1.17fr 0.83fr; min-height: 610px; }
.checkout-main { padding: 34px 36px 38px; }
.checkout-topline { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.checkout-topline::before { content: ""; width: 16px; height: 1px; background: var(--accent); }
.checkout-main h2 { margin-top: 9px; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.055em; line-height: 1.1; }
.checkout-main > p { margin-top: 7px; color: var(--ink-muted); font-size: 9.5px; }
.checkout-section { margin-top: 25px; }
.checkout-section h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: -0.02em; }
.checkout-section h3 span { width: 17px; height: 17px; display: inline-grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-family: var(--font-body); font-size: 7px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: var(--ink-soft); font-size: 8px; font-weight: 800; letter-spacing: 0.02em; }
.field label em { color: var(--accent); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 20, 15, 0.05); }
.field input::placeholder,
.field textarea::placeholder { color: #b1aca1; }
.field textarea { min-height: 67px; resize: vertical; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.payment-option label:hover { border-color: var(--ink-muted); }
.payment-option input:checked + label { border-color: var(--accent); background: #fff6f1; box-shadow: inset 0 0 0 1px var(--accent); }
.payment-option .icon { color: var(--accent); width: 15px; height: 15px; }
.payment-option strong { font-size: 9px; font-weight: 800; }
.payment-option span { color: var(--ink-muted); font-size: 7.5px; line-height: 1.4; }

.transfer-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.transfer-card-head { display: flex; align-items: center; gap: 9px; }
.transfer-card-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.transfer-card-icon .icon { width: 16px; height: 16px; }
.transfer-card-head strong { display: block; font-size: 9.5px; font-weight: 800; }
.transfer-card-head span { display: block; margin-top: 1px; color: var(--ink-muted); font-size: 7.5px; }
.transfer-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: var(--white); }
.transfer-account strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.transfer-account button { flex: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: var(--surface); font-size: 7.5px; font-weight: 800; cursor: pointer; }
.transfer-account button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.transfer-holder { margin-top: 8px; color: var(--ink-muted); font-size: 8.5px; }
.transfer-holder b { color: var(--ink-soft); }
.transfer-instructions { margin-top: 7px; color: var(--ink-muted); font-size: 7.5px; line-height: 1.6; }
.proof-field { margin-top: 14px; }
.proof-upload { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px dashed var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.proof-upload:hover { border-color: var(--accent); background: #fff8f4; }
.proof-upload .icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
.proof-upload strong { display: block; font-size: 9px; font-weight: 800; }
.proof-upload small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 7.5px; }
.proof-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.proof-preview { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.proof-preview img { width: 54px; height: 54px; flex: none; border-radius: 6px; object-fit: cover; background: var(--surface); }
.proof-preview-name { color: var(--ink-muted); font-size: 8px; line-height: 1.5; word-break: break-all; }
.checkout-wa { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 13px; border: 1px solid #cfe8d2; border-radius: 9px; color: #2f6b3a; background: #f2fbf3; text-decoration: none; }
.checkout-wa-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--white); background: #25d366; }
.checkout-wa-icon .icon { width: 15px; height: 15px; }
.checkout-wa > span:nth-child(2) { flex: 1; min-width: 0; }
.checkout-wa strong { display: block; font-size: 9px; font-weight: 800; }
.checkout-wa small { display: block; margin-top: 1px; color: var(--ink-muted); font-size: 7.5px; }
.checkout-wa > .icon { color: #5f8c4d; }
.checkout-wa:hover { border-color: #25d366; background: #eaf8ec; }
.checkout-submit { width: 100%; margin-top: 20px; min-height: 47px; font-size: 10.5px; }
.checkout-safe { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 10px; color: var(--ink-muted); font-size: 7.5px; }
.checkout-safe .icon { width: 11px; height: 11px; color: #5f8c4d; }

.checkout-side {
  display: flex;
  flex-direction: column;
  padding: 34px 27px 30px;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  border-radius: 0 27px 27px 0;
}
.checkout-side h3 { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
.checkout-side h3 span { color: var(--ink-muted); font-family: var(--font-body); font-size: 9px; font-weight: 500; }
.checkout-items { max-height: 278px; margin-top: 17px; overflow-y: auto; padding-right: 3px; }
.checkout-items::-webkit-scrollbar { width: 4px; }
.checkout-items::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.checkout-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.checkout-line-img { position: relative; width: 48px; height: 57px; overflow: visible; }
.checkout-line-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; background: var(--paper-deep); }
.checkout-line-qty { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 7px; font-weight: 800; }
.checkout-line-info strong { display: block; font-size: 9.5px; font-weight: 700; line-height: 1.35; }
.checkout-line-info span { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 7.5px; }
.checkout-line-price { font-family: var(--font-display); font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.promo-form { display: flex; gap: 5px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.promo-form input { min-width: 0; flex: 1; padding: 9px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: 9px; outline: none; text-transform: uppercase; }
.promo-form button { padding: 0 12px; color: var(--white); background: var(--ink); border-radius: 7px; font-size: 8px; font-weight: 800; }
.promo-form button:hover { background: var(--accent); }
.promo-message { display: none; margin-top: 6px; font-size: 7.5px; line-height: 1.5; }
.promo-message.is-visible { display: block; }
.promo-message.success { color: #547c41; }
.promo-message.error { color: var(--accent-deep); }
.checkout-totals { margin-top: auto; padding-top: 19px; }
.free-ship-label { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; color: #547c41; font-size: 7.5px; font-weight: 700; }
.free-ship-label .icon { width: 11px; height: 11px; }
.checkout-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 11px; padding-top: 13px; border-top: 1px solid var(--line); }
.checkout-total-row span { font-size: 10px; font-weight: 800; }
.checkout-total-row strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.04em; }
.checkout-note { margin-top: 13px; color: var(--ink-muted); font-size: 7.5px; line-height: 1.65; }

.checkout-success { padding: 60px 34px 54px; text-align: center; }
.success-badge { width: 67px; height: 67px; display: grid; place-items: center; margin: 0 auto 19px; color: var(--white); background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 11px var(--accent-soft); }
.success-badge .icon { width: 29px; height: 29px; stroke-width: 2; }
.checkout-success h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.055em; }
.checkout-success > p { max-width: 440px; margin: 9px auto 0; color: var(--ink-muted); font-size: 10.5px; line-height: 1.7; }
.success-order { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 23px; padding: 12px 25px; background: var(--paper); border-radius: 10px; }
.success-order small { color: var(--ink-muted); font-size: 7px; font-weight: 800; letter-spacing: 0.15em; }
.success-order strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.success-payment { max-width: 390px; margin: 21px auto 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); font-size: 9px; line-height: 1.7; text-align: left; }
.success-payment strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 9.5px; }
.success-proof { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #547c41; font-size: 8px; font-weight: 700; }
.success-proof .icon { width: 12px; height: 12px; }
.success-payment .btn-wa { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; margin-top: 11px; padding: 0 14px; border-radius: 99px; color: var(--white); background: #25d366; font-size: 8.5px; font-weight: 800; text-decoration: none; }
.success-payment .btn-wa:hover { background: #1fb855; }
.success-payment .btn-wa .icon { width: 13px; height: 13px; }
.success-actions { display: flex; justify-content: center; gap: 8px; margin-top: 25px; }
.success-actions .btn { min-height: 42px; padding-inline: 17px; font-size: 9px; }

/* ---------- Search ---------- */

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 360;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.search-layer.is-open { opacity: 1; visibility: visible; }
.search-backdrop { position: absolute; inset: 0; background: rgba(13, 12, 9, 0.52); backdrop-filter: blur(4px); }
.search-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(680px, 92dvh);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.4s var(--ease);
}
.search-layer.is-open .search-panel { transform: translateY(0); }
.search-panel-inner { width: min(920px, calc(100% - 48px)); margin-inline: auto; padding: 31px 0 36px; }
.search-head { display: flex; align-items: center; gap: 15px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.search-form { flex: 1; display: flex; align-items: center; gap: 12px; }
.search-form > .icon { width: 22px; height: 22px; color: var(--ink-muted); }
.search-form input { min-width: 0; flex: 1; padding: 3px 0; background: transparent; border: 0; outline: none; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -0.045em; }
.search-form input::placeholder { color: #c0b9ad; }
.search-close { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 50%; }
.search-close:hover { color: var(--white); background: var(--ink); }
.search-close .icon { width: 15px; height: 15px; }
.search-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 17px; }
.search-popular > span { color: var(--ink-muted); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.search-tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 8.5px; transition: border-color 0.2s, color 0.2s; }
.search-tag:hover { border-color: var(--ink); color: var(--accent); }
.search-content { margin-top: 28px; }
.search-content-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.search-content-head h3 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
.search-content-head span { color: var(--ink-muted); font-size: 8.5px; }
.search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.search-result:hover { border-color: var(--ink); transform: translateY(-2px); }
.search-result-img { width: 48px; height: 52px; flex: none; overflow: hidden; border-radius: 7px; background: var(--paper-deep); }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { min-width: 0; }
.search-result-info small { display: block; color: var(--ink-muted); font-size: 7px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.search-result-info strong { display: block; overflow: hidden; margin-top: 2px; font-family: var(--font-display); font-size: 10px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.search-result-info span { display: block; margin-top: 2px; color: var(--accent); font-size: 8.5px; font-weight: 800; }
.search-empty { padding: 20px 0 5px; color: var(--ink-muted); font-size: 10px; text-align: center; }
.search-category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.search-cat-link { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 9px; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.search-cat-link:hover { background: var(--paper); border-color: var(--line); }
.search-cat-link img { width: 31px; height: 31px; border-radius: 6px; object-fit: cover; }
.search-cat-link .icon { margin-left: auto; width: 12px; height: 12px; color: var(--ink-muted); }

/* ---------- Toast ---------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  max-width: min(370px, calc(100vw - 40px));
  padding: 11px 15px 11px 11px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 10px;
  line-height: 1.45;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  animation: toastIn 0.35s var(--ease) forwards;
}
.toast.is-out { animation: toastOut 0.3s ease forwards; }
.toast-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: none; color: var(--white); background: var(--accent); border-radius: 50%; }
.toast-icon .icon { width: 13px; height: 13px; }
.toast-message { flex: 1; }
.toast.error .toast-icon { background: #b73922; }
.toast.wish .toast-icon { background: #bb3b55; }
@keyframes toastIn { to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Shop page ---------- */

.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 55px 0 51px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.8), transparent 35%),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.shop-hero-word {
  position: absolute;
  right: -2%;
  bottom: -20px;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(21, 20, 15, 0.075);
  pointer-events: none;
  white-space: nowrap;
}
.shop-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 28px; color: var(--ink-muted); font-size: 8.5px; font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--ink); }
.shop-hero-copy h1 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(44px, 6vw, 73px); font-weight: 600; line-height: 0.98; letter-spacing: -0.075em; }
.shop-hero-copy p { max-width: 400px; margin-top: 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.shop-hero-aside {
  flex: none;
  width: 178px;
  padding: 17px;
  border-left: 1px solid var(--line);
}
.shop-hero-aside-label { color: var(--ink-muted); font-size: 7px; font-weight: 800; letter-spacing: 0.16em; }
.shop-hero-aside > strong { display: block; margin-top: 7px; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.06em; }
.shop-hero-aside > p { margin-top: 5px; color: var(--ink-soft); font-size: 8.5px; line-height: 1.5; }
.shop-hero-stars { display: flex; flex-direction: column; gap: 2px; margin-top: 15px; }
.shop-hero-stars .stars { color: var(--accent); font-size: 9px; }
.shop-hero-stars span:last-child { color: var(--ink-muted); font-size: 7px; }

.shop-body { padding: 46px 0 95px; }
.shop-layout { display: grid; grid-template-columns: 236px 1fr; gap: 38px; align-items: start; }
.shop-filters { position: sticky; top: 123px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.filters-close { display: none; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.filters-close .icon { width: 14px; height: 14px; }
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.filter-search .icon { width: 14px; height: 14px; color: var(--ink-muted); }
.filter-search input { width: 100%; padding: 10px 0; background: transparent; border: 0; outline: none; font-size: 9px; }
.filter-search input::placeholder { color: #b0a99d; }
.filter-group { padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.filter-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.filter-title-row h3 { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.filter-clear-link { color: var(--ink-muted); font-size: 7.5px; text-decoration: underline; text-underline-offset: 2px; }
.filter-clear-link:hover { color: var(--accent); }
.filter-value { color: var(--accent); font-size: 8px; font-weight: 800; }
.filter-list { display: flex; flex-direction: column; gap: 9px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 9px;
  transition: color 0.2s;
}
.filter-check:hover { color: var(--ink); }
.filter-check input { position: absolute; opacity: 0; pointer-events: none; }
.filter-check .check-box { position: relative; width: 15px; height: 15px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: var(--white); transition: background 0.2s, border-color 0.2s; }
.filter-check input:checked + .check-box { border-color: var(--ink); background: var(--ink); }
.filter-check input:checked + .check-box::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid var(--white); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.filter-check input:checked ~ span:last-child { color: var(--ink); font-weight: 700; }
.check-count { margin-left: auto; color: var(--ink-muted); font-size: 7.5px; }
.price-range { width: 100%; height: 3px; margin: 9px 0 5px; appearance: none; background: var(--paper-deep); border-radius: 99px; outline: none; accent-color: var(--accent); }
.price-range::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15); cursor: pointer; }
.price-range::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); cursor: pointer; }
.price-range-labels { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 7px; }
.filters-note { display: flex; gap: 8px; margin-top: 17px; padding: 12px; color: var(--ink-soft); background: var(--accent-soft); border-radius: 9px; }
.filters-note .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--accent); }
.filters-note p { font-size: 8px; line-height: 1.55; }
.filters-apply { display: none; width: 100%; margin-top: 18px; }
.filters-reset { display: block; width: 100%; margin-top: 12px; color: var(--ink-muted); font-size: 8px; text-decoration: underline; text-underline-offset: 3px; }
.filters-reset:hover { color: var(--accent); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 39px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.shop-toolbar-left { display: flex; align-items: center; gap: 17px; }
.filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}
.filter-toggle .icon { width: 13px; height: 13px; }
.filter-active-badge { min-width: 15px; height: 15px; display: inline-grid; place-items: center; color: var(--white); background: var(--accent); border-radius: 50%; font-size: 7px; }
.results-count { color: var(--ink-muted); font-size: 9px; }
.results-count span { color: var(--ink); font-weight: 800; }
.sort-control { position: relative; display: flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 8px; }
.sort-control select { appearance: none; padding: 3px 23px 3px 0; background: transparent; border: 0; outline: none; font-size: 9px; font-weight: 800; color: var(--ink); cursor: pointer; }
.sort-control .icon { position: absolute; right: 0; width: 12px; height: 12px; pointer-events: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px 5px 9px; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); border-radius: 99px; font-size: 7.5px; }
.filter-chip button { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-muted); }
.filter-chip button:hover { color: var(--white); background: var(--accent); }
.filter-chip .icon { width: 9px; height: 9px; }
.filter-chip-reset { padding: 5px 4px; color: var(--accent); font-size: 7.5px; text-decoration: underline; text-underline-offset: 2px; }

.shop-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; margin-top: 25px; }
.shop-product-grid .product-media { aspect-ratio: 1 / 1.13; border-radius: 16px; }
.shop-product-grid .product-info { padding: 14px 2px 0; }
.shop-product-grid .product-category { font-size: 8px; }
.shop-product-grid .product-name { font-size: 14px; }
.shop-product-grid .product-rating { font-size: 8.5px; }
.shop-product-grid .product-price strong { font-size: 12.5px; }
.shop-product-grid .product-price del { font-size: 9px; }
.shop-product-grid .product-add { width: 34px; height: 34px; }
.empty-state { padding: 80px 25px; text-align: center; }
.empty-icon { width: 61px; height: 61px; display: grid; place-items: center; margin: 0 auto 17px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.04em; }
.empty-state p { max-width: 310px; margin: 7px auto 20px; color: var(--ink-muted); font-size: 10px; line-height: 1.7; }
.empty-state .btn { min-height: 40px; font-size: 9px; }
.shop-bottom-note { display: flex; align-items: center; gap: 9px; margin-top: 49px; padding: 17px 0 0; border-top: 1px solid var(--line-soft); color: var(--ink-muted); }
.shop-bottom-note .icon { width: 16px; height: 16px; color: var(--accent); }
.shop-bottom-note p { font-size: 8.5px; }
.shop-bottom-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.shop-bottom-note a:hover { color: var(--accent); }

/* misc */
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
