/* ======================================================
   SHOP — Public Styles
   /assets/css/shop.css
====================================================== */

:root {
  --shop-surface: var(--surface-0, #0e0f11);
  --shop-surface-raised: rgba(24, 24, 24, 0.86);
  --shop-surface-soft: rgba(255, 255, 255, 0.035);
  --shop-border: rgba(176, 141, 87, 0.22);
  --shop-border-strong: rgba(176, 141, 87, 0.42);
  --shop-text: var(--text-1, #e8e6e1);
  --shop-muted: var(--text-2, #c1bbb1);
  --shop-dim: var(--text-3, #8d877e);
  --shop-accent: var(--bronze, #b08d57);
  --shop-accent-light: var(--bronze-light, #d3b277);
  --shop-radius: 8px;
  --shop-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* ── CATEGORIES HOMEPAGE MODE ─────────────────────────── */
.shop-cat-section {
  margin-top: 32px;
}
.shop-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text, #e5e7eb);
  border-radius: 16px;
  border: 1px solid var(--border, #1f2937);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  background: rgba(255,255,255,0.02);
}
.shop-cat-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}
.shop-cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.shop-cat-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.shop-cat-card:hover .shop-cat-card__img-wrap img {
  transform: scale(1.05);
}
.shop-cat-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #94a3b8);
}
.shop-cat-card__name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 12px 14px;
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 540px) {
  .shop-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── HERO ─────────────────────────────────────────────── */
.shop-hero {
  padding: 48px 0 32px;
  text-align: center;
}
.shop-hero__inner { max-width: 640px; margin: 0 auto; }
.shop-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}
.shop-hero .muted { margin-top: 8px; }

/* ── LAYOUT (sidebar + main) ──────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

/* ── MOBILE FILTER TOGGLE ─────────────────────────────── */
.shop-filter-toggle {
  display: none;
}
.shop-sidebar-backdrop {
  display: none;
}
.shop-sidebar__close {
  display: none;
}

@media (max-width: 860px) {
  .shop-layout {
    display: block;
  }
  .shop-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 400;
    background: var(--bg, #0b1220);
    border-right: 1px solid var(--border, #1f2937);
    padding: 20px 16px;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .shop-sidebar.is-open {
    transform: translateX(0);
  }
  .shop-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 399;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
  }
  .shop-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .shop-sidebar__close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
  }
}
.shop-categories ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-categories a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text, #e5e7eb);
  font-size: 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.shop-categories a:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c4b5fd;
}
.shop-categories a.is-active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c4b5fd;
  font-weight: 600;
}

/* Price filter form */
.shop-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-filter-form .field-row {
  display: flex;
  gap: 8px;
}
.shop-filter-form .field-row .field { flex: 1; min-width: 0; }
.shop-filter-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-filter-form .field span {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}
.shop-filter-form input[type="number"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(10, 12, 22, 0.9);
  color: var(--text, #e5e7eb);
  font-size: 14px;
}
.shop-filter-form input[type="number"]:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.8);
}

/* ── MAIN ─────────────────────────────────────────────── */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Subcategory pills row */
.shop-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Toolbar: count + sort */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shop-sort-form select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(10, 12, 22, 0.9);
  color: var(--text, #e5e7eb);
  font-size: 14px;
}
.shop-sort-form select:focus { outline: none; border-color: rgba(167, 139, 250, 0.8); }

/* ── PRODUCT GRID ─────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.shop-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

/* ── PRODUCT CARD ─────────────────────────────────────── */
.shop-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13, 21, 38, 0.95) 0%, rgba(88, 28, 135, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(168, 85, 247, 0.12);
}

.shop-product-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}
.shop-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.shop-product-card:hover .shop-product-card__img-wrap img {
  transform: scale(1.04);
}

.shop-product-card__no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.35), rgba(14, 165, 233, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-product-card__no-image::after {
  content: "□";
  font-size: 48px;
  opacity: 0.12;
}

.shop-product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.82);
  color: #fff;
  backdrop-filter: blur(4px);
}
.shop-product-card__badge--sale {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
}
.shop-product-card__badge--preorder {
  background: rgba(234, 179, 8, 0.85);
  color: #000;
}
.shop-product-card__badge--low-stock {
  background: rgba(234, 179, 8, 0.72);
  color: #000;
}
.shop-product-detail__stock.preorder {
  color: #eab308;
}
.shop-product-detail__stock.low-stock {
  color: #eab308;
}
.shop-brand-link {
  color: inherit;
}

.shop-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}
.shop-product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e5e7eb);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.shop-product-card__title:hover { color: #c4b5fd; }
.shop-product-card__preview {
  font-size: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.shop-product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.shop-product-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-product-card__price s { font-size: 12px; }
.shop-product-card__price strong { font-size: 15px; font-weight: 700; }

/* ── PRODUCT DETAIL PAGE ──────────────────────────────── */
.shop-product-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.shop-product-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .shop-product-detail__top { grid-template-columns: 1fr; gap: 24px; }
}

/* Gallery */
.shop-product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 861px) {
  .shop-product-detail__gallery { position: sticky; top: 80px; }
}
@media (max-width: 860px) {
  .shop-product-gallery__main { aspect-ratio: 4 / 3; max-height: 60vw; }
}
.shop-product-gallery__main {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.shop-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.shop-product-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.08;
}
.shop-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, 0.22);
  background: rgba(15, 23, 42, 0.8);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb:hover { border-color: rgba(168, 85, 247, 0.6); }
