/* =====================================================
   SINGLE PRODUCT – BASE
===================================================== */

body.single-product{
  overflow-x: hidden;
}


/* =====================================================
   LAYOUT (DESKTOP)
===================================================== */

body.single-product .product-main{
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 40px;
  align-items: flex-start;
}


/* =====================================================
   MEDIA (IMMAGINE + THUMB)
===================================================== */

body.single-product .product-media{
  width: 100%;
}

body.single-product .product-media > img{
  width: 100%;
  max-height: 420px;
  object-fit: contain;

  background: #f5f5f5;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Thumbnails */
body.single-product .product-thumbs{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

body.single-product .product-thumbs img{
  width: 96px;
  height: 96px;
  object-fit: contain;

  background: #f5f5f5;
  padding: 6px;
  border-radius: 8px;

  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.single-product .product-thumbs img:hover{
  opacity: 1;
  transform: translateY(-2px);
}

body.single-product .product-thumbs img.active{
  opacity: 1;
  box-shadow: 0 0 0 2px #000;
}


/* =====================================================
   SUMMARY
===================================================== */

body.single-product .product-summary{
  max-width: 520px;
}

body.single-product .product-title{
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
}

body.single-product .product-price{
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Trust list */
body.single-product .product-trust{
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

body.single-product .product-trust li{
  font-size: .95rem;
  color: #555;
  margin-bottom: 6px;
}

/* CTA */
body.single-product .product-cta{
  margin-top: 24px;
}

body.single-product .product-cta-note{
  font-size: .9rem;
  color: #666;
  margin-top: 8px;
}


/* =====================================================
   DETAILS
===================================================== */

body.single-product .product-details{
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

body.single-product .product-details-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  margin-top: 32px;
}

/* Attributes */
body.single-product .product-attributes h3{
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

body.single-product .product-attributes ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

body.single-product .product-attributes li{
  display: flex;
  gap: 8px;
  font-size: .95rem;
  margin-bottom: 6px;
  color: #444;
}

body.single-product .product-attributes strong{
  font-weight: 600;
  color: #000;
}


/* =====================================================
   STOCK STATES
===================================================== */

body.single-product .stock.out-of-stock{
  color: #a94442;
  font-weight: 600;
  margin-top: 12px;
}

body.single-product .product-outofstock-note{
  margin-top: 8px;
  font-size: .9rem;
  color: #777;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px){

  body.single-product .product-main{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body.single-product .product-media{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.single-product .product-media > img{
    max-height: 320px;
  }

  body.single-product .product-thumbs{
    gap: 10px;
    margin-top: 12px;
  }

  body.single-product .product-thumbs img{
    width: 80px;
    height: 80px;
  }

  body.single-product .product-summary{
    max-width: 100%;
  }

  body.single-product .product-title{
    font-size: 1.6rem;
  }

  body.single-product .product-price{
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  body.single-product .product-details{
    margin-top: 16px;
    padding-top: 12px;
  }

  body.single-product .product-details-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
