/* Product page */
.product-page{
  max-width:860px;
  margin:42px auto;
  margin-bottom: 30px;
  padding:0 24px;
  display:grid;
  grid-template-columns:480px 370px;
  justify-content:center;
  gap:70px;
  align-items:start;
}

.product-info{
  text-align:right;
  max-width:500px;
}

.product-info h1{
  font-size:36px;
  line-height:1.25;
  color:#20384d;
  margin:0 0 14px;
}

.product-price{
  font-size:26px;
  font-weight:600;
  color:#d4a429;
  margin-bottom:14px;
}

.old-price{
  color:#999;
  text-decoration:line-through;
  margin-right:8px;
}

.product-short-description{
  margin:14px 0 22px;
  padding-bottom:18px;
  border-bottom:1px solid #e5e7eb;
  color:#4b5563;
  font-size:15px;
  line-height:1.3;
}

/* Gallery */
.product-gallery{
  width:100%;
}

.product-main-image{
  position:relative;
  background:#fff;
  border-radius:20px;
  padding:20px;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 35px rgba(0,0,0,.07);
}

.product-main-image img{
  max-width:100%;
  max-height:360px;
  object-fit:contain;
}

.product-thumbs{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:14px;
}

.product-thumbs button{
  width:70px;
  height:70px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.product-thumbs img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Zoom */
.image-zoom-btn{
  position:absolute;
  top:14px;
  left:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
  color:#20384d;
  cursor:pointer;
  z-index:10;
  transition:.2s;
}

.image-zoom-btn:hover{
  transform:scale(1.05);
}

.image-zoom-btn svg{
  width:20px;
  height:20px;
}

.image-zoom-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.image-zoom-box{
  background:transparent;
  padding:0;
  box-shadow:none;
}

.image-zoom-box img{
  display:block;
  max-width:80vw;
  max-height:82vh;
  object-fit:contain;
}

.image-zoom-close{
  position:absolute;
  top:14px;
  left:14px;
  border:none;
  background:none;
  font-size:30px;
  cursor:pointer;
}

/* Variation selectors */
.variation-selectors{
  display:grid;
  gap:12px;
  margin:18px 0;
}

.custom-select-wrap{
  position:relative;
}

.custom-select-btn{
  width:100%;
  height:44px;
  border:1px solid #d8dee7;
  border-radius:12px;
  background:#fff;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size:15px;
  color:#111;
}

.custom-select-btn:focus{
  outline:none;
  border-color:#d4a429;
  box-shadow:0 0 0 3px rgba(212,164,41,.12);
}

.custom-select-arrow{
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #20384d;
}

.custom-select-options{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e1e5ea;
  border-radius:12px;
  box-shadow:0 14px 35px rgba(0,0,0,.12);
  overflow:hidden;
  z-index:50;
  display:none;
}

.custom-select-wrap.open .custom-select-options{
  display:block;
}

.custom-select-options button{
  width:100%;
  min-height:42px;
  border:none;
  border-bottom:1px solid #f1f3f5;
  background:#fff;
  text-align:right;
  padding:0 14px;
  cursor:pointer;
  font-size:15px;
}

.custom-select-options button:last-child{
  border-bottom:none;
}

.custom-select-options button:hover{
  background:#f7f2e5;
  color:#b88718;
}

.custom-select-options button.disabled{
  opacity:.35;
  pointer-events:none;
}

.custom-select-options button.out-of-stock-option{
  opacity:.55;
  color:#b91c1c;
}

/* Quantity and purchase */
.quantity-row{
  margin:16px 0;
}

.qty-control{
  width:130px;
  height:44px;
  display:flex;
  align-items:center;
  border:1px solid #d8dee7;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.qty-control button{
  width:48px;
  height:100%;
  border:none;
  background:#fff;
  font-size:22px;
  cursor:pointer;
  color:#20384d;
}

.qty-control input{
  width:56px;
  height:100%;
  border:none;
  text-align:center;
  font-size:16px;
  padding-right:12px;
}

.add-cart-btn{
  width:100%;
  height:37px;
  border:none;
  border-radius:7px;
  background:#d4a429;
  color:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  margin-top:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.add-cart-btn:disabled{
  opacity:.45;
  background:#b8b8b8;
  cursor:not-allowed;
}

.cart-icon{
  width:16px;
  height:16px;
  flex-shrink:0;
  position:relative;
  top:-1px;
}

.variation-help{
  text-align:center;
  font-size:11px;
  color:#666;
  margin-top:10px;
}

.variation-status{
  text-align:center;
  color:#666;
  font-size:11px;
  margin-top:12px;
  min-height:22px;
}

.secure-purchase{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:8px;
  font-size:12px;
  color:#159b2f;
  font-weight:600;
}

.secure-purchase svg{
  width:15px;
  height:15px;
}

.stock-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  margin:8px 0 12px;
}

.stock-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
}

