:root {
  --store-bg: #101116;
  --store-card: #171920;
  --store-card-2: #1d2028;
  --store-line: rgba(255, 255, 255, .11);
  --store-text: #f6f7fb;
  --store-muted: #9ea3b0;
  --store-red: #e53935;
  --store-red-hover: #ff4b46;
  --store-yellow: #ffb703;
  --store-green: #54d18b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--store-text);
  background:
    radial-gradient(circle at 8% 5%, rgba(117, 27, 50, .24), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(255, 183, 3, .06), transparent 24rem),
    var(--store-bg);
}

a { color: inherit; }
button, input, select { font: inherit; }

.store-container {
  width: min(1420px, calc(100% - 36px));
  margin: 0 auto;
}

.store-main { min-height: 100vh; }
.store-section { padding: 42px 20px 90px; }

.store-hero { padding: 88px 20px 36px; }
.store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--store-yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.store-eyebrow::before { width: 34px; height: 2px; content: ""; background: currentColor; }
.store-hero h1, .product-copy h1, .cart-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}
.store-hero p {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--store-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.store-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 38px;
}
.filter-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 3px 9px; }
.filter-tabs button, .store-sort, .store-search {
  border: 1px solid var(--store-line);
  color: var(--store-muted);
  background: rgba(23, 25, 32, .78);
}
.filter-tabs button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: .2s ease;
}
.filter-tabs button:hover, .filter-tabs button.active { color: #111217; border-color: #fff; background: #fff; }
.filter-tabs .offers-filter { border-color: rgba(229, 57, 53, .55); color: #ff7975; }
.filter-tabs .offers-filter:hover, .filter-tabs .offers-filter.active { color: #fff; border-color: var(--store-red); background: var(--store-red); }
.store-controls { display: flex; gap: 12px; }
.store-search {
  width: min(340px, 31vw);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-radius: 14px;
}
.store-search input { width: 100%; border: 0; outline: 0; color: var(--store-text); background: transparent; }
.store-sort { min-width: 190px; min-height: 52px; padding: 0 15px; border-radius: 14px; color: var(--store-text); }
.results-line { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; color: var(--store-muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.template-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 25px;
  background: linear-gradient(180deg, #181a21, #15171d);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.template-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.23); box-shadow: 0 28px 75px rgba(0,0,0,.35); }
.template-media { position: relative; height: 315px; overflow: hidden; background: #0d1015; }
.template-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .8s ease, transform 5s ease; }
.template-slide.active { opacity: 1; transform: scale(1); }
.template-badge, .template-sale-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.template-badge { left: 18px; background: rgba(15,17,22,.76); backdrop-filter: blur(11px); }
.template-sale-badge { right: 18px; background: var(--store-red); box-shadow: 0 10px 24px rgba(229,57,53,.28); }
.slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 15px; display: flex; gap: 7px; transform: translateX(-50%); }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .2s ease; }
.slider-dot.active { width: 22px; border-radius: 999px; background: var(--store-yellow); }
.template-body { padding: 27px; }
.template-meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 17px; color: var(--store-muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.template-rating { letter-spacing: 0; white-space: nowrap; }
.template-card h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.template-description { min-height: 54px; margin: 9px 0 18px; color: var(--store-muted); line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tag-list li { padding: 8px 10px; border: 1px solid var(--store-line); border-radius: 9px; color: #c2c6d0; background: rgba(255,255,255,.025); font-size: 12px; }
.price-preview { display: grid; gap: 8px; margin-bottom: 22px; padding: 14px; border: 1px solid var(--store-line); border-radius: 15px; background: rgba(255,255,255,.022); }
.price-preview-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 38px; }
.price-preview-row + .price-preview-row { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.price-label { color: #d9dce4; font-size: 13px; font-weight: 750; }
.price-value { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.old-price { color: #858b99; font-size: 12px; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.current-price { color: #fff; font-size: 17px; font-weight: 900; }
.on-sale .current-price { color: #ff6762; }
.discount-pill { padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(229,57,53,.18); font-size: 10px; font-weight: 900; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 21px; border-top: 1px solid var(--store-line); }

.store-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  color: var(--store-text);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
}
.store-button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.store-button-primary { border-color: var(--store-red); background: var(--store-red); box-shadow: 0 10px 24px rgba(229,57,53,.23); }
.store-button-primary:hover { border-color: var(--store-red-hover); background: var(--store-red-hover); }
.store-button-yellow { border-color: var(--store-yellow); color: #111217; background: var(--store-yellow); }
.store-button-ghost { background: rgba(255,255,255,.025); }
.store-button-wide { width: 100%; }

.store-cart-link { position: fixed; z-index: 1000; right: 20px; bottom: 20px; min-width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--store-red); text-decoration: none; box-shadow: 0 14px 32px rgba(229,57,53,.35); }
.store-cart-count { position: absolute; top: -5px; right: -5px; min-width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid var(--store-bg); border-radius: 999px; color: #111217; background: #fff; font-size: 11px; font-weight: 900; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: var(--store-muted); font-size: 14px; }
.breadcrumbs a { text-decoration: none; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); gap: 52px; align-items: start; }
.product-gallery { min-width: 0; }
.product-main-image { position: relative; aspect-ratio: 1.44 / 1; overflow: hidden; border: 1px solid var(--store-line); border-radius: 24px; background: #0d1015; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; background: #0d1015; }
.gallery-badge { position: absolute; top: 18px; left: 18px; padding: 9px 13px; border-radius: 999px; background: rgba(15,17,22,.82); font-size: 12px; font-weight: 850; }
.product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.product-thumbnail { aspect-ratio: 1.44 / 1; overflow: hidden; padding: 0; border: 1px solid var(--store-line); border-radius: 12px; background: #0d1015; cursor: pointer; }
.product-thumbnail.active { border-color: var(--store-yellow); box-shadow: 0 0 0 2px rgba(255,183,3,.18); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { position: sticky; top: 24px; }
.product-copy h1 { font-size: clamp(42px, 5vw, 68px); }
.product-categories { margin-bottom: 15px; color: var(--store-yellow); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.product-rating { margin: 16px 0; color: var(--store-muted); }
.product-lead { color: var(--store-muted); font-size: 18px; line-height: 1.7; }
.plan-selector { display: grid; gap: 12px; margin: 28px 0 18px; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 18px; border: 1px solid var(--store-line); border-radius: 16px; background: rgba(255,255,255,.025); transition: .2s ease; }
.plan-option input:checked + .plan-card { border-color: var(--store-yellow); box-shadow: 0 0 0 3px rgba(255,183,3,.12); background: rgba(255,183,3,.055); }
.plan-name { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 900; }
.plan-description { color: var(--store-muted); font-size: 13px; line-height: 1.45; }
.plan-price { text-align: right; }
.plan-price strong { display: block; font-size: 22px; }
.plan-price del { color: var(--store-muted); font-size: 12px; }
.product-summary { margin: 18px 0; padding: 17px; border: 1px solid var(--store-line); border-radius: 15px; background: rgba(255,255,255,.025); }
.summary-row { display: flex; justify-content: space-between; gap: 20px; color: var(--store-muted); }
.summary-row strong { color: var(--store-text); }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.product-actions .store-button-primary { grid-column: 1 / -1; }
.included-box { margin-top: 38px; padding: 26px; border: 1px solid var(--store-line); border-radius: 20px; background: rgba(255,255,255,.02); }
.included-box h2 { margin-top: 0; }
.included-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.included-list li { position: relative; padding-left: 24px; color: var(--store-muted); }
.included-list li::before { position: absolute; left: 0; content: "✓"; color: var(--store-green); font-weight: 900; }

.cart-header { padding: 82px 20px 28px; }
.cart-title { font-size: clamp(42px, 6vw, 72px); }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 34px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 17px; border: 1px solid var(--store-line); border-radius: 18px; background: var(--store-card); }
.cart-item-image { aspect-ratio: 1.44 / 1; overflow: hidden; border-radius: 12px; background: #0d1015; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h2 { margin: 0 0 6px; font-size: 21px; }
.cart-item-meta { color: var(--store-muted); font-size: 13px; }
.cart-item-price { text-align: right; }
.cart-item-price strong { display: block; font-size: 21px; }
.cart-remove { margin-top: 10px; padding: 0; border: 0; color: #ff7975; background: transparent; cursor: pointer; font-weight: 800; }
.order-summary { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--store-line); border-radius: 20px; background: var(--store-card); }
.order-summary h2 { margin-top: 0; }
.order-summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--store-line); color: var(--store-muted); }
.order-total { margin: 18px 0; font-size: 25px; font-weight: 900; }
.checkout-message { display: none; margin-top: 13px; padding: 12px; border-radius: 11px; color: #ffd9d7; background: rgba(229,57,53,.12); font-size: 13px; line-height: 1.45; }
.checkout-message.show { display: block; }
.empty-state { padding: 70px 25px; border: 1px dashed var(--store-line); border-radius: 22px; color: var(--store-muted); text-align: center; }
.loading-state { padding: 70px 25px; color: var(--store-muted); text-align: center; }

@media (max-width: 1120px) {
  .store-toolbar, .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .store-controls { width: 100%; }
  .store-search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-copy, .order-summary { position: static; }
}

@media (max-width: 720px) {
  .store-container { width: min(100% - 22px, 1420px); }
  .store-hero { padding-top: 60px; }
  .store-controls { flex-direction: column; }
  .store-sort { width: 100%; }
  .results-line { font-size: 13px; }
  .results-line span:last-child { text-align: right; }
  .product-grid { grid-template-columns: 1fr; }
  .template-media { height: 270px; }
  .price-preview-row { grid-template-columns: 1fr; gap: 5px; }
  .price-value { justify-content: flex-start; }
  .product-thumbnails { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .plan-card { grid-template-columns: 1fr; }
  .plan-price { text-align: left; }
  .included-list { grid-template-columns: 1fr; }
  .product-actions { grid-template-columns: 1fr; }
  .product-actions .store-button-primary { grid-column: auto; }
  .cart-item { grid-template-columns: 100px minmax(0,1fr); }
  .cart-item-price { grid-column: 1 / -1; text-align: left; }
}


/* Local and remote debug indicator. */
.store-debug-badge {
  position: fixed;
  z-index: 100000;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  min-width: 155px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 183, 3, .45);
  border-radius: 11px;
  color: #f6f7fb;
  background: rgba(16, 17, 22, .92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .36);
  backdrop-filter: blur(10px);
  font: 11px/1.35 Arial, sans-serif;
  pointer-events: none;
}

.store-debug-badge strong {
  color: var(--store-yellow);
  letter-spacing: .08em;
}

.store-debug-badge span {
  color: var(--store-muted);
}
