/* ============================================================
   Algodón Todo Evento - Máquina Automática A16
   Paleta: Celestes + Azules + Morados (industrial premium)
   ============================================================ */

:root {
  /* Colores base */
  --celeste-claro: #e0f7fa;
  --celeste: #4dd0e1;
  --celeste-oscuro: #00acc1;

  --azul-claro: #b3e5fc;
  --azul: #039be5;
  --azul-oscuro: #01579b;

  --morado: #673ab7;
  --morado-claro: #b39ddb;
  --morado-oscuro: #4527a0;
  --lila: #9575cd;

  --verde-claro: #a5d6a7;
  --verde: #66bb6a;
  --verde-oscuro: #2e7d32;

  --blanco: #ffffff;
  --gris-claro: #f5f5f5;
  --gris: #bdbdbd;
  --gris-oscuro: #424242;
  --negro: #212121;

  --sombra-suave: 0 2px 8px rgba(0, 0, 0, 0.1);
  --sombra-media: 0 4px 16px rgba(0, 0, 0, 0.15);
  --sombra-fuerte: 0 8px 24px rgba(0, 0, 0, 0.2);

  --transicion-rapida: 0.3s ease;
  --transicion-media: 0.5s ease;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

/* Fondo global */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, #e8eaf6 0%, var(--celeste-claro) 35%, var(--azul-claro) 100%);
  color: var(--gris-oscuro);
  line-height: 1.6;
}

/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.main-container {
  max-width: 1400px;
  margin: clamp(1rem, 4vw, 2rem) auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  overflow-x: hidden;
  position: relative;
}

/* Brillos de fondo */
.main-container::before,
.main-container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.26;
  z-index: -1;
}

.main-container::before {
  width: clamp(180px, 40vw, 260px);
  height: clamp(180px, 40vw, 260px);
  background: radial-gradient(circle, var(--morado-claro), var(--morado));
  top: -40px;
  right: -60px;
}

.main-container::after {
  width: clamp(160px, 35vw, 220px);
  height: clamp(160px, 35vw, 220px);
  background: radial-gradient(circle, var(--celeste), var(--azul));
  bottom: -60px;
  left: -50px;
}

/* Card principal del producto */

.product-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  background: var(--blanco);
  border-radius: clamp(16px, 4vw, 24px);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--sombra-fuerte);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
}

/* Franja diagonal decorativa */
.product-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -40%;
  width: 65%;
  height: 160%;
  background: linear-gradient(
    135deg,
    rgba(103, 58, 183, 0.14),
    rgba(179, 157, 219, 0.18),
    rgba(3, 155, 229, 0.16)
  );
  transform: rotate(-18deg);
  pointer-events: none;
}

/* Animaciones base */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-25px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   GALERÍA
   ============================================================ */

.product-gallery {
  position: relative;
  z-index: 1;
}

.main-image {
  position: relative;
  width: 100%;
  height: clamp(300px, 60vw, 480px);
  border-radius: clamp(14px, 3vw, 20px);
  overflow: hidden;
  box-shadow: var(--sombra-media);
  background: radial-gradient(circle at top, #e8eaf6 0%, var(--azul-claro) 45%, var(--morado-claro) 100%);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform var(--transicion-media), box-shadow var(--transicion-rapida);
}

/* Etiqueta flotante */
.main-image::after {
  content: "Máquina Automática A16";
  position: absolute;
  bottom: clamp(10px, 3vw, 14px);
  left: clamp(10px, 3vw, 14px);
  padding: clamp(0.35rem, 1vw, 0.45rem) clamp(1rem, 3vw, 1.3rem);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--blanco);
  font-size: clamp(0.76rem, 2vw, 0.86rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transicion-media);
}

.main-image:hover img {
  transform: scale(1.08);
}

.main-image:hover {
  box-shadow: 0 14px 38px rgba(69, 39, 160, 0.5);
  transform: translateY(-4px);
}

/* Zoom fullscreen */

.main-image.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  border-radius: 0;
  cursor: zoom-out;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: none;
}

.main-image.zoomed::after {
  display: none;
}

.main-image.zoomed img {
  object-fit: contain;
  transform: scale(1);
}

