.shop-page {
  --shop-bg: #f4f7fc;
  --shop-bg-soft: rgba(243, 248, 255, 0.88);
  --shop-panel: rgba(255, 255, 255, 0.8);
  --shop-panel-strong: rgba(255, 255, 255, 0.94);
  --shop-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 255, 0.72));
  --shop-control-fill: rgba(255, 255, 255, 0.88);
  --shop-control-border: rgba(148, 163, 184, 0.16);
  --shop-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shop-border: rgba(148, 163, 184, 0.18);
  --shop-border-strong: rgba(59, 130, 246, 0.16);
  --shop-ink: #142033;
  --shop-muted: #5c6779;
  --shop-accent: #2563eb;
  --shop-accent-strong: #1d4ed8;
  --shop-accent-soft: rgba(37, 99, 235, 0.12);
  --shop-highlight: #f59e0b;
  --shop-danger: #dc2626;
  --shop-shadow: 0 28px 72px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 0 22px;
  width: min(calc(100vw - 28px), 1920px);
  margin-inline: calc(50% - 50vw + 14px);
  position: relative;
  isolation: isolate;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.shop-page::before,
.shop-page::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

.shop-page::before {
  top: -52px;
  right: -32px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
}

.shop-page::after {
  left: -48px;
  bottom: 80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 72%);
}

.shop-hero,
.shop-toolbar,
.shop-modal-content,
.shop-offcanvas .offcanvas-header,
.shop-offcanvas .offcanvas-body,
.shop-category-shell {
  background: linear-gradient(180deg, var(--shop-panel-strong), var(--shop-panel));
  border: 1px solid var(--shop-border);
  box-shadow: var(--shop-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.shop-hero {
  border-radius: 32px;
  padding: 34px 38px 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(237,245,255,0.92)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 44%),
    radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.14), transparent 46%);
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.28), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%);
  pointer-events: none;
}

.shop-hero::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -46px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.08) 42%, transparent 72%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.shop-detail-config-wrap {
  display: grid;
  gap: 12px;
  margin: 14px 0 8px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,245,249,0.82));
  border: 1px solid var(--shop-border);
}

.shop-detail-config-head {
  display: grid;
  gap: 4px;
}

.shop-detail-config-head p,
.shop-detail-config-state {
  margin: 0;
  color: var(--shop-muted);
}

.shop-detail-config-state.is-warning {
  color: var(--shop-danger);
}

.shop-detail-config-list {
  display: grid;
  gap: 12px;
}

.shop-detail-config-card {
  display: grid;
  gap: 8px;
}

.shop-detail-config-label {
  font-weight: 800;
  color: var(--shop-ink);
}

.shop-detail-config-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-detail-config-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--shop-border);
  background: rgba(255,255,255,0.8);
}

.shop-section-kicker,
.shop-modal-kicker,
.shop-category-kicker,
.shop-hero-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shop-accent-strong);
}

.shop-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.shop-trust-chip,
.shop-rating-pill,
.shop-toolbar-status-card,
.shop-filter-field input,
.shop-filter-field select,
.shop-category-pill,
.shop-icon-btn,
.shop-secondary-btn,
.shop-outline-btn,
.shop-clear-btn,
.shop-search-wrap,
.shop-cart-hero-btn,
.shop-hero-panel-shell,
.shop-spotlight-row,
.shop-stat-card,
.shop-detail-media,
.shop-qty-box,
.shop-cart-mini-card,
.shop-cart-summary-card,
.shop-cart-empty-state,
.shop-live-search-dropdown,
.shop-live-result-item,
.shop-live-result-empty,
.shop-live-result-loading {
  border: 1px solid var(--shop-border);
  background: rgba(255, 255, 255, 0.6);
}

.shop-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--shop-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.shop-hero-actions,
.shop-toolbar-actions,
.shop-filter-actions,
.shop-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-primary-btn,
.shop-secondary-btn,
.shop-outline-btn,
.shop-icon-btn,
.shop-clear-btn,
.shop-cart-hero-btn {
  border-radius: 14px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  font-weight: 800;
  font-size: 0.84rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
}

.shop-primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.shop-primary-btn:hover,
.shop-primary-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.3);
}

.shop-secondary-btn,
.shop-outline-btn,
.shop-icon-btn,
.shop-clear-btn,
.shop-cart-hero-btn {
  color: var(--shop-ink);
  border: 1px solid var(--shop-border-strong);
}

.shop-secondary-btn:hover,
.shop-outline-btn:hover,
.shop-icon-btn:hover,
.shop-clear-btn:hover,
.shop-cart-hero-btn:hover {
  color: var(--shop-accent-strong);
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.shop-cart-hero-btn {
  justify-content: flex-start;
  min-width: min(100%, 248px);
  padding-right: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(242,247,255,0.86));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.shop-icon-btn {
  min-width: 40px;
  padding-inline: 10px;
}

.shop-cart-hero-icon,
.shop-cart-header-icon,
.shop-cart-empty-icon,
.shop-empty-icon,
.shop-hero-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-hero-icon,
.shop-cart-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.96));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  flex: 0 0 38px;
}

.shop-cart-hero-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-cart-hero-text strong,
.shop-cart-hero-text small {
  line-height: 1.2;
}

.shop-cart-hero-text small,
.shop-section-subtitle,
.shop-price-note,
.shop-detail-support-note,
.shop-cart-header-subtitle,
.shop-summary-sub,
.shop-cart-mini-total-label,
.shop-cart-mini-unit-price span,
.shop-live-result-price,
.shop-spotlight-copy span,
.shop-category-summary,
.shop-empty-state p,
.shop-detail-description,
.shop-detail-price-alt,
.shop-product-desc,
.shop-hero-panel-copy {
  color: var(--shop-muted);
}

.shop-cart-hero-count,
.shop-cart-count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-hero-stats,
.shop-toolbar-status-grid {
  display: grid;
  gap: 10px;
}

.shop-hero-stats {
  margin-top: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 940px;
}

.shop-stat-card,
.shop-toolbar-status-card {
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(245,249,255,0.84));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.shop-stat-label,
.shop-toolbar-status-card span {
  display: block;
  color: var(--shop-muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-stat-value,
.shop-toolbar-status-card strong,
.shop-summary-label,
.shop-summary-row,
.shop-detail-title,
.shop-detail-price-main,
.shop-category-link,
.shop-product-title,
.shop-price-main,
.shop-live-result-title,
.shop-spotlight-price,
.shop-cart-mini-title,
.shop-cart-mini-unit-price,
.shop-cart-mini-total-price,
.shop-summary-row.total strong {
  color: var(--shop-ink);
}

.shop-stat-value {
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1;
}

.shop-hero-panel-shell {
  border-radius: 30px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-hero-panel-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--shop-ink);
  margin: 2px 0 0;
}

.shop-hero-panel-points {
  display: grid;
  gap: 12px;
}

.shop-hero-point {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shop-hero-point-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--shop-accent-soft);
  color: var(--shop-accent-strong);
  flex: 0 0 42px;
}

.shop-spotlight-stack {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.shop-spotlight-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}

.shop-spotlight-media {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(245, 158, 11, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-accent-strong);
  overflow: hidden;
}

.shop-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-spotlight-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-spotlight-copy strong,
.shop-category-link,
.shop-product-title,
.shop-detail-title,
.shop-summary-label,
.shop-cart-mini-title,
.shop-empty-state h4,
.shop-section-title,
.category-row-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.shop-toolbar,
.shop-category-shell {
  border-radius: 28px;
  padding: 20px;
}

.shop-toolbar {
  display: grid;
  gap: 16px;
}

.shop-toolbar-top,
.shop-category-header,
.shop-summary-top,
.shop-cart-mini-header,
.shop-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shop-section-title,
.category-row-title {
  font-size: clamp(1.48rem, 2vw, 2.08rem);
  color: var(--shop-ink);
  margin: 0;
}

.shop-toolbar-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 20px;
  background: var(--shop-control-bg);
  border: 1px solid var(--shop-control-border);
  box-shadow: var(--shop-control-shadow);
}

.shop-category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.shop-category-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--shop-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,250,255,0.68));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.shop-category-pill:hover,
.shop-category-pill.active {
  color: var(--shop-accent-strong);
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.1);
}

.shop-search-wrap {
  min-width: min(100%, 360px);
  width: 360px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--shop-control-border);
  background: var(--shop-control-bg);
  box-shadow: var(--shop-control-shadow);
}

.shop-search-wrap-inline {
  min-width: 220px;
  width: 280px;
  flex: 0 1 280px;
}

.shop-search-wrap i,
.shop-live-result-item > i {
  color: var(--shop-muted);
}

.shop-search-input {
  width: 100%;
  min-height: 38px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--shop-ink);
  font-size: 0.84rem;
}

.shop-search-input::placeholder,
.shop-filter-field span {
  color: var(--shop-muted);
}

.shop-live-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  z-index: 1050;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 22px 44px rgba(20, 32, 51, 0.14);
}

.shop-live-result-item,
.shop-live-result-loading,
.shop-live-result-empty {
  border-radius: 16px;
}

.shop-live-result-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 6px;
}

.shop-live-result-item:last-child {
  margin-bottom: 0;
}

.shop-live-result-item:hover {
  color: inherit;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.shop-live-result-media,
.shop-live-result-media img,
.shop-live-result-fallback {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.shop-live-result-media img {
  object-fit: cover;
}

.shop-live-result-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shop-accent-soft);
  color: var(--shop-accent-strong);
}

.shop-live-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-live-result-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-live-result-price {
  font-size: 0.86rem;
  font-weight: 700;
}

.shop-live-result-loading,
.shop-live-result-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  color: var(--shop-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.shop-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.shop-filter-form-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  flex: 1 1 620px;
}

.shop-filter-field {
  display: grid;
  gap: 6px;
}

.shop-filter-field-inline {
  min-width: 0;
}

.shop-filter-field span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-filter-field input,
.shop-filter-field select,
.shop-qty-box button,
.shop-qty-box input {
  min-height: 40px;
  border-radius: 12px;
  box-shadow: none !important;
}

.shop-filter-field input,
.shop-filter-field select {
  border: 1px solid var(--shop-control-border) !important;
  padding: 0 12px;
  color: var(--shop-ink);
  background: var(--shop-control-fill);
  font-size: 0.84rem;
}

.shop-filter-field input:focus,
.shop-filter-field select:focus {
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.shop-clear-btn {
  min-width: 40px;
  min-height: 40px;
}

.shop-filter-submit-btn {
  min-width: 40px;
  min-height: 40px;
  padding-inline: 0;
}

.shop-filter-submit-btn span {
  display: none;
}

.shop-toolbar-actions {
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(220px, 1fr);
  align-items: end;
  gap: 8px;
  justify-content: end;
  flex: 0 1 560px;
}

.shop-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--shop-control-border);
  background: var(--shop-control-bg);
  color: var(--shop-ink);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shop-control-shadow);
}

.shop-toolbar-link:hover {
  color: var(--shop-accent-strong);
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
}

@media (min-width: 992px) {
  .shop-toolbar-strip {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .shop-filter-form-inline {
    grid-template-columns: repeat(3, minmax(94px, 108px)) auto;
    gap: 7px;
    flex: 0 1 395px;
    min-width: 0;
  }

  .shop-filter-field span {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .shop-filter-field input,
  .shop-filter-field select {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .shop-toolbar-actions {
    grid-template-columns: repeat(3, auto) minmax(190px, 220px);
    gap: 7px;
    flex: 0 1 500px;
    width: min(100%, 500px);
    max-width: 100%;
    min-width: 0;
    justify-content: end;
    margin-left: auto;
    margin-right: 30px;
  }

  .shop-search-wrap-inline {
    min-width: 190px;
    width: 220px;
    flex: 0 1 220px;
    max-width: 220px;
  }

  .shop-search-wrap {
    min-width: min(100%, 320px);
    width: 320px;
    padding: 0 10px;
  }

  .shop-search-input {
    min-height: 36px;
    font-size: 0.8rem;
  }
}

@media (min-width: 992px) and (max-width: 1220px) {
  .shop-toolbar-strip {
    gap: 10px;
  }

  .shop-toolbar-actions {
    grid-template-columns: repeat(3, auto) minmax(170px, 190px);
    gap: 6px;
    width: min(100%, 440px);
    flex-basis: 440px;
  }

  .shop-search-wrap-inline {
    min-width: 170px;
    width: 190px;
    max-width: 190px;
  }

  .shop-search-wrap {
    min-width: min(100%, 290px);
    width: 290px;
  }
}

.shop-toolbar-link__label {
  line-height: 1;
}

.shop-products-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-category-shell {
  display: grid;
  gap: 16px;
}

.shop-category-summary {
  margin: 8px 0 0;
  line-height: 1.5;
  font-size: 0.86rem;
  max-width: 56ch;
}

.shop-category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.72);
}

.shop-horizontal-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: start;
  align-items: stretch;
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
  scrollbar-width: auto;
}

.shop-horizontal-scroll::-webkit-scrollbar {
  height: 0;
}

.shop-horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.22);
  border-radius: 999px;
}

.horizontal-item {
  min-width: 0;
  width: 100%;
  scroll-snap-align: unset;
}

.shop-product-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,255,0.94));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.shop-product-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(37,99,235,0.88), rgba(56,189,248,0.75));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.12);
}

.shop-product-card:hover::after {
  opacity: 1;
}

.shop-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.08));
  overflow: hidden;
}

.shop-product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08));
  pointer-events: none;
}

.shop-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-placeholder,
.shop-product-placeholder.large {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-accent-strong);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.08));
}

.shop-product-placeholder {
  font-size: 1.8rem;
}

.shop-product-placeholder.large {
  min-height: 100%;
  border-radius: 28px;
}

.shop-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.shop-badge-featured {
  background: rgba(37, 99, 235, 0.92);
}

.shop-badge-discount {
  background: rgba(245, 158, 11, 0.92);
}

.shop-badge-stock {
  background: rgba(16, 185, 129, 0.92);
}

.shop-badge-out {
  background: rgba(220, 38, 38, 0.92);
}

.shop-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: var(--shop-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(10px);
}

.shop-fav-btn:hover,
.shop-fav-btn.active {
  color: #ef4444;
  background: rgba(255, 255, 255, 0.94);
  transform: scale(1.05);
}

.shop-product-body {
  padding: 12px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.shop-product-meta-row,
.shop-product-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-category-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shop-accent-strong);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.shop-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--shop-ink);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.shop-rating-pill i {
  color: var(--shop-highlight);
}

.shop-rating-pill.is-muted i {
  color: var(--shop-accent);
}

.shop-product-desc {
  display: none;
}

.shop-product-highlights span {
  display: none;
}

.shop-product-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.shop-price-block {
  display: grid;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.shop-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
}

.shop-price-main small {
  color: var(--shop-muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-decoration: line-through;
}

.shop-price-note {
  display: none;
}

.shop-product-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shop-product-footer .btn {
  min-height: 34px;
  padding: 0;
  border-radius: 12px;
  border-width: 1px;
  box-shadow: none;
}

.shop-product-footer .btn span {
  display: none;
}

.shop-product-footer .btn i {
  margin: 0;
  font-size: 0.86rem;
}

.shop-empty-state {
  min-height: 340px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  border: 1px dashed var(--shop-border-strong);
  padding: 26px;
}

.shop-empty-state.compact {
  min-height: auto;
}

.shop-empty-icon,
.shop-cart-empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background: var(--shop-accent-soft);
  color: var(--shop-accent-strong);
  font-size: 1.85rem;
}

.shop-modal-content {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,255,0.94));
}

.shop-modal-header {
  padding: 20px 22px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.shop-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.shop-detail-media {
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(219,234,254,0.7), rgba(240,249,255,0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.shop-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail-content {
  display: grid;
  align-content: start;
  gap: 12px;
}

.shop-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--shop-accent-soft);
  color: var(--shop-accent-strong);
  font-weight: 800;
  margin-bottom: 2px;
  width: fit-content;
}

.shop-detail-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0;
  line-height: 1.08;
}

