/* Storefront styles for the Xtra-dev shop. Loaded after styles.css and built on its tokens. */

.shop-main {
  --shop-card: linear-gradient(180deg, rgba(16, 16, 22, 0.78), rgba(10, 10, 14, 0.92));
  --shop-radius: 16px;
  min-height: 60vh;
}

.shop-main h1,
.shop-main h2,
.shop-main h3 {
  margin: 0;
  color: #fff;
  line-height: 1.15;
}

.shop-main a:focus-visible,
.shop-main button:focus-visible,
.shop-main input:focus-visible,
.shop-main select:focus-visible,
.shop-main textarea:focus-visible,
.shop-main summary:focus-visible,
.shop-cart-link:focus-visible,
.shop-star-picker-row input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shop-main .field-control {
  font: inherit;
  min-height: 44px;
}

.shop-main select.field-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.shop-main select.field-control option {
  background: #0d0d10;
  color: #fff;
}

.shop-main .field-control:focus {
  border-color: var(--line-strong);
}

.shop-main textarea.field-control {
  resize: vertical;
}

.shop-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shop-muted {
  color: var(--muted);
}

.shop-center {
  text-align: center;
}

[hidden] {
  display: none !important;
}

/* Header cart link ---------------------------------------------------------- */

.shop-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.shop-cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #060608;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-link-mobile {
  display: none;
  margin-left: auto;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .shop-cart-link-mobile {
    display: inline-flex;
  }

  .shop-cart-link-desktop {
    display: none !important;
  }
}

/* Announcement and toasts --------------------------------------------------- */

.shop-announcement {
  position: relative;
  z-index: 1;
  margin: 96px auto 0;
  width: min(1320px, calc(100% - 2.5rem));
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(207, 254, 37, 0.08);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

/* The bar already clears the fixed header, so the page content only needs a small gap. */
body.shop-has-announcement .inner-page-main.shop-main {
  padding-top: 1.4rem;
}

#checkout-blockers {
  margin-bottom: 0.9rem;
}

.shop-review-average.is-empty {
  font-size: 1.3rem;
}

.shop-toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(380px, calc(100% - 2rem));
}

.shop-toast {
  position: relative;
  padding: 1rem 2.4rem 1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-soft);
  background: rgba(10, 10, 14, 0.97);
  box-shadow: var(--shadow-soft);
  animation: shopToastIn 220ms ease;
}

.shop-toast p {
  font-weight: 600;
}

.shop-toast-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.shop-toast-actions a {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.shop-toast-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

@keyframes shopToastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* States, alerts, badges ---------------------------------------------------- */

.shop-state {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--muted);
}

.shop-state h1,
.shop-state h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.shop-grid-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--shop-radius);
}

.shop-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: shopSpin 800ms linear infinite;
}

@keyframes shopSpin {
  to {
    transform: rotate(360deg);
  }
}

.shop-alerts:empty {
  display: none;
}

.shop-alerts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 217, 140, 0.45);
  background: rgba(255, 217, 140, 0.08);
  color: var(--warning);
  font-size: 0.92rem;
}

.shop-alert-error {
  border-color: rgba(255, 158, 168, 0.5);
  background: rgba(255, 158, 168, 0.08);
  color: var(--danger);
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #060608;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-badge-muted {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.shop-code {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.shop-stars {
  position: relative;
  display: inline-block;
  width: 5.2em;
  height: 1em;
  font-size: 0.95rem;
  line-height: 1;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.3 6.6.8-4.9 4.6 1.3 6.8L10 15.2 4.1 18.5l1.3-6.8L.5 7.1l6.6-.8z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.3 6.6.8-4.9 4.6 1.3 6.8L10 15.2 4.1 18.5l1.3-6.8L.5 7.1l6.6-.8z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
}

.shop-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
}

/* Shared form bits ---------------------------------------------------------- */

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.9rem;
}

.shop-form-grid-3 {
  grid-template-columns: 1.3fr 1fr 0.8fr;
}

.shop-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.shop-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #cffe25;
  flex: none;
}

