:root{
  --p-brand:#e11b22;
  --p-accent:#ffd400;
  --p-dark:#0b0f14;
  --p-text:#111827;
  --p-muted:#4b5563;
  --p-line: rgba(0,0,0,.08);
  --p-radius: 18px;
  --p-shadow: 0 18px 50px rgba(0,0,0,.14);
  --p-container: 1180px;
}

.product-page .container{
  width: min(var(--p-container), calc(100% - 32px));
  margin-inline: auto;
}

/* ---------------- Banner ---------------- */
.product-hero{
  position: relative;
  min-height: clamp(320px, 46vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0b0f14;
}

.product-page .product-hero{
  margin-top: calc(-1 * (var(--header-h) + var(--adminbar-h)));
}
.product-page .product-hero__inner{
  padding-top: calc(60px + var(--header-h) + var(--adminbar-h));
}

.product-hero__bg{
  position: absolute;
  inset: 0;
  background: var(--product-hero-bg, linear-gradient(135deg, #111827, #0b0f14));
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.product-hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(225,27,34,.22), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(255,212,0,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.72));
}

.product-hero__inner{
  position: relative;
  padding-bottom: 46px;
  color: rgba(255,255,255,.92);
}
.product-hero__title{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
}
.product-hero__text{
  margin: 0;
  max-width: 70ch;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------------- Products Section ---------------- */
.product-section{
  padding: clamp(44px, 6vw, 86px) 0;
  background: #fff;
}

.product-head{
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  color: var(--p-text);
  letter-spacing: -.02em;
  font-weight: 900;
}
.section-sub{
  margin: 0;
  color: var(--p-muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* Grid */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.product-card{
  border-radius: calc(var(--p-radius) + 8px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
}

.product-card__media{
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0b0f14;
}

.product-card__media--desktop{
  display: block;
}

.product-card__media--mobile{
  display: none;
}


.product-card__desktopStack{
  position: absolute;
  inset: 0;
}

.product-card__media--desktop .product-card__img--desktop{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .45s ease, transform .55s ease, filter .35s ease;
  z-index: 1;
}

.product-card__media--desktop .product-card__img--desktop.is-active{
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
}

.product-card__media--desktop.has-hover-gallery:hover .product-card__img--desktop.is-active,
.product-card:hover .product-card__media--desktop.has-hover-gallery .product-card__img--desktop.is-active{
  transform: scale(1.03);
}

.product-card:hover .product-card__shine{
  opacity: 1;
  transform: translateX(25%);
}


.product-card__img--placeholder{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(700px 380px at 20% 10%, rgba(225,27,34,.18), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(255,212,0,.14), transparent 60%),
    linear-gradient(180deg, #111827, #0b0f14);
}

.product-card__shine{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 55%);
  transform: translateX(-40%);
  opacity: 0;
  transition: opacity .25s ease, transform .45s ease;
  pointer-events:none;
  z-index: 3;
}
.product-card:hover .product-card__shine{
  opacity: 1;
  transform: translateX(25%);
}

.product-card__body{
  padding: 16px 16px 18px;
}

.product-card__title{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--p-text);
  font-size: 18px;
}

.product-card__price{
  display:flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.product-card__currency{
  font-weight: 800;
  color: rgba(17,24,39,.70);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.product-card__amount{
  font-weight: 900;
  font-size: 22px;
  color: var(--p-text);
}

/* Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
  width: 100%;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.btn--primary{
  background: var(--p-brand);
  color:#fff;
}
.btn--primary:hover{
  background:#c9151c;
}

.product-card__note{
  margin: 10px 0 0;
  font-size: 13px;
  color: #b91c1c;
}

/* Mobile slider */
.product-card__swiper{
  width: 100%;
  height: 100%;
}

.product-card__slide{
  width: 100%;
  height: 100%;
}

.product-card__slide .product-card__img--slide{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__pagination{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px !important;
  z-index: 5;
  text-align: center;
}

.product-card__pagination .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.55);
  opacity: 1;
  margin: 0 4px !important;
}

.product-card__pagination .swiper-pagination-bullet-active{
  background: #fff;
}

/* Empty state */
.product-empty{
  padding: 22px;
  border-radius: calc(var(--p-radius) + 8px);
  background: #f8fafc;
  border: 1px dashed rgba(0,0,0,.14);
}
.product-empty h3{
  margin:0 0 6px;
  font-weight: 900;
}
.product-empty p{
  margin:0;
  color: var(--p-muted);
}

/* Responsive */
@media (max-width: 980px){
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px){
  .product-grid{
    grid-template-columns: 1fr;
  }

  .product-card__media--desktop{
    display: none;
  }

  .product-card__media--mobile{
    display: block;
  }
}


/* ---------------- Filter Toolbar ---------------- */
.product-toolbar{
  display: grid;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--p-line);
  border-radius: calc(var(--p-radius) + 6px);
  background:
    radial-gradient(860px 220px at 0% 0%, rgba(225,27,34,.06), transparent 62%),
    radial-gradient(860px 220px at 100% 0%, rgba(255,212,0,.08), transparent 62%),
    #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}
.product-toolbar.is-simple{
  margin-bottom: 18px;
}
.product-toolbar__summary{
  display: grid;
  gap: 4px;
}
.product-toolbar__count{
  margin: 0;
  color: var(--p-text);
  font-size: 16px;
  font-weight: 800;
}
.product-toolbar__help{
  margin: 0;
  color: var(--p-muted);
  font-size: 14px;
}
.product-toolbar__controls{
  display: grid;
  gap: 16px;
}
.product-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-filter{
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  color: var(--p-text);
  border-radius: 999px;
  padding: 11px 14px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.product-filter span{
  white-space: nowrap;
}
.product-filter strong{
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17,24,39,.06);
  font-size: 12px;
}
.product-filter:hover,
.product-filter:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  border-color: rgba(225,27,34,.28);
}
.product-filter.is-active{
  background: var(--p-dark);
  color: #fff;
  border-color: var(--p-dark);
}
.product-filter.is-active strong{
  background: rgba(255,255,255,.14);
  color: #fff;
}
.product-filter:disabled{
  opacity: .65;
  cursor: wait;
}
.product-filter-selectWrap{
  display: none;
}
.product-filter-selectLabel{
  display: block;
  margin-bottom: 8px;
  color: var(--p-text);
  font-size: 14px;
  font-weight: 700;
}
.product-filter-select{
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  color: var(--p-text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}
.product-filter-select:focus{
  border-color: rgba(225,27,34,.35);
  box-shadow: 0 0 0 4px rgba(225,27,34,.08);
}
.product-results{
  transition: opacity .2s ease, transform .2s ease;
}
.product-results.is-loading{
  opacity: .55;
  transform: translateY(4px);
  pointer-events: none;
}
.product-card__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.product-card__tag{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(17,24,39,.06);
  color: var(--p-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 991px){
  .product-toolbar{
    padding: 18px;
  }
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px){
  .product-toolbar__help{
    display: none;
  }
  .product-filters{
    display: none;
  }
  .product-filter-selectWrap{
    display: block;
  }
  .product-grid{
    grid-template-columns: 1fr;
  }
}


.product-card__stock{
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.product-card__stock.is-instock{
  color: #15803d;
}

.product-card__stock.is-outstock{
  color: #b91c1c;
}