.shop-detail-description {
  margin: 0;
  line-height: 1.65;
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-detail-price-wrap {
  margin-bottom: 2px;
}

.shop-detail-price-main {
  font-size: 1.95rem;
  line-height: 1;
}

.shop-detail-stock {
  font-weight: 800;
  color: var(--shop-accent-strong);
  margin-bottom: 0;
}

.shop-detail-support-note {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
}

.shop-qty-box {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.shop-qty-box button,
.shop-qty-box input {
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--shop-ink);
  min-height: 44px;
}

.shop-qty-box button {
  width: 48px;
  font-weight: 800;
}

.shop-qty-box input {
  width: 78px;
  outline: none;
}

.shop-offcanvas {
  width: min(94vw, 470px) !important;
  border-left: 1px solid var(--shop-border);
}

.shop-cart-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--shop-border) !important;
}

.shop-cart-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shop-cart-body {
  gap: 16px;
  padding: 18px 18px 22px;
  min-height: 0;
}

.shop-cart-top-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.06));
  color: var(--shop-muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.shop-cart-top-note i {
  color: var(--shop-accent-strong);
  margin-top: 2px;
}

.shop-cart-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.shop-cart-mini-card,
.shop-cart-summary-card,
.shop-cart-empty-state {
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(20, 32, 51, 0.08);
}

.shop-cart-mini-card {
  padding: 12px;
}

.shop-cart-mini-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.shop-cart-mini-image {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--shop-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--shop-accent-strong);
}

.shop-cart-mini-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-cart-mini-title {
  font-size: 1rem;
  text-decoration: none;
}

.shop-cart-mini-title:hover,
.shop-category-link:hover {
  color: var(--shop-accent-strong);
}

.shop-cart-mini-remove {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
  color: var(--shop-danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.shop-cart-mini-remove:hover {
  background: rgba(220, 38, 38, 0.14);
}

.shop-cart-mini-unit-price {
  font-size: 0.94rem;
  font-weight: 800;
}

.shop-cart-mini-qty-row {
  display: flex;
  align-items: center;
}

.shop-cart-mini-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--shop-border);
  background: rgba(255, 255, 255, 0.7);
}

.shop-cart-mini-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 32, 51, 0.06);
  color: var(--shop-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-cart-mini-qty button:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--shop-accent-strong);
}

.shop-cart-mini-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--shop-ink);
}

.shop-cart-mini-total-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-cart-mini-total-price {
  font-size: 1.18rem;
  font-weight: 900;
}

.shop-cart-summary {
  margin-top: auto;
}

.shop-cart-summary-card {
  padding: 18px;
}

.shop-summary-label {
  font-size: 1.04rem;
}

.shop-summary-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.26), rgba(148, 163, 184, 0.08));
}

.shop-summary-row.total {
  margin-top: 10px;
  font-size: 1.06rem;
}

.shop-summary-row.total strong {
  font-size: 1.38rem;
}

.shop-cart-checkout-btn {
  min-height: 56px;
  border-radius: 20px;
  font-size: 1rem;
}

.shop-cart-empty-state {
  min-height: 280px;
  text-align: center;
  gap: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shop-alert-pill {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 0.94rem;
  backdrop-filter: blur(12px);
  animation: shopPillIn 0.3s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.shop-alert-pill.is-actionable {
  cursor: pointer;
  user-select: none;
}

.shop-alert-pill.is-actionable:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.shop-alert-pill.is-actionable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.shop-alert-copy {
  display: grid;
  gap: 2px;
}

.shop-alert-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
}

.shop-alert-pill.success {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.shop-alert-pill.danger {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
}

.shop-alert-pill.warning {
  background: rgba(245, 158, 11, 0.94);
  color: #fff;
}

.shop-alert-pill .shop-alert-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-alert-pill.closing {
  animation: shopPillOut 0.4s ease forwards;
}

@keyframes shopPillIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shopPillOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}


@keyframes cartBadgeBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.55); }
  55%  { transform: scale(0.88); }
  75%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-badge-bounce {
  animation: cartBadgeBounce 0.55s cubic-bezier(.36,.07,.19,.97) both;
}


.shop-cart-selections {
  font-size: 0.76rem;
  color: var(--bs-secondary-color, #6c757d);
  margin: 2px 0 4px;
  line-height: 1.4;
}
.shop-cart-selections.shop-cart-extras {
  color: var(--bs-info, #0dcaf0);
  font-style: italic;
}

@media (max-width: 1399.98px) {
  .shop-horizontal-scroll {
    grid-auto-columns: calc((100% - 50px) / 6);
  }
}

@media (max-width: 1199.98px) {
  .shop-hero {
    padding: 28px 30px 24px;
  }

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

  .shop-toolbar-strip {
    padding: 10px;
  }

  .shop-filter-form-inline {
    grid-template-columns: repeat(3, minmax(108px, 1fr)) auto;
  }

  .shop-detail-layout {
    grid-template-columns: 1fr;
  }

  .shop-horizontal-scroll {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 40px) / 5);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
}

@media (max-width: 991.98px) {
  .shop-page {
    gap: 20px;
  }

  .shop-hero,
  .shop-toolbar,
  .shop-category-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .shop-hero::after {
    width: 120px;
    height: 120px;
  }

  .shop-toolbar-top,
  .shop-category-header {
    flex-direction: column;
  }

  .shop-toolbar-strip {
    align-items: stretch;
  }

  .shop-toolbar-actions {
    width: 100%;
    grid-template-columns: repeat(3, auto) minmax(200px, 1fr);
    justify-content: flex-start;
  }

  .shop-search-wrap {
    width: 100%;
  }

  .shop-horizontal-scroll {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 24px) / 4);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
}

@media (max-width: 767.98px) {
  .shop-hero {
    min-height: auto;
    padding: 20px 18px 18px;
  }

  .shop-hero-actions {
    gap: 8px;
  }

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

  .shop-toolbar-strip,
  .shop-filter-form-inline,
  .shop-toolbar-actions {
    gap: 8px;
  }

  .shop-filter-form-inline,
  .shop-toolbar-actions {
    flex: 1 1 100%;
  }

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

  .shop-filter-field span {
    font-size: 0.58rem;
  }

  .shop-toolbar-link {
    min-height: 38px;
    padding: 7px 9px;
    justify-content: center;
    font-size: 0.66rem;
  }

  .shop-search-wrap-inline {
    width: 100%;
    min-width: 100%;
    grid-column: 1 / -1;
  }

  .shop-category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .shop-category-pills::-webkit-scrollbar {
    height: 6px;
  }

  .shop-category-pills::-webkit-scrollbar-thumb {
    background: rgba(92, 103, 121, 0.24);
    border-radius: 999px;
  }

  .shop-category-pill {
    flex: 0 0 auto;
  }

  .shop-cart-hero-btn,
  .shop-primary-btn,
  .shop-secondary-btn,
  .shop-outline-btn,
  .shop-clear-btn {
    width: 100%;
  }

  .shop-cart-hero-count {
    margin-left: auto;
  }

  .shop-cart-mini-top {
    grid-template-columns: 1fr;
  }

  .shop-cart-mini-image {
    width: 100%;
    height: 180px;
  }

  .shop-horizontal-scroll {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 16px) / 3);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .shop-product-body {
    padding: 8px 7px 7px;
    gap: 6px;
  }

  .shop-category-name,
  .shop-rating-pill small,
  .shop-price-note {
    display: none;
  }

  .shop-product-title {
    font-size: 0.68rem;
    line-height: 1.25;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .shop-price-main {
    font-size: 0.78rem;
  }

  .shop-product-badges {
    top: 5px;
    left: 5px;
    right: 28px;
    gap: 3px;
  }

  .shop-badge {
    padding: 2px 4px;
    font-size: 0.42rem;
    letter-spacing: 0.02em;
  }

  .shop-fav-btn {
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
  }

  .shop-fav-btn i {
    font-size: 0.56rem;
  }

  .shop-product-footer .btn {
    min-height: 28px;
  }

  .shop-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-qty-box {
    width: 100%;
    justify-content: space-between;
  }

  .shop-qty-box input {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .shop-page {
    gap: 16px;
    width: min(calc(100vw - 16px), 1920px);
    margin-inline: calc(50% - 50vw + 8px);
  }

  .shop-hero,
  .shop-toolbar,
  .shop-category-shell {
    padding: 14px;
    border-radius: 18px;
  }

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

  .shop-offcanvas {
    width: 100% !important;
  }

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

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

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

  .shop-cart-header {
    padding: 18px 16px 12px;
  }

  .shop-cart-body {
    padding: 14px 14px 18px;
  }

  .shop-alert-pill {
    right: 14px;
    left: 14px;
    top: 14px;
  }
}

.shopx-page {
  --sx-bg: #f4f7fb;
  --sx-panel: rgba(255, 255, 255, 0.86);
  --sx-ink: #101827;
  --sx-muted: #667085;
  --sx-line: rgba(15, 23, 42, 0.1);
  --sx-soft: rgba(15, 23, 42, 0.045);
  --sx-accent: #0477ff;
  --sx-accent-2: #10b981;
  --sx-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
  color: var(--sx-ink);
}

.shopx-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
}

.shopx-hero-card {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  box-shadow: var(--sx-shadow);
  animation-delay: var(--delay, 0ms);
}

.shopx-hero-card img,
.shopx-campaign-media img,
.shopx-product-media img,
.shopx-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopx-hero-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.shopx-hero-card:hover img {
  transform: scale(1.08) translateY(-8px);
}

.shopx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.68));
  z-index: 1;
}

.shopx-hero-content {
  position: absolute;
  z-index: 2;
  inset: auto 32px 32px 32px;
  color: #fff;
  display: grid;
  gap: 14px;
}

.shopx-hero-content h1,
.shopx-section-head h2,
.shopx-campaign h2,
.shopx-listing-head h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.shopx-hero-content h1 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.shopx-hero-content p,
.shopx-campaign p,
.shopx-listing-head p,
.shopx-empty-state p {
  color: var(--sx-muted);
  line-height: 1.7;
  margin: 0;
}

.shopx-hero-content p,
.shopx-campaign .shopx-kicker.light,
.shopx-campaign-copy {
  color: rgba(255,255,255,0.88);
}

.shopx-light-btn,
.shopx-outline-btn,
.shopx-primary-wide,
.shopx-filter-toggle {
  min-height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.shopx-light-btn {
  width: fit-content;
  padding: 0 26px;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
}

.shopx-outline-btn,
.shopx-filter-toggle {
  border: 1px solid var(--sx-line);
  background: var(--sx-panel);
  color: var(--sx-ink);
  padding: 0 18px;
}

.shopx-primary-wide {
  border: 0;
  width: 100%;
  background: var(--sx-accent);
  color: #fff;
}

.shopx-light-btn:hover,
.shopx-outline-btn:hover,
.shopx-primary-wide:hover,
.shopx-filter-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.shopx-brand-strip,
.shopx-section,
.shopx-campaign {
  margin-top: 56px;
}

.shopx-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.shopx-marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: shopxMarquee 26s linear infinite;
}

.shopx-brand-item {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sx-muted);
  font-weight: 900;
  filter: grayscale(1);
  opacity: .82;
}

.shopx-brand-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.shopx-section-head,
.shopx-listing-head,
.shopx-sidebar-title,
.shopx-filter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.shopx-section-head {
  margin-bottom: 24px;
}

.shopx-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sx-accent);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shopx-section-head h2,
.shopx-listing-head h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.shopx-product-grid {
  display: grid;
  gap: 24px 20px;
}

.shopx-featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shopx-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shopx-product-card {
  min-width: 0;
}

.shopx-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sx-soft);
  border-radius: 4px;
}

.shopx-product-media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.shopx-media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sx-muted);
  font-size: 2.1rem;
}

.shopx-product-media-link img,
.shopx-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.shopx-product-card:hover .shopx-product-media img {
  transform: scale(1.06);
}

.shopx-sale-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--sx-panel);
  color: var(--sx-ink);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.shopx-hover-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.shopx-product-card:hover .shopx-hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.shopx-icon-action {
  position: relative;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #111827;
}

.shopx-product-body {
  padding-top: 14px;
  color: var(--body, var(--text));
  font-family: var(--font-family);
  font-size: var(--product-body-size, var(--font-size-sm));
  line-height: var(--line-height-normal);
}

.shopx-product-meta,
.shopx-price-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.shopx-product-meta {
  justify-content: space-between;
  color: var(--sx-muted);
  font-size: var(--product-meta-size, var(--font-size-xs));
}

.shopx-product-meta i {
  color: #f59e0b;
}

.shopx-product-body h3 {
  margin: 8px 0 7px;
  font-size: var(--product-title-size, var(--font-size-md));
  font-weight: var(--font-weight-extrabold, 800);
  line-height: var(--line-height-tight, 1.25);
}

.shopx-product-body h3 a {
  color: var(--sx-ink);
  text-decoration: none;
}

.shopx-price-row s {
  color: var(--sx-muted);
  font-size: var(--font-size-sm);
}

.shopx-price-row strong {
  color: var(--sx-ink);
  font-size: var(--product-price-size, var(--font-size-lg));
  font-weight: var(--font-weight-extrabold, 800);
}

.shopx-category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
}

.shopx-category-card {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sx-ink);
  background: var(--sx-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

.shopx-category-card img {
  position: absolute;
  inset: 0;
  transition: transform .45s ease;
}

.shopx-category-card:hover img {
  transform: scale(1.07);
}

.shopx-category-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  background: var(--sx-panel);
  padding: 8px;
  font-weight: 900;
}

.shopx-category-card > span {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
}

.shopx-campaign {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f7fbd, #0f4f7a);
}

.shopx-campaign-copy {
  padding: clamp(32px, 7vw, 88px);
  display: grid;
  align-content: center;
  gap: 18px;
  z-index: 2;
}

.shopx-campaign-copy h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.shopx-campaign-copy strong {
  font-size: 1.15rem;
}

.shopx-campaign-media {
  min-height: 360px;
  overflow: hidden;
}

.shopx-campaign-media img {
  object-position: center;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.08);
  transition: transform .12s linear;
}

.shopx-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
  border: 1px dashed var(--sx-line);
  background: var(--sx-panel);
  border-radius: 8px;
  padding: 28px;
}

.shopx-empty-state i {
  font-size: 2rem;
  color: var(--sx-accent);
}

.shopx-listing-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
}

.shopx-filter-panel {
  position: sticky;
  top: 18px;
  height: max-content;
  display: grid;
  gap: 26px;
}

.shopx-filter-head button,
.shopx-sidebar-title button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--sx-line);
  border-radius: 50%;
  background: var(--sx-panel);
  color: var(--sx-ink);
}

.shopx-filter-form,
.shopx-sidebar-categories {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--sx-line);
  background: var(--sx-panel);
  border-radius: 8px;
}

.shopx-filter-form label {
  display: grid;
  gap: 8px;
  color: var(--sx-muted);
  font-size: .82rem;
  font-weight: 900;
}

.shopx-filter-form input,
.shopx-listing-head select {
  min-height: 48px;
  border: 1px solid var(--sx-line);
  border-radius: 4px;
  background: var(--sx-panel);
  color: var(--sx-ink);
  padding: 0 12px;
}

.shopx-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shopx-category-list {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.shopx-category-list a,
.shopx-breadcrumb,
.shopx-results-meta {
  color: var(--sx-muted);
}

.shopx-category-list a {
  min-height: 44px;
  border-radius: 4px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.shopx-category-list a.active,
.shopx-category-list a:hover {
  background: var(--sx-soft);
  color: var(--sx-ink);
}

.shopx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.shopx-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.shopx-listing-head {
  align-items: center;
  padding: 44px;
  background: var(--sx-panel);
  border: 1px solid var(--sx-line);
  border-radius: 8px;
  margin-bottom: 22px;
}

.shopx-results-meta {
  margin-bottom: 22px;
  font-weight: 700;
}

.shopx-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.shopx-pagination a {
  min-width: 42px;
  height: 42px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sx-line);
  color: var(--sx-ink);
  text-decoration: none;
}

.shopx-pagination a.active,
.shopx-pagination a:hover {
  background: var(--sx-accent);
  color: #fff;
}

.shopx-filter-toggle {
  display: none;
  margin-bottom: 16px;
}

.shopx-floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0477ff);
  box-shadow: 0 18px 34px rgba(2, 132, 199, .28);
}

.shopx-floating-cart .shop-cart-count-badge {
  position: absolute;
  top: -8px;
  left: -4px;
  background: #10b981;
}

