.shop-breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 0;
  position: relative;
  z-index: 0;
}

.shop-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 48px;
  position: relative;
  z-index: 0;
}

.shop-page-row {
  --bs-gutter-x: 1.75rem;
}

.shop-sidebar-col {
  align-self: start;
}

@media (min-width: 992px) {
  .shop-sidebar-col {
    align-self: stretch;
  }
}

.shop-sidebar-track {
  min-height: 100%;
  height: 100%;
}

:root {
  --shop-sticky-top: 84px;
  --shop-sticky-bottom: 0px;
  --dual-sticky-top: var(--shop-sticky-top);
  --dual-sticky-bottom: var(--shop-sticky-bottom);
}

.vpb-storefront {
  --shop-sticky-top: 20px;
}

/* Inner box is the sticky element; JS drives `top` for two-way pinning. */
.shop-filter-box {
  position: sticky;
  top: var(--shop-sticky-top);
  width: 100%;
  height: fit-content;
  z-index: 4;
}

.shop-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.shop-sidebar-head h3 {
  margin-bottom: 0;
  min-width: 0;
}

.shop-filters {
  padding-bottom: 4px;
}

.shop-main {
  position: relative;
  min-height: 320px;
}

@media (max-width: 991.98px) {
  .shop-sidebar-col {
    align-self: start;
  }

  .shop-filter-box {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
  }
}

.shop-page-head h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.shop-page-head p {
  color: var(--g5);
  line-height: 1.8;
  margin-bottom: 16px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.shop-sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
  flex: 1;
}

.shop-sort-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.shop-sort-head i {
  color: var(--g5);
  font-size: 14px;
}

.shop-sort-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  min-width: 0;
}

.shop-sort-option {
  border: none;
  background: none;
  padding: 4px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--g5);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s var(--ease, ease), background 0.2s var(--ease, ease);
  white-space: nowrap;
}

.shop-sort-option:hover {
  color: var(--dark);
}

.shop-sort-option.is-active {
  color: var(--sort-active-text, var(--a2));
  font-weight: 600;
  background: var(--sort-active-bg, var(--g1));
}

.shop-toolbar-count {
  font-size: 13px;
  color: var(--g5);
  white-space: nowrap;
  margin-inline-start: auto;
}

.shop-toolbar-count strong {
  color: var(--dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .shop-toolbar {
    align-items: flex-start;
  }

  .shop-toolbar-count {
    width: 100%;
    text-align: end;
  }
}

.shop-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g4);
  font-size: 28px;
}

.shop-product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .shop-product-grid {
    grid-template-columns: 1fr;
  }
}

.shop-product-main-image {
  margin: 0;
  position: relative;
}

.shop-product-zoom-stage {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--g1);
  cursor: zoom-in;
  touch-action: manipulation;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-zoom-stage img,
.shop-product-main-image img[data-product-zoom-img] {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}

.shop-product-main-image.is-zooming .shop-product-zoom-stage img {
  cursor: crosshair;
}

.shop-product-zoom-hint {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 21, 15, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.shop-product-main-image.is-zooming .shop-product-zoom-stage {
  border-color: rgba(217, 127, 74, 0.45);
  box-shadow: 0 0 0 3px var(--focus-ring-soft, rgba(217, 127, 74, 0.1));
}

.shop-product-main-image.is-zooming .shop-product-zoom-hint {
  opacity: 0;
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .shop-product-zoom-stage {
    cursor: default;
  }

  .shop-product-zoom-hint {
    display: none;
  }
}

.shop-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shop-product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--g1);
  cursor: pointer;
}

.shop-product-thumb.is-active {
  border-color: var(--a1);
}

.shop-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-thumb.is-filtered-out,
.shop-product-thumb[hidden] {
  display: none;
}

.shop-product-gallery-reset,
.shop-quick-gallery-reset {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--g6);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-product-gallery-reset[hidden],
.shop-quick-gallery-reset[hidden] {
  display: none;
}