.shop-thumb.is-active { border-color: #a78bfa; }

/* Info column */
.shop-product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shop-product-detail__info h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}
.shop-product-detail__preview {
  font-size: 15px;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.6;
}
.shop-product-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.shop-product-detail__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-product-detail__old-price { font-size: 16px; }
.shop-product-detail__current-price {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shop-product-detail__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}
.shop-product-detail__stock.in-stock {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #6ee7b7;
}
.shop-product-detail__stock.in-stock::before {
  content: "●";
  font-size: 8px;
  color: #34d399;
}
.shop-product-detail__stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}
.shop-product-detail__stock.out-of-stock::before {
  content: "○";
  font-size: 8px;
}

/* Variants */
.shop-product-detail__variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-variant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-size: 14px;
}
.shop-variant:hover { border-color: rgba(168, 85, 247, 0.55); }
.shop-variant.is-active { border-color: rgba(168, 85, 247, 0.8); background: rgba(139, 92, 246, 0.15); }
.shop-variant input[type="radio"] { accent-color: #a78bfa; }

/* Add-to-cart form */
.shop-add-to-cart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-add-to-cart__qty {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-add-to-cart__qty label { font-size: 13px; color: rgba(148, 163, 184, 0.9); }
.shop-add-to-cart__qty input[type="number"] {
  width: 80px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(10, 12, 22, 0.9);
  color: var(--text, #e5e7eb);
  font-size: 15px;
  text-align: center;
}
.shop-add-to-cart__qty input:focus { outline: none; border-color: rgba(167, 139, 250, 0.8); }

/* Tags */
.shop-product-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Description / specs / files sections */
.shop-product-detail__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-product-section {
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 21, 38, 0.5);
}
.shop-product-section > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.shop-product-section > summary:hover { background: rgba(168, 85, 247, 0.07); }
.shop-product-section > summary::after {
  content: "▾";
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.shop-product-section[open] > summary::after { transform: rotate(180deg); }
.shop-product-section > summary::-webkit-details-marker { display: none; }
.shop-product-section__content { padding: 4px 18px 18px; }
.shop-product-section__content--html p  { margin: 0.5em 0; }
.shop-product-section__content--html h2 { font-size: 1.25em; margin: 0.8em 0 0.35em; }
.shop-product-section__content--html h3 { font-size: 1.1em;  margin: 0.7em 0 0.3em; }
.shop-product-section__content--html ul,
.shop-product-section__content--html ol { padding-left: 1.6em; margin: 0.5em 0; }
.shop-product-section__content--html li { margin: 0.2em 0; }
.shop-product-section__content--html a  { color: var(--accent, #22d3ee); }
.shop-product-section__content--html strong { font-weight: 700; }

/* Specs table */
.shop-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.shop-specs-table th,
.shop-specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: top;
}
.shop-specs-table th {
  color: rgba(148, 163, 184, 0.9);
  font-weight: 500;
  width: 40%;
}
.shop-specs-table tr:last-child th,
.shop-specs-table tr:last-child td { border-bottom: none; }

/* Files list */
.shop-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-files-list a { color: #22d3ee; font-size: 14px; }
.shop-files-list a:hover { text-decoration: underline; }

/* Related / recently viewed sections */
.shop-related,
.shop-recently-viewed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CART PAGE ────────────────────────────────────────── */
.shop-cart-hero {
  padding: 40px 0 28px;
  text-align: center;
}
.shop-cart-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}

.shop-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
  text-align: center;
}

.shop-cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .shop-cart-layout { grid-template-columns: 1fr; }
}

.shop-cart-items { display: flex; flex-direction: column; gap: 16px; }

.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.shop-cart-table th,
.shop-cart-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: middle;
}
.shop-cart-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148, 163, 184, 0.8);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}
.shop-cart-table tbody tr:last-child td { border-bottom: none; }
.shop-cart-table tbody tr:hover td { background: rgba(168, 85, 247, 0.04); }