.shopx-filter-backdrop {
  display: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shopxMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .shopx-marquee-track,
  .shopx-home-campaign-marquee,
  .reveal-on-scroll,
  .shopx-hero-card img,
  .shopx-product-media img {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1199.98px) {
  .shopx-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shopx-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .shopx-hero-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(78vw, 1fr);
    grid-template-columns: none;
  }
  .shopx-campaign,
  .shopx-listing-layout {
    grid-template-columns: 1fr;
  }
  .shopx-filter-toggle {
    display: inline-flex;
  }
  .shopx-filter-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    z-index: 1060;
    padding: 18px;
    overflow-y: auto;
    background: var(--sx-bg);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .shopx-filter-panel.is-open {
    transform: translateX(0);
  }
  .shopx-listing-head {
    padding: 26px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .shopx-page {
    width: min(100vw - 18px, 1440px);
    padding-top: 14px;
  }
  .shopx-hero-card {
    min-height: 360px;
  }
  .shopx-featured-grid,
  .shopx-list-grid {
    grid-template-columns: 1fr;
  }
  .shopx-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .shopx-campaign-copy {
    padding: 26px;
  }
}

.shopx-storefront-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.shopx-page-title {
  margin: 6px 0 0;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.shopx-storefront-page .shopx-hero-wrap {
  margin-top: 8px;
}

.shopx-storefront-page .shopx-hero-grid {
  gap: 20px;
  padding-bottom: 2px;
}

.shopx-storefront-page .shopx-hero-card {
  border-radius: 32px;
  min-height: 500px;
  scroll-snap-align: start;
}

.shopx-storefront-page .shopx-hero-content {
  inset: auto 28px 28px 28px;
  gap: 16px;
}

.shopx-storefront-page .shopx-hero-content h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
  line-height: 1.04;
  font-weight: 900;
}

.shopx-storefront-page .shopx-hero-content p {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.88);
}

.shopx-scroll-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: none;
}

.shopx-scroll-rail::-webkit-scrollbar {
  display: none;
}

.shopx-brand-strip {
  margin-top: 40px;
}

.shopx-brand-strip .shopx-section-head h2,
.shopx-category-section .shopx-section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  max-width: 24ch;
}

.shopx-brand-rail {
  margin-top: 18px;
}

.shopx-brand-item {
  min-width: 230px;
  padding: 18px 22px;
  border: 1px solid var(--sx-line);
  border-radius: 28px;
  background: var(--sx-panel);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: var(--sx-ink);
  filter: none;
  opacity: 1;
  scroll-snap-align: start;
}

.shopx-brand-mark,
.shopx-brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.05);
  flex: 0 0 56px;
}

.shopx-brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.shopx-brand-copy {
  display: grid;
  gap: 4px;
}

.shopx-brand-copy strong {
  font-size: 1rem;
  font-weight: 900;
  color: var(--sx-ink);
}

.shopx-brand-copy span {
  color: var(--sx-muted);
  font-size: 0.9rem;
}

.shopx-section-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.shopx-category-section .shopx-scroll-rail {
  margin-top: 18px;
}

.shopx-category-rail {
  display: flex;
  gap: 18px;
}

.shopx-category-card {
  flex: 0 0 176px;
  min-height: 228px;
  border-radius: 30px;
  overflow: hidden;
  scroll-snap-align: start;
}

.shopx-category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.48));
}

.shopx-category-card strong {
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.shopx-category-fallback {
  font-size: 2.4rem;
  color: var(--sx-ink);
}

.shopx-campaign {
  margin-top: 54px;
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.14), transparent 35%),
    linear-gradient(135deg, #0f6ea3, #127bb4 42%, #165f94 100%);
}

.shopx-campaign-copy {
  padding: clamp(36px, 7vw, 92px);
}

.shopx-campaign-copy p {
  max-width: 34ch;
}

.shopx-campaign-copy strong {
  color: #fff;
}

.shopx-campaign-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 24px 0;
}

.shopx-campaign-frame {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.24);
}

.shopx-campaign-frame img,
.shopx-campaign-frame .shopx-empty-state {
  width: 100%;
  height: 100%;
}

.shopx-campaign-frame img {
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  transform-origin: center;
}

.shopx-listing-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shopx-filter-stack {
  display: grid;
  gap: 18px;
}

.shopx-filter-panel {
  top: 90px;
}

.shopx-filter-form,
.shopx-sidebar-categories,
.shopx-listing-head {
  border-radius: 30px;
}

.shopx-filter-form,
.shopx-sidebar-categories {
  padding: 22px;
}

.shopx-filter-subtitle {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--sx-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shopx-price-card {
  display: grid;
  gap: 12px;
}

.shopx-range-wrap {
  position: relative;
  height: 24px;
}

.shopx-range-track {
  position: absolute;
  inset: 50% 0 auto;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.shopx-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: inherit;
  background: var(--sx-accent);
}

.shopx-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.shopx-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 4px rgba(4, 119, 255, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.shopx-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 4px rgba(4, 119, 255, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.shopx-range-input::-webkit-slider-runnable-track,
.shopx-range-input::-moz-range-track {
  background: transparent;
}

.shopx-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.94rem;
}

.shopx-price-summary strong {
  color: var(--sx-ink);
}

.shopx-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.shopx-clear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sx-muted);
  text-decoration: none;
  font-weight: 800;
}

.shopx-scroll-controls {
  display: inline-flex;
  gap: 8px;
}

.shopx-scroll-controls.is-hidden {
  display: none;
}

.shopx-scroll-controls button:disabled {
  opacity: 0.42;
  pointer-events: none;
}

.shopx-category-list {
  max-height: 360px;
  padding-right: 4px;
}

.shopx-category-list a {
  min-height: 52px;
  border: 1px solid transparent;
}

.shopx-category-list a em {
  font-style: normal;
  color: var(--sx-muted);
}

.shopx-category-list a.active,
.shopx-category-list a:hover {
  border-color: rgba(4, 119, 255, 0.14);
}

.shopx-listing-head {
  padding: 36px 40px;
  align-items: flex-start;
}

.shopx-listing-tools {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.shopx-results-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-sort-form {
  width: min(100%, 240px);
}

.shopx-sort-form select {
  width: 100%;
}

@media (max-width: 1199.98px) {
  .shopx-storefront-intro {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .shopx-storefront-page .shopx-hero-card {
    min-height: 440px;
  }

  .shopx-brand-item {
    min-width: 210px;
  }
}

@media (max-width: 991.98px) {
  .shopx-campaign {
    min-height: 0;
  }

  .shopx-campaign-media {
    justify-content: stretch;
    padding: 0 22px 22px;
  }

  .shopx-campaign-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
  }

  .shopx-listing-head {
    padding: 28px;
  }

  .shopx-listing-tools {
    width: 100%;
    justify-items: stretch;
  }

  .shopx-sort-form {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .shopx-page-title {
    font-size: 2rem;
  }

  .shopx-storefront-page .shopx-hero-card {
    min-height: 360px;
    min-width: min(82vw, 340px);
  }

  .shopx-brand-item {
    min-width: 188px;
    padding: 16px 18px;
  }

  .shopx-category-card {
    flex-basis: 156px;
    min-height: 198px;
  }

  .shopx-filter-form,
  .shopx-sidebar-categories,
  .shopx-listing-head {
    border-radius: 24px;
  }
}

.shopx-product-detail-page {
  width: min(1280px, calc(100vw - 36px));
  padding-top: 18px;
}


.shopx-v3-storefront {
  padding-top: 22px;
}

.shopx-primary-wide--inline {
  width: auto;
  padding: 0 22px;
}

.shopx-v3-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 42px;
}

.shopx-v3-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px 6px 32px 0;
}

.shopx-v3-display {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.shopx-v3-hero-copy p {
  margin: 0;
  max-width: 32ch;
  color: var(--sx-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.shopx-v3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.shopx-v3-hero-note {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-v3-hero-board {
  display: grid;
  gap: 20px;
  min-height: 580px;
}

.shopx-v3-hero-board.is-single {
  grid-template-columns: 1fr;
}

.shopx-v3-hero-board.is-duo,
.shopx-v3-hero-board.is-trio {
  grid-template-columns: 1.18fr 0.82fr;
}

.shopx-v3-hero-stack {
  display: grid;
  gap: 20px;
  grid-template-rows: 1fr 1fr;
}

.shopx-v3-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  min-height: 220px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.38)), var(--sx-soft);
  box-shadow: var(--sx-shadow);
}

.shopx-v3-hero-card.is-primary {
  min-height: 580px;
}

.shopx-v3-hero-image,
.shopx-v3-category-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.shopx-v3-hero-card:hover .shopx-v3-hero-image,
.shopx-v3-category-card:hover .shopx-v3-category-image {
  transform: scale(1.06);
}

.shopx-v3-hero-surface {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.06), rgba(3, 7, 18, 0.42) 40%, rgba(3, 7, 18, 0.82));
  z-index: 1;
}

.shopx-v3-hero-meta {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shopx-v3-hero-body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.shopx-v3-hero-tag {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shopx-v3-hero-body h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.7vw, 2.7rem);
  font-weight: 900;
  line-height: 1.02;
  max-width: 10ch;
}

.shopx-v3-hero-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 26ch;
  line-height: 1.65;
}

.shopx-v3-hero-fallback,
.shopx-v3-category-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(4, 119, 255, 0.28), rgba(16, 185, 129, 0.18));
}

.shopx-v3-band,
.shopx-v3-products,
.shopx-v3-categories,
.shopx-v3-campaign {
  margin-top: 56px;
}

.shopx-v3-band-head,
.shopx-v3-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.shopx-v3-section-head h2,
.shopx-v3-band-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.04;
  font-weight: 900;
}

.shopx-v3-section-head p,
.shopx-v3-band-head p {
  margin: 8px 0 0;
  color: var(--sx-muted);
  max-width: 40ch;
  line-height: 1.7;
}

.shopx-v3-brand-track {
  margin-top: 8px;
  padding-bottom: 4px;
}

.shopx-v3-brand-pill {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--sx-line);
  background: var(--sx-panel);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.shopx-v3-brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--sx-soft);
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  overflow: hidden;
}

.shopx-v3-brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.shopx-v3-brand-copy {
  display: grid;
  gap: 4px;
}

.shopx-v3-brand-copy strong {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--sx-ink);
}

.shopx-v3-brand-copy span {
  color: var(--sx-muted);
  font-size: 0.92rem;
}

.shopx-v3-product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 18px;
}

.shopx-v3-product-grid .shopx-product-card,
.shopx-v3-listing-grid .shopx-product-card,
.shopx-pdp-related-grid .shopx-product-card {
  padding: 14px;
  border: 1px solid var(--sx-line);
  border-radius: 28px;
  background: var(--sx-panel);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.shopx-v3-product-grid .shopx-product-media,
.shopx-v3-listing-grid .shopx-product-media,
.shopx-pdp-related-grid .shopx-product-media {
  border-radius: 22px;
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.08));
}

.shopx-v3-product-grid .shopx-product-body,
.shopx-v3-listing-grid .shopx-product-body,
.shopx-pdp-related-grid .shopx-product-body {
  padding: 16px 2px 4px;
}

.shopx-v3-product-grid .shopx-product-body h3,
.shopx-v3-listing-grid .shopx-product-body h3,
.shopx-pdp-related-grid .shopx-product-body h3 {
  font-size: var(--product-title-size, var(--font-size-md));
  margin: 10px 0 8px;
}

.shopx-v3-category-rail {
  margin-top: 8px;
}

.shopx-v3-category-card {
  position: relative;
  flex: 0 0 250px;
  min-height: 340px;
  border-radius: 34px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.38));
  box-shadow: var(--sx-shadow);
  isolation: isolate;
}

.shopx-v3-category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(3, 7, 18, 0.2) 42%, rgba(3, 7, 18, 0.82));
  z-index: 1;
}

.shopx-v3-category-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.shopx-v3-category-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.shopx-v3-category-body strong {
  font-size: 1.34rem;
  line-height: 1.08;
  font-weight: 900;
}

.shopx-v3-category-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-size: 0.93rem;
}

.shopx-v3-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 0;
  min-height: 640px;
  border-radius: 40px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.16), transparent 32%), linear-gradient(135deg, #0f253f 0%, #0d5fa0 42%, #0e7ec8 100%);
  box-shadow: var(--sx-shadow);
}

.shopx-v3-campaign-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(32px, 7vw, 92px);
}

.shopx-v3-campaign-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  font-weight: 900;
  max-width: 10ch;
}

.shopx-v3-campaign-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  max-width: 34ch;
  line-height: 1.78;
}

.shopx-v3-campaign-copy strong {
  color: #fff;
  font-size: 1.05rem;
  max-width: 28ch;
}

.shopx-v3-campaign-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 28px 0;
}

.shopx-v3-campaign-shadow {
  position: absolute;
  inset: auto 10% 6% 10%;
  height: 44px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.24);
  filter: blur(24px);
}

.shopx-v3-campaign-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 64px rgba(2, 6, 23, 0.28);
}

.shopx-v3-campaign-frame img,
.shopx-v3-campaign-frame .shopx-empty-state {
  width: 100%;
  height: 100%;
}

.shopx-v3-campaign-frame img {
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  transition: transform 0.12s linear;
}

.shopx-v3-listing {
  padding-top: 18px;
}

.shopx-v3-listing-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shopx-v3-sidebar .shopx-filter-stack {
  gap: 18px;
}

.shopx-v3-sidebar .shopx-filter-form,
.shopx-v3-sidebar .shopx-sidebar-categories {
  padding: 24px;
  border-radius: 30px;
  background: var(--sx-panel);
  border: 1px solid var(--sx-line);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.shopx-v3-sidebar .shopx-filter-head strong,
.shopx-v3-sidebar .shopx-sidebar-title span {
  font-size: 1.2rem;
  font-weight: 900;
}

.shopx-v3-listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 38px 40px;
  border: 1px solid var(--sx-line);
  border-radius: 34px;
  background: var(--sx-panel);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.shopx-v3-listing-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.shopx-v3-listing-copy p {
  margin: 10px 0 0;
  max-width: 40ch;
  color: var(--sx-muted);
  line-height: 1.75;
}

.shopx-v3-listing-side {
  display: grid;
  align-content: start;
  gap: 14px;
  justify-items: end;
}

.shopx-v3-results-tile {
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--sx-muted);
  display: grid;
  gap: 4px;
  font-weight: 800;
}

.shopx-v3-results-tile strong {
  color: var(--sx-ink);
  font-size: 1.05rem;
}

.shopx-v3-sort-form {
  width: min(100%, 260px);
}

.shopx-v3-sort-form select {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
}

.shopx-v3-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  gap: 24px 18px;
}

.shopx-v3-empty {
  margin-top: 22px;
}

.shopx-v3-pagination {
  margin-top: 30px;
}

.shopx-pdp {
  padding-top: 20px;
}

.shopx-pdp-breadcrumb {
  margin-bottom: 22px;
}

.shopx-pdp-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.shopx-pdp-gallery-shell,
.shopx-pdp-summary {
  border: 1px solid var(--sx-line);
  border-radius: 36px;
  background: var(--sx-panel);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
}

.shopx-pdp-gallery-shell {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.shopx-pdp-gallery-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shopx-pdp-thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shopx-pdp-thumbs .shopx-product-thumb {
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sx-line);
  background: var(--sx-soft);
}

.shopx-pdp-thumbs .shopx-product-thumb.is-active {
  border-color: rgba(4, 119, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(4, 119, 255, 0.12);
}

.shopx-pdp-stage {
  position: relative;
  min-height: 620px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.08));
  overflow: hidden;
}

.shopx-pdp-stage-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(4, 119, 255, 0.12), transparent 26%), radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.12), transparent 28%);
  z-index: 0;
}

.shopx-pdp-main-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shopx-pdp-stage:hover .shopx-pdp-main-image {
  transform: scale(1.02);
}

.shopx-pdp-zoom-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: scale(1);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 2;
}

.shopx-pdp-stage:hover .shopx-pdp-zoom-image {
  opacity: 1;
  transform: scale(1.6);
}

.shopx-pdp-gallery-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-pdp-gallery-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.shopx-pdp-summary {
  padding: 26px 26px 28px;
  display: grid;
  gap: 22px;
}

.shopx-pdp-summary-head {
  display: grid;
  gap: 10px;
}

.shopx-pdp-summary-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.shopx-pdp-subcopy {
  margin: 0;
  color: var(--sx-muted);
  line-height: 1.8;
}