/* Thumbnails */

.thumbnail-gallery {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: clamp(70px, 15vw, 100px);
  height: clamp(70px, 15vw, 100px);
  object-fit: cover;
  border-radius: clamp(8px, 2vw, 12px);
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transicion-rapida);
  box-shadow: var(--sombra-suave);
  background: var(--gris-claro);
}

.thumbnail:hover {
  border-color: var(--celeste);
  transform: translateY(-5px);
  box-shadow: var(--sombra-media);
}

.thumbnail.active {
  border-color: var(--morado-oscuro);
  box-shadow: 0 0 22px rgba(69, 39, 160, 0.55);
}

/* ============================================================
   INFO DEL PRODUCTO
   ============================================================ */

.product-details {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.4rem);
  z-index: 1;
}

.product-details h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: clamp(0.3rem, 1vw, 0.4rem);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--morado-oscuro), var(--azul));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInRight 0.6s ease;
}

.brand,
.sku {
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  color: var(--gris-oscuro);
  font-weight: 500;
}

.brand span,
.sku span {
  font-weight: 600;
  color: var(--azul-oscuro);
}

/* Disponibilidad */

.availability {
  display: inline-block;
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1.3rem, 3vw, 1.6rem);
  color: var(--blanco);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  width: fit-content;
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  box-shadow: 0 4px 13px rgba(46, 125, 50, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 4px 13px rgba(46, 125, 50, 0.5);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 7px 24px rgba(46, 125, 50, 0.8);
  }
}

/* ============================================================
   ESPECIFICACIONES
   ============================================================ */

.specifications {
  background: linear-gradient(135deg, var(--blanco) 0%, var(--celeste-claro) 60%, #e8eaf6 100%);
  border-radius: clamp(12px, 3vw, 18px);
  padding: clamp(1.4rem, 3vw, 1.7rem) clamp(1.5rem, 3vw, 1.8rem);
  box-shadow: var(--sombra-media);
  border: 2px solid rgba(69, 39, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.specifications::before {
  content: "⚙️";
  position: absolute;
  font-size: clamp(70px, 15vw, 90px);
  opacity: 0.14;
  right: -2px;
  top: -18px;
}

.specifications h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: var(--azul-oscuro);
  position: relative;
  padding-bottom: clamp(0.3rem, 1vw, 0.4rem);
}

.specifications h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--morado-oscuro), var(--azul));
}

.specifications ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ítems principales */
.specifications > ul > li {
  padding: clamp(0.35rem, 1vw, 0.45rem) 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  font-size: clamp(0.88rem, 2vw, 0.98rem);
}

.specifications > ul > li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: clamp(0.35rem, 1vw, 0.45rem);
  background: linear-gradient(135deg, var(--morado), var(--celeste));
  flex-shrink: 0;
}

.specifications strong {
  color: var(--negro);
  font-weight: 600;
}

/* Sublista interna */
.specifications ul ul {
  margin-top: 0.35rem;
  margin-left: clamp(0.9rem, 3vw, 1.1rem);
}

.specifications ul ul li {
  padding: clamp(0.15rem, 0.5vw, 0.22rem) 0;
  font-size: clamp(0.86rem, 2vw, 0.96rem);
  position: relative;
}

.specifications ul ul li::before {
  content: "▹";
  position: absolute;
  left: -1rem;
  color: var(--morado-oscuro);
  font-size: 0.7rem;
  top: clamp(0.35rem, 1vw, 0.45rem);
}

/* ============================================================
   PRECIO
   ============================================================ */

.pricing {
  background: linear-gradient(135deg, var(--blanco) 0%, #e8eaf6 100%);
  padding: clamp(1.8rem, 4vw, 2.1rem);
  border-radius: clamp(15px, 4vw, 20px);
  box-shadow: var(--sombra-media);
  border: 3px solid var(--morado-oscuro);
  position: relative;
  overflow: hidden;
  margin-top: clamp(0.5rem, 1vw, 0.7rem);
}

/* Detalles decorativos */
.pricing::before,
.pricing::after {
  content: "";
  position: absolute;
  width: clamp(100px, 20vw, 140px);
  height: clamp(100px, 20vw, 140px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.3), transparent 60%);
  opacity: 0.5;
}

