/* =========================================
   PRODUCTO.CSS — DETALLE DE PRODUCTO
   Estilo premium tipo Sephora
========================================= */
:root {
--text:#0f172a;
--hover: #ffdbc5;
--naranja: #f38745;
--green_whats: #ccffc5;
}


body {
  background: #fff;
}

/* Contenedor general de la página de producto */
main .section {
  padding: 72px 0 90px;
}

#productView {
  margin-bottom: 70px;
}

/* Layout principal */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 70px;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
}

/* Imagen */
.product-detail__media {
  position: sticky;
  top: 30px;
  background: #fff;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.product-detail__media img {
  width: 100%;
  max-width: 560px;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

/* Info derecha */
.product-detail__info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

/* Marca */
.product__brand,
.product-detail__brand {
  margin: 0 0 10px;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  color: #111;
  letter-spacing: -1px;
  text-transform: none;
}

/* Línea debajo de marca */
.product-detail__info::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  order: none;
  margin: 4px 0 18px;
}

/* Título */
.product-detail__title,
.product__title {
  order: 2;
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: .2px;
  color: #111;
  text-align: left;
}

/* Precio */
.product-detail__price,
.product__price {
  order: 3;
  margin: 2px 0 24px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #111;
}

/* Bloques de información */
.product-detail__section {
  order: 4;
  padding: 20px 0;
  border-top: 1px solid #e8e8e8;
}

.product-detail__section h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #111;
}

.product-detail__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #222;
}

/* Texto general */
.product-detail__info p {
  font-size: 14px;
  line-height: 1.65;
  color: #222;
}

/* Inventario */
.product-detail__inventory p {
  margin: 8px 0;
  font-size: 14px;
}

.product-detail__inventory strong {
  font-weight: 800;
}

/* Código / estado */
.product-detail__info small,
.product-detail__code,
.product__code {
  color: #777;
  font-size: 11px;
  line-height: 1.4;
}

/* Botones */
.product-detail__actions {
  order: 9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.product-detail__actions .btn {
  width: 100%;
  max-width: 360px;
  min-height: 52px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}

/* Principal */
.product-detail__actions .btn--primary,
.product-detail__actions .btn:first-child {
  background: var(--naranja);
  color: var(#fff);
  border: 1px solid var(--naranja);
}

.product-detail__actions .btn--primary:hover,
.product-detail__actions .btn:first-child:hover {
  background: var(--naranja);
  border-color: var(--green_whats);
}

/* Secundarios */
.product-detail__actions .btn--light,
.product-detail__actions .btn--secondary {
  background: #fff;
  color: #111;
  border: 1px solid #111;
  width: 100%;
}

.product-detail__actions .btn--light:hover,
.product-detail__actions .btn--secondary:hover {
  background: #f5f5f5;
}

/* Quitar apariencia de card heredada */
#productView .card {
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: left;
}

/* También te puede interesar */
#similarHead {
  max-width: 1180px;
  margin: 40px auto 10px;
  text-align: left;
}

#similarHead h4 {
  font-size: 22px;
  margin: 0;
  color: #111;
}

.similar-products {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid #eee;
  padding-top: 28px;
}

/* Responsive */
@media (max-width: 900px) {
  main .section {
    padding: 34px 0 70px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail__media {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 18px;
  }

  .product-detail__media img {
    max-height: 390px;
  }

  .product-detail__info {
    text-align: left;
    padding: 0 18px;
  }

  .product__brand,
  .product-detail__brand {
    font-size: 36px;
  }

  .product-detail__title,
  .product__title {
    font-size: 22px;
  }

  .product-detail__price,
  .product__price {
    font-size: 25px;
  }

  .product-detail__actions .btn {
    max-width: none;
  }
}


/* ==============================
   INVENTARIO CARD
============================== */

.product-detail__inventory-card{
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fafafa;
}

.inventory-card__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.inventory-card__header h3{
  margin:0;
  font-size:13px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#111;
}

.inventory-status{
  font-size:11px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  text-transform:uppercase;
  white-space:nowrap;
}

.inventory-status.in-stock{
  background:#e8f6ef;
  color:#177245;
}

.inventory-status.out-stock{
  background:#fdecea;
  color:#b42318;
}

.inventory-list{
  display:flex;
  flex-direction:column;
}

.inventory-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:11px 0;
  border-bottom:1px solid #e9e9e9;
}

.inventory-item:last-child{
  border-bottom:0;
}

.inventory-item span{
  font-size:14px;
  color:#333;
}

.inventory-item strong{
  min-width:34px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff;
  border:1px solid #ddd;
  font-size:14px;
  font-weight:900;
  color:#111;
}


/* =========================================
   TAMBIÉN TE PUEDE INTERESAR — ESTILO SEPHORA
========================================= */

#similarHead {
  max-width: 1180px;
  margin: 70px auto 18px;
  padding: 0 10px;
  text-align: left;
  border: 0;
}