.shopx-pdp-price-line {
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.shopx-pdp-price-line strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.shopx-pdp-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shopx-pdp-meta-pill {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 6px;
}

.shopx-pdp-meta-pill span {
  color: var(--sx-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shopx-pdp-meta-pill strong {
  color: var(--sx-ink);
  font-size: 1rem;
}

.shopx-pdp-config-panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--sx-line);
}

.shopx-pdp-config-panel .shopx-config-head h2 {
  font-size: 1.25rem;
  margin: 4px 0 0;
  line-height: 1.3;
}

.shopx-pdp-action-row {
  margin-top: 4px;
}

.shopx-pdp-policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-pdp-policy-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.shopx-pdp-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 24px;
  margin-top: 28px;
}

.shopx-pdp-content-card {
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.shopx-pdp-related {
  margin-top: 32px;
}

.shopx-pdp-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1399.98px) {
  .shopx-v3-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .shopx-v3-hero,
  .shopx-pdp-shell,
  .shopx-pdp-lower {
    grid-template-columns: 1fr;
  }

  .shopx-v3-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shopx-v3-listing-grid,
  .shopx-pdp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopx-pdp-stage {
    min-height: 540px;
  }
}

@media (max-width: 991.98px) {
  .shopx-v3-hero-board,
  .shopx-v3-hero-board.is-trio,
  .shopx-v3-hero-board.is-duo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shopx-v3-hero-card.is-primary,
  .shopx-v3-hero-card {
    min-height: 420px;
  }

  .shopx-v3-band-head,
  .shopx-v3-section-head,
  .shopx-v3-listing-hero {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .shopx-v3-listing-side {
    justify-items: stretch;
  }

  .shopx-v3-listing-layout {
    grid-template-columns: 1fr;
  }

  .shopx-v3-campaign {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shopx-v3-campaign-media {
    padding: 0 24px 24px;
  }

  .shopx-v3-campaign-frame {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 28px;
  }

  .shopx-pdp-gallery-grid {
    grid-template-columns: 1fr;
  }

  .shopx-pdp-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .shopx-pdp-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .shopx-v3-display {
    font-size: 2.45rem;
  }

  .shopx-v3-hero-copy {
    padding-right: 0;
  }

  .shopx-v3-product-grid,
  .shopx-v3-listing-grid,
  .shopx-pdp-related-grid {
    grid-template-columns: 1fr;
  }

  .shopx-v3-brand-pill {
    flex-basis: 220px;
  }

  .shopx-v3-category-card {
    flex-basis: 210px;
    min-height: 300px;
  }

  .shopx-v3-listing-hero {
    padding: 26px;
    border-radius: 28px;
  }

  .shopx-pdp-gallery-shell,
  .shopx-pdp-summary,
  .shopx-pdp-content-card {
    border-radius: 28px;
    padding: 22px;
  }

  .shopx-pdp-stage {
    min-height: 420px;
  }

  .shopx-pdp-meta-strip {
    grid-template-columns: 1fr;
  }

  .shopx-pdp-price-line strong {
    font-size: 2.1rem;
  }
}

.shopx-v3-sidebar .shopx-range-wrap {
  height: 32px;
  margin-bottom: 8px;
}

.shopx-v3-sidebar .shopx-price-summary {
  margin-top: 10px;
}


.shopx-home-ref,
.shopx-catalog-ref,
.shopx-detail-ref {
  padding-top: 18px;
}

.shopx-home-brandlane {
  margin-bottom: 34px;
}

.shopx-home-brandlane-track {
  display: flex;
  align-items: center;
  gap: 42px;
  overflow-x: auto;
  padding: 0 8px;
  scrollbar-width: none;
}

.shopx-home-brandlane-track::-webkit-scrollbar,
.shopx-home-hero-rail::-webkit-scrollbar,
.shopx-home-category-track::-webkit-scrollbar,
.shopx-detail-thumbs::-webkit-scrollbar {
  display: none;
}

.shopx-home-brand-item {
  flex: 0 0 180px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--sx-muted);
  text-align: center;
}

.shopx-home-brand-item img {
  max-width: 150px;
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.9;
}

.shopx-home-brand-item small {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sx-muted);
}

.shopx-home-brand-fallback {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* Logosu olmayan markanın baş harfleri; soluk değil ana metin tonunda olmalı. */
  color: var(--text);
}

.shopx-home-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shopx-home-hero-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shopx-home-hero-rail .shopx-home-hero-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
}

.shopx-home-hero-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sx-soft);
  isolation: isolate;
}

.shopx-home-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.shopx-home-hero-card:hover img {
  transform: scale(1.05);
}

.shopx-home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(73, 42, 48, 0.16), rgba(73, 42, 48, 0.6));
  z-index: 1;
}

.shopx-home-hero-content {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  gap: 16px;
  color: #fff;
}

.shopx-home-hero-content h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  font-weight: 900;
}

.shopx-home-hero-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.shopx-home-hero-fallback,
.shopx-home-category-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(4, 119, 255, 0.4), rgba(16, 185, 129, 0.24));
}

.shopx-home-hero {
  position: relative;
  padding-bottom: 30px;
}

.shopx-home-rail-header.is-hero-only {
  display: none;
}

.shopx-home-hero-grid,
.shopx-home-hero-rail,
.shopx-home-hero-slider-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 26px;
  background: #eef4fa;
}

.shopx-home-hero-grid::-webkit-scrollbar,
.shopx-home-hero-rail::-webkit-scrollbar,
.shopx-home-hero-slider-track::-webkit-scrollbar {
  display: none;
}

.shopx-home-hero-rail .shopx-home-hero-card,
.shopx-home-hero-grid .shopx-home-hero-card,
.shopx-home-hero-slider-track .shopx-home-hero-card {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.shopx-home-hero-card {
  min-height: clamp(360px, 40vw, 520px);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.shopx-home-hero-card img {
  filter: saturate(0.94) contrast(1.03);
}

.shopx-home-hero-card.is-active img {
  transform: scale(1.02);
}

.shopx-home-hero-card:hover img {
  transform: scale(1.035);
}

.shopx-home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0.02) 0%, rgba(4, 7, 13, 0.18) 45%, rgba(4, 7, 13, 0.78) 100%),
    linear-gradient(90deg, rgba(4, 7, 13, 0.34), rgba(4, 7, 13, 0.02) 62%);
}

.shopx-home-hero-content {
  left: clamp(24px, 4.5vw, 56px);
  right: clamp(24px, 4.5vw, 56px);
  bottom: clamp(24px, 4vw, 46px);
  gap: 10px;
  max-width: min(680px, calc(100% - 48px));
}

.shopx-home-hero-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
}

.shopx-home-hero-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.shopx-home-hero-content p {
  max-width: 620px;
  font-weight: 850;
  line-height: 1.55;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.shopx-home-hero-content .shopx-light-btn {
  margin-top: 6px;
}

.shopx-home-hero-arrow {
  position: absolute;
  top: calc(50% - 15px);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.shopx-home-hero-arrow:hover {
  transform: translateY(-1px);
  background: #fff;
}

.shopx-home-hero-arrow.is-prev {
  left: clamp(18px, 3vw, 34px);
}

.shopx-home-hero-arrow.is-next {
  right: clamp(18px, 3vw, 34px);
}

.shopx-home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.shopx-home-hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #cbd5e1;
  transition: width 0.2s ease, background 0.2s ease;
}

.shopx-home-hero-dot.is-active {
  width: 13px;
  background: #1f2937;
}

.shopx-home-section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 54px 0 28px;
}

.shopx-home-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 54px 0 28px;
}

.shopx-home-rail-header.is-hero-only {
  justify-content: flex-end;
  margin: 0 0 18px;
}

.shopx-home-rail-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.shopx-home-rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shopx-home-rail-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sx-panel);
  color: var(--sx-ink);
}

.shopx-home-rail-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shopx-home-section-title.is-centered {
  align-items: center;
  text-align: center;
}

.shopx-home-section-title.is-left {
  align-items: flex-start;
}

.shopx-home-section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.shopx-home-section-line {
  width: 86px;
  height: 3px;
  background: var(--sx-accent);
  border-radius: 999px;
}

.shopx-home-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px 18px;
}

.shopx-home-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.shopx-home-category-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.shopx-home-category-card {
  flex: 0 0 170px;
  text-decoration: none;
  color: var(--sx-ink);
  scroll-snap-align: start;
}

.shopx-home-category-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(4, 119, 255, 0.08), rgba(255, 255, 255, 0.92));
  display: grid;
  place-items: center;
}

.shopx-home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopx-home-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c40000;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.shopx-home-category-card strong {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.shopx-home-campaign {
  position: relative;
  width: 100%;
  margin: 58px 0 0;
  height: clamp(280px, 32vw, 380px);
  overflow: hidden;
}

.shopx-home-campaign.is-media-only {
  justify-content: center;
}

.shopx-home-campaign.is-text-only {
  height: auto;
}

.shopx-home-campaign-media {
  height: 100%;
}

.shopx-home-campaign-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sx-line);
  border-radius: 24px;
  background-image:
    linear-gradient(135deg, #092033, #0f6ea3);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
}

.shopx-home-campaign-frame img,
.shopx-home-campaign-frame .shopx-empty-state {
  width: 100%;
  height: 100%;
}

.shopx-home-campaign-frame img {
  position: absolute;
  z-index: 0;
  inset: -16% 0;
  height: 132%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
  transition: transform 0.12s linear;
  will-change: transform;
}

.shopx-home-campaign-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 14, 24, 0.08), rgba(5, 14, 24, 0.74)),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.24), transparent 34%),
    radial-gradient(circle at 12% 10%, rgba(4, 119, 255, 0.20), transparent 30%);
  pointer-events: none;
}

.shopx-home-campaign-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 48px) 0 64px;
}

.shopx-home-campaign-copy h2 {
  max-width: 58%;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.85rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.shopx-home-campaign-copy p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.shopx-home-campaign-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: shopxMarquee 24s linear infinite;
}

.shopx-home-campaign-marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0;
}

.shopx-home-campaign-marquee-mark {
  color: #67e8f9;
  opacity: 0.72;
  font-weight: 700;
  transform: scaleY(1.6);
}

.shopx-catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.shopx-catalog-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 26px;
}

.shopx-catalog-panel {
  padding: 18px;
  border: 1px solid var(--sx-line);
  border-radius: 4px;
  background: var(--sx-panel);
}

.shopx-catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
}

.shopx-catalog-search-row input {
  min-height: 42px;
  border: 1px solid var(--sx-line);
  border-radius: 0;
  background: var(--sx-panel);
  color: var(--sx-ink);
  padding: 0 12px;
}

.shopx-catalog-search-button,
.shopx-catalog-filter-button {
  border: 0;
  background: var(--sx-accent);
  color: #fff;
  font-weight: 900;
}

.shopx-catalog-search-button {
  min-height: 42px;
}

.shopx-catalog-filter-group {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.shopx-catalog-filter-group h3,
.shopx-catalog-categories .shopx-sidebar-title span {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 900;
}

.shopx-catalog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.shopx-catalog-filter-button {
  min-width: 98px;
  min-height: 40px;
  padding: 0 18px;
}

.shopx-catalog-filter-panel .shopx-price-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 800;
}

.shopx-catalog-categories .shopx-sidebar-title {
  margin-bottom: 18px;
}

.shopx-catalog-categories .shopx-category-list {
  max-height: 360px;
  gap: 0;
}

.shopx-catalog-categories .shopx-category-list a {
  min-height: 54px;
  padding: 0;
  border-bottom: 1px solid var(--sx-line);
  border-radius: 0;
}

.shopx-catalog-categories .shopx-category-list a:last-child {
  border-bottom: 0;
}

.shopx-catalog-main {
  min-width: 0;
}

.shopx-catalog-header {
  padding: 42px 54px;
  border: 1px solid var(--sx-line);
  border-radius: 4px;
  background: var(--sx-panel);
}

.shopx-catalog-header h1 {
  margin: 14px 0 22px;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.98;
  font-weight: 900;
}

.shopx-catalog-desc {
  margin: 0;
  max-width: 58ch;
  color: var(--sx-muted);
  line-height: 1.8;
}

.shopx-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.shopx-catalog-results {
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-catalog-sort {
  width: min(100%, 240px);
}

.shopx-catalog-sort select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sx-line);
  border-radius: 0;
  background: var(--sx-panel);
  color: var(--sx-ink);
  padding: 0 12px;
}

.shopx-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
  margin-top: 38px;
}

.shopx-catalog-pagination {
  margin-top: 32px;
}