.pricing::before {
  top: -60px;
  right: -40px;
}

.pricing::after {
  bottom: -70px;
  left: -50px;
}

/* Línea principal de precio */
.bulk-pricing {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: clamp(0.8rem, 2vw, 1.1rem);
  padding: clamp(1rem, 3vw, 1.3rem);
  background: var(--blanco);
  border-radius: clamp(12px, 3vw, 16px);
  border-left: 6px solid var(--morado-oscuro);
  box-shadow: var(--sombra-suave);
  transition: all var(--transicion-rapida);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  line-height: 1.4;
}

.bulk-pricing:hover {
  transform: translateX(8px);
  box-shadow: var(--sombra-media);
  border-left-color: var(--azul);
}

.bulk-pricing strong {
  color: var(--morado-oscuro);
  font-size: clamp(1.1rem, 3vw, 1.26rem);
  flex: 1;
  min-width: 200px;
}

.bulk-pricing .price {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  padding: clamp(0.4rem, 1vw, 0.55rem) clamp(1.2rem, 3vw, 1.7rem);
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(67, 160, 71, 0.45);
  animation: priceGlow 2.1s infinite;
  white-space: nowrap;
}

@keyframes priceGlow {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.4);
  }
  50% {
    box-shadow: 0 8px 28px rgba(67, 160, 71, 0.75);
  }
}

/* Descripción */

.description {
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  color: var(--gris-oscuro);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.3rem) clamp(0.8rem, 2vw, 1rem) clamp(2.5rem, 6vw, 3.1rem);
  background: var(--blanco);
  border-radius: 12px;
  margin-top: clamp(0.3rem, 1vw, 0.4rem);
  border: 2px dashed var(--morado);
  line-height: 1.8;
  position: relative;
}

.description::before {
  content: "ⓘ";
  position: absolute;
  left: clamp(0.75rem, 2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--morado-oscuro);
  background: #ede7f6;
  width: clamp(28px, 6vw, 32px);
  height: clamp(28px, 6vw, 32px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contacto */

.contact {
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  color: var(--azul-oscuro);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.3rem);
  background: linear-gradient(135deg, var(--azul-claro), var(--celeste-claro));
  border-radius: clamp(8px, 3vw, 12px);
  margin-top: clamp(0.75rem, 2vw, 1rem);
  font-weight: 600;
  border: 2px solid var(--azul);
  box-shadow: var(--sombra-suave);
  position: relative;
}

.contact::before {
  content: "📞";
  margin-right: clamp(4px, 1vw, 8px);
}

/* ============================================================
   CTA / COMPRA
   ============================================================ */

.product-details1 {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--blanco) 0%, var(--celeste-claro) 100%);
  border-radius: clamp(12px, 3vw, 16px);
  box-shadow: var(--sombra-media);
  text-align: center;
}

.info-text {
  font-size: clamp(0.95rem, 2.5vw, 1.02rem);
  color: var(--gris-oscuro);
  margin-bottom: clamp(1rem, 3vw, 1.4rem);
  line-height: 1.8;
}

.product-details1 h6 {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: var(--azul-oscuro);
  margin-bottom: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
}

.product-details1 li {
  list-style: none;
}

/* Botón CTA */

.cta-button {
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 6vw, 3rem);
  background: linear-gradient(135deg, var(--morado), var(--morado-oscuro));
  color: var(--blanco);
  text-decoration: none;
  border-radius: 999px;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 20px rgba(69, 39, 160, 0.6);
  transition: all var(--transicion-rapida);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: clamp(200px, 50vw, 260px);
  height: clamp(200px, 50vw, 260px);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(49, 27, 146, 0.7);
  background: linear-gradient(135deg, var(--morado-oscuro), #311b92);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* ============================================================
   PRODUCTOS RECOMENDADOS
   ============================================================ */

.recommended-products {
  background: var(--blanco);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: clamp(16px, 4vw, 22px);
  box-shadow: var(--sombra-fuerte);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  max-width: 1400px;
  overflow: hidden;
}

.recommended-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(1.5rem, 4vw, 1.8rem);
  gap: 1rem;
  flex-wrap: wrap;
}