.shop-cart-row__product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.shop-cart-row__product img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.shop-cart-row__product-info { display: flex; flex-direction: column; gap: 2px; }
.shop-cart-row__product a { font-weight: 600; color: var(--text, #e5e7eb); font-size: 14px; }
.shop-cart-row__product a:hover { color: #c4b5fd; }
.shop-cart-row__product small { font-size: 12px; }

.shop-cart-row__actions { display: flex; align-items: center; gap: 4px; }
.shop-cart-qty-form { display: flex; align-items: center; gap: 6px; }
.shop-cart-qty-input {
  width: 64px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(10, 12, 22, 0.9);
  color: var(--text, #e5e7eb);
  font-size: 14px;
  text-align: center;
}
.shop-cart-qty-input:focus { outline: none; border-color: rgba(167, 139, 250, 0.8); }

.shop-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Order summary sidebar */
.shop-cart-summary { position: sticky; top: 80px; }
.shop-cart-summary .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop-cart-summary h3 { margin: 0; font-size: 18px; font-weight: 700; }
.shop-cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.shop-cart-summary__row--total {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 16px;
}
.shop-cart-summary__row--total strong { font-size: 20px; }

/* ── QUICK ORDER MODAL ────────────────────────────────── */
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-modal[hidden] { display: none; }

.shop-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 20, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.shop-modal__box {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  background: linear-gradient(145deg, #0d1526 0%, rgba(88, 28, 135, 0.45) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(168, 85, 247, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shop-modal__box h3 { margin: 0; }
.shop-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text, #e5e7eb);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  line-height: 1;
}
.shop-modal__close:hover { background: rgba(168, 85, 247, 0.2); }
.shop-modal__success {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 14px;
}
.shop-modal__error {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  font-size: 14px;
}
.shop-modal__box .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-modal__box .field span { font-size: 14px; color: rgba(148, 163, 184, 0.9); }
.shop-modal__box input[type="text"],
.shop-modal__box input[type="tel"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(7, 10, 20, 0.9);
  color: var(--text, #e5e7eb);
  font-size: 14px;
}
.shop-modal__box input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.8);
}
.shop-modal__box .stack { display: flex; flex-direction: column; gap: 12px; }

/* ── PAGINATION ───────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.pagination .btn.is-active {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  color: #0b1220;
  border-color: transparent;
}

/* ── CART TOAST NOTIFICATION ─────────────────────────── */
.shop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: 320px;
}
.shop-toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.shop-toast--success {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #0b1220;
  backdrop-filter: blur(8px);
}
.shop-toast--error {
  background: rgba(239, 68, 68, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ── CHECKOUT ─────────────────────────────────────────── */
.shop-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .shop-checkout-layout { grid-template-columns: 1fr; }
}

.shop-checkout-form { max-width: 100%; }

/* Field styles within checkout */
.shop-checkout-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-checkout-form .field span {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
}
.shop-checkout-form input[type="text"],
.shop-checkout-form input[type="email"],
.shop-checkout-form input[type="tel"],
.shop-checkout-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(7, 10, 20, 0.85);
  color: var(--text, #e5e7eb);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.shop-checkout-form input:focus,
.shop-checkout-form textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.8);
}
.shop-checkout-form textarea { resize: vertical; }

.field-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.field-row .field { flex: 1; min-width: 140px; }

.field-error {
  font-size: 12px;
  color: #f87171;
  margin: 0;
}

/* Payment method radios */
.shop-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shop-payment-option:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.06);
}
.shop-payment-option input[type="radio"] { accent-color: #a78bfa; }

.shop-payment-instructions {
  margin: 0 0 4px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
}

/* Checkout order summary aside */
.shop-checkout-summary { position: sticky; top: 80px; }
.shop-checkout-summary .card {
  gap: 18px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(176, 141, 87, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(176, 141, 87, 0.12), rgba(255, 255, 255, 0.022) 34%, rgba(0, 0, 0, 0.08)),
    rgba(17, 17, 17, 0.9);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}
.shop-checkout-summary h3 {
  margin: 0 0 4px;
  color: var(--shop-text, #f3f4f6);
  font-size: 18px;
  font-weight: 760;
}

.shop-checkout-items {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.shop-checkout-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 84px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(176, 141, 87, 0.12);
  background: transparent;
}
.shop-checkout-item:first-child {
  padding-top: 2px;
}
.shop-checkout-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.shop-checkout-item__media {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.shop-checkout-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-checkout-item__media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(176, 141, 87, 0.12), rgba(255, 255, 255, 0.025));
}
.shop-checkout-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding-right: 0;
}
.shop-checkout-item__name {
  color: var(--shop-text, #f3f4f6);
  font-size: 13.5px;
  font-weight: 680;
  line-height: 1.36;
}
.shop-checkout-item__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.shop-checkout-item__options {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.shop-checkout-item__variant {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(176, 141, 87, 0.22);
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.09);
  color: var(--shop-accent-light, #d9b47c);
  font-size: 10px;
  font-weight: 760;
}
.shop-checkout-item__qty {
  color: var(--shop-dim, #7f8794);
  font-size: 11px;
  font-weight: 720;
}
.shop-checkout-item__total {
  color: var(--shop-accent-light, #d9b47c);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shop-divider {
  border: none;
  border-top: 1px solid rgba(176, 141, 87, 0.14);
  margin: 4px -26px 8px;
}

/* ── THANK YOU PAGE ───────────────────────────────────── */
.shop-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 20px 64px;
  text-align: center;
}
.shop-thankyou__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 2px solid rgba(52, 211, 153, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #6ee7b7;
  line-height: 1;
}
.shop-thankyou h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); font-weight: 800; }

.shop-thankyou__card {
  width: 100%;
  max-width: 680px;
  text-align: left;
}

.shop-thankyou__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.shop-thankyou__meta > div { display: flex; flex-direction: column; gap: 4px; }
.shop-thankyou__meta .eyebrow { margin: 0; font-size: 11px; }
.shop-thankyou__meta strong { font-size: 15px; }

.shop-thankyou__items {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.shop-thankyou__items th,
.shop-thankyou__items td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}
.shop-thankyou__items thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 600;
}
.shop-thankyou__items td small { display: block; }
.shop-thankyou__items tbody tr:last-child td { border-bottom: none; }

.shop-thankyou__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.shop-thankyou__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── CARD ACTIONS (cart + wishlist + compare) ─────────── */
.shop-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.shop-action-form { display: contents; }

.shop-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.shop-action-btn:hover {
  border-color: rgba(168, 85, 247, 0.55);
  color: var(--text, #e5e7eb);
  background: rgba(168, 85, 247, 0.1);
}
.shop-action-btn.is-active {
  border-color: rgba(236, 72, 153, 0.6);
  color: #f472b6;
  background: rgba(236, 72, 153, 0.12);
}
.shop-action-btn.is-active:hover {
  background: rgba(236, 72, 153, 0.2);
}

/* Cart variant — primary purple tint */
.shop-action-btn--cart {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.18);
  color: #c4b5fd;
}
.shop-action-btn--cart:hover {
  border-color: rgba(168, 85, 247, 0.9);
  background: rgba(168, 85, 247, 0.32);
  color: #fff;
}

/* Labeled variant (used on product detail page) */
.shop-action-btn--labeled {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  height: 38px;
  border-radius: 10px;
}

/* Compare active (blue tint instead of pink) */
.shop-action-btn.js-compare-toggle.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
}
.shop-action-btn.js-compare-toggle.is-active:hover {
  background: rgba(34, 211, 238, 0.18);
}