.shopx-home-ref .shopx-product-card,
.shopx-catalog-ref .shopx-product-card,
.shopx-detail-ref .shopx-product-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shopx-home-ref .shopx-product-media,
.shopx-catalog-ref .shopx-product-media,
.shopx-detail-ref .shopx-related-grid .shopx-product-media {
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

.shopx-home-ref .shopx-product-body h3,
.shopx-catalog-ref .shopx-product-body h3,
.shopx-detail-ref .shopx-related-grid .shopx-product-body h3 {
  font-size: var(--product-title-size, var(--font-size-md));
}

.shopx-home-ref .shopx-hover-actions,
.shopx-catalog-ref .shopx-hover-actions,
.shopx-detail-ref .shopx-hover-actions {
  display: none;
}

.shopx-home-ref .shopx-product-meta span:last-child,
.shopx-catalog-ref .shopx-product-meta span:last-child,
.shopx-detail-ref .shopx-product-meta span:last-child {
  display: none;
}

.shopx-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.shopx-detail-gallery {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 80;
}

.shopx-detail-stage {
  position: relative;
  min-height: clamp(360px, 42vw, 520px);
  overflow: visible;
  border: 1px solid var(--sx-line);
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}

.shopx-detail-main-image,
.shopx-detail-zoom-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.shopx-detail-main-image {
  position: absolute;
  inset: 0;
  display: block;
  background: #fff;
  transition: transform 0.22s ease;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.shopx-detail-zoom-image {
  position: absolute;
  inset: 0;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: scale(1);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  display: none;
}

.shopx-detail-stage:hover .shopx-detail-zoom-image {
  opacity: 0;
  transform: scale(1);
}

.shopx-detail-lens {
  position: absolute;
  z-index: 4;
  width: min(42%, 200px);
  aspect-ratio: 1 / 1;
  left: var(--zoom-x, 50%);
  top: var(--zoom-y, 50%);
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.42);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0.02);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.shopx-detail-stage.is-zooming .shopx-detail-lens {
  display: none;
}

.shopx-detail-stage.is-click-zoomed {
  cursor: zoom-out;
}

.shopx-detail-stage.is-click-zoomed .shopx-detail-main-image {
  transform: scale(2.05);
}

.shopx-detail-zoom-pane {
  position: absolute;
  z-index: 120;
  top: 0;
  left: calc(100% + 16px);
  width: clamp(320px, 42vw, 620px);
  max-width: calc(100vw - 32px);
  height: 100%;
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 230%;
  background-position: var(--zoom-x, 50%) var(--zoom-y, 50%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.shopx-detail-stage.is-zooming .shopx-detail-zoom-pane {
  display: block;
}

.shopx-detail-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.shopx-detail-thumbs .shopx-product-thumb {
  width: 68px;
  min-width: 68px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.shopx-detail-thumbs .shopx-product-thumb.is-active {
  border-color: #f27a1a;
  box-shadow: 0 0 0 1px #f27a1a;
}

.shopx-detail-thumbs .shopx-product-thumb:hover {
  border-color: #f27a1a;
  transform: translateY(-1px);
}

.shopx-detail-thumbs .shopx-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

@media (max-width: 767.98px), (hover: none) {
  .shopx-detail-stage {
    overflow: hidden;
    cursor: default;
  }

  .shopx-detail-zoom-pane,
  .shopx-detail-lens,
  .shopx-detail-stage.is-zooming .shopx-detail-zoom-pane,
  .shopx-detail-stage.is-zooming .shopx-detail-lens {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  .shopx-detail-zoom-pane {
    left: auto;
    right: 14px;
    width: min(360px, calc(100vw - 44px));
    height: min(78%, 430px);
  }
}

.shopx-detail-summary {
  display: grid;
  gap: 14px;
}

.shopx-detail-breadcrumb {
  margin-bottom: 0;
}

.shopx-detail-category {
  color: var(--sx-muted);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shopx-detail-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.02;
  font-weight: 900;
}

.shopx-detail-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.shopx-detail-price-line strong {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1;
}

.shopx-detail-price-old {
  color: var(--sx-muted);
  text-decoration: line-through;
  font-weight: 800;
}

.shopx-detail-shipping {
  color: var(--sx-muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.shopx-detail-copy {
  margin: 0;
  color: var(--sx-muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.shopx-detail-config-block {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--sx-line);
}

.shopx-detail-config-block h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
}

.shopx-detail-ref .shopx-config-grid {
  gap: 12px;
}

.shopx-detail-ref .shopx-config-card,
.shopx-detail-ref .shopx-extra-card {
  padding: 12px;
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  background: var(--sx-panel);
}

.shopx-detail-ref .shopx-choice-grid,
.shopx-detail-ref .shopx-extra-grid {
  gap: 10px;
}

.shopx-detail-action-row {
  margin-top: 4px;
}

.shopx-detail-action-row .shopx-product-qty-box {
  min-width: 116px;
}

.shopx-detail-meta {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--sx-line);
  color: var(--sx-muted);
  font-size: 0.88rem;
}

.shopx-detail-meta strong {
  color: var(--sx-ink);
}

.shopx-detail-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 20px;
  margin-top: 30px;
  align-items: start;
}

.shopx-detail-card {
  padding: 22px;
  border: 1px solid var(--sx-line);
  border-radius: 22px;
  background: var(--sx-panel);
}

.shopx-detail-mobile-switch {
  display: none;
}

.shopx-detail-bottom > article {
  min-width: 0;
}

.shopx-detail-related {
  margin-top: 36px;
}

.shopx-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
}

@media (max-width: 1199.98px) {
  .shopx-product-detail-page {
    width: min(1260px, calc(100vw - 28px));
  }

  .shopx-home-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shopx-detail-layout {
    grid-template-columns: 1fr;
  }

  .shopx-detail-bottom {
    grid-template-columns: 1fr;
  }

  .shopx-detail-related-grid,
  .shopx-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .shopx-home-hero-grid,
  .shopx-catalog-layout {
    grid-template-columns: 1fr;
  }

  .shopx-home-hero-rail .shopx-home-hero-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .shopx-home-campaign {
    height: 320px;
    padding-top: 0;
    overflow: hidden;
  }

  .shopx-home-campaign-media {
    width: 100%;
    height: 100%;
  }

  .shopx-home-campaign-frame {
    position: relative;
    top: auto;
    width: 100%;
    height: 100%;
  }

  .shopx-catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shopx-catalog-sort {
    width: 100%;
  }

  .shopx-catalog-sort select {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .shopx-detail-mobile-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
  }

  .shopx-detail-mobile-switch__btn {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--sx-line);
    border-radius: 999px;
    background: var(--sx-panel);
    color: var(--sx-muted);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .shopx-detail-mobile-switch__btn.is-active {
    background: var(--sx-accent);
    border-color: var(--sx-accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(4, 119, 255, 0.22);
  }

  .shopx-home-hero-card {
    min-height: 360px;
  }

  .shopx-home-campaign {
    padding: 0;
  }

  .shopx-home-campaign-media {
    width: 100%;
  }

  .shopx-home-campaign-frame {
    height: 340px;
    border-radius: 18px;
  }

  .shopx-home-campaign-copy {
    width: min(100% - 24px, 1180px);
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0 58px;
    max-width: none;
  }

  .shopx-home-campaign-copy h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .shopx-home-campaign-copy p {
    max-width: 100%;
  }

  .shopx-home-hero-rail .shopx-home-hero-card {
    flex-basis: 100%;
  }

  .shopx-home-rail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shopx-home-rail-header.is-hero-only {
    align-items: flex-end;
  }

  .shopx-home-hero-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .shopx-home-featured-grid,
  .shopx-catalog-grid,
  .shopx-detail-related-grid {
    grid-template-columns: 1fr;
  }

  .shopx-catalog-header {
    padding: 28px 24px;
  }

  .shopx-catalog-header h1 {
    font-size: 2.5rem;
  }

  .shopx-detail-stage {
    min-height: 420px;
  }

  .shopx-detail-meta {
    flex-direction: column;
    gap: 8px;
  }

  .shopx-detail-bottom > [data-detail-panel]:not(.is-active-mobile-panel) {
    display: none;
  }
}

.shopx-product-detail-page--assigned {
  width: min(1480px, calc(100vw - 32px));
}

.product-assigned-page-shell,
.product-assigned-page-inner {
  min-height: 220px;
}

.product-assigned-page-inner {
  border-radius: 32px;
  overflow: hidden;
  background: var(--sx-panel);
  border: 1px solid var(--sx-line);
  box-shadow: var(--sx-shadow);
}

.shopx-sale-badge--detail {
  top: 22px;
  left: 22px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.shopx-empty-state.compact {
  min-height: 160px;
  border-radius: 28px;
}

.shopx-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 30px;
  align-items: start;
}

.shopx-product-gallery,
.shopx-product-summary,
.shopx-product-content-card {
  min-width: 0;
}

.shopx-product-stage {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(135deg, rgba(4, 119, 255, 0.12), rgba(15, 23, 42, 0.04));
  box-shadow: var(--sx-shadow);
}

.shopx-product-main-image,
.shopx-product-zoom-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopx-product-main-image {
  transition: transform 0.45s ease;
}

.shopx-product-zoom-image {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.shopx-product-stage:hover .shopx-product-main-image {
  transform: scale(1.04);
}

.shopx-product-stage:hover .shopx-product-zoom-image {
  opacity: 0.92;
  transform: scale(1.7);
}

.shopx-detail-stage .shopx-detail-main-image,
.shopx-detail-stage .shopx-detail-zoom-image {
  object-fit: contain;
}

.shopx-detail-stage:hover .shopx-detail-main-image {
  transform: none;
}

.shopx-detail-stage.is-click-zoomed:hover .shopx-detail-main-image,
.shopx-detail-stage.is-click-zoomed .shopx-detail-main-image,
.shopx-detail-main-image.is-click-zoomed {
  transform: scale(2.15);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.shopx-detail-stage.is-click-zoomed .shopx-detail-zoom-pane {
  display: none;
}

.shopx-product-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.shopx-product-thumb {
  position: relative;
  border: 1px solid transparent;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--sx-panel);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.shopx-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopx-product-thumb:hover,
.shopx-product-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(4, 119, 255, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.shopx-product-summary {
  display: grid;
  gap: 18px;
  padding: 14px 4px 4px;
}

.shopx-product-eyebrow {
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sx-muted);
}

.shopx-product-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.shopx-product-price-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shopx-product-price-line strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
}

.shopx-product-price-old {
  color: var(--sx-muted);
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 800;
}

.shopx-product-shipping {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #0f9f6e;
  font-size: 0.84rem;
  font-weight: 900;
}

.shopx-product-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--sx-line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.03);
  color: var(--sx-muted);
  font-weight: 800;
}

.shopx-product-addon-row strong {
  color: var(--sx-ink);
}

.shopx-product-addon-row.is-hidden {
  display: none;
}

.shopx-product-copy,
.shopx-product-richtext {
  color: var(--sx-muted);
  line-height: 1.8;
}

.shopx-product-richtext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shopx-product-copy {
  max-width: 60ch;
  margin: 0;
}

.shopx-product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shopx-product-meta-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--sx-line);
  border-radius: 26px;
  background: var(--sx-panel);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.shopx-product-meta-card span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sx-muted);
}

.shopx-product-meta-card strong {
  font-size: 1rem;
  color: var(--sx-ink);
}

.shopx-config-panel {
  display: grid;
  gap: 16px;
}

.shopx-config-head h2,
.shopx-content-card-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 1.2;
  font-weight: 900;
}

.shopx-config-grid,
.shopx-extra-grid {
  display: grid;
  gap: 14px;
}

.shopx-config-card,
.shopx-extra-card {
  border: 1px solid var(--sx-line);
  border-radius: 30px;
  background: var(--sx-panel);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.shopx-config-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.shopx-config-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shopx-config-card-head strong {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--sx-ink);
}

.shopx-config-card-head span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sx-muted);
}

.shopx-config-card .form-control,
.shopx-config-card .form-select,
.shopx-review-form .form-control {
  min-height: 46px;
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sx-ink);
  padding: 0 14px;
}

.shopx-review-form .form-control {
  padding: 12px 14px;
}

.shopx-upload-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px dashed rgba(4, 119, 255, 0.28);
  border-radius: 24px;
  background: rgba(4, 119, 255, 0.04);
  cursor: pointer;
}

.shopx-upload-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--sx-ink);
}

.shopx-upload-field small {
  color: var(--sx-muted);
  line-height: 1.5;
}

.shopx-upload-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.shopx-choice-grid,
.shopx-extra-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shopx-choice-chip,
.shopx-extra-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shopx-choice-chip {
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--sx-line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.shopx-choice-chip input,
.shopx-extra-card input {
  margin-top: 4px;
  accent-color: var(--sx-accent);
}

.shopx-choice-chip span,
.shopx-extra-card span {
  display: grid;
  gap: 4px;
  color: var(--sx-ink);
  font-weight: 800;
}

.shopx-choice-chip small,
.shopx-extra-card small {
  color: var(--sx-muted);
  font-weight: 700;
}

.shopx-choice-chip.is-selected,
.shopx-choice-chip:hover,
.shopx-extra-card.is-selected {
  border-color: rgba(4, 119, 255, 0.28);
  background: rgba(4, 119, 255, 0.07);
  transform: translateY(-1px);
}

.shopx-extra-card {
  min-height: 84px;
  padding: 14px 16px;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.shopx-extra-card em {
  font-style: normal;
  white-space: nowrap;
  color: var(--sx-accent);
  font-weight: 900;
}

.shopx-product-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shopx-product-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--sx-panel);
  border: 1px solid var(--sx-line);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.shopx-product-qty-box button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--sx-ink);
  font-size: 1rem;
  font-weight: 900;
}

.shopx-product-qty-box input {
  width: 64px;
  border: 0;
  background: transparent;
  color: var(--sx-ink);
  text-align: center;
  font-size: 0.96rem;
  font-weight: 900;
}

.shopx-product-qty-box input:focus {
  outline: none;
}

.shopx-product-add-btn {
  flex: 1 1 280px;
  min-height: 52px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(4, 119, 255, 0.22);
}

.shopx-product-add-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.shopx-product-footnote {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--sx-muted);
  font-size: 0.9rem;
}

.shopx-product-footnote strong {
  color: var(--sx-ink);
}

.shopx-product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  margin-top: 34px;
}

.shopx-product-content-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--sx-line);
  border-radius: 24px;
  background: var(--sx-panel);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.shopx-content-card-head {
  display: grid;
  gap: 2px;
}

.shopx-product-richtext > :first-child,
.shopx-review-list > :first-child {
  margin-top: 0;
}

.shopx-product-richtext > :last-child,
.shopx-review-list > :last-child {
  margin-bottom: 0;
}

.shopx-review-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.03);
}

.star-rating-input {
  display: inline-flex;
  gap: 6px;
}

.shopx-rating-star {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: #f59e0b;
}

.shopx-rating-star i {
  font-size: 0.92rem;
}

.shopx-review-list {
  display: grid;
  gap: 12px;
}

.shopx-review-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--sx-line);
}

.shopx-review-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.shopx-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(4, 119, 255, 0.12);
  color: var(--sx-accent);
  font-weight: 900;
}

.shopx-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shopx-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.shopx-review-head strong {
  color: var(--sx-ink);
  font-size: 0.94rem;
}

.shopx-review-head span,
.shopx-review-item p {
  color: var(--sx-muted);
  font-size: 0.9rem;
}

.shopx-review-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 6px;
  color: #f59e0b;
}

.shopx-review-item p {
  margin: 0;
  line-height: 1.7;
}

.shopx-related-section {
  margin-top: 56px;
}

