@import url('../../assets/brand-colors.css?v=20260917shop');

:root {
  --shop-teal: var(--fr-brand-dark, #0d9488);
  --shop-teal-dark: var(--fr-brand-darker, #0f766e);
  --shop-ink: #0f172a;
  --shop-muted: #64748b;
  --shop-line: var(--fr-border, rgba(15, 23, 42, 0.08));
  --shop-bg: var(--fr-content-bg, #f0f2f5);
  --shop-white: #ffffff;
  --shop-radius: var(--fr-radius-lg, 16px);
  --shop-font: "DM Sans", system-ui, sans-serif;
  --shop-display: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --shop-charcoal: var(--fr-charcoal, #252836);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.shop-body {
  margin: 0;
  font-family: var(--shop-font);
  color: var(--shop-ink);
  background:
    radial-gradient(1000px 420px at 90% -5%, rgba(20, 184, 166, 0.1), transparent 55%),
    radial-gradient(800px 380px at 0% 100%, rgba(244, 63, 94, 0.04), transparent 50%),
    var(--shop-bg);
  min-height: 100vh;
}

.shop-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.shop-skip:focus { left: 8px; }

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: none;
  background: #252836;
  background: var(--shop-charcoal, #252836);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.shop-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.shop-brand img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(180px, 46vw);
  object-fit: contain;
}
.shop-nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}
.shop-nav a {
  color: #8b93a7;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
.shop-nav a:hover { color: #5eead4; }
.shop-header-actions { display: flex; gap: 8px; align-items: center; }
.shop-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c8cdd8;
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
}
.shop-icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.shop-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--shop-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shop-main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; }

.shop-product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  animation: shopFadeUp 0.55s ease both;
}
@keyframes shopFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.shop-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-product-stage {
  position: relative;
  background: linear-gradient(160deg, #f1f5f9, #ffffff 45%, #e2e8f0);
  border-radius: 24px;
  border: 1px solid var(--shop-line);
  overflow: hidden;
}
.shop-product-stage::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.shop-product-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}
.shop-product-track::-webkit-scrollbar {
  display: none;
}
.shop-product-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.shop-product-slide img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.18));
  animation: shopFloat 4.5s ease-in-out infinite;
}
.shop-product-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--shop-ink);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.shop-product-nav--prev { left: 10px; }
.shop-product-nav--next { right: 10px; }
.shop-product-nav:hover {
  border-color: var(--shop-teal);
  color: var(--shop-teal-dark);
}
@media (min-width: 901px) {
  .shop-product-stage:hover .shop-product-nav,
  .shop-product-stage:focus-within .shop-product-nav {
    display: inline-flex;
  }
}
.shop-product-dots {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.shop-product-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
}
.shop-product-dot.is-active {
  background: var(--shop-teal);
  transform: scale(1.2);
}
.shop-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-product-thumb {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid var(--shop-line);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shop-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.shop-product-thumb:hover,
.shop-product-thumb.is-active {
  border-color: var(--shop-teal);
  transform: translateY(-1px);
}
@keyframes shopFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.shop-crumb {
  color: var(--shop-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.shop-product-title {
  font-family: var(--shop-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.shop-product-desc {
  color: var(--shop-muted);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 38ch;
}
.shop-price {
  font-family: var(--shop-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--shop-ink);
  margin-bottom: 18px;
}
.shop-price small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--shop-muted);
  margin-top: 2px;
}

.shop-features {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.shop-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--shop-ink);
  font-size: 0.95rem;
}
.shop-feature i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--shop-teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.shop-qty label {
  display: block;
  font-size: 0.8rem;
  color: var(--shop-muted);
  margin-bottom: 6px;
}
.shop-qty input {
  width: 88px;
  height: 48px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 1rem;
  font-family: inherit;
}

.shop-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  height: 48px;
  padding: 0 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.shop-btn:active { transform: translateY(1px); }
.shop-btn-primary {
  background: var(--shop-teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}
.shop-btn-primary:hover { background: var(--shop-teal-dark); color: #fff; }
.shop-btn-ghost {
  background: #fff;
  color: var(--shop-ink);
  border: 1px solid #cbd5e1;
}
.shop-btn-ghost:hover { background: #f8fafc; }

.shop-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: var(--shop-muted);
  font-size: 0.88rem;
  margin: 8px 0 24px;
}
.shop-trust span { display: inline-flex; align-items: center; gap: 6px; }
.shop-trust i { color: var(--shop-teal); }

.shop-accordions details {
  border-top: 1px solid var(--shop-line);
  padding: 14px 0;
}
.shop-accordions details:last-child { border-bottom: 1px solid var(--shop-line); }
.shop-accordions summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shop-accordions summary::-webkit-details-marker { display: none; }
.shop-accordions summary::after { content: "+"; color: var(--shop-muted); font-size: 1.2rem; }
.shop-accordions details[open] summary::after { content: "–"; }
.shop-accordions .shop-acc-body {
  margin-top: 10px;
  color: var(--shop-muted);
  white-space: pre-line;
  line-height: 1.5;
  font-size: 0.95rem;
}

.shop-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: shopFadeUp 0.4s ease both;
}
.shop-panel h1 {
  font-family: var(--shop-display);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.shop-lead { color: var(--shop-muted); margin: 0 0 20px; }

.shop-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shop-form-grid .full { grid-column: 1 / -1; }
.shop-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.shop-field input, .shop-field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}
.shop-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--shop-ink);
  margin: 8px 0;
}
.shop-check input { margin-top: 3px; }
.shop-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.shop-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.shop-alert-ok { background: #f0fdfa; color: #115e59; border: 1px solid #99f6e4; }
.shop-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--shop-line);
}
.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0;
  font-size: 0.95rem;
}
.shop-summary-row.total { font-weight: 700; font-size: 1.05rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--shop-line); }
.shop-summary-discount { color: var(--shop-teal-dark); }
.shop-coupon {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1px dashed rgba(13, 148, 136, 0.35);
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.05);
}
.shop-coupon-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.shop-coupon-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-coupon-row input {
  flex: 1 1 180px;
  min-width: 0;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
}
.shop-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.shop-coupon-applied strong { color: var(--shop-teal-dark); }
.shop-summary-item span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-summary-remove {
  display: inline;
  margin: 0;
}
.shop-summary-remove button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.95rem;
}
.shop-summary-remove button:hover { color: #7f1d1d; }

.shop-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.shop-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fff;
}
.shop-cart-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--shop-line);
}
.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-cart-info a {
  color: var(--shop-ink);
  text-decoration: none;
}
.shop-cart-info a:hover { color: var(--shop-teal); }
.shop-cart-meta {
  color: var(--shop-muted);
  font-size: 0.88rem;
  margin: 4px 0 10px;
}
.shop-cart-qty-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.shop-cart-qty-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--shop-muted);
}
.shop-cart-qty-form input[type="number"] {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
}
.shop-cart-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.shop-cart-line-total {
  font-weight: 700;
}
.shop-cart-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0;
}
.shop-cart-remove:hover { color: #7f1d1d; }
.shop-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.shop-cart-actions form { margin: 0; }
.shop-cart-clear { color: #b91c1c; }

@media (max-width: 640px) {
  .shop-cart-line {
    grid-template-columns: 64px 1fr;
  }
  .shop-cart-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

.shop-legal {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  padding: 28px 24px 36px;
}
.shop-legal h1 { font-family: var(--shop-display); margin-top: 0; }
.shop-legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.shop-legal p, .shop-legal li { color: #334155; line-height: 1.55; }
.shop-legal .muted { color: var(--shop-muted); font-size: 0.9rem; }

.shop-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--fr-charcoal-deep, #1e212b);
  margin-top: auto;
  color: #8b93a7;
}
.shop-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  display: grid;
  gap: 16px;
}
.shop-footer-brand { color: #8b93a7; font-size: 0.92rem; }
.shop-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.shop-footer-links a { color: #c8cdd8; text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.shop-footer-links a:hover { color: #5eead4; }
.shop-footer-note { color: #8b93a7; font-size: 0.85rem; margin: 0; }

.shop-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.shop-auth-tabs a, .shop-auth-tabs span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--shop-line);
  text-decoration: none;
  color: var(--shop-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.shop-auth-tabs .active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--shop-teal-dark);
  border-color: transparent;
}

.shop-catalog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.shop-catalog-head {
  margin-bottom: 28px;
}
.shop-catalog-head h1 {
  font-family: var(--shop-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.shop-catalog-head p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 1.05rem;
}
.shop-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.shop-catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.shop-catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.shop-catalog-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(13, 148, 136, 0.12), transparent 55%),
    #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.shop-catalog-media img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.shop-catalog-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.shop-catalog-body h2 {
  font-family: var(--shop-display);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.shop-catalog-body p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.shop-catalog-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--shop-teal-dark);
}
.shop-catalog-price small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--shop-muted);
}
.shop-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .shop-product { grid-template-columns: 1fr; gap: 28px; }
  .shop-nav { display: none; }
  .shop-product-slide {
    min-height: 280px;
    padding: 18px 16px 36px;
  }
  .shop-product-slide img {
    max-height: 260px;
    animation: none;
  }
  .shop-product-nav {
    display: inline-flex;
  }
  .shop-product-dots {
    display: flex;
  }
  .shop-product-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .shop-product-thumbs::-webkit-scrollbar {
    display: none;
  }
  .shop-product-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 640px) {
  .shop-form-grid { grid-template-columns: 1fr; }
  .shop-buy-row .shop-btn { width: 100%; }
}