.recommended-header h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  background: linear-gradient(135deg, var(--azul-oscuro), var(--morado-oscuro));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
  min-width: 200px;
}

.carousel-controls {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
  flex-shrink: 0;
}

.carousel-prev,
.carousel-next {
  width: clamp(40px, 10vw, 50px);
  height: clamp(40px, 10vw, 50px);
  border: none;
  background: linear-gradient(135deg, var(--celeste), var(--azul));
  color: var(--blanco);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transicion-rapida);
  box-shadow: var(--sombra-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: linear-gradient(135deg, var(--azul), var(--morado-oscuro));
  transform: scale(1.15) translateY(-1px);
  box-shadow: var(--sombra-media);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.95);
}

.recommended-grid {
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Tarjetas */

.recommended-item {
  flex: 0 0 clamp(200px, 60vw, 300px);
  min-width: clamp(200px, 60vw, 300px);
}

.recommended-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recommended-item > a {
  background: linear-gradient(135deg, var(--blanco) 0%, var(--celeste-claro) 100%);
  border-radius: clamp(12px, 3vw, 16px);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: var(--sombra-suave);
  transition: all var(--transicion-rapida);
  cursor: pointer;
  border: 2px solid transparent;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

/* Destello diagonal */
.recommended-item > a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.4s ease, left 0.4s ease;
}

.recommended-item:hover > a::after {
  opacity: 1;
  left: 130%;
}

.recommended-item:hover > a {
  transform: translateY(-10px);
  box-shadow: var(--sombra-fuerte);
  border-color: var(--celeste);
}

.product-image {
  position: relative;
  width: 100%;
  height: clamp(150px, 40vw, 200px);
  border-radius: clamp(8px, 2vw, 12px);
  overflow: hidden;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(8px, 2vw, 12px);
  transition: transform var(--transicion-media);
}

.recommended-item:hover img {
  transform: scale(1.1);
}

.product-info h3 {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--azul-oscuro);
  margin-bottom: clamp(0.25rem, 1vw, 0.35rem);
  font-weight: 600;
  text-align: center;
}

.product-info p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--gris-oscuro);
  text-align: center;
}

/* Skeleton loading */
.loading {
  animation: shimmerLoading 2s infinite;
  background: linear-gradient(
    to right,
    var(--gris-claro) 0%,
    var(--celeste-claro) 20%,
    var(--gris-claro) 40%,
    var(--gris-claro) 100%
  );
  background-size: 1000px 100%;
}

@keyframes shimmerLoading {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1400px) {
  .main-container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .product-container {
    gap: clamp(1.8rem, 4vw, 2.4rem);
    padding: clamp(2rem, 4vw, 2.6rem);
  }
  .recommended-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 220px;
  }
}

