.main-content {
  padding: 0.25rem 0 2rem;
}


.icon-sprite {
  position: absolute;
}

.page-title {
  margin: 0.25rem 0 1rem;
  text-align: center;
  font-size: 35px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mobile-scroll-hint {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 20;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  align-items: center;
  gap: 0.45rem;
  font: 700 0.78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.mobile-scroll-hint__arrow {
  display: inline-block;
  animation: blink-arrow 1.2s ease-in-out infinite;
}

@keyframes blink-arrow {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-scroll-hint__arrow {
    animation: none;
  }
}

.product {
  margin-top: 0.25rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem;
  background-color: var(--panel);
}

.product h2 {
  margin: 0 0 0.75rem;
  font-size: 20px;
  text-transform: uppercase;
}

.slider-container {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px;
}

.price-overlay,
.size-overlay,
.stock-overlay {
  position: absolute;
  z-index: 3;
  margin: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(3px);
  font-family: Arial, Helvetica, sans-serif;
}

.price-overlay {
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
}

.size-overlay {
  left: 50%;
  bottom: 0rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1.2rem);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.88);
  color: #1f1f1f;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.stock-overlay {
  top: 50%;
  left: 50%;
  width: 170%;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-28deg);
  background: rgba(126, 11, 11, 0.55);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.45rem 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.stock-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.stock-overlay.is-limited {
  background: rgba(16, 78, 127, 0.6);
}

.slider-container.is-zoom-active .stock-overlay {
  opacity: 0;
  visibility: hidden;
}



.slider {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.image-zoom {
  display: inline-block;
  max-width: 100%;
  height: max-content;
  position: relative;
  cursor: zoom-in;
}

.image-zoom img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product.is-out-of-stock .image-zoom img {
  filter: grayscale(0.45) brightness(0.78);
  opacity: 0.65;
}

.image-zoom-block {
  display: none;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-image: var(--image);
  background-repeat: no-repeat;
  background-size: 600%;
  background-position: var(--x) var(--y);
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-zoom.-active {
  cursor: zoom-out;
}

.image-zoom.-active .image-zoom-block {
  display: block;
}

.image-zoom.is-zoom-disabled {
  cursor: default;
}

.image-zoom.is-zoom-disabled .image-zoom-block {
  display: none !important;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  color: #222;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.slider-btn.prev { left: 0.6rem; }
.slider-btn.next { right: 0.6rem; }


.details {
  margin: 0.85rem auto 0;
  display: grid;
  gap: 0.45rem;
  font-family: Arial, Helvetica, sans-serif;
}

.color-chip {
  margin: 0;
  width: 100%;
  border: 1px solid #c4c4c4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff9e;
  box-sizing: border-box;
}

.warning {
  border-color: #9a3b3b;
}

.color-chip-label {
  font-weight: 700;
}

.color-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-dot-btn {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #6b6b6b;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.color-dot-btn.is-selected {
  outline: 2px solid #2a2a2a;
  outline-offset: 2px;
}

.color-dot-btn.is-out-of-stock {
  opacity: 0.6;
}

.color-dot-btn.is-limited-edition {
  border-color: #0f4f81;
  box-shadow: 0 0 0 1px rgba(15, 79, 129, 0.35);
}

.dot-out {
  position: absolute;
  width: 2px;
  height: 1.55rem;
  background: #9a1212;
  transform: rotate(45deg);
}

.color-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid #595959;
}

.product-order {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #ffffff9e;
  font-family: Arial, Helvetica, sans-serif;
}

.shipping-note {
  opacity: 0.9;
  font-size: 0.86rem;
}

.color-dot.white {
  background: #fff;
}

.color-dot.black {
  background: #111;
}

.color-dot.grey {
  background: #474440;
}

.color-dot.grey-dark {
  background: #252426;
}

.color-dot.khaki {
  background: #e5d4ca;
}

.color-dot.wine {
  background: #67292e;
}

.color-dot.pink {
  background: #ff69b4;
}

.color-dot.yellow {
  background: #fbf900;
}

.color-dot.segmented-circle {
  background: conic-gradient(
    #111 0deg 90deg,
    #474440 90deg 180deg,
    #e5d4ca 180deg 270deg,
    #67292e 270deg 360deg
  );
}

.order-methods {
  margin-top: 1.5rem;
  text-align: center;
}

.order-methods h2,
.benefits h2 {
  margin: 0 0 0.5rem;
  font-size: 20px;
  text-transform: uppercase;
}

.order-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.buy {
  display: inline-block;
  margin-inline: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #111;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-weight: 700;
}

.benefits {
  margin-top: 1.25rem;
  text-align: center;
}

.benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.benefits li {
  border: 1px solid #c4c4c4;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  background-color: #ffffff9e;
}

.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.7rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .mobile-scroll-hint:not([hidden]) {
    display: inline-flex;
  }

  .color-chip,
  .product-order {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}