/* Secondary actions row on product detail */
.shop-product-detail__secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── WISHLIST PAGE ─────────────────────────────────────── */
.shop-wishlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

/* ── COMPARE PAGE ─────────────────────────────────────── */
.shop-compare-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.shop-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.shop-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
.shop-compare-table th,
.shop-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  text-align: left;
}
.shop-compare-table tr:last-child th,
.shop-compare-table tr:last-child td { border-bottom: none; }
.shop-compare-table tbody tr:hover th,
.shop-compare-table tbody tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

.shop-compare-table__label-col {
  width: 180px;
  min-width: 140px;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 500;
  background: rgba(15, 23, 42, 0.4);
}
.shop-compare-table__product-col {
  min-width: 200px;
  text-align: center;
}
.shop-compare-table thead td {
  background: rgba(88, 28, 135, 0.1);
  text-align: center;
}
.shop-compare-table thead img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: block;
  margin: 0 auto 10px;
}
.shop-compare-table__product-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #e5e7eb);
  margin-bottom: 10px;
  line-height: 1.4;
}
.shop-compare-table__product-title:hover { color: #c4b5fd; }

.shop-compare-table__old-price {
  display: block;
  font-size: 12px;
}
.shop-compare-table__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.shop-compare-table__stock.in-stock {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.shop-compare-table__stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .shop-product-detail__top { gap: 24px; }
  .shop-cart-table thead { display: none; }
  .shop-cart-table td {
    display: block;
    padding: 6px 0;
    border-bottom: none;
  }
  .shop-cart-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .shop-cart-layout { gap: 20px; }
  .shop-cart-summary { position: static; }
}

/* ── FLOATING FAB GROUP ───────────────────────────────── */
.shop-fab-group {
  position: fixed;
  bottom: 53px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 900;
}

.shop-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent, #22d3ee);
  color: #0b1220;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.shop-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(34, 211, 238, 0.5);
}
.shop-fab--wishlist {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent, #22d3ee);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.shop-fab--wishlist:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.shop-fab--compare {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent, #22d3ee);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.shop-fab--compare:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.shop-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}

/* ── DRAWER OVERLAY ───────────────────────────────────── */
.shop-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.shop-drawer-overlay:not([aria-hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* ── DRAWER PANEL ─────────────────────────────────────── */
.shop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--bg, #0d1423);
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.shop-drawer.is-open {
  transform: translateX(0);
}

.shop-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.shop-drawer__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.shop-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.shop-drawer__close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text, #e5e7eb);
}

.shop-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-drawer__empty {
  margin: 0;
  padding: 32px 0;
  text-align: center;
}
.shop-drawer__empty + .btn {
  align-self: center;
}

/* ── MINI-CART ITEMS ──────────────────────────────────── */
.shop-minicart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-minicart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
}

.shop-minicart-item__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: rgba(255,255,255,0.04);
}
.shop-minicart-item__img--empty {
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.shop-minicart-item__body {
  min-width: 0;
}
.shop-minicart-item__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e5e7eb);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.shop-minicart-item__title:hover { color: var(--accent, #22d3ee); }
.shop-minicart-item__meta {
  margin: 3px 0 0;
  font-size: 12px;
}

.shop-minicart-item__remove-form { margin: 0; }
.shop-minicart-item__remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.shop-minicart-item__remove-btn:hover {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}

/* ── DRAWER FOOTER ────────────────────────────────────── */
.shop-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.shop-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.shop-drawer__subtotal strong {
  font-size: 16px;
  color: var(--accent, #22d3ee);
}

/* Prevent body scroll when drawer is open */
body.shop-drawer-open { overflow: hidden; }

/* ── ATTRIBUTE FILTER GROUPS (sidebar) ──────────────── */
.shop-filter-group {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.shop-filter-group[open] { padding-bottom: 12px; }

.shop-filter-group__title {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
  padding: 4px 0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.shop-filter-group__title::-webkit-details-marker { display: none; }
.shop-filter-group__title::after {
  content: '›';
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details.shop-filter-group[open] > .shop-filter-group__title::after {
  transform: rotate(90deg);
}

.shop-filter-group__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-filter-group__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text, #e5e7eb);
  cursor: pointer;
  padding: 2px 0;
  line-height: 1.4;
}
.shop-filter-group__item input[type="checkbox"] {
  accent-color: var(--accent, #22d3ee);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.shop-filter-group__item:hover { color: var(--accent, #22d3ee); }

/* ── PRODUCT INLINE ATTRIBUTES ───────────────────────── */
.shop-product-attrs {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.shop-product-attrs__row {
  display: grid;
  grid-template-columns: 40% 1fr;
  border-bottom: 1px solid var(--border);
}
.shop-product-attrs__row:last-child { border-bottom: none; }
.shop-product-attrs dt,
.shop-product-attrs dd {
  margin: 0;
  padding: 6px 10px;
  line-height: 1.4;
}
.shop-product-attrs dt {
  color: var(--muted, #94a3b8);
  font-weight: 500;
  border-right: 1px solid var(--border);
}

/* ── PRODUCT ATTRS (v2 — compact, before wishlist) ───── */
.shop-product-attrs {
  margin: 16px 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}
.shop-product-attrs__label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .08em;
}
.shop-product-attrs__list {
  margin: 0;
  display: grid;
  gap: 0;
}
.shop-product-attrs__row {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  font-size: 13px;
  line-height: 1.4;
}
.shop-product-attrs__row:last-child { border-bottom: none; }
.shop-product-attrs__row dt {
  flex: 0 0 40%;
  color: var(--muted, #94a3b8);
  font-weight: 500;
}
.shop-product-attrs__row dd {
  margin: 0;
  flex: 1;
  color: var(--text, #e5e7eb);
}

/* ── MODERN SHOP THEME ───────────────────────────────── */
.shop-hidden-form,
.shop-variant-reset {
  display: none;
}

.shop-hero,
.shop-cart-hero,
.shop-page-hero {
  padding: 42px 0 30px;
  text-align: left;
}
.shop-hero__inner,
.shop-cart-hero,
.shop-page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.shop-hero h1,
.shop-cart-hero h1,
.shop-page-hero h1,
.shop-thankyou h1 {
  margin: 8px 0 0;
  color: var(--shop-text);
  font-weight: 700;
  letter-spacing: 0;
}
.shop-hero .muted,
.shop-cart-hero .muted,
.shop-page-hero .muted {
  max-width: 720px;
  color: var(--shop-muted);
  line-height: 1.65;
}

.shop-section-title {
  color: var(--shop-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
.shop-cat-section {
  width: min(1200px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.shop-layout,
.shop-brand-toolbar,
.shop-brand-products,
.shop-product-detail,
.shop-cart-layout,
.shop-checkout-layout,
.shop-order-detail {
  width: min(1200px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}
.shop-layout {
  grid-template-columns: 248px 1fr;
  gap: 32px;
}
.shop-main {
  gap: 22px;
}

.shop-sidebar {
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.88), rgba(14, 15, 17, 0.74));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.shop-categories ul {
  gap: 4px;
}
.shop-categories a,
.shop-filter-group__item {
  color: var(--shop-muted);
}
.shop-categories a {
  padding: 9px 10px;
  border-radius: var(--shop-radius);
}
.shop-categories a:hover,
.shop-categories a.is-active {
  background: rgba(176, 141, 87, 0.1);
  border-color: var(--shop-border);
  color: var(--shop-accent-light);
}
.shop-filter-group {
  border-bottom-color: rgba(176, 141, 87, 0.14);
}
.shop-filter-group__title {
  color: var(--shop-dim);
}
.shop-filter-group__item:hover {
  color: var(--shop-accent-light);
}
.shop-filter-group__item input[type="checkbox"],
.shop-variant input[type="radio"],
.shop-payment-option input[type="radio"] {
  accent-color: var(--shop-accent);
}

.shop-filter-form input[type="number"],
.shop-sort-form select,
.shop-add-to-cart__qty input[type="number"],
.shop-cart-qty-input,
.shop-checkout-form input[type="text"],
.shop-checkout-form input[type="email"],
.shop-checkout-form input[type="tel"],
.shop-checkout-form textarea,
.shop-modal__box input[type="text"],
.shop-modal__box input[type="tel"] {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: rgba(14, 15, 17, 0.72);
  color: var(--shop-text);
}
.shop-filter-form input[type="number"]:focus,
.shop-sort-form select:focus,
.shop-add-to-cart__qty input:focus,
.shop-cart-qty-input:focus,
.shop-checkout-form input:focus,
.shop-checkout-form textarea:focus,
.shop-modal__box input:focus {
  border-color: var(--shop-accent);
}

.shop-toolbar {
  padding: 12px 0;
  border-top: 1px solid rgba(176, 141, 87, 0.12);
  border-bottom: 1px solid rgba(176, 141, 87, 0.12);
}
.shop-brand-toolbar {
  margin-top: 18px;
}
.shop-brand-products {
  padding-bottom: 48px;
}
.shop-brand-logo {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

.shop-cat-grid,
.shop-grid {
  gap: 18px;
}
.shop-cat-card,
.shop-product-card {
  border-radius: var(--shop-radius);
  border-color: var(--shop-border);
  background: var(--shop-surface-raised);
  box-shadow: none;
}
.shop-cat-card:hover,
.shop-product-card:hover {
  border-color: var(--shop-border-strong);
  box-shadow: var(--shop-shadow);
}
.shop-cat-card__img-wrap,
.shop-product-card__img-wrap,
.shop-product-gallery__main {
  background: var(--shop-surface-soft);
}
.shop-cat-card__name,
.shop-product-card__title,
.shop-cart-row__product a,
.shop-compare-table__product-title,
.shop-minicart-item__title {
  color: var(--shop-text);
}
.shop-product-card__title:hover,
.shop-cart-row__product a:hover,
.shop-compare-table__product-title:hover,
.shop-minicart-item__title:hover,
.shop-files-list a,
.shop-brand-link:hover {
  color: var(--shop-accent-light);
}
.shop-product-card__body {
  gap: 10px;
  padding: 14px;
}
.shop-product-card__preview {
  color: var(--shop-muted);
  line-height: 1.55;
}
.shop-product-card__price strong,
.shop-product-detail__current-price,
.shop-drawer__subtotal strong {
  color: var(--shop-accent-light);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.shop-product-card__badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(164, 54, 54, 0.9);
}
.shop-product-card__badge--sale {
  background: var(--shop-accent);
  color: var(--shop-surface);
}
.shop-product-card__badge--preorder,
.shop-product-card__badge--low-stock {
  background: #d3b277;
  color: #15110b;
}

.shop-product-detail {
  gap: 34px;
}
.shop-product-detail__top {
  gap: 44px;
}
.shop-product-gallery__main,
.shop-thumb,
.shop-product-section,
.shop-compare-wrap,
.shop-modal__box,
.shop-drawer {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface-raised);
}
.shop-product-gallery__main img {
  background: rgba(255, 255, 255, 0.02);
}
.shop-thumb {
  border-width: 1px;
}
.shop-thumb:hover,
.shop-thumb.is-active {
  border-color: var(--shop-accent);
}
.shop-product-detail__info {
  gap: 18px;
}
.shop-product-detail__info h1 {
  color: var(--shop-text);
  letter-spacing: 0;
}
.shop-product-detail__preview,
.shop-add-to-cart__qty label,
.shop-checkout-form .field span,
.shop-modal__box .field span {
  color: var(--shop-muted);
}
.shop-product-detail__meta {
  gap: 8px;
}
.shop-product-detail__meta p,
.shop-product-detail__price {
  margin: 0;
}
.shop-product-detail__stock {
  border-radius: 999px;
}
.shop-product-detail__stock.preorder,
.shop-product-detail__stock.low-stock {
  border: 1px solid rgba(211, 178, 119, 0.42);
  background: rgba(211, 178, 119, 0.12);
  color: var(--shop-accent-light);
}
.shop-variant,
.shop-payment-option {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: rgba(255, 255, 255, 0.025);
}
.shop-variant:hover,
.shop-variant.is-active,
.shop-payment-option:hover {
  border-color: var(--shop-accent);
  background: rgba(176, 141, 87, 0.1);
}
.shop-product-section > summary:hover {
  background: rgba(176, 141, 87, 0.08);
}
.shop-product-section__content {
  color: var(--shop-muted);
  line-height: 1.65;
}

.shop-card-actions {
  gap: 8px;
}
.shop-action-btn {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--shop-muted);
}
.shop-action-btn:hover,
.shop-action-btn--cart:hover,
.shop-action-btn.is-active:hover {
  border-color: var(--shop-accent);
  background: rgba(176, 141, 87, 0.12);
  color: var(--shop-accent-light);
}
.shop-action-btn--cart {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
  color: var(--shop-surface);
}
.shop-action-btn.is-active,
.shop-action-btn.js-compare-toggle.is-active {
  border-color: var(--shop-accent);
  background: rgba(176, 141, 87, 0.16);
  color: var(--shop-accent-light);
}

.shop-cart-table,
.shop-thankyou__items,
.shop-compare-table {
  color: var(--shop-muted);
}
.shop-cart-table thead th,
.shop-thankyou__items thead th,
.shop-compare-table__label-col {
  color: var(--shop-dim);
  background: rgba(176, 141, 87, 0.06);
}
.shop-cart-table th,
.shop-cart-table td,
.shop-thankyou__items th,
.shop-thankyou__items td,
.shop-compare-table th,
.shop-compare-table td,
.shop-divider,
.shop-cart-summary__row--total {
  border-color: rgba(176, 141, 87, 0.14);
}
.shop-cart-table tbody tr:hover td,
.shop-compare-table tbody tr:hover th,
.shop-compare-table tbody tr:hover td {
  background: rgba(176, 141, 87, 0.05);
}
.shop-cart-summary .card,
.shop-thankyou__card,
.shop-checkout-summary .card,
.shop-order-meta.card {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface-raised);
}

.shop-cart-hero {
  padding-bottom: 22px;
}
.shop-cart-hero h1 {
  max-width: 720px;
  font-size: clamp(30px, 5vw, 52px);
}
.shop-cart-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
  margin-bottom: 56px;
}
.shop-cart-items {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background:
    linear-gradient(145deg, rgba(176, 141, 87, 0.07), rgba(255, 255, 255, 0.018) 34%),
    rgba(18, 18, 18, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}
.shop-cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.14);
  background: rgba(255, 255, 255, 0.018);
}
.shop-cart-panel-head h2 {
  margin: 0;
  color: var(--shop-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.shop-cart-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(176, 141, 87, 0.18);
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.055);
  color: var(--shop-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  padding: 10px 14px 14px;
}
.shop-cart-table thead th {
  padding: 10px 8px;
  background: transparent;
  color: var(--shop-dim);
  font-size: 10px;
  letter-spacing: 0.11em;
}
.shop-cart-table th,
.shop-cart-table td {
  padding: 16px 12px;
  border-top: 1px solid rgba(176, 141, 87, 0.09);
  border-bottom: 1px solid rgba(176, 141, 87, 0.09);
  background: rgba(255, 255, 255, 0.022);
}
.shop-cart-row {
  transition: transform 180ms var(--ease, ease), filter 180ms var(--ease, ease);
}
.shop-cart-row:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.shop-cart-row td:first-child {
  border-left: 1px solid rgba(176, 141, 87, 0.09);
  border-radius: 14px 0 0 14px;
}
.shop-cart-row td:last-child {
  border-right: 1px solid rgba(176, 141, 87, 0.09);
  border-radius: 0 14px 14px 0;
}
.shop-cart-row__product {
  min-width: 340px;
  align-items: center;
  gap: 18px;
}
.shop-cart-row__media {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.shop-cart-row__media img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  object-fit: cover;
  transition: transform 260ms var(--ease, ease);
}
.shop-cart-row:hover .shop-cart-row__media img {
  transform: scale(1.04);
}
.shop-cart-row__media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(176, 141, 87, 0.12), rgba(255, 255, 255, 0.025));
}
.shop-cart-row__product-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.shop-cart-row__product-info a {
  max-width: 520px;
  color: var(--shop-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.shop-cart-row__variant,
.shop-cart-row__sku {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(176, 141, 87, 0.18);
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.075);
  color: var(--shop-accent-light);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
.shop-cart-row__sku {
  background: rgba(255, 255, 255, 0.035);
  color: var(--shop-dim);
}
.shop-cart-row__mini-total {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--shop-dim);
  font-size: 13px;
}
.shop-cart-row__mini-total strong {
  color: var(--shop-accent-light);
  font-size: 15px;
}
.shop-cart-money {
  display: inline-flex;
  min-width: 94px;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
.shop-cart-money span {
  color: var(--shop-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shop-cart-price,
.shop-cart-line-total {
  color: var(--shop-text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shop-cart-line-total {
  color: var(--shop-accent-light);
  font-size: 17px;
}
.shop-cart-qty-form {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}
.shop-cart-qty-input {
  width: 68px;
  min-height: 40px;
  border-color: rgba(176, 141, 87, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}
.shop-cart-qty-form .btn {
  min-height: 40px;
  padding: 9px 13px;
  border-color: rgba(176, 141, 87, 0.18);
  border-radius: 12px;
  background: rgba(176, 141, 87, 0.055);
}
.shop-cart-row__actions {
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}
.shop-cart-row__actions form:not(.shop-action-form) {
  margin: 0;
}
.shop-cart-row__actions .btn.danger {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: var(--shop-radius);
  font-size: 18px;
}
.shop-cart-actions {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(176, 141, 87, 0.14);
  background: rgba(0, 0, 0, 0.12);
}
.shop-cart-summary {
  top: 96px;
}
.shop-cart-summary .card {
  position: relative;
  gap: 16px;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(176, 141, 87, 0.13), rgba(255, 255, 255, 0.025) 42%),
    var(--shop-surface-raised);
  box-shadow: var(--shop-shadow);
}
.shop-cart-summary .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shop-accent), transparent);
}
.shop-cart-summary .eyebrow {
  margin: 0;
}
.shop-cart-summary h3 {
  color: var(--shop-text);
  font-size: 24px;
  letter-spacing: 0;
}
.shop-cart-summary__note,
.shop-cart-summary__footnote {
  margin: 0;
  line-height: 1.55;
}
.shop-cart-summary__row {
  padding: 2px 0;
}
.shop-cart-summary__row span {
  color: var(--shop-muted);
}
.shop-cart-summary__row strong {
  color: var(--shop-text);
}
.shop-cart-summary__row--total {
  margin-top: 4px;
  padding-top: 16px;
}
.shop-cart-summary__row--total span {
  color: var(--shop-text);
  font-weight: 700;
}
.shop-cart-summary__row--total strong {
  color: var(--shop-accent-light);
  font-size: 28px;
}
.shop-cart-summary .btn.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}
.shop-cart-empty {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 56px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface-raised);
  box-shadow: var(--shop-shadow);
}

.shop-payment-instructions {
  border-left-color: var(--shop-accent);
  background: rgba(176, 141, 87, 0.08);
  color: var(--shop-muted);
}
.pagination--spaced {
  margin-top: 32px;
}
.pagination .btn.is-active {
  background: var(--shop-accent);
  border-color: var(--shop-accent);
  color: var(--shop-surface);
}

.shop-modal__box {
  background: var(--shop-surface-raised);
  box-shadow: var(--shop-shadow);
}
.shop-modal__close {
  border-color: var(--shop-border);
  border-radius: var(--shop-radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--shop-muted);
}
.shop-modal__close:hover {
  background: rgba(176, 141, 87, 0.12);
  color: var(--shop-accent-light);
}

.shop-fab {
  background: var(--shop-accent);
  color: var(--shop-surface);
  box-shadow: 0 8px 22px rgba(176, 141, 87, 0.24);
}
.shop-fab:hover {
  box-shadow: 0 10px 28px rgba(176, 141, 87, 0.34);
}
.shop-fab--wishlist,
.shop-fab--compare {
  border-color: var(--shop-border);
  background: var(--shop-surface-raised);
  color: var(--shop-accent-light);
}
.shop-drawer {
  border-radius: 0;
}
.shop-drawer__head,
.shop-drawer__footer {
  border-color: rgba(176, 141, 87, 0.14);
}

@media (max-width: 860px) {
  .shop-layout,
  .shop-cat-section,
  .shop-brand-toolbar,
  .shop-brand-products,
  .shop-product-detail,
  .shop-cart-layout,
  .shop-checkout-layout,
  .shop-order-detail {
    width: min(100% - 28px, 1200px);
  }
  .shop-sidebar {
    border-radius: 0 var(--shop-radius) var(--shop-radius) 0;
  }
  .shop-hero__inner,
  .shop-cart-hero,
  .shop-page-hero {
    padding: 0 14px;
  }
}

@media (max-width: 900px) {
  .shop-cart-layout {
    grid-template-columns: 1fr;
  }
  .shop-cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .shop-checkout-item {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 80px;
    padding: 14px 0;
  }
  .shop-checkout-item__media {
    width: 54px;
    height: 54px;
  }
  .shop-checkout-summary .card {
    padding: 22px;
  }
  .shop-cart-panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
  .shop-cart-table,
  .shop-cart-table tbody,
  .shop-cart-table tr,
  .shop-cart-table td {
    display: block;
  }
  .shop-cart-table {
    padding: 8px 12px 14px;
    border-spacing: 0;
  }
  .shop-cart-table thead {
    display: none;
  }
  .shop-cart-table tr {
    padding: 18px;
    border-bottom: 1px solid rgba(176, 141, 87, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.022);
  }
  .shop-cart-table tr:last-child {
    border-bottom: none;
  }
  .shop-cart-table td {
    border: 0;
    background: transparent;
    padding: 8px 0;
  }
  .shop-cart-row td:first-child,
  .shop-cart-row td:last-child {
    border: 0;
    border-radius: 0;
  }
  .shop-cart-table td:not(.shop-cart-row__product)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--shop-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .shop-cart-row__product {
    min-width: 0;
    padding-top: 0;
  }
  .shop-cart-row__product-info a {
    max-width: 100%;
    font-size: 14px;
  }
  .shop-cart-row__mini-total {
    display: inline-flex;
  }
  .shop-cart-money {
    min-width: 0;
  }
  .shop-cart-row__media {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
  .shop-cart-qty-form,
  .shop-cart-row__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .shop-cart-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }
  .shop-cart-actions .btn,
  .shop-cart-actions form,
  .shop-cart-actions button {
    width: 100%;
  }
  .shop-cart-summary .card {
    padding: 20px;
  }
}

/* На мобиле — fab-group выше кнопки консультации (12 + 54 + 10 = 76px) */
@media (max-width: 1024px) {
  .shop-fab-group {
    bottom: 76px;
  }

  /* В магазине: кнопка консультации скрыта — fab-group опускаем обратно */
  body.is-shop .floating-booking {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.is-shop .shop-fab-group {
    bottom: 24px;
  }
}