@media (max-width: 992px) {
  .product-container {
    grid-template-columns: 1fr;
    padding: clamp(1.5rem, 4vw, 2rem);
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .main-image {
    height: clamp(350px, 80vw, 440px);
  }

  .product-details h1 {
    font-size: clamp(1.8rem, 5vw, 2.1rem);
  }

  .thumbnail {
    width: clamp(80px, 20vw, 88px);
    height: clamp(80px, 20vw, 88px);
  }

  .specifications {
    padding: clamp(1.4rem, 3vw, 1.6rem) clamp(1.3rem, 3vw, 1.5rem);
  }

  .pricing {
    padding: clamp(1.6rem, 4vw, 1.8rem);
  }

  .bulk-pricing {
    font-size: clamp(1rem, 3vw, 1.08rem);
    padding: clamp(1rem, 3vw, 1.25rem);
  }

  .bulk-pricing strong {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
  }

  .bulk-pricing .price {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }

  .description {
    font-size: clamp(0.9rem, 2.5vw, 0.98rem);
    padding: clamp(0.85rem, 2vw, 0.95rem) clamp(1rem, 3vw, 1.3rem) clamp(0.85rem, 2vw, 0.95rem) clamp(2.8rem, 6vw, 3.1rem);
  }

  .recommended-item {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 200px;
  }

  .carousel-prev,
  .carousel-next {
    width: clamp(45px, 10vw, 48px);
    height: clamp(45px, 10vw, 48px);
    font-size: clamp(1.6rem, 4vw, 1.7rem);
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 1rem;
    margin: clamp(1rem, 3vw, 1.5rem) auto;
  }

  .product-container {
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border-radius: clamp(14px, 4vw, 18px);
    gap: clamp(1.2rem, 3vw, 1.6rem);
  }

  .main-image {
    height: clamp(300px, 80vw, 380px);
  }

  .product-details h1 {
    font-size: clamp(1.6rem, 5vw, 1.9rem);
  }

  .thumbnail {
    width: clamp(70px, 20vw, 88px);
    height: clamp(70px, 20vw, 88px);
  }

  .specifications {
    padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 1.5rem);
  }

  .pricing {
    padding: clamp(1.4rem, 4vw, 1.8rem);
  }

  .bulk-pricing {
    font-size: clamp(0.95rem, 2.5vw, 1.02rem);
    padding: clamp(1rem, 3vw, 1.15rem);
  }

  .bulk-pricing strong {
    font-size: clamp(1rem, 3vw, 1.15rem);
  }

  .bulk-pricing .price {
    font-size: clamp(1.4rem, 4vw, 1.7rem);
  }

  .description {
    font-size: clamp(0.88rem, 2.5vw, 0.96rem);
  }

  .contact {
    font-size: clamp(0.85rem, 2.5vw, 0.94rem);
  }

  .product-details1 {
    padding: clamp(1.5rem, 4vw, 1.8rem);
  }

  .info-text {
    font-size: clamp(0.95rem, 2.5vw, 1.01rem);
  }

  .product-details1 h6 {
    font-size: clamp(1.1rem, 3vw, 1.18rem);
  }

  .cta-button {
    padding: clamp(0.75rem, 2vw, 0.94rem) clamp(2rem, 5vw, 2.7rem);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  }

  .recommended-products {
    padding: clamp(1.5rem, 4vw, 1.8rem) clamp(1rem, 3vw, 1.2rem);
  }

  .recommended-header h2 {
    font-size: 1.8rem;
  }

  .recommended-item {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 170px;
  }

  .product-image,
  .product-image img {
    height: 170px;
  }

  .product-info h3 {
    font-size: 1.08rem;
  }
}