#similarHead h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #111;
}

.similar-products {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}

.similar-products .promo-carousel {
  padding: 0;
}

.similar-track {
  gap: 26px;
  padding: 10px 42px 18px;
}

.similar-item {
  flex: 0 0 170px;
  text-align: left;
}

.similar-item .product {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.similar-item .product__media {
  height: 170px;
  aspect-ratio: auto;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.similar-item .product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.similar-item .product__body {
  padding-top: 12px;
  text-align: left;
}

.similar-item .product__title {
  min-height: 0;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .1px;
  color: #111;
}

.similar-item .product__price {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.similar-products .promo-arrow {
  width: 36px;
  height: 36px;
  background: #111;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.similar-products .promo-arrow--left {
  left: 0;
}

.similar-products .promo-arrow--right {
  right: 0;
}

@media (max-width: 768px) {
  #similarHead {
    margin-top: 45px;
    padding: 0 18px;
  }

  .similar-products {
    padding: 16px 0 0;
  }

  .similar-track {
    gap: 18px;
    padding: 8px 18px 18px;
  }

  .similar-item {
    flex: 0 0 145px;
  }

  .similar-item .product__media {
    height: 145px;
  }

  .similar-item .product__title {
    font-size: 12px;
  }

  .similar-item .product__price {
    font-size: 13px;
  }
}

/* ==============================
   FIX ORDEN DETALLE PRODUCTO
============================== */

.product-detail__info {
  display: flex;
  flex-direction: column;
}

.product-detail__brand-logo {
  order: 1;
}

.product-detail__title {
  order: 2;
}

.product-detail__price {
  order: 3;
}

.product-detail__section {
  order: 4;
}

.product-detail__inventory-card {
  order: 5;
}

.product-detail__meta {
  order: 6;
}

.product-detail__actions {
  order: 7;
}

.product-gallery__main{
  position: relative;
}

.wishlist-btn{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.95);
  color: #111;

  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,.15);

  transition: all .2s ease;
}

.wishlist-btn:hover{
  transform: scale(1.08);
}

.wishlist-btn.is-active{
  background: #111;
  color: #fff;
}

.product-detail__cart-row{
  width:100%;
  max-width:360px;
  display:flex;
  align-items:center;
  gap:14px;
}

.product-detail__cart-row .product-add-btn{
  flex:1;
  min-height:52px;
  border-radius:999px;
  background:#000;
  border:1px solid #000;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  transition:.2s ease;
}

.product-add-btn__main{
  font-size:14px;
  font-weight:800;
  line-height:1;
}

.product-add-btn__sub{
  font-size:11px;
  font-weight:600;
  opacity:.9;
  line-height:1;
}

.product-add-btn.is-added{
  background:#111;
  border-color:#111;
  transform:scale(.98);
}

.product-detail__wishlist{
  width:52px;
  height:52px;
  min-width:52px;
  border-radius:999px;
  border:0;
  background:#fff;
  color:#111;
  font-size:30px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.18s ease;
}

.product-detail__wishlist:hover{
  transform:scale(1.08);
}

.product-detail__wishlist.is-active{
  color:#111;
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(10px);
  background:#111;
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:99999;
}

.toast.is-show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}


/* =========================
   BOTONES PREMIUM UNIFICADOS
========================= */

.product-detail__actions{
  margin-top: 20px;
}

/* BOTONES SECUNDARIOS */
.product-detail__actions .btn--light{
  height: 48px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 14px;

  display:flex;
  align-items:center;
  justify-content:center;

  transition: all .2s ease;
}

/* hover elegante */
.product-detail__actions .btn--light:hover{
  background:#f6f6f6;
  border-color:#ddd;
}

/* WHATSAPP PREMIUM */
.product-detail__actions .btn--whats{
  height: 52px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;

  background: var(--green_whats);
  border:1px solid var(--green_whats);
  color: var(--text);

  transition:.2s ease;
}

.product-detail__actions .btn--whats:hover{
  background:#1ebe5d;
}

/* =========================
   FIX BOTONES PRODUCTO UNIFICADOS
========================= */

.product-detail__actions {
  width: 100%;
  max-width: 360px;
  align-items: stretch;
}

.product-detail__cart-row {
  width: 100%;
  max-width: 100%;
  gap: 10px;
}

.product-detail__cart-row .product-add-btn {
  width: auto;
  flex: 1;
  max-width: none;
}

.product-detail__actions .btn,
.product-detail__actions .btn--light,
.product-detail__actions .btn--whats {
  width: 100%;
  max-width: 100%;
}

/* quitar cualquier ancho viejo que lo desborda */
.product-detail__actions .btn--light,
.product-detail__actions .btn--secondary {
  width: 100% !important;
}

.product-detail__wishlist {
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.product-detail__seo{
  font-size:14px;
  color:#555;
  margin-top:4px;
}