@media (max-width: 1199.98px) {
  .shopx-product-hero,
  .shopx-product-content-grid {
    grid-template-columns: 1fr;
  }

  .shopx-product-thumb-row {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .shopx-product-stage,
  .shopx-product-content-card,
  .product-assigned-page-inner {
    border-radius: 28px;
  }

  .shopx-product-summary {
    padding-inline: 0;
  }

  .shopx-product-meta-grid,
  .shopx-choice-grid,
  .shopx-extra-grid {
    grid-template-columns: 1fr;
  }

  .shopx-product-action-row,
  .shopx-product-footnote {
    flex-direction: column;
    align-items: stretch;
  }

  .shopx-product-qty-box {
    width: 100%;
    justify-content: space-between;
  }

  .shopx-product-qty-box input {
    flex: 1 1 auto;
  }

  .shopx-product-content-card {
    padding: 22px;
  }

  .shopx-review-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .shopx-product-title {
    font-size: 2rem;
  }

  .shopx-product-price-line strong {
    font-size: 1.8rem;
  }

  .shopx-product-hero {
    gap: 22px;
  }

  .shopx-config-card,
  .shopx-extra-card,
  .shopx-product-meta-card,
  .shopx-review-form,
  .shopx-product-content-card {
    border-radius: 24px;
  }
}


@media (max-width: 991.98px) {
  .shopx-home-ref,
  .shopx-catalog-ref,
  .shopx-detail-ref,
  .shopx-product-detail-page {
    width: min(100vw - 18px, 1440px);
    padding-top: 10px;
  }

  .shopx-home-brandlane {
    margin-bottom: 22px;
  }

  .shopx-home-brandlane-track {
    gap: 22px;
    padding-inline: 2px;
  }

  .shopx-home-brand-item {
    flex-basis: 132px;
  }

  .shopx-home-brand-item img {
    max-width: 120px;
    max-height: 28px;
  }

  .shopx-home-hero-grid {
    gap: 12px;
  }

  .shopx-home-hero-card {
    min-height: 330px;
  }

  .shopx-home-hero-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 10px;
  }

  .shopx-home-hero-content h2 {
    font-size: clamp(1.25rem, 7vw, 1.8rem);
  }

  .shopx-home-hero-content p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .shopx-home-section-title,
  .shopx-home-rail-header {
    margin: 34px 0 18px;
  }

  .shopx-home-section-title h2,
  .shopx-home-rail-header h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .shopx-home-campaign {
    margin-top: 34px;
  }

  .shopx-home-campaign-frame {
    border-radius: 18px;
  }

  .shopx-catalog-layout {
    gap: 18px;
  }

  .shopx-catalog-sidebar {
    gap: 14px;
  }

  .shopx-catalog-panel,
  .shopx-catalog-header,
  .shopx-detail-card,
  .shopx-detail-stage,
  .shopx-product-content-card {
    border-radius: 18px;
  }

  .shopx-catalog-header {
    padding: 20px;
  }

  .shopx-catalog-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .shopx-catalog-desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .shopx-detail-layout {
    gap: 20px;
  }

  .shopx-detail-stage {
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .shopx-detail-title {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .shopx-detail-copy {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .shopx-filter-toggle {
    position: fixed;
    left: 18px;
    bottom: 24px;
    z-index: 1041;
    min-height: 50px;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 0.88rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  }

  .shopx-filter-panel.shopx-catalog-sidebar {
    position: fixed;
    inset: auto 12px 12px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: min(82dvh, 720px);
    height: auto;
    z-index: 1062;
    overflow-y: auto;
    background: var(--sx-bg);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.28s cubic-bezier(.2, .7, .2, 1);
  }

  .shopx-filter-panel.shopx-catalog-sidebar.is-open {
    transform: translateY(0);
  }

  .shopx-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1061;
    display: block;
    border: 0;
    background: rgba(2, 6, 23, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.shopx-filter-modal-open .shopx-filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.shopx-filter-modal-open {
    overflow: hidden;
  }

  .shopx-product-detail-page--assigned {
    width: min(100vw - 18px, 1480px);
  }

  .product-assigned-page-shell {
    min-height: 0;
  }

  .product-assigned-page-inner {
    min-height: 0;
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-assigned-page-inner img,
  .product-assigned-page-inner video,
  .product-assigned-page-inner iframe,
  .product-assigned-page-inner canvas,
  .product-assigned-page-inner table {
    max-width: 100%;
  }

  .product-assigned-page-inner img,
  .product-assigned-page-inner video {
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .shopx-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .shopx-home-hero-rail {
    gap: 12px;
  }

  .shopx-home-hero-rail .shopx-home-hero-card {
    flex-basis: 86%;
    min-width: 0;
  }

  .shopx-home-rail-header {
    flex-direction: row;
    align-items: center;
  }

  .shopx-home-rail-header.is-hero-only {
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
  }

  .shopx-home-rail-button {
    width: 38px;
    height: 38px;
  }

  .shopx-home-featured-grid,
  .shopx-catalog-grid,
  .shopx-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .shopx-product-body {
    padding-top: 9px;
  }

  .shopx-product-body h3 {
    font-size: var(--product-title-size, var(--font-size-md));
    line-height: var(--line-height-tight, 1.25);
    min-height: 2.55em;
  }

  .shopx-product-meta {
    font-size: var(--product-meta-size, var(--font-size-xs));
    gap: 5px;
  }

  .shopx-price-row {
    gap: 5px;
    font-size: var(--product-body-size, var(--font-size-sm));
  }

  .shopx-hover-actions {
    opacity: 1;
    transform: none;
    right: 8px;
    bottom: 8px;
  }

  .shopx-icon-action {
    width: 34px;
    height: 34px;
  }

  .shopx-sale-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .shopx-home-category-track {
    gap: 12px;
  }

  .shopx-home-category-card {
    flex-basis: 132px;
  }

  .shopx-home-category-card strong {
    margin-top: 9px;
    font-size: 0.84rem;
  }

  .shopx-home-category-badge {
    top: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .shopx-home-campaign-frame {
    height: 300px;
    border-radius: 16px;
  }

  .shopx-home-campaign-copy {
    height: 100%;
    padding: 22px 0 52px;
  }

  .shopx-home-campaign-copy p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .shopx-filter-toggle {
    position: fixed;
    left: 18px;
    bottom: 24px;
    z-index: 1041;
    min-height: 50px;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 0.88rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  }

  .shopx-filter-panel {
    width: min(92vw, 330px);
    padding: 12px;
  }

  .shopx-filter-panel.shopx-catalog-sidebar {
    position: fixed;
    inset: auto 10px 10px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: min(82dvh, 720px);
    height: auto;
    z-index: 1062;
    overflow-y: auto;
    background: var(--sx-bg);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.28s cubic-bezier(.2, .7, .2, 1);
  }

  .shopx-filter-panel.shopx-catalog-sidebar.is-open {
    transform: translateY(0);
  }

  .shopx-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1061;
    display: block;
    border: 0;
    background: rgba(2, 6, 23, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.shopx-filter-modal-open .shopx-filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.shopx-filter-modal-open {
    overflow: hidden;
  }

  .shopx-catalog-panel {
    padding: 14px;
  }

  .shopx-catalog-search-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .shopx-catalog-toolbar {
    gap: 10px;
  }

  .shopx-catalog-results {
    font-size: 0.82rem;
  }

  .shopx-pagination {
    gap: 6px;
  }

  .shopx-pagination a {
    min-width: 36px;
    height: 36px;
  }

  .shopx-detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .shopx-detail-thumbs .shopx-product-thumb {
    flex: 0 0 72px;
    border-radius: 16px;
  }

  .shopx-detail-summary {
    gap: 12px;
  }

  .shopx-detail-price-line strong {
    font-size: 1.75rem;
  }

  .shopx-detail-action-row {
    display: grid;
    grid-template-columns: minmax(108px, 118px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .shopx-detail-action-row .shopx-product-qty-box,
  .shopx-detail-action-row .shopx-product-add-btn {
    width: 100%;
  }

  .shopx-detail-action-row .shopx-product-qty-box {
    min-width: 0;
    padding: 5px;
    gap: 4px;
    justify-content: space-between;
    border-radius: 22px;
  }

  .shopx-detail-action-row .shopx-product-qty-box button {
    width: 34px;
    height: 34px;
  }

  .shopx-detail-action-row .shopx-product-qty-box input {
    width: 34px;
    flex: 0 0 34px;
    font-size: 0.92rem;
  }

  .shopx-detail-action-row .shopx-product-add-btn {
    min-width: 0;
    min-height: 50px;
    padding-inline: 16px;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(4, 119, 255, 0.2);
  }

  .shopx-detail-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shopx-detail-card {
    padding: 18px;
  }

  .shopx-config-card,
  .shopx-extra-card {
    border-radius: 18px;
    padding: 14px;
  }

  .shopx-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .shopx-detail-gallery,
  .shopx-detail-summary,
  .shopx-detail-bottom,
  .shopx-detail-related {
    min-width: 0;
  }

  .shopx-detail-stage {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .shopx-detail-main-image,
  .shopx-detail-zoom-image {
    position: absolute;
    inset: 0;
  }

  .shopx-detail-breadcrumb {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 0.78rem;
  }

  .shopx-detail-category,
  .shopx-detail-shipping,
  .shopx-detail-meta {
    font-size: 0.84rem;
  }

  .shopx-detail-price-line {
    gap: 8px;
  }

  .shopx-product-addon-row {
    padding: 12px;
    border-radius: 16px;
    font-size: 0.84rem;
  }

  .shopx-choice-grid,
  .shopx-extra-grid,
  .shopx-detail-ref .shopx-choice-grid,
  .shopx-detail-ref .shopx-extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shopx-choice-chip,
  .shopx-extra-card {
    min-height: 0;
  }

  .shopx-product-qty-box {
    padding: 6px;
  }

  .shopx-product-qty-box button {
    width: 38px;
    height: 38px;
  }

  .shopx-product-qty-box input {
    width: 64px;
  }

  .shopx-product-add-btn {
    min-height: 50px;
  }

  .shopx-review-form {
    padding: 16px;
    border-radius: 18px;
  }

  .shopx-rating-star {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 430px) {
  .shopx-home-ref,
  .shopx-catalog-ref,
  .shopx-detail-ref,
  .shopx-product-detail-page {
    width: min(100vw - 12px, 1440px);
  }

  .shopx-home-hero-card {
    min-height: 292px;
  }

  .shopx-home-hero-rail .shopx-home-hero-card {
    flex-basis: 90%;
  }

  .shopx-home-featured-grid,
  .shopx-catalog-grid,
  .shopx-detail-related-grid {
    gap: 18px 10px;
  }

  .shopx-home-category-card {
    flex-basis: 118px;
  }

  .shopx-catalog-header {
    padding: 16px;
  }

  .shopx-catalog-header h1 {
    font-size: 1.75rem;
  }

  .shopx-detail-stage {
    border-radius: 16px;
  }

  .shopx-detail-title {
    font-size: 1.52rem;
  }

  .shopx-detail-action-row {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 8px;
  }

  .shopx-detail-action-row .shopx-product-add-btn {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.95rem;
  }

  .shopx-detail-action-row .shopx-product-qty-box {
    border-radius: 20px;
  }

  .shopx-sale-badge--detail {
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .shopx-detail-price-line strong {
    font-size: 1.42rem;
  }

  .shopx-detail-copy,
  .shopx-review-head span,
  .shopx-review-item p,
  .shopx-product-richtext {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .shopx-product-detail-page--assigned {
    width: min(100vw - 12px, 1480px);
  }

  .product-assigned-page-inner {
    border-radius: 16px;
  }
}

.shopx-filter-head [data-filter-close] {
  display: none;
}

.product-assigned-page-shell,
.product-assigned-page-inner {
  overflow: visible !important;
}

.product-assigned-page-inner {
  contain: none;
}

@media (min-width: 992px) {
  .shopx-filter-backdrop {
    display: none !important;
  }

  body.shopx-filter-modal-open {
    overflow: auto !important;
  }
}

@media (max-width: 991.98px) {
  .shopx-filter-head [data-filter-close] {
    display: grid;
  }

  body.shopx-filter-modal-open {
    overflow: auto !important;
  }

  .shopx-filter-panel.shopx-catalog-sidebar:not(.is-open) {
    pointer-events: none;
  }

  .shopx-filter-panel.shopx-catalog-sidebar.is-open {
    pointer-events: auto;
  }

  .product-assigned-page-inner {
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
  }
}

@media (max-width: 991.98px) {
  .shopx-filter-toggle {
    z-index: 1090;
  }

  .shopx-filter-panel.shopx-catalog-sidebar {
    inset: calc(env(safe-area-inset-top, 0px) + 74px) 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    z-index: 1105;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, calc(100dvh + 24px), 0);
  }

  .shopx-filter-panel.shopx-catalog-sidebar.is-open {
    transform: translate3d(0, 0, 0);
  }

  .shopx-filter-backdrop {
    z-index: 1100;
    background: rgba(2, 6, 23, 0.28);
  }

  body.shopx-filter-modal-open .shopx-filter-backdrop {
    pointer-events: none !important;
  }
}

@media (max-width: 575.98px) {
  .shopx-filter-panel.shopx-catalog-sidebar {
    inset: calc(env(safe-area-inset-top, 0px) + 66px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
    border-radius: 18px;
  }

  .shopx-catalog-panel {
    padding: 12px;
  }
}

.shopx-floating-cart {
  z-index: 1200;
}

.shopx-filter-toggle {
  z-index: 1201;
}

body.shopx-filter-modal-open .shopx-floating-cart,
body.shopx-filter-modal-open .shopx-filter-toggle {
  opacity: 0;
  pointer-events: none;
}


.shopx-home-hero .shopx-home-hero-grid,
.shopx-home-hero .shopx-home-hero-rail,
.shopx-home-hero .shopx-home-hero-slider-track {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 26px;
}

.shopx-home-hero .shopx-home-hero-card,
.shopx-home-hero .shopx-home-hero-rail .shopx-home-hero-card,
.shopx-home-hero .shopx-home-hero-grid .shopx-home-hero-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: clamp(360px, 40vw, 520px);
  border-radius: 26px;
}

@media (max-width: 767.98px) {
  .shopx-home-hero .shopx-home-hero-card,
  .shopx-home-hero .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-hero .shopx-home-hero-grid .shopx-home-hero-card {
    flex-basis: 100%;
    min-width: 100%;
    min-height: 330px;
  }

  .shopx-home-hero-arrow {
    width: 36px;
    height: 36px;
  }
}


.shopx-home-modern {
  --shopx-home-card: rgba(255, 255, 255, 0.92);
  --shopx-home-card-solid: #ffffff;
  --shopx-home-ink: #151824;
  --shopx-home-muted: #667085;
  --shopx-home-line: rgba(15, 23, 42, 0.08);
  --shopx-home-primary: #0f5f9c;
  --shopx-home-primary-strong: #063c68;
  --shopx-home-accent: #f7b731;
  --shopx-home-danger: #ef4444;
  --shopx-home-shadow: 0 22px 70px rgba(17, 24, 39, 0.11);
  --shopx-home-soft: 0 12px 35px rgba(17, 24, 39, 0.08);
  width: min(1240px, calc(100vw - 28px));
  margin-inline: auto;
  padding: 22px 0 36px;
  gap: 0;
  position: relative;
  isolation: isolate;
}

.shopx-home-modern::before,
.shopx-home-modern::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.shopx-home-modern::before {
  top: -42px;
  right: -38px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(15, 95, 156, 0.18), transparent 68%);
}

.shopx-home-modern::after {
  left: -44px;
  bottom: 120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(247, 183, 49, 0.12), transparent 72%);
}

.shopx-home-topbar {
  margin-bottom: 14px;
}

.shopx-home-topbar-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #081827;
  color: #ffffff;
}

.shopx-home-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.shopx-home-topbar-item i {
  color: var(--shopx-home-accent);
}

.shopx-home-topbar-item b {
  color: #ffffff;
  font-weight: 900;
}

.shopx-home-topbar-item small {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.shopx-home-toolbar {
  position: sticky;
  top: 88px;
  z-index: 30;
  margin: 0 0 24px;
}

.shopx-home-toolbar-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--shopx-home-card) 94%, transparent);
  box-shadow: var(--shopx-home-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.shopx-home-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.shopx-home-search-icon {
  width: 52px;
  display: grid;
  place-items: center;
  color: var(--shopx-home-primary);
  font-size: 1.05rem;
}

.shopx-home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--shopx-home-ink);
  font-size: 0.96rem;
  font-weight: 700;
  outline: 0;
}

.shopx-home-search input::placeholder {
  color: var(--shopx-home-muted);
  font-weight: 600;
}

.shopx-home-search button {
  margin: 4px;
  min-width: 112px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--shopx-home-primary);
  color: var(--button-text, #ffffff);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.shopx-home-search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 35;
  overflow: hidden auto;
  max-height: 380px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 24px;
  padding: 10px;
  background: color-mix(in srgb, var(--shopx-home-card-solid) 92%, #ffffff 8%);
  box-shadow: 0 26px 58px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.shopx-home-search-results::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.shopx-home-search-results > * {
  position: relative;
  z-index: 1;
}

.shopx-home-search-results .shop-live-result-item,
.shopx-home-search-results .shop-live-result-loading,
.shopx-home-search-results .shop-live-result-empty {
  border: 1px solid color-mix(in srgb, var(--shopx-home-line) 78%, transparent);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.shopx-home-search-results .shop-live-result-item {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  margin-bottom: 8px;
}

.shopx-home-search-results .shop-live-result-item:last-child {
  margin-bottom: 0;
}

.shopx-home-search-results .shop-live-result-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
  border-color: color-mix(in srgb, var(--shopx-home-primary) 28%, var(--shopx-home-line));
}

.shopx-home-search-results .shop-live-result-media,
.shopx-home-search-results .shop-live-result-media img,
.shopx-home-search-results .shop-live-result-fallback {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.shopx-home-search-results .shop-live-result-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.shopx-home-search-results .shop-live-result-price {
  color: var(--shopx-home-primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.shopx-home-search-results .shop-live-result-item > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--shopx-home-primary);
  background: rgba(37, 99, 235, 0.1);
}

.shopx-home-search-results .shop-live-result-loading,
.shopx-home-search-results .shop-live-result-empty {
  min-height: 76px;
  padding: 20px 16px;
}

.shopx-home-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shopx-home-action {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--shopx-home-card-solid);
  color: var(--shopx-home-ink);
  box-shadow: var(--shopx-home-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.shopx-home-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shopx-home-shadow);
}

.shopx-home-action i {
  font-size: 1.15rem;
}

.shopx-home-action-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shopx-home-danger);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 900;
}

.shopx-home-modern .shopx-home-hero {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.shopx-home-modern .shopx-home-hero-rail,
.shopx-home-modern .shopx-home-hero-slider-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 34px;
  border: 1px solid var(--shopx-home-line);
  background: #0b1726;
  box-shadow: var(--shopx-home-shadow);
}

.shopx-home-modern .shopx-home-hero-rail::-webkit-scrollbar,
.shopx-home-modern .shopx-home-product-rail::-webkit-scrollbar,
.shopx-home-modern .shopx-home-category-track::-webkit-scrollbar,
.shopx-home-modern .shopx-home-brandlane-track::-webkit-scrollbar {
  display: none;
}

.shopx-home-modern .shopx-home-hero-card,
.shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
.shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: clamp(430px, 54vw, 610px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: none;
  scroll-snap-align: start;
}

.shopx-home-modern .shopx-home-hero-card img {
  filter: saturate(0.98) contrast(1.02);
}

.shopx-home-modern .shopx-home-hero-card.is-active img {
  transform: scale(1.02);
}

.shopx-home-modern .shopx-home-hero-card:hover img {
  transform: scale(1.045);
}

.shopx-home-modern .shopx-home-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 35, 0.56), rgba(7, 20, 35, 0.16) 58%, rgba(7, 20, 35, 0.42)),
    linear-gradient(180deg, rgba(7, 20, 35, 0.08), rgba(7, 20, 35, 0.72));
}

.shopx-home-modern .shopx-home-hero-content {
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(30px, 7vw, 82px);
  max-width: 610px;
  gap: 18px;
}

.shopx-home-modern .shopx-home-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shopx-home-modern .shopx-home-hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.shopx-home-modern .shopx-home-hero-content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.92rem, 1.45vw, 1.08rem);
  font-weight: 700;
  line-height: 1.65;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.shopx-home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shopx-home-modern .shopx-home-hero-content .shopx-light-btn,
.shopx-home-modern .shopx-home-campaign-copy .shopx-light-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 17px;
  background: var(--shopx-home-accent);
  color: #1f2937;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.shopx-home-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shopx-home-modern .shopx-home-hero-dots {
  left: clamp(24px, 6vw, 72px);
  bottom: 22px;
  gap: 9px;
  transform: none;
}

.shopx-home-modern .shopx-home-hero-dot {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.shopx-home-modern .shopx-home-hero-dot.is-active {
  width: 38px;
  background: var(--shopx-home-accent);
}

.shopx-home-modern .shopx-home-hero-arrow {
  top: auto;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shopx-home-modern .shopx-home-hero-arrow.is-prev {
  left: auto;
  right: 76px;
}

.shopx-home-modern .shopx-home-hero-arrow.is-next {
  right: 22px;
}

.shopx-home-brandlane {
  padding: 18px 0 8px;
}

.shopx-home-modern .shopx-home-brandlane-track {
  gap: 16px;
  padding: 4px 0;
}

.shopx-home-modern .shopx-home-brand-item {
  flex: 0 0 182px;
  min-height: 92px;
  padding: 18px 16px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 22px;
  background: var(--shopx-home-card);
  box-shadow: var(--shopx-home-soft);
}

.shopx-home-modern .shopx-home-brand-item img {
  max-width: 132px;
  max-height: 38px;
  filter: grayscale(1);
  opacity: 0.88;
}

.shopx-home-modern .shopx-home-brand-item small {
  color: var(--shopx-home-muted);
}

.shopx-home-benefits {
  padding: 10px 0 24px;
}

.shopx-home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shopx-home-benefit {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 24px;
  background: var(--shopx-home-card-solid);
  box-shadow: var(--shopx-home-soft);
}

.shopx-home-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(15, 95, 156, 0.1);
  color: var(--shopx-home-primary-strong);
  font-size: 1.3rem;
}

.shopx-home-benefit b {
  display: block;
  margin-bottom: 4px;
  color: var(--shopx-home-ink);
  font-size: 0.98rem;
}

.shopx-home-benefit p {
  margin: 0;
  color: var(--shopx-home-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.shopx-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 18px;
}

.shopx-home-section-kicker,
.shopx-home-campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--shopx-home-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shopx-home-section-head h2 {
  margin: 0;
  color: var(--shopx-home-ink);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.shopx-home-section-head p {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--shopx-home-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.shopx-home-seeall {
  color: var(--shopx-home-primary);
  font-weight: 900;
  white-space: nowrap;
}

.shopx-home-modern .shopx-home-rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shopx-home-modern .shopx-home-rail-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 16px;
  background: var(--shopx-home-card-solid);
  color: var(--shopx-home-ink);
  box-shadow: var(--shopx-home-soft);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.shopx-home-modern .shopx-home-rail-button:hover:not(:disabled) {
  transform: translateY(-3px);
  background: var(--shopx-home-primary);
  color: var(--button-text, #ffffff);
}

.shopx-home-modern .shopx-home-rail-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shopx-home-personalized {
  margin-top: 4px;
}

.shopx-home-modern .shopx-home-category-track,
.shopx-home-modern .shopx-home-product-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}

.shopx-home-modern .shopx-home-category-card {
  position: relative;
  flex: 0 0 calc((100% - 80px) / 6);
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 26px;
  background: var(--shopx-home-card-solid);
  box-shadow: var(--shopx-home-soft);
  color: var(--shopx-home-ink);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shopx-home-modern .shopx-home-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shopx-home-shadow);
}

.shopx-home-category-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.shopx-home-modern .shopx-home-category-card h3 {
  margin: 0 0 8px;
  color: var(--shopx-home-primary-strong);
  font-size: 1rem;
  font-weight: 900;
}

.shopx-home-modern .shopx-home-category-card p {
  margin: 0;
  color: var(--shopx-home-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.shopx-home-category-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.24;
}

.shopx-home-category-icon {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 3.2rem;
  color: var(--shopx-home-primary-strong);
  opacity: 0.18;
}

.shopx-home-modern .shopx-home-category-badge {
  top: 12px;
  right: 12px;
  width: auto;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--shopx-home-danger);
  font-size: 0.73rem;
}

.shopx-home-modern .shopx-home-product-slot {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 250px;
  scroll-snap-align: start;
}

.shopx-home-modern .shopx-product-card {
  padding: 0;
  border: 1px solid var(--shopx-home-line);
  border-radius: 26px;
  background: var(--shopx-home-card-solid);
  box-shadow: var(--shopx-home-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shopx-home-modern .shopx-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shopx-home-shadow);
}

.shopx-home-modern .shopx-product-media {
  height: 230px;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(15, 95, 156, 0.08), rgba(247, 183, 49, 0.1));
  display: grid;
  place-items: center;
}

.shopx-home-modern .shopx-product-media img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.12));
}

.shopx-home-modern .shopx-sale-badge {
  top: 14px;
  left: 14px;
  background: var(--shopx-home-danger);
  color: #ffffff;
}

.shopx-home-modern .shopx-hover-actions {
  display: none;
}

.shopx-home-modern .shopx-product-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.shopx-home-modern .shopx-product-meta {
  justify-content: space-between;
  color: var(--shopx-home-primary);
  font-size: var(--product-meta-size, var(--font-size-xs));
  font-weight: var(--font-weight-extrabold, 800);
  letter-spacing: var(--letter-spacing, 0);
  text-transform: uppercase;
}

.shopx-home-modern .shopx-product-meta span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
}

.shopx-home-modern .shopx-product-body h3 {
  margin: 0;
  min-height: 46px;
  font-size: var(--product-title-size, var(--font-size-md));
  font-weight: var(--font-weight-extrabold, 800);
  line-height: var(--line-height-tight, 1.25);
}

.shopx-home-modern .shopx-product-body h3 a {
  color: var(--shopx-home-ink);
}

.shopx-home-modern .shopx-price-row {
  align-items: baseline;
  gap: 10px;
}

.shopx-home-modern .shopx-price-row strong {
  color: var(--shopx-home-primary-strong);
  font-size: var(--product-price-size, var(--font-size-lg));
}

.shopx-home-modern .shopx-price-row s {
  color: #98a2b3;
  font-size: var(--product-body-size, var(--font-size-sm));
  font-weight: var(--font-weight-bold, 700);
}

.shopx-product-actions-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
}

