/* ------------------------------------------------------------ */
/* Shop Product                                                 */
/* ------------------------------------------------------------ */

/* ------------------------------------------------------------ */
/* Shared local helpers                                         */
/* ------------------------------------------------------------ */

.shop-wrap{
  margin:0 auto;
  padding:28px 16px 28px;
}

.muted{
  color:#667085;
}

/* ------------------------------------------------------------ */
/* Product page layout                                          */
/* ------------------------------------------------------------ */

.product-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}

@media (max-width:980px){
  .product-layout{
    grid-template-columns:1fr;
  }
}

/* ------------------------------------------------------------ */
/* Product panels                                               */
/* ------------------------------------------------------------ */

.product-panel{
  overflow:hidden;
  padding:14px;
  border:1px solid #e7e9ee;
  border-radius:14px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
}

/* ------------------------------------------------------------ */
/* Optional simple product media fallback                       */
/* ------------------------------------------------------------ */

.product-media{
  overflow:hidden;
  border:1px solid #e7e9ee;
  border-radius:14px;
  background:#fff;
}

.product-media__img{
  display:block;
  margin:0 auto;
  max-height:420px;
  object-fit:cover;
}

.product-media__placeholder{
  aspect-ratio:4 / 3;
  background:linear-gradient(135deg, #f0f2f7 0%, #fbfcff 100%);
}

/* ------------------------------------------------------------ */
/* Product header / content                                     */
/* ------------------------------------------------------------ */

.product-head{
  margin-bottom:12px;
}

.product-title{
  margin:0 0 8px;
  font-size:22px;
  letter-spacing:-.02em;
}

.product-price-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.product-price{
  margin-bottom:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.01em;
}

.product-price-compare{
  color:#667085;
  font-size:14px;
}

.product-subtitle{
  margin:0;
  font-size:14px;
}

.product-body{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.product-desc{
  font-size:14px;
  line-height:1.5;
}

.field{
  display:block;
  margin-top:12px;
}

.field__label{
  display:block;
  margin-bottom:6px;
  color:#3a404a;
  font-size:12px;
  font-weight:800;
}

/* ------------------------------------------------------------ */
/* Product quantity                                             */
/* ------------------------------------------------------------ */

.product-qty{
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
}

.product-qty__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid #e7e9ee;
  background:#fff;
  cursor:pointer;
}

.product-qty__btn:hover{
  background:#f6f7fa;
}

.product-qty__btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.product-qty__input{
  width:72px;
  height:38px;
  border-left:1px solid #e7e9ee;
  border-right:1px solid #e7e9ee;
  text-align:center;
  font-weight:800;
}

/* ------------------------------------------------------------ */
/* Product actions / state                                      */
/* ------------------------------------------------------------ */

.product-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.product-note{
  margin-top:10px;
  font-size:12px;
}

.product-message{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
}

.product-message--error{
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.product-message--success{
  border:1px solid #a7f3d0;
  background:#ecfdf5;
  color:#065f46;
}

.product-buy.is-submitting{
  opacity:.7;
}

.product-buy.is-added .btn-primary{
  transform:scale(1.02);
}

/* ------------------------------------------------------------ */
/* Shared icon helper used in product qty                       */
/* ------------------------------------------------------------ */

.icon{
  display:block;
  width:16px;
  height:16px;
}

.icon path{
  fill:currentColor;
}

/* ------------------------------------------------------------ */
/* Fancy price                                                  */
/* ------------------------------------------------------------ */

.product-price--fancy{
  display:inline-flex;
  align-items:flex-start;
  gap:2px;
  line-height:1;
  color:#111;
}

.product-price--fancy .price__main{
  font-size:2.4rem;
  font-weight:800;
  line-height:.88;
  letter-spacing:-.05em;
}

.product-price--fancy .price__top{
  display:inline-flex;
  align-items:flex-start;
  gap:1px;
  padding-top:3px;
}

.product-price--fancy .price__dec,
.product-price--fancy .price__cur{
  font-size:.9rem;
  font-weight:700;
  line-height:1;
}

/* ------------------------------------------------------------ */
/* Product meta (SKU / Stock)                                   */
/* ------------------------------------------------------------ */

.product-meta{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
}

.product-meta__row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.product-meta__row span{
  color:#667085;
}

.product-meta__row strong{
  font-weight:600;
}

.product-meta__sku{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:3px 10px;
  border:1px solid #e7e9ee;
  border-radius:999px;
  background:#f6f7fa;
  color:#344054;
  font-size:12px;
  letter-spacing:.03em;
  line-height:1;
}

/* ------------------------------------------------------------ */
/* Stock status                                                 */
/* ------------------------------------------------------------ */

.product-stock{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}

.product-stock::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 auto;
}

.product-stock--ok{
  color:#059669;
}

.product-stock--ok::before{
  background:#10b981;
}

.product-stock--out{
  color:#dc2626;
}

.product-stock--out::before{
  background:#ef4444;
}

/* ------------------------------------------------------------ */
/* Checkout page
/* ------------------------------------------------------------ */

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  display:flex;
  flex-direction:column;
  width:100%;
}