.shop-product-no-image {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--g1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--g4);
}

.shop-product-info h1 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 12px;
}

.shop-product-summary {
  color: var(--g5);
  line-height: 1.9;
  margin-bottom: 16px;
}

.shop-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--g5);
  margin-bottom: 16px;
}

.shop-product-meta a {
  color: var(--a2);
  text-decoration: none;
}

.shop-product-price {
  margin-bottom: 12px;
}

.shop-product-stock {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.shop-card--unavailable .pimg {
  opacity: 0.72;
}

.shop-card-stock {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
}

.shop-card-stock.is-out-of-stock {
  color: #c0392b;
}

.shop-product-stock.is-in-stock {
  background: #eaf8f1;
  color: #1e7e4a;
}

.shop-product-stock.is-out-of-stock {
  background: #fdf0ee;
  color: #c0392b;
}

.shop-product-variants-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.shop-variant-chip.is-default {
  border-color: var(--a1);
}

.shop-variant-chip.is-disabled {
  opacity: 0.45;
}

.shop-variant-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.shop-product-attrs {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.shop-product-attr {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.shop-product-attr dt {
  color: var(--g5);
  font-weight: 600;
}

.shop-product-description {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.shop-product-description h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.vpb-storefront .shop-page,
.vpb-storefront .shop-product,
.vpb-storefront .shop-breadcrumb {
  max-width: none;
}

.vpb-storefront .shop-page,
.vpb-storefront .shop-product {
  padding-left: 16px;
  padding-right: 16px;
}

.shop-filter-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.shop-filter-link:hover,
.shop-filter-link.is-active {
  color: var(--link-hover, var(--a1));
  font-weight: 700;
}

.shop-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--g6);
}

.shop-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-switch-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--g3);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}

.shop-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform .2s;
}

.shop-switch input:checked + .shop-switch-ui {
  background: var(--a1);
}

.shop-switch input:checked + .shop-switch-ui::after {
  transform: translateX(-16px);
}

.shop-switch-label {
  line-height: 1.5;
}

.shop-size-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  background: var(--w, #fff);
  outline: none;
  cursor: pointer;
}

.shop-size-select:focus {
  border-color: var(--a1);
}

.shop-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 1100px) {
  .shop-color-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 860px) {
  .shop-color-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.shop-color-toggle {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.shop-color-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-color-toggle .cswatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all .2s;
}

.shop-color-toggle input:checked + .cswatch {
  border-color: var(--dark);
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.shop-filters .fcheck input[type="radio"][disabled] {
  pointer-events: none;
}

.shop-clear-filters {
  flex-shrink: 0;
  display: inline;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--a2, #c45c26);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.shop-clear-filters:hover {
  color: var(--a1, #d97f4a);
  background: none;
}

.shop-clear-filters[hidden] {
  display: none !important;
}

.shop-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  color: var(--g5);
  font-size: 13px;
}

.shop-load-more[hidden],
.shop-catalog-status[hidden],
[data-shop-subcategories-wrap][hidden],
[data-shop-size-facets][hidden],
[data-shop-color-facets][hidden] {
  display: none !important;
}

.shop-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--g3);
  border-top-color: var(--a1);
  border-radius: 50%;
  animation: shopSpin .8s linear infinite;
}

@keyframes shopSpin {
  to { transform: rotate(360deg); }
}

.shop-infinite-sentinel {
  height: 1px;
}

.shop-catalog-status {
  margin-bottom: 12px;
  color: var(--a2);
  font-size: 13px;
}

.shop-search-btn {
  pointer-events: none;
}

.shop-variant-group {
  margin-bottom: 16px;
}

.shop-variant-colors,
.shop-variant-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-variant-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.shop-variant-color-btn .shop-variant-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.shop-variant-color-btn.is-active {
  border-color: var(--dark);
  transform: scale(1.06);
}