.shopx-product-heart-btn,
.shopx-product-cta-btn {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.shopx-product-heart-btn {
  background: rgba(15, 95, 156, 0.08);
  color: var(--shopx-home-primary-strong);
}

.shopx-product-heart-btn.active {
  background: rgba(239, 68, 68, 0.14);
  color: var(--shopx-home-danger);
}

.shopx-product-cta-btn {
  padding: 0 16px;
  background: var(--shopx-home-primary);
  color: var(--button-text, #ffffff);
  text-decoration: none;
}

.shopx-product-cta-btn.is-link {
  background: var(--shopx-home-accent);
  color: #1f2937;
}

.shopx-product-cta-btn:disabled {
  background: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
}

.shopx-home-modern .shopx-home-campaign {
  position: relative;
  margin-top: 26px;
}

.shopx-home-modern .shopx-home-campaign-frame {
  min-height: 380px;
  border: 1px solid var(--shopx-home-line);
  border-radius: 34px;
  background-image:
    linear-gradient(120deg, rgba(8, 24, 39, 0.88), rgba(15, 95, 156, 0.58)),
    var(--shopx-campaign-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shopx-home-shadow);
}

.shopx-home-modern .shopx-home-campaign-frame img {
  inset: -12% 0;
  height: 124%;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.05);
}

.shopx-home-modern .shopx-home-campaign-overlay {
  background:
    linear-gradient(180deg, rgba(5, 14, 24, 0.1), rgba(5, 14, 24, 0.74)),
    radial-gradient(circle at 82% 18%, rgba(247, 183, 49, 0.22), transparent 30%),
    radial-gradient(circle at 12% 10%, rgba(56, 163, 255, 0.2), transparent 34%);
}

.shopx-home-modern .shopx-home-campaign-copy {
  width: auto;
  height: 100%;
  margin: 0;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.shopx-home-campaign-copy-main {
  display: grid;
  gap: 14px;
}

.shopx-home-modern .shopx-home-campaign-copy h2 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.95rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.shopx-home-modern .shopx-home-campaign-copy p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.shopx-home-modern .shopx-home-campaign-marquee {
  bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.1);
}

.shopx-home-modern .shopx-home-campaign-marquee-group {
  padding: 9px 10px;
}

@media (max-width: 1100px) {
  .shopx-home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopx-home-modern .shopx-home-category-card {
    flex-basis: calc((100% - 32px) / 3);
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 760px) {
  .shopx-home-modern {
    width: min(1240px, calc(100vw - 18px));
    padding-top: 12px;
  }

  .shopx-home-toolbar {
    position: static;
    margin-bottom: 16px;
  }

  .shopx-home-toolbar-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  .shopx-home-search {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    padding-right: 0;
    border-radius: 22px;
    overflow: hidden;
  }

  .shopx-home-search-icon {
    width: 44px;
    min-height: 50px;
    font-size: 1rem;
  }

  .shopx-home-search input {
    min-height: 50px;
    padding: 0 14px 0 0;
    font-size: 0.92rem;
  }

  .shopx-home-search button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    border-radius: 0 0 22px 22px;
  }

  .shopx-home-search-results {
    top: calc(100% + 8px);
    max-height: min(62dvh, 320px);
    border-radius: 18px;
  }

  .shopx-home-toolbar-actions {
    position: static;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .shopx-home-action {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .shopx-home-modern .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
    min-height: clamp(390px, 108vw, 480px);
    border-radius: 26px;
  }

  .shopx-home-modern .shopx-home-hero-content {
    left: 22px;
    right: 22px;
    bottom: 68px;
    max-width: none;
    gap: 14px;
  }

  .shopx-home-modern .shopx-home-hero-content h2 {
    font-size: clamp(1.9rem, 9vw, 2.85rem);
  }

  .shopx-home-modern .shopx-home-hero-content p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .shopx-home-modern .shopx-home-hero-arrow {
    display: none;
  }

  .shopx-home-modern .shopx-home-hero-dots {
    left: 22px;
    bottom: 22px;
  }

  .shopx-home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .shopx-home-modern .shopx-home-hero-content .shopx-light-btn,
  .shopx-home-hero-link {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .shopx-home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .shopx-home-benefit {
    align-items: flex-start;
    padding: 16px;
  }

  .shopx-home-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0 16px;
  }

  .shopx-home-modern .shopx-home-rail-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .shopx-home-modern .shopx-home-category-card {
    flex-basis: min(72vw, 280px);
    min-height: 164px;
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: min(78vw, 310px);
  }

  .shopx-home-modern .shopx-product-media {
    height: 188px;
  }

  .shopx-home-modern .shopx-product-body {
    padding: 14px;
  }

  .shopx-home-modern .shopx-product-body h3 {
    min-height: 40px;
    font-size: var(--product-title-size, var(--font-size-md));
  }

  .shopx-home-modern .shopx-price-row strong {
    font-size: var(--product-price-size, var(--font-size-lg));
  }

  .shopx-product-actions-row {
    grid-template-columns: 40px 1fr;
  }

  .shopx-product-heart-btn,
  .shopx-product-cta-btn {
    min-height: 40px;
    border-radius: 14px;
    font-size: 0.78rem;
  }

  .shopx-home-modern .shopx-home-campaign-frame {
    min-height: 360px;
    border-radius: 26px;
  }

  .shopx-home-modern .shopx-home-campaign-copy {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 16px;
    padding: 24px 22px 22px;
  }

  .shopx-home-modern .shopx-home-campaign-copy h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.5rem);
  }

  .shopx-home-modern .shopx-home-campaign-copy p {
    font-size: 0.94rem;
    line-height: 1.62;
  }
}

@media (max-width: 430px) {
  .shopx-home-modern {
    width: min(1240px, calc(100vw - 14px));
  }

  .shopx-home-toolbar-card {
    padding: 12px;
    border-radius: 20px;
  }

  .shopx-home-toolbar-actions {
    justify-content: space-between;
  }

  .shopx-home-action {
    flex: 1 1 calc((100% - 16px) / 3);
    width: auto;
    min-width: 0;
  }

  .shopx-home-action-badge {
    top: 4px;
    right: 4px;
  }

  .shopx-home-modern .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
    min-height: 360px;
  }

  .shopx-home-modern .shopx-home-hero-content {
    left: 18px;
    right: 18px;
    bottom: 58px;
  }

  .shopx-home-modern .shopx-home-hero-content h2 {
    font-size: clamp(1.7rem, 10.5vw, 2.25rem);
  }

  .shopx-home-modern .shopx-home-hero-content p {
    font-size: 0.86rem;
  }

  .shopx-home-hero-actions {
    grid-template-columns: 1fr;
  }

  .shopx-home-modern .shopx-home-category-card,
  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: calc(100vw - 32px);
  }

  .shopx-home-modern .shopx-product-media {
    height: 182px;
  }

  .shopx-home-modern .shopx-home-campaign-frame {
    min-height: 320px;
  }

  .shopx-home-modern .shopx-home-campaign-copy {
    padding: 20px 18px 18px;
  }

  .shopx-home-modern .shopx-home-campaign-copy h2 {
    font-size: clamp(1.5rem, 8vw, 2.05rem);
  }

  .shopx-home-modern .shopx-home-campaign-copy p {
    font-size: 0.9rem;
  }
}

.shopx-home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shopx-home-search button i {
  font-size: 1rem;
}

.shopx-home-search-button-label {
  display: inline;
}

.shopx-home-category-copy {
  max-width: min(72%, 240px);
}

.shopx-home-modern .shopx-home-category-card.has-media {
  color: #ffffff;
  isolation: isolate;
}

.shopx-home-modern .shopx-home-category-card.has-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 20, 35, 0.08), rgba(7, 20, 35, 0.76));
}

.shopx-home-modern .shopx-home-category-card.has-media h3 {
  color: #ffffff;
}

.shopx-home-modern .shopx-home-category-card.has-media p {
  color: rgba(255, 255, 255, 0.84);
}

.shopx-home-modern .shopx-home-category-card.has-media .shopx-home-category-badge,
.shopx-home-modern .shopx-home-category-card.has-media .shopx-home-category-copy {
  z-index: 2;
}

.shopx-home-modern .shopx-home-category-card:not(.has-media) .shopx-home-category-copy {
  max-width: 62%;
}

.shopx-home-category-image {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.shopx-home-modern .shopx-home-category-card:hover .shopx-home-category-image {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.shopx-home-category-icon {
  z-index: 1;
}

.shopx-home-modern .shopx-product-media img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.shopx-home-modern .shopx-product-card:hover .shopx-product-media img {
  transform: scale(1.06) rotate(-1deg);
}

.shopx-home-modern .shopx-home-campaign-copy {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 30px 38px 76px;
}

.shopx-home-modern .shopx-home-campaign-copy h2,
.shopx-home-modern .shopx-home-campaign-copy p,
.shopx-home-modern .shopx-home-campaign-copy-main {
  max-width: 720px;
}

.shopx-floating-cart {
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px));
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

@media (max-width: 760px) {
  .shopx-home-modern {
    width: min(1240px, calc(100vw - 16px));
  }

  .shopx-home-toolbar {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 72px);
    margin-bottom: 14px;
    z-index: 45;
  }

  .shopx-home-toolbar-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .shopx-home-toolbar-actions {
    grid-column: 1;
    width: auto;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .shopx-home-action {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    box-shadow: none;
  }

  .shopx-home-action i {
    font-size: 1rem;
  }

  .shopx-home-action-badge {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.62rem;
  }

  .shopx-home-search {
    grid-column: 2;
    min-height: 46px;
    padding-right: 0;
    border-radius: 999px;
  }

  .shopx-home-search-icon {
    width: 42px;
    min-height: 42px;
  }

  .shopx-home-search input {
    min-height: 42px;
    padding: 0 10px 0 0;
    font-size: 0.9rem;
  }

  .shopx-home-search button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    margin: 2px;
    padding: 0;
    border-radius: 999px;
  }

  .shopx-home-search-button-label {
    display: none;
  }

  .shopx-home-search-results {
    top: calc(100% + 8px);
    border-radius: 20px;
    max-height: min(60dvh, 340px);
  }

  .shopx-home-modern .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
    min-height: clamp(390px, 112vw, 460px);
  }

  .shopx-home-modern .shopx-home-hero-content {
    left: 20px;
    right: 20px;
    bottom: 68px;
    max-width: none;
  }

  .shopx-home-modern .shopx-home-hero-content h2 {
    font-size: clamp(1.95rem, 8.8vw, 2.8rem);
  }

  .shopx-home-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopx-home-modern .shopx-home-category-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: calc((100% - 18px) / 2);
    min-width: 0;
  }

  .shopx-home-modern .shopx-product-media {
    height: 170px;
  }

  .shopx-home-modern .shopx-home-campaign-copy {
    align-items: flex-start;
    padding: 24px 22px 68px;
  }

  .shopx-home-modern .shopx-home-campaign-copy h2,
  .shopx-home-modern .shopx-home-campaign-copy p,
  .shopx-home-modern .shopx-home-campaign-copy-main {
    max-width: 100%;
  }

  .shopx-floating-cart {
    width: 58px;
    height: 58px;
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
}