.stock-status.in-stock{
  color:#159b2f;
}

.stock-status.in-stock .stock-dot{
  background:#159b2f;
}

.stock-status.out-stock{
  color:#d93025;
}

.stock-status.out-stock .stock-dot{
  background:#d93025;
}

/* Product specs table */
.product-specs{
  width:100%;
  max-width:420px;
  margin:24px 0 0 auto;
}

.product-specs-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.product-specs-table td{
  padding:12px 16px;
  border-bottom:1px solid #e5e7eb;
  vertical-align:middle;
}

.product-specs-table tr:last-child td{
  border-bottom:0;
}

.spec-name{
  width:120px;
  font-weight:700;
  color:#20384d;
  background:#f7f8fa;
  text-align:center;
  font-size:14px;
}

.spec-value{
  color:#20384d;
  text-align:right;
  background:#fff;
  font-size:14px;
}

/* Description */
.product-description{
  max-width:860px;
  margin:30px auto 60px;
  padding:30px 34px;
  background:#fff;
  border-radius:18px;
  color:#20384d;
  font-size:16px;
  line-height:1.8;
}

.product-description h2{
  font-size:24px;
  line-height:1.3;
  margin:0 0 18px;
  color:#20384d;
}

.product-description p{
  font-size: 15px;
  line-height: 0.5;
}

.product-description ul,
.product-description ol{
  margin:12px 0;
  padding-right:24px;
}

.product-description li{
  margin:4px 0;
}

.product-description a{
  color:#0b63c7;
  text-decoration:underline;
}

.product-description strong{
  font-weight:700;
}

/* Responsive */
@media (max-width:900px){
  .product-page{
    max-width:100%;
    grid-template-columns:1fr;
    gap:28px;
    margin:24px auto;
  }

  .product-info{
    max-width:none;
  }

  .product-main-image{
    min-height:320px;
  }

  .product-main-image img{
    max-height:280px;
  }

  .product-info h1{
    font-size:28px;
  }

  .product-specs{
    max-width:100%;
  }

  .product-description{
    margin:24px 16px 50px;
    padding:24px 22px;
  }
}

/* ---------- Radio ---------- */

.variation-choice-group{
  margin-bottom:22px;
}

.variation-label{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  font-weight:600;
  color:#23384b;
}

.variation-radio-options,
.variation-image-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
    margin-top:0;
}

.variation-choice-btn{
  background:#fff;
  border:1px solid #d9e2ec;
  border-radius:10px;
  padding:10px 18px;
  cursor:pointer;
  transition:.2s;
  font-size:14px;
  color:#24384a;
}

.variation-choice-btn:hover{
  border-color:#d4a429;
}

.variation-choice-btn.selected{
  background:#d4a429;
  color:#fff;
  border-color:#d4a429;
}


/* ---------- Images ---------- */

.variation-image-btn{
  width:92px;
  background:#fff;
  border:1px solid #d9e2ec;
  border-radius:12px;
  padding:8px;
  cursor:pointer;
  transition:.2s;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.variation-image-btn:hover{
  border-color:#d4a429;
}

.variation-image-btn.selected{
  border-color:#d4a429;
  box-shadow:0 0 0 2px rgba(212,164,41,.15);
}

.variation-image-btn img{
  width:30px;
  height:30px;
  object-fit:contain;
}

.variation-image-btn span{
  font-size:13px;
  color:#24384a;
}

.variation-choice-btn.selected{
    background:#d8a520;
    color:#fff;
    border-color:#d8a520;
}

.variation-image-btn.selected{
    border-color:#d8a520;
    box-shadow:0 0 0 3px rgba(216,165,32,.18);
}

.variation-image-btn.selected span{
    color:#d8a520;
    font-weight:700;
}

.variation-choice-btn.disabled,
.variation-image-btn.disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:grayscale(1);
  border-color:#efb4b4;
  color:#d9534f;
}

.variation-image-btn.disabled span{
  color:#d9534f;
}

.variation-choice-btn.out-of-stock-option,
.variation-image-btn.out-of-stock-option{
  opacity:.55;
  cursor:not-allowed;
  border-color:#efb4b4;
}