@media (max-width: 640px) {
  .main-container {
    margin: clamp(0.8rem, 2vw, 1.3rem) auto;
  }

  .product-container {
    padding: clamp(1rem, 3vw, 1.4rem);
  }

  .main-image {
    height: clamp(280px, 80vw, 340px);
  }

  .product-details h1 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }

  .thumbnail {
    width: clamp(65px, 20vw, 78px);
    height: clamp(65px, 20vw, 78px);
  }

  .pricing {
    padding: clamp(1.3rem, 3vw, 1.55rem);
  }

  .bulk-pricing {
    font-size: clamp(0.9rem, 2.5vw, 0.99rem);
    padding: clamp(0.9rem, 2vw, 1.05rem);
  }

  .bulk-pricing .price {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .description {
    font-size: clamp(0.85rem, 2vw, 0.94rem);
    padding: clamp(0.8rem, 2vw, 0.9rem) clamp(0.9rem, 2vw, 1.1rem) clamp(0.8rem, 2vw, 0.9rem) clamp(2.4rem, 6vw, 2.8rem);
  }

  .contact {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .cta-button {
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(2rem, 5vw, 2.5rem);
    font-size: clamp(0.9rem, 2.5vw, 1.02rem);
  }
}

@media (max-width: 576px) {
  .product-container {
    padding: clamp(0.8rem, 3vw, 1.2rem);
    gap: clamp(1rem, 3vw, 1.3rem);
  }

  .main-image {
    height: clamp(250px, 80vw, 300px);
  }

  .product-details h1 {
    font-size: clamp(1.4rem, 5vw, 1.63rem);
  }

  .brand,
  .sku {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
  }

  .availability {
    font-size: clamp(0.75rem, 2vw, 0.84rem);
    padding: clamp(0.35rem, 1vw, 0.44rem) clamp(1rem, 3vw, 1.3rem);
  }

  .thumbnail {
    width: clamp(60px, 20vw, 70px);
    height: clamp(60px, 20vw, 70px);
  }

  .thumbnail-gallery {
    gap: clamp(0.5rem, 2vw, 0.7rem);
  }

  .specifications {
    padding: clamp(1rem, 3vw, 1.4rem) clamp(1rem, 3vw, 1.3rem);
  }

  .bulk-pricing {
    font-size: clamp(0.85rem, 2.5vw, 0.96rem);
    padding: clamp(0.8rem, 2vw, 1rem);
    flex-direction: column;
    text-align: center;
  }

  .bulk-pricing strong {
    font-size: clamp(0.95rem, 2.5vw, 1.08rem);
    min-width: 100%;
  }

  .bulk-pricing .price {
    font-size: clamp(1.3rem, 4vw, 1.48rem);
  }

  .description {
    font-size: clamp(0.85rem, 2vw, 0.92rem);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(0.8rem, 2vw, 1rem) clamp(0.7rem, 2vw, 0.9rem) clamp(2.3rem, 6vw, 2.7rem);
    line-height: 1.7;
  }

  .product-details1 {
    padding: clamp(1.2rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.2rem);
  }

  .info-text {
    font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  }

  .product-details1 h6 {
    font-size: clamp(1rem, 3vw, 1.12rem);
    margin-bottom: clamp(1rem, 3vw, 1.3rem);
  }

  .cta-button {
    width: 100%;
    max-width: 100%;
    padding: clamp(0.7rem, 2vw, 0.85rem) clamp(1.8rem, 5vw, 2.1rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .recommended-products {
    padding: clamp(1.2rem, 3vw, 1.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: clamp(14px, 4vw, 18px);
  }

  .recommended-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .recommended-header h2 {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    width: 100%;
  }

  .carousel-controls {
    width: 100%;
    justify-content: center;
  }

  .recommended-item {
    flex: 0 0 100%;
    min-width: auto;
    max-width: 100%;
  }

  .product-image,
  .product-image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 0.8rem;
    margin: clamp(0.8rem, 2vw, 1rem) auto;
  }

  .product-container {
    padding: clamp(0.8rem, 2vw, 1rem);
    border-radius: clamp(12px, 3vw, 14px);
  }

  .main-image {
    height: clamp(220px, 80vw, 270px);
  }

  .product-details h1 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
  }

  .thumbnail {
    width: clamp(55px, 15vw, 64px);
    height: clamp(55px, 15vw, 64px);
  }

  .bulk-pricing {
    font-size: clamp(0.85rem, 2vw, 0.92rem);
    padding: clamp(0.7rem, 2vw, 0.9rem);
  }

  .bulk-pricing .price {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  .description {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
  }

  .product-details1 {
    padding: clamp(1rem, 3vw, 1.3rem) clamp(0.8rem, 2vw, 1rem);
  }

  .cta-button {
    font-size: clamp(0.85rem, 2vw, 0.97rem);
  }

  .recommended-products {
    padding: clamp(1rem, 3vw, 1.3rem) clamp(0.7rem, 2vw, 0.9rem);
  }

  .carousel-prev,
  .carousel-next {
    width: clamp(40px, 10vw, 46px);
    height: clamp(40px, 10vw, 46px);
    font-size: clamp(1.4rem, 4vw, 1.65rem);
  }

  .product-image,
  .product-image img {
    height: 185px;
  }
}

@media (max-width: 400px) {
  .product-details h1 {
    font-size: clamp(1.2rem, 5vw, 1.38rem);
  }

  .main-image {
    height: clamp(200px, 80vw, 240px);
  }

  .thumbnail {
    width: clamp(50px, 15vw, 58px);
    height: clamp(50px, 15vw, 58px);
  }

  .bulk-pricing {
    font-size: clamp(0.8rem, 2vw, 0.88rem);
  }

  .bulk-pricing .price {
    font-size: clamp(1.1rem, 4vw, 1.32