@media (max-width: 430px) {
  .shopx-home-toolbar {
    top: calc(env(safe-area-inset-top, 0px) + 66px);
  }

  .shopx-home-toolbar-card {
    gap: 8px;
    padding: 8px;
  }

  .shopx-home-action {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .shopx-home-search {
    min-height: 42px;
  }

  .shopx-home-search-icon {
    width: 40px;
    min-height: 40px;
  }

  .shopx-home-search button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .shopx-home-modern .shopx-home-category-track,
  .shopx-home-modern .shopx-home-product-rail {
    gap: 12px;
  }

  .shopx-home-modern .shopx-home-category-card {
    flex-basis: calc((100% - 12px) / 2);
    min-height: 150px;
    padding: 16px;
  }

  .shopx-home-category-copy {
    max-width: min(78%, 180px);
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: calc((100% - 12px) / 2);
  }

  .shopx-home-modern .shopx-product-media {
    height: 156px;
  }

  .shopx-home-modern .shopx-home-hero-content {
    bottom: 60px;
  }

  .shopx-home-hero-actions {
    grid-template-columns: 1fr;
  }

  .shopx-home-modern .shopx-home-campaign-copy {
    padding: 22px 18px 58px;
  }
}

.shopx-home-modern .shopx-product-card {
  transform: translateZ(0);
  will-change: transform;
}

.shopx-home-modern .shopx-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.34) 18%, transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(15, 95, 156, 0.12), transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(247, 183, 49, 0.14), transparent 30%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.32s ease, transform 0.52s ease;
}

.shopx-home-modern .shopx-product-card:hover::before,
.shopx-home-modern .shopx-product-card:focus-within::before {
  opacity: 1;
  transform: translateX(0);
}

.shopx-home-modern .shopx-product-card.is-action-pressed {
  transform: translateY(-2px) scale(0.985);
}

.shopx-home-modern .shopx-product-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.shopx-home-modern .shopx-product-card:hover .shopx-product-media::before,
.shopx-home-modern .shopx-product-card:focus-within .shopx-product-media::before {
  opacity: 1;
  transform: scale(1);
}

.shopx-product-heart-btn:hover,
.shopx-product-heart-btn:focus-visible,
.shopx-product-cta-btn:hover,
.shopx-product-cta-btn:focus-visible,
.shopx-icon-action:hover,
.shopx-icon-action:focus-visible {
  transform: translateY(-2px);
}

.shopx-product-heart-btn:active,
.shopx-product-cta-btn:active,
.shopx-icon-action:active {
  transform: translateY(0) scale(0.97);
}

.shopx-product-heart-btn.is-busy,
.shopx-product-cta-btn.is-busy,
.shopx-icon-action.is-busy {
  opacity: 0.72;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .shopx-home-modern .shopx-product-card,
  .shopx-home-modern .shopx-product-card::before,
  .shopx-home-modern .shopx-product-media::before,
  .shopx-home-modern .shopx-product-media img,
  .shopx-product-heart-btn,
  .shopx-product-cta-btn,
  .shopx-icon-action {
    transition: none;
  }
}

@media (max-width: 760px) {
  .shopx-home-toolbar-card {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
  }

  .shopx-home-toolbar-actions {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    gap: 6px;
  }

  .shopx-home-action {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 13px;
  }

  .shopx-home-search {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
  }

  .shopx-home-search-icon {
    width: 38px;
    min-height: 40px;
  }

  .shopx-home-search input {
    min-width: 0;
    min-height: 40px;
    padding: 0 8px 0 0;
    font-size: 0.82rem;
  }

  .shopx-home-search button {
    justify-self: end;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 2px;
    padding: 0;
  }

  .shopx-home-search-results {
    left: 0;
    right: 0;
  }
}

@media (max-width: 430px) {
  .shopx-home-toolbar-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .shopx-home-toolbar-actions {
    gap: 6px;
  }

  .shopx-home-action {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .shopx-home-search {
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    min-height: 40px;
  }

  .shopx-home-search-icon {
    width: 34px;
    min-height: 38px;
    font-size: 0.92rem;
  }

  .shopx-home-search input {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .shopx-home-search button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}


.shopx-product-card[data-detail-url] {
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}

.shopx-product-card[data-detail-url] a,
.shopx-product-card[data-detail-url] button {
  position: relative;
  z-index: 4;
  cursor: auto;
}

.shopx-product-card[data-detail-url] .shopx-product-media {
  z-index: 2;
}

.shopx-product-card[data-detail-url] .shopx-hover-actions {
  z-index: 7;
  pointer-events: auto;
}

.shopx-home-modern .shopx-home-product-rail {
  pointer-events: none;
}

.shopx-home-modern .shopx-home-product-slot {
  pointer-events: none;
}

.shopx-home-modern .shopx-home-product-slot .shopx-product-card,
.shopx-home-modern .shopx-home-product-slot .shopx-product-card * {
  pointer-events: auto;
}

.shopx-product-card[data-detail-url] .shopx-product-actions-row,
.shopx-product-card[data-detail-url] .shopx-product-heart-btn,
.shopx-product-card[data-detail-url] .shopx-product-cta-btn {
  position: relative;
  z-index: 7;
  pointer-events: auto;
}

.shopx-home-modern .shopx-product-card,
.shopx-catalog-ref .shopx-product-card,
.shopx-detail-ref .shopx-related-grid .shopx-product-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.shopx-home-modern .shopx-product-body,
.shopx-catalog-ref .shopx-product-body,
.shopx-detail-ref .shopx-related-grid .shopx-product-body {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(2.8em, auto) auto auto;
  align-content: start;
}

.shopx-product-desc {
  margin: 0;
  min-height: 2.8em;
  color: var(--shopx-home-muted, var(--sx-muted));
  font-size: var(--product-body-size, var(--font-size-sm));
  font-weight: var(--font-weight-semibold, 600);
  line-height: var(--line-height-normal, 1.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shopx-product-desc:empty::before {
  content: "";
  display: block;
  min-height: 2.8em;
}

.shopx-product-body h3 a,
.shopx-product-desc,
.shopx-product-meta span {
  overflow-wrap: anywhere;
}

.shopx-home-modern .shopx-home-product-rail,
.shopx-home-modern .shopx-home-category-track,
.shopx-home-modern .shopx-home-hero-rail,
.shopx-home-modern .shopx-home-brandlane-track {
  max-width: 100%;
}

.shopx-home-modern .shopx-home-product-slot {
  display: flex;
}

.shop-offcanvas {
  max-width: 100vw;
  right: 0;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .shopx-page,
  .shopx-home-modern {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin-inline: auto;
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: 0;
  }

  .shopx-home-modern .shopx-product-media {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .shopx-home-modern .shopx-product-media img {
    width: 86%;
    height: 86%;
  }

  .shopx-home-modern .shopx-product-body,
  .shopx-catalog-ref .shopx-product-body,
  .shopx-detail-ref .shopx-related-grid .shopx-product-body {
    padding: 14px;
    gap: 8px;
  }

  .shopx-home-modern .shopx-product-body h3,
  .shopx-catalog-ref .shopx-product-body h3,
  .shopx-detail-ref .shopx-related-grid .shopx-product-body h3 {
    min-height: 2.7em;
    margin: 0;
    font-size: var(--product-title-size, var(--font-size-md));
    line-height: var(--line-height-tight, 1.25);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .shopx-product-desc {
    font-size: var(--product-meta-size, var(--font-size-xs));
  }

  .shopx-home-modern .shopx-price-row strong {
    font-size: var(--product-price-size, var(--font-size-lg));
  }

  .shopx-product-actions-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }

  .shopx-product-heart-btn,
  .shopx-product-cta-btn {
    min-height: 40px;
    border-radius: 14px;
    font-size: 0.76rem;
    padding-inline: 10px;
  }

  .shopx-floating-cart {
    width: 54px;
    height: 54px;
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .shop-offcanvas {
    width: 100vw !important;
    max-width: 100vw;
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .shopx-page,
  .shopx-home-modern {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
  }

  .shopx-home-modern .shopx-home-product-slot {
    flex-basis: calc((100% - 10px) / 2);
  }

  .shopx-home-modern .shopx-home-product-rail {
    gap: 10px;
    padding-inline: 0;
  }

  .shopx-home-modern .shopx-product-body {
    padding: 12px;
  }

  .shopx-home-modern .shopx-product-meta {
    font-size: var(--product-meta-size, var(--font-size-xs));
    letter-spacing: var(--letter-spacing, 0);
  }

  .shopx-product-cta-btn {
    font-size: 0.72rem;
  }
}


@media (max-width: 760px) {
  .shopx-home-toolbar {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 62px);
    z-index: 60;
    width: 100%;
    margin: 0 0 18px;
  }

  .shopx-home-toolbar-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--shopx-home-card-solid) 88%, transparent);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .shopx-home-search {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
  }

  .shopx-home-search-icon {
    width: 42px;
    min-height: 44px;
    font-size: 0.98rem;
  }

  .shopx-home-search input {
    min-width: 0;
    min-height: 44px;
    padding: 0 8px 0 0;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .shopx-home-search input::placeholder {
    text-overflow: ellipsis;
  }

  .shopx-home-search button {
    grid-column: 3;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 3px;
    padding: 0;
    border-radius: 12px;
  }

  .shopx-home-search-button-label {
    display: none;
  }

  .shopx-home-toolbar-actions {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .shopx-home-action {
    width: 100%;
    height: 40px;
    min-width: 0;
    flex: none;
    border-radius: 13px;
    background: rgba(15, 95, 156, 0.08);
    box-shadow: none;
  }

  .shopx-home-action i {
    font-size: 1rem;
  }

  .shopx-home-action-badge {
    top: 5px;
    right: calc(50% - 22px);
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 0.58rem;
  }

  .shopx-home-search-results {
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    max-height: min(56dvh, 330px);
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .shopx-home-toolbar {
    top: calc(env(safe-area-inset-top, 0px) + 58px);
  }

  .shopx-home-toolbar-card {
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .shopx-home-search {
    grid-template-columns: 38px minmax(0, 1fr) 40px;
    min-height: 42px;
    border-radius: 13px;
  }

  .shopx-home-search-icon {
    width: 38px;
    min-height: 40px;
  }

  .shopx-home-search input {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .shopx-home-search button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 11px;
  }

  .shopx-home-action {
    height: 38px;
    border-radius: 12px;
  }
}


.shopx-home-modern .shopx-home-hero-rail,
.shopx-home-modern .shopx-home-hero-slider-track {
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 20%, rgba(247, 183, 49, 0.16), transparent 34%),
    linear-gradient(135deg, #081827, #123553);
}

.shopx-home-modern .shopx-home-hero-card,
.shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
.shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
  min-height: 0;
  aspect-ratio: 16 / 7;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 24%, rgba(247, 183, 49, 0.18), transparent 32%),
    linear-gradient(135deg, #081827, #123553);
}

.shopx-home-modern .shopx-home-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  filter: saturate(1) contrast(1.02);
}

.shopx-home-modern .shopx-home-hero-card.is-active img,
.shopx-home-modern .shopx-home-hero-card:hover img {
  transform: none;
}

.shopx-home-modern .shopx-home-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 35, 0.52), rgba(7, 20, 35, 0.18) 42%, rgba(7, 20, 35, 0)),
    linear-gradient(180deg, rgba(7, 20, 35, 0), rgba(7, 20, 35, 0.18));
}

.shopx-home-modern .shopx-home-hero-content {
  left: clamp(22px, 5vw, 58px);
  right: auto;
  bottom: clamp(26px, 4vw, 48px);
  max-width: min(430px, 42%);
  gap: 12px;
}

.shopx-home-modern .shopx-home-hero-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.15rem);
  line-height: 1;
}

.shopx-home-modern .shopx-home-hero-content p {
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  line-height: 1.45;
}

.shopx-home-modern .shopx-home-hero-actions {
  display: flex;
  grid-template-columns: none;
}

@media (max-width: 760px) {
  .shopx-home-modern .shopx-home-hero-rail,
  .shopx-home-modern .shopx-home-hero-slider-track {
    border-radius: 22px;
  }

  .shopx-home-modern .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 22px;
  }

  .shopx-home-modern .shopx-home-hero-card img {
    object-position: center;
    padding: 0;
  }

  .shopx-home-modern .shopx-home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 20, 35, 0), rgba(7, 20, 35, 0.18) 38%, rgba(7, 20, 35, 0.72)),
      linear-gradient(90deg, rgba(7, 20, 35, 0.18), rgba(7, 20, 35, 0.04));
  }

  .shopx-home-modern .shopx-home-hero-content {
    left: 18px;
    right: 18px;
    bottom: 38px;
    max-width: none;
    gap: 6px;
  }

  .shopx-home-modern .shopx-home-hero-pill {
    min-height: 24px;
    padding: 0 9px;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .shopx-home-modern .shopx-home-hero-content h2 {
    font-size: clamp(1.15rem, 5.6vw, 1.8rem);
    line-height: 1.05;
  }

  .shopx-home-modern .shopx-home-hero-content p {
    font-size: 0.68rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .shopx-home-modern .shopx-home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .shopx-home-modern .shopx-home-hero-content .shopx-light-btn {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 430px) {
  .shopx-home-modern .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-rail .shopx-home-hero-card,
  .shopx-home-modern .shopx-home-hero-slider-track .shopx-home-hero-card {
    aspect-ratio: 16 / 9;
  }

  .shopx-home-modern .shopx-home-hero-card img {
    padding: 0;
  }

  .shopx-home-modern .shopx-home-hero-content {
    left: 14px;
    right: 14px;
    bottom: 34px;
  }

  .shopx-home-modern .shopx-home-hero-content h2 {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
  }

  .shopx-home-modern .shopx-home-hero-content p {
    font-size: 0.64rem;
    -webkit-line-clamp: 1;
  }

  .shopx-home-modern .shopx-home-hero-content .shopx-light-btn {
    min-height: 32px;
    font-size: 0.72rem;
  }
}


@media (max-width: 760px) {
  .shopx-home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shopx-home-benefit {
    min-width: 0;
    min-height: 118px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .shopx-home-benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .shopx-home-benefit b {
    margin-bottom: 3px;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .shopx-home-benefit p {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .shopx-home-benefit-grid {
    gap: 8px;
  }

  .shopx-home-benefit {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 112px;
    gap: 8px;
    padding: 10px;
  }

  .shopx-home-benefit-icon {
    width: 34px;
    height: 34px;
  }
}


.shopx-floating-cart {
  bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  right: max(22px, calc(env(safe-area-inset-right, 0px) + 22px));
  z-index: 2145;
}

@media (max-width: 575.98px) {
  .shopx-floating-cart {
    bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 86px));
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 14px));
  }
}

/* ===========================================================================
   MOBİL / DOKUNMATİK BÜTÇE
   backdrop-filter iOS Safari'de her kaydırma karesinde arkasındaki içeriği
   yeniden örnekler; kaydırılan uzun kataloglarda bu kalıcı bir maliyet.
   Küçük ekranda cam efekti yerine opak token yüzeyi kullanılır.
   =========================================================================== */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  .shopx-home-toolbar-card,
  .shopx-home-hero-pill,
  .shopx-home-campaign-marquee,
  .shop-modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .shopx-home-toolbar-card,
  .shop-modal-content { background: var(--card-bg, var(--surface)) !important; }
  .shopx-home-campaign-marquee { background: var(--surface-2, var(--surface)) !important; }
}