.variation-out-of-stock{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#d33;
  font-weight:700;
}

.variation-image-btn.disabled,
.variation-image-btn.out-of-stock-option{
  opacity:.38;
  filter:grayscale(1);
  cursor:not-allowed;
  border-color:#d9534f;
  background:#fff7f7;
  position:relative;
}

.variation-image-btn.disabled::before,
.variation-image-btn.out-of-stock-option::before{
    content:"?";
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    color:#d9534f;
    font-weight:bold;
    opacity:.45;
    pointer-events:none;
}

.variation-image-name{
    display:none;
}

.variation-header{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    margin-bottom:10px;
}

.variation-current-value{
    font-size:15px;
    font-weight:700;
    color:#d4a429;
    min-height:22px;
}
.variation-current-value{
    font-size:14px;
    font-weight:700;
    color:#20384d;
}

.variation-image-btn{
    width:110px;
    height:110px;
    padding:10px;
}

.variation-image-btn img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.variation-header{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    margin-bottom:12px;
}


.variation-label{
    font-size:15px;
    font-weight:700;
}

.variation-current-value{
    font-size:15px;
    font-weight:700;
    color:#20384d;
    min-height:22px;
    text-align:center;
}

.variation-image-options{
    display:flex;
    justify-content:center;
    gap:14px;
}

.variation-current-value{
    text-align:center;
    margin-bottom:12px;
    font-size:15px;
}

.variation-title{
    color:#666;
    font-weight:500;
}

.variation-value{
    color:#20384d;
    font-weight:700;
}
/* =========================================
   MOBILE PRODUCT PAGE FINAL
   ========================================= */

.product-description p{
  line-height:1.8 !important;
}

@media (max-width:900px){

  .product-page{
    width:100% !important;
    max-width:100% !important;
    margin:18px auto 24px !important;
    padding:0 14px !important;
    grid-template-columns:1fr !important;
    gap:20px !important;
  }

  .product-gallery{
    order:1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  .product-info{
    order:2 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  .product-main-image{
    width:100% !important;
    min-height:260px !important;
    padding:14px !important;
    border-radius:16px !important;
  }

  .product-main-image img{
    width:100% !important;
    max-width:100% !important;
    max-height:240px !important;
    object-fit:contain !important;
  }

  .product-thumbs{
    gap:8px !important;
    margin-top:10px !important;
    overflow-x:auto !important;
    justify-content:flex-start !important;
    padding-bottom:4px !important;
  }

  .product-thumbs button{
    flex:0 0 58px !important;
    width:58px !important;
    height:58px !important;
  }

  .product-info h1{
    font-size:25px !important;
    line-height:1.35 !important;
    margin-bottom:10px !important;
  }

  .product-price{
    font-size:22px !important;
    margin-bottom:10px !important;
  }

  .product-short-description{
    font-size:14px !important;
    line-height:1.7 !important;
    margin:10px 0 16px !important;
    padding-bottom:14px !important;
  }

  .variation-selectors{
    width:100% !important;
  }

  .variation-radio-options,
  .variation-image-options{
    gap:8px !important;
  }

  .variation-choice-btn{
    padding:9px 13px !important;
    font-size:13px !important;
  }

  .variation-image-btn{
    width:78px !important;
    padding:7px !important;
  }

  .product-description{
    width:auto !important;
    max-width:none !important;
    margin:20px 14px 45px !important;
    padding:20px 16px !important;
    border-radius:14px !important;
    font-size:15px !important;
    line-height:1.8 !important;
    overflow-wrap:anywhere !important;
  }

  .product-description h2{
    font-size:22px !important;
    line-height:1.4 !important;
    margin-bottom:14px !important;
  }

  .product-description p{
    font-size:15px !important;
    line-height:1.8 !important;
    margin:0 0 12px !important;
  }

  .product-description ul,
  .product-description ol{
    padding-right:20px !important;
    margin:10px 0 !important;
  }

  .product-description li{
    line-height:1.8 !important;
    margin:5px 0 !important;
  }

}


/* MOBILE PRODUCT DESCRIPTION SPACING */
@media (max-width:900px){

  .product-description{
    line-height:1.55 !important;
  }

  .product-description p{
    line-height:1.55 !important;
    margin:0 0 8px !important;
  }

  .product-description ul,
  .product-description ol{
    margin:6px 0 !important;
  }

  .product-description li{
    line-height:1.55 !important;
    margin:2px 0 !important;
  }

}