.shop-form-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.shop-form-status {
  min-height: 1.2em;
  margin: 0.2rem 0 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.shop-form-status:empty {
  display: none;
}

.shop-form-status.is-error {
  color: var(--danger);
}

.shop-form-status.is-success {
  color: var(--accent);
}

.shop-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.shop-center-actions {
  justify-content: center;
}

.shop-block-btn {
  display: flex !important;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.shop-main .button-01,
.shop-main .button-03,
.shop-toast .button-01,
.shop-toast .button-03 {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.shop-main button.button-01:disabled,
.shop-main button.button-03:disabled,
.shop-main a.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-link-btn,
.shop-text-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.shop-link-btn:hover,
.shop-text-link:hover {
  color: var(--accent);
}

.shop-inline-form {
  margin-bottom: 0.9rem;
}

.shop-inline-row {
  display: flex;
  gap: 0.5rem;
}

.shop-inline-row .field-control {
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}

.shop-inline-row .button-03 {
  flex: none;
}

.shop-progress {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.shop-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

/* Quantity stepper ---------------------------------------------------------- */

.shop-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  overflow: hidden;
}

.shop-qty-btn {
  width: 44px;
  min-height: 46px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}

.shop-qty-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.shop-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-qty-input {
  width: 48px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}

.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-qty-sm .shop-qty-btn {
  width: 38px;
  min-height: 38px;
}

.shop-qty-sm .shop-qty-input {
  width: 40px;
}

/* Catalog ------------------------------------------------------------------- */

.shop-hero {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 95% at 15% 0%, rgba(207, 254, 37, 0.12), transparent 52%),
    linear-gradient(160deg, rgba(8, 11, 16, 0.92), rgba(4, 7, 12, 0.86));
}

.shop-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.shop-hero-copy {
  max-width: 62ch;
  color: var(--muted);
}

.shop-page-head {
  margin-bottom: 1.6rem;
}

.shop-page-head h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.shop-toolbar {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 0.6rem;
}

.shop-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}

.shop-chip {
  flex: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.shop-chip:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.shop-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #060608;
}

.shop-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 210px;
  gap: 0.8rem;
}

.shop-filters .field-control {
  margin-bottom: 0;
}

.shop-result-count {
  min-height: 1.4em;
  margin: 0.6rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  background: var(--shop-card);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.shop-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.shop-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #0b0b10;
  overflow: hidden;
}

.shop-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 400ms ease;
}

.shop-card-img-hover {
  opacity: 0;
}

.shop-card:hover .shop-card-media.has-hover .shop-card-img-hover {
  opacity: 1;
}

.shop-card:hover .shop-card-img {
  transform: scale(1.03);
}

.shop-card-media .shop-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.shop-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 56px;
  background: linear-gradient(145deg, rgba(207, 254, 37, 0.14), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-card-media .shop-image-empty {
  position: absolute;
  inset: 0;
  font-size: 1.6rem;
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem;
}

.shop-card-vendor,
.shop-product-vendor {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-card-title {
  font-size: 1.02rem;
}

.shop-card-summary {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-preview-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(207, 254, 37, 0.5);
  border-radius: 12px;
  background: rgba(207, 254, 37, 0.1);
  color: #e9ff9c;
  font-size: 0.92rem;
  font-weight: 600;
}

.shop-card-title a:hover {
  color: var(--accent);
}

.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.shop-card-price {
  margin-bottom: 0.5rem;
}

.shop-price {
  color: #fff;
  font-weight: 700;
}

.shop-price.is-sale {
  color: var(--accent);
}

.shop-price-from {
  color: var(--muted);
  font-size: 0.82rem;
}

.shop-price-compare {
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 400;
}

.shop-card-btn {
  margin-top: auto;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.shop-card-skeleton .shop-card-media,
.shop-card-skeleton .shop-card-body span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shopShimmer 1.3s linear infinite;
}

.shop-card-skeleton .shop-card-body span {
  height: 0.9rem;
  border-radius: 6px;
}

.shop-card-skeleton .shop-card-body span:last-child {
  width: 45%;
}

@keyframes shopShimmer {
  to {
    background-position: -200% 0;
  }
}

.shop-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.8rem;
}

.shop-page-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.shop-page-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.shop-page-btn.is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: #060608;
  font-weight: 700;
}

.shop-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-page-gap {
  align-self: center;
  color: var(--muted);
}

/* Product ------------------------------------------------------------------- */

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.shop-breadcrumb a:hover {
  color: var(--accent);
}

.shop-breadcrumb [aria-current] {
  color: #fff;
}

.shop-product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
}

.shop-gallery {
  position: sticky;
  top: 110px;
}

.shop-gallery-main {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b0b10;
  overflow: hidden;
}

.shop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-gallery-main .shop-image-empty {
  font-size: 3rem;
}

.shop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.shop-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b10;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.shop-thumb:hover,
.shop-thumb.is-active {
  opacity: 1;
}

.shop-thumb.is-active {
  border-color: var(--accent);
}

.shop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-info h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin: 0.3rem 0 0.6rem;
}

.shop-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.shop-rating-link:hover {
  color: var(--accent);
}

.shop-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0.9rem 0 1.3rem;
  font-size: 1.6rem;
}

.shop-price-row .shop-price-compare {
  font-size: 1.05rem;
}

.shop-option-group {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
}