.shop-variant-color-btn.is-disabled,
.shop-variant-color-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.shop-variant-size-btn {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--w);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.shop-variant-size-btn.is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.shop-variant-size-btn.is-disabled,
.shop-variant-size-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.shop-variant-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--g5);
}

.shop-product-actions {
  margin: 20px 0;
}

.shop-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}

.shop-add-to-cart:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.shop-add-to-cart:not(:disabled):hover {
  opacity: .92;
}

.shop-grid-empty {
  grid-column: 1 / -1;
}

.shop-related-products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.shop-related-head {
  margin-bottom: 28px;
}

.shop-related-head-text .sec-title {
  font-size: clamp(22px, 4vw, 28px);
}

.shop-related-track {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.shop-related-track:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 4px;
  border-radius: 8px;
}

.shop-related-grid.prod-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(152px, 42vw);
  grid-template-columns: unset;
  gap: 14px;
}

.shop-related-grid > .shop-card {
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 900px) {
  .shop-product .shop-related-track {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .shop-related-grid.prod-grid {
    grid-auto-columns: minmax(190px, 30vw);
    gap: 16px;
  }
}

@media (min-width: 901px) {
  .shop-related-track {
    overflow: visible;
    scroll-snap-type: none;
  }

  .shop-related-grid.prod-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: 20px;
  }
}

/* Product reviews */
.shop-product-reviews {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border, #ececec);
}

.shop-product-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-product-reviews-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.shop-product-reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.shop-review-avg {
  font-size: 20px;
  font-weight: 700;
}

.shop-review-stars-display {
  color: #f0b429;
  display: inline-flex;
  gap: 2px;
}

.shop-review-count {
  color: #777;
}

.shop-product-reviews-loading,
.shop-product-reviews-empty,
.shop-product-reviews-disabled,
.shop-product-reviews-submitted,
.shop-product-reviews-login {
  color: #666;
}

.shop-product-reviews-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-review-item {
  padding: 16px;
  border: 1px solid var(--border, #ececec);
  border-radius: 12px;
  background: #fff;
}

.shop-review-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.shop-review-item-head time {
  color: #888;
  font-size: 12px;
}

.shop-review-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.shop-review-status--pending {
  background: #fff4de;
  color: #9a6700;
}

.shop-review-status--rejected {
  background: #fde8e8;
  color: #b42318;
}

.shop-review-item-body {
  margin: 0;
  line-height: 1.8;
  white-space: pre-wrap;
}

.shop-product-reviews-form-wrap h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.shop-product-review-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.shop-review-rating-label,
.shop-review-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.shop-review-stars {
  display: flex;
  gap: 4px;
  direction: ltr;
}

.shop-review-star {
  cursor: pointer;
  color: #ddd;
}

.shop-review-star input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-review-star.is-active {
  color: #f0b429;
}

.shop-review-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  resize: vertical;
  font: inherit;
}

.shop-review-form-note {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* Compare page */
.shop-compare-page-head {
  margin-bottom: 24px;
}

.shop-compare-page-lead {
  color: #666;
  margin-top: 8px;
}

.shop-compare-page-empty {
  text-align: center;
  padding: 48px 16px;
  color: #666;
}

.shop-compare-page-empty i {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.45;
}

.shop-compare-page-table-wrap {
  overflow-x: auto;
}

.shop-compare-page-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.shop-compare-page-table th,
.shop-compare-page-table td {
  border: 1px solid var(--border, #ececec);
  padding: 12px;
  vertical-align: top;
  text-align: center;
}

.shop-compare-page-row-label,
.shop-compare-page-corner {
  text-align: right;
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}

.shop-compare-page-product {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-compare-page-thumb {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}

.shop-compare-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-compare-page-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #bbb;
}

.shop-compare-page-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.shop-compare-page-stock.is-in-stock {
  color: #1a7f37;
}

.shop-compare-page-stock.is-out-of-stock {
  color: #b42318;
}
