/* Tailwind-style icon-size utilities: used across several components (e.g.
   the products-page filter buttons) but never actually defined anywhere in
   this Bootstrap-based theme, so those <svg> icons rendered at the browser's
   default intrinsic SVG size (huge) instead of a proper icon size. */
.size-3 { width: 0.75rem; height: 0.75rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }

.section-title {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  font-size: 42px !important;
}

.section-title h2 {
  color: #FFFFFF !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  width: 100% !important;
}

.section-subtitle {
  text-align: center !important;
  margin-bottom: 3rem !important;
}

.section-subtitle p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html, body {
    max-width: 100%;
    /* clip instead of hidden: overflow-x:hidden on html/body silently
       disables position:sticky for every descendant, including the navbar */
    overflow-x: clip;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a #000000;
}

/* ---------- Purple glowing snow ---------- */
#snow {
  /* Pure background: pro.css ships z-index 9999, which paints the flakes over
     the whole site. A negative index drops the layer under every element while
     still keeping it above the page background: <html> is transparent, so the
     body gradient is painted onto the canvas, below negative-index children. */
  z-index: -1 !important;
}

/* No z-index here, on purpose. Giving the wrapper one creates a stacking
   context, and every Bootstrap modal inside it then loses to the backdrop that
   Bootstrap appends straight to <body> (1050) — which is why opening a category
   showed only a dark, unusable overlay. The snow keeps itself behind now. */
.flex-wrapper {
  position: relative;
}

#snow .snowflake,
.snowflake {
  box-shadow:
    0 0 6px rgba(168, 85, 247, 0.95),
    0 0 14px rgba(168, 85, 247, 0.55);
  filter: blur(0.3px);
}

/* ---------- Page darkens as you scroll ---------- */
body {
  /* Black through hero + features + stats, then deepening purple from the
     products search bar down to the footer. */
  background: linear-gradient(
    180deg,
    #000000 0%,
    #000000 46%,
    #030109 52%,
    #07030f 58%,
    #0c0417 65%,
    #130722 74%,
    #1a0a2d 85%,
    #230d3a 100%
  ) no-repeat;
  background-attachment: scroll;
  background-size: 100% 100%;
}


/* ==========================================================================
   Product cards
   Lives here, not inside snippets/product-card.njk: that snippet is rendered
   once per product, so the rules travelled with every single card — fifty
   identical copies on the home page, about 287 KB of the 951 KB served. From
   a stylesheet the browser fetches them once and caches them between visits.
   ========================================================================== */
/* No fade-in on scroll: cards are visible straight away */
.product-card-reveal {
  opacity: 1;
  transform: none;
}

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  will-change: transform;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease-out,
    box-shadow 0.3s ease-out;
}

/* Depth on hover: the card lifts off the page and casts a real shadow behind it. */
.product-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  /* Same transform as the reference script: the far edge tilts away */
  transform:
    perspective(800px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(1.03);
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.95),
    0 20px 40px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 40px -12px rgba(255, 255, 255, 0.12);
}

.product-card:active {
  transform: perspective(800px) scale(1.01);
  transition-duration: 0.15s;
}


@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }

}


.product-image-wrapper {
  aspect-ratio: 16 / 9;
  background-color: #0f0f0f;
  position: relative;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.25) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
  opacity: 1;
}

.product-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #0f0f0f;
  color: #333333;
}

/* Out of stock overlay */
.product-oos-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background 0.3s ease;
}

.product-card:hover .product-oos-overlay {
  background: rgba(0, 0, 0, 0.62);
}

.product-oos-text {
  color: #ef4444;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767.98px) {
  .product-oos-text {
    font-size: 0.938rem;
    letter-spacing: 1.5px;
    padding: 0.438rem 1rem;
  }
}

.product-info {
  padding: 16px 14px 14px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 78px;
  text-align: left;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: auto;
  padding-bottom: 16px;
  transition: color 0.3s ease;
  /* Only the product name is centered; price and stock keep their row. */
  text-align: center;
}

.product-card:hover .product-title {
  color: #ffffff;
}

.product-meta {
  font-size: 0.875rem;
}

.product-price {
  color: #f5f5f5;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.price-label {
  font-size: 0.688rem;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.product-card:hover .price-label {
  color: #aaaaaa;
}

.current-price {
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 600;
}

.price-separator {
  margin: 0 4px;
  color: #999999;
}

.old-price {
  color: #666666;
  font-size: 0.813rem;
}

.product-stock {
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid;
}

/* Stock badges in the logo's dark purple; out-of-stock stays red. */
.product-stock.stock-in,
.product-stock.stock-low {
  color: #c084fc;
  background: rgba(139, 47, 201, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
}

.product-card:hover .product-stock.stock-in,
.product-card:hover .product-stock.stock-low {
  background: rgba(139, 47, 201, 0.28);
  border-color: rgba(168, 85, 247, 0.65);
  color: #d8b4fe;
}

.product-stock.stock-out {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.product-card:hover .product-stock.stock-out {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.product-stock.product-group-count {
  color: #c084fc;
  background: rgba(139, 47, 201, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
}

.product-card:hover .product-stock.product-group-count {
  background: rgba(139, 47, 201, 0.28);
  border-color: rgba(168, 85, 247, 0.65);
  color: #d8b4fe;
}

.product-stock:not(.stock-in):not(.stock-low):not(.stock-out):not(.product-group-count) {
  color: #888888;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-card:hover .product-stock:not(.stock-in):not(.stock-low):not(.stock-out):not(.product-group-count) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #aaaaaa;
}

.stock-unlimited {
  display: inline-flex;
  align-items: center;
}

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.product-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #fde047, #eab308);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
  color: #1a1400;
}

@media (max-width: 767.98px) {
  .product-title {
    font-size: 0.938rem;
  }

  .product-meta {
    font-size: 0.813rem;
  }
}