.shop-option-group legend {
  margin-bottom: 0.5rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.shop-option-group legend strong {
  color: #fff;
}

.shop-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-option {
  min-width: 52px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.shop-option:hover {
  border-color: var(--line-strong);
}

.shop-option.is-selected {
  border-color: var(--accent);
  background: rgba(207, 254, 37, 0.12);
  color: var(--accent);
}

.shop-option.is-unavailable {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  border-style: dashed;
}

.shop-buy-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.shop-add-btn {
  flex: 1;
  justify-content: center;
  min-height: 48px;
}

.shop-stock-note {
  min-height: 1.3em;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.shop-stock-note.is-low {
  color: var(--warning);
  font-weight: 600;
}

.shop-perks {
  display: grid;
  gap: 0.35rem;
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.shop-perks li::before {
  content: "\2713";
  margin-right: 0.5rem;
  color: var(--accent);
}

.shop-description {
  color: rgba(235, 235, 235, 0.88);
  line-height: 1.7;
}

.shop-description > * + * {
  margin-top: 0.8rem;
}

.shop-description h2,
.shop-description h3,
.shop-description h4 {
  color: var(--text, #fff);
  line-height: 1.25;
  margin-top: 1.6rem;
}

.shop-description h2 {
  font-size: 1.3rem;
}

.shop-description h3 {
  font-size: 1.1rem;
}

.shop-description ul,
.shop-description ol {
  padding-left: 1.2rem;
}

.shop-description a {
  color: var(--accent);
  text-decoration: underline;
}

.shop-description img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.shop-description table {
  width: 100%;
  border-collapse: collapse;
}

.shop-description th,
.shop-description td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
}

.shop-policy {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.shop-policy:first-child {
  margin-top: 1.2rem;
}

.shop-policy summary {
  font-weight: 600;
  cursor: pointer;
}

.shop-policy p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-section {
  margin-top: clamp(2.6rem, 6vw, 4.4rem);
  scroll-margin-top: 110px;
}

.shop-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.shop-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* Reviews ------------------------------------------------------------------- */

.shop-reviews-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.shop-review-summary {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  background: var(--shop-card);
}

.shop-review-average {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.shop-review-average small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.shop-review-bars {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.shop-review-bars li {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 0.5rem;
}

.shop-review-bars li span:last-child {
  text-align: right;
}

.shop-review-controls {
  max-width: 240px;
}

.shop-review {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.shop-review header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.shop-review time {
  margin-left: auto;
  color: var(--muted);
}

.shop-review h3 {
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}

.shop-review p {
  color: rgba(235, 235, 235, 0.88);
  overflow-wrap: anywhere;
}

.shop-verified {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.shop-review-reply {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.shop-review-form {
  max-width: 720px;
  margin-top: 1.6rem;
  padding: 1.4rem;
}

.shop-review-form h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.shop-star-picker {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.shop-star-picker-row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

.shop-star-picker-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.shop-star-picker-row label {
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.3 6.6.8-4.9 4.6 1.3 6.8L10 15.2 4.1 18.5l1.3-6.8L.5 7.1l6.6-.8z'/%3E%3C/svg%3E") center / 84% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 0l2.9 6.3 6.6.8-4.9 4.6 1.3 6.8L10 15.2 4.1 18.5l1.3-6.8L.5 7.1l6.6-.8z'/%3E%3C/svg%3E") center / 84% no-repeat;
}

.shop-star-picker-row input:checked ~ label,
.shop-star-picker-row label:hover,
.shop-star-picker-row label:hover ~ label {
  background: var(--accent);
}

/* Cart ---------------------------------------------------------------------- */

.shop-cart-layout,
.shop-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
  align-items: start;
}

.shop-cart-layout.is-updating .shop-totals,
.shop-cart-layout.is-updating .shop-cart-total {
  opacity: 0.55;
}

.shop-cart-lines {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 96px;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.shop-cart-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b10;
  overflow: hidden;
}

.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-cart-title {
  color: #fff;
  font-weight: 600;
}

.shop-cart-title:hover {
  color: var(--accent);
}

.shop-cart-info p {
  font-size: 0.88rem;
}

.shop-cart-unit {
  margin-top: 0.25rem;
  color: var(--muted);
}

.shop-cart-controls {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.shop-cart-total {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.shop-summary {
  position: sticky;
  top: 110px;
  padding: 1.4rem;
}

.shop-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.shop-free-ship {
  margin-bottom: 1.1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.86rem;
}

.shop-free-ship p {
  margin-bottom: 0.5rem;
}

.shop-free-ship.is-complete p {
  color: var(--accent);
  font-weight: 600;
}

.shop-totals {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.shop-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.shop-totals dt small {
  display: block;
  font-size: 0.78rem;
}

.shop-totals dd {
  margin: 0;
  color: #fff;
  text-align: right;
  white-space: nowrap;
}

.shop-totals .is-discount dd {
  color: var(--accent);
}

.shop-totals .is-total {
  margin-top: 0.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.shop-totals .is-total dd {
  font-size: 1.25rem;
}

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

.shop-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-steps .is-active {
  color: var(--accent);
  font-weight: 700;
}

.shop-steps .is-done {
  color: #fff;
}

.shop-checkout-card {
  padding: 1.5rem;
}

.shop-checkout-card + .shop-checkout-card {
  margin-top: 1rem;
}

.shop-checkout-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.shop-checkout-card h2:not(:first-child) {
  margin-top: 1.2rem;
}

.shop-review-box {
  margin-bottom: 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
}

.shop-review-box dl,
.shop-meta {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
}

.shop-review-box dl > div,
.shop-meta > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.6rem;
}

.shop-review-box dt,
.shop-meta dt {
  color: var(--muted);
}

.shop-review-box dd,
.shop-meta dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.shop-payment-element {
  min-height: 120px;
  margin: 0.4rem 0 1rem;
}

.shop-summary-toggle {
  display: none;
}

.shop-summary-lines {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.shop-summary-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.shop-summary-thumb {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b0b10;
}

.shop-summary-thumb img,
.shop-summary-thumb .shop-image-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: flex;
}

.shop-summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #fff;
  color: #060608;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-summary-name {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.shop-summary-name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.shop-summary-amount {
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Order confirmation -------------------------------------------------------- */

.shop-order-hero {
  margin-bottom: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(8, 11, 16, 0.92), rgba(4, 7, 12, 0.86));
}

.shop-order-hero.is-success {
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 95% at 15% 0%, rgba(207, 254, 37, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(8, 11, 16, 0.92), rgba(4, 7, 12, 0.86));
}

.shop-order-hero.is-error {
  border-color: rgba(255, 158, 168, 0.5);
}

.shop-order-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.shop-order-hero p:not(.eyebrow) {
  color: var(--muted);
}

.shop-order-hero .button-01 {
  margin-top: 1rem;
}

.shop-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.4rem;
  align-items: start;
}

.shop-order-side {
  display: grid;
  gap: 1rem;
}

.shop-order-side .shop-checkout-card + .shop-checkout-card {
  margin-top: 0;
}

.shop-order-side address {
  color: #fff;
  font-style: normal;
  line-height: 1.6;
}

.shop-order-side .shop-form-hint {
  margin: 0.5rem 0 0;
}

.shop-order-side .shop-form-hint:empty {
  display: none;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-cart-layout,
  .shop-checkout-layout,
  .shop-order-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.4rem;
  }
}

@media (max-width: 900px) {
  .shop-product,
  .shop-reviews-layout,
  .shop-cart-layout,
  .shop-checkout-layout,
  .shop-order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-gallery,
  .shop-summary {
    position: static;
  }

  .shop-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-filter-search {
    grid-column: 1 / -1;
  }

  /* On small screens the checkout summary sits above the form and can be collapsed. */
  .shop-checkout-layout .shop-summary {
    order: -1;
    padding: 0;
  }

  .shop-summary-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 1.1rem;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .shop-summary-toggle span::after {
    content: " \25BE";
  }

  .shop-summary-toggle[aria-expanded="true"] span::after {
    content: " \25B4";
  }

  .shop-summary-toggle strong {
    color: #fff;
    font-size: 1.1rem;
  }

  .shop-summary-body {
    display: none;
    padding: 0.4rem 1.1rem 1.1rem;
  }

  .shop-summary-body.is-open {
    display: block;
  }

  .shop-summary-title {
    display: none;
  }
}

@media (max-width: 680px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .shop-card-body {
    padding: 0.75rem;
  }

  .shop-card-title {
    font-size: 0.94rem;
  }

  .shop-card-btn {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.84rem !important;
  }

  .shop-form-grid,
  .shop-form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-cart-line {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info total"
      "thumb controls controls";
    gap: 0.5rem 0.8rem;
    align-items: start;
  }

  .shop-cart-thumb {
    grid-area: thumb;
  }

  .shop-cart-info {
    grid-area: info;
  }

  .shop-cart-total {
    grid-area: total;
  }

  .shop-cart-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .shop-checkout-card {
    padding: 1.1rem;
  }

  .shop-buy-row {
    flex-wrap: wrap;
  }

  .shop-review time {
    margin-left: 0;
    width: 100%;
  }

  .shop-announcement {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-card-img,
  .shop-toast,
  .shop-spinner,
  .shop-card-skeleton .shop-card-media,
  .shop-card-skeleton .shop-card-body span {
    animation: none;
    transition: none;
  }
}
