/* VAUX — pages.css | Cart, Checkout, Confirm */

/* ── SHARED NAV TWEAKS ── */
.back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover {
  color: var(--ink);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.step {
  color: var(--muted);
}
.step.active {
  color: var(--accent);
  font-weight: 600;
}
.step.done {
  color: var(--ink);
}
.step-sep {
  color: var(--border);
}
.navbar {
  position: relative;
}

/* ── PAGE SHELL ── */
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 60px;
  min-height: calc(100vh - 120px);
}
.page-wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.page-wrap.narrow {
  max-width: 600px;
}

.page-head {
  margin-bottom: 32px;
}
.page-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.page-sub {
  font-size: 13px;
  color: var(--muted);
}

.page-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 12px;
  padding: 18px;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 14px;
}
.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty-state h2 {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.15s;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  border: none;
  text-align: center;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-primary.full {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ── CART PAGE ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-row {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--sh);
}
.cr-img {
  width: 80px;
  height: 96px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg2, #e8e5df);
}
.cr-info {
  min-width: 0;
}
.cr-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cr-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.cr-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.cr-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
  font-weight: 500;
}
.qty-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.qty-num {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.remove-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.remove-btn:hover {
  color: var(--accent);
}

/* Summary panel */
.cart-summary {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--sh);
  position: sticky;
  top: 80px;
}
.summary-title {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink2, #555);
}
.sum-row.discount {
  color: #2e7d32;
  font-weight: 500;
}
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.summary-total span {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.summary-total strong {
  font-size: 22px;
  font-weight: 800;
  font-family: "Syne", sans-serif;
}

.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.promo-row input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 9px 12px;
  font-size: 12px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.promo-row input:focus {
  border-color: var(--accent);
}
.promo-row input::placeholder {
  color: var(--muted);
}
.promo-row button {
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
  flex-shrink: 0;
}
.promo-row button:hover {
  background: var(--accent);
}
.promo-msg {
  font-size: 11px;
  min-height: 16px;
  margin-bottom: 12px;
}
.promo-msg.ok {
  color: #2e7d32;
}
.promo-msg.er {
  color: var(--accent);
}
.shipping-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  justify-content: center;
  text-align: center;
}

/* ── CHECKOUT PAGE ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.form-section {
  margin-bottom: 28px;
}
.form-section-title {
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fg.full-col {
  grid-column: span 2;
}
.fg label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2, #555);
}
.fg input,
.fg select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 11px 13px;
  font-size: 13px;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: "Inter", sans-serif;
}
.fg input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.08);
}
.fg input::placeholder {
  color: var(--muted);
}
.fg select {
  appearance: none;
  cursor: pointer;
}

/* Payment options */
.pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.pay-option input[type="radio"] {
  display: none;
}
.pay-option.selected {
  border-color: var(--accent);
  background: #fef0eb;
}
.pay-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2, #555);
  flex-shrink: 0;
  box-shadow: var(--sh);
}
.pay-option strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.pay-option span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.card-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  margin-top: 4px;
}
.card-fields.hidden {
  display: none;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  justify-content: center;
  margin-top: 10px;
}

/* Checkout summary */
.checkout-summary {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--sh);
  position: sticky;
  top: 80px;
}
.co-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.co-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.co-item-img {
  width: 46px;
  height: 54px;
  border-radius: 6px;
  flex-shrink: 0;
}
.co-item-info {
  flex: 1;
  min-width: 0;
}
.co-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-item-qty {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.co-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.co-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── ORDER CONFIRM ── */
.confirm-card {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 36px;
  box-shadow: var(--sh2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  animation: pop-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.confirm-title {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}
.confirm-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}

.confirm-ref {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.confirm-ref span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.confirm-ref strong {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.confirm-details {
  width: 100%;
  background: var(--bg);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.cd-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.cd-row span {
  color: var(--muted);
}
.cd-row strong {
  font-weight: 600;
  color: var(--ink);
}

.confirm-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.tl-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s;
}
.tl-step.done .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.tl-text {
  padding: 10px 0;
}
.tl-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tl-text span {
  font-size: 11px;
  color: var(--muted);
}
.tl-line {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 6px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary,
  .checkout-summary {
    position: static;
  }
}
@media (max-width: 600px) {
  .page-main {
    padding: 24px 16px 40px;
  }
  .cart-row {
    grid-template-columns: 70px 1fr;
  }
  .cr-actions {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .fg.full-col {
    grid-column: span 1;
  }
  .checkout-steps {
    display: none;
  }
  .confirm-card {
    padding: 28px 20px;
  }
  .confirm-actions {
    flex-direction: column;
    width: 100%;
  }
  .confirm-actions a,
  .confirm-actions button {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   SEARCH DROPDOWN
   ═══════════════════════════════════════════════ */
.search-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2, 10px);
  box-shadow: var(--sh2);
  z-index: 600;
  overflow: hidden;
}
.search-drop.open {
  display: block;
}
.sdrop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background 0.15s;
  color: var(--ink);
}
.sdrop-item:hover {
  background: var(--bg);
}
.sdrop-img {
  width: 40px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
}
.sdrop-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.sdrop-cat {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.sdrop-all {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  text-align: center;
  transition: background 0.15s;
}
.sdrop-all:hover {
  background: #fef0eb;
}
.sdrop-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   CARD EXTRAS (ratings, name link)
   ═══════════════════════════════════════════════ */
.card-rating {
  font-size: 11px;
  color: #f0a500;
  margin-bottom: 6px;
}
.card-rating span {
  color: var(--muted);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-name-link {
  color: inherit;
}
.card-name-link:hover .card-name {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════
   PRODUCTS LISTING PAGE  (products.html)
   ═══════════════════════════════════════════════ */
.plp-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* Sidebar */
.filter-sidebar {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--sh);
  position: sticky;
  top: 80px;
}
.fs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.fs-head h3 {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.clear-btn {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.clear-btn:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}
.filter-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fcheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2, #555);
  cursor: pointer;
}
.fcheck input {
  accent-color: var(--accent);
  cursor: pointer;
}
.fcheck:hover {
  color: var(--ink);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-in-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 7px 10px;
  flex: 1;
}
.price-in-wrap span {
  font-size: 12px;
  color: var(--muted);
}
.price-in-wrap input {
  background: transparent;
  font-size: 12px;
  color: var(--ink);
  width: 100%;
  border: none;
}
.price-in-wrap input::-webkit-inner-spin-button {
  display: none;
}
.price-sep {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Top bar */
.plp-content {
}
.plp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.plp-count {
  font-size: 13px;
  color: var(--muted);
}
.plp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plp-controls select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink2, #555);
  cursor: pointer;
  appearance: none;
}
.view-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.view-btn:hover,
.view-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter-toggle-btn {
  display: none; /* shown on mobile */
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2, #555);
  transition: all 0.15s;
}
.filter-toggle-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Active filter tags */
.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  min-height: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef0eb;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.tag button {
  font-size: 13px;
  color: var(--accent);
  line-height: 1;
}
.tag button:hover {
  color: var(--accent-dark);
}

/* Grid */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* List view */
.plp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-card {
  background: var(--white);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 14px;
  box-shadow: var(--sh);
  align-items: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.list-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.list-img {
  width: 120px;
  height: 140px;
  border-radius: 8px;
}
.list-info {
  min-width: 0;
}
.list-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}
.list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* No results */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
  color: var(--muted);
}
.no-results h3 {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  color: var(--ink);
}
.no-results p {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════
   SINGLE PRODUCT PAGE  (product.html)
   ═══════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span:last-child {
  color: var(--ink);
  font-weight: 500;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Gallery */
.pdp-gallery {
}
.pdp-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: background 0.3s;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
}
.thumb {
  width: 70px;
  height: 84px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.thumb:hover {
  transform: scale(1.04);
}
.thumb.active {
  border-color: var(--accent);
}

/* Info */
.pdp-info {
  padding-top: 4px;
}
.pdp-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pdp-name {
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars {
  font-size: 14px;
  color: #f0a500;
}
.review-count {
  font-size: 12px;
  color: var(--muted);
}
.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pdp-price {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}
.pdp-old {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}
.pdp-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
}
.pdp-badge.sale {
  background: #f0a500;
  color: var(--ink);
}
.pdp-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink2, #555);
  margin-bottom: 24px;
}

/* Options */
.pdp-option-group {
  margin-bottom: 20px;
}
.pdp-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pdp-option-head span:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.selected-val {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.pdp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sz-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2, #555);
  transition: all 0.15s;
  cursor: pointer;
}
.sz-btn:hover,
.sz-btn.on {
  border-color: var(--accent);
  color: var(--accent);
  background: #fef0eb;
}

.pdp-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.col-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2, #555);
  transition: all 0.15s;
  cursor: pointer;
}
.col-btn:hover,
.col-btn.on {
  border-color: var(--accent);
  color: var(--accent);
  background: #fef0eb;
}

/* Buy row */
.pdp-buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.pdp-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 8px 14px;
}
.pdp-atc {
  flex: 1;
}

/* Meta */
.pdp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pdp-meta-row svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Related */
.related-section {
  max-width: 1280px;
  margin: 52px auto 0;
  padding: 0 28px;
}
.related-title {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .plp-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
  }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 700;
    width: 280px;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .filter-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .filter-toggle-btn {
    display: flex;
  }
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .breadcrumb {
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .list-card {
    grid-template-columns: 90px 1fr;
  }
  .list-right {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .pdp-buy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pdp-atc {
    width: 100%;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
