
/* =====================================================
   Product Detail – redesigned v2
===================================================== */

/* ---- Layout ---- */
.pd-wrap {
  padding: 28px 0 72px;
}
.pd-row {
  display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap;
}
.pd-col-img {
  width: 400px; flex-shrink: 0;
  position: sticky; top: 72px;
}
.pd-col-info {
  flex: 1; min-width: 300px;
}
@media(max-width:991px){
  .pd-col-img { width: 340px; }
}
@media(max-width:767px){
  .pd-col-img  { width: 100%; position: static; }
  .pd-row { gap: 28px; }
}

/* ---- Breadcrumb override ---- */
.pd-back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: #1a3a6b; font-size: 13.5px; font-weight: 600;
  text-decoration: none; margin-bottom: 28px;
  padding: 8px 16px; background: #f1f5f9; border-radius: 20px;
  transition: background .15s, color .15s;
}
.pd-back-link:hover { background: #e2e8f0; color: #0f2347; text-decoration: none; }
.pd-back-link i { font-size: 13px; }

/* ---- Image panel ---- */
.pd-img-main {
  background: #f8fafc;
  border: 1.5px solid #e8edf4;
  border-radius: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1/1;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.pd-img-main img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 28px;
  transition: transform .3s;
}
.pd-img-main:hover img { transform: scale(1.03); }

/* ---- Badges ---- */
.pd-badges {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  z-index: 2;
}
.pd-badge {
  display: inline-block; padding: 4px 11px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
}
.pb-new  { background: #e53e3e; color: #fff; }
.pb-sale { background: #f97316; color: #fff; }
.pb-pop  { background: #7c3aed; color: #fff; }
.pb-esim { background: #0f172a; color: #fff; }

/* ---- Category tag ---- */
.pd-category {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #1a3a6b; background: #eff6ff; border-radius: 4px;
  padding: 3px 10px; margin-bottom: 12px;
}

/* ---- Product name ---- */
.pd-name {
  font-size: 26px; font-weight: 800; color: #0f172a;
  line-height: 1.3; margin: 0 0 20px;
}
@media(max-width:767px){ .pd-name { font-size: 21px; } }

/* ---- Divider ---- */
.pd-divider {
  height: 1px; background: #e8edf4; margin: 20px 0;
}

/* ---- Price block ---- */
.pd-price-block {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px; padding: 20px 22px;
  margin-bottom: 22px;
}
.pd-price-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.pd-price-label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .1em;
  display: block; margin-bottom: 6px;
}
.pd-price-val {
  font-size: 36px; font-weight: 800; color: #e53e3e;
  line-height: 1;
}
.pd-price-range {
  font-size: 24px; font-weight: 800; color: #e53e3e;
}
.pd-price-tax {
  font-size: 12px; color: #94a3b8; background: #f1f5f9;
  padding: 2px 8px; border-radius: 4px;
}

/* ---- Option selector ---- */
.pd-option-label {
  font-size: 13px; font-weight: 700; color: #334155;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pd-option-label::before {
  content: ''; display: inline-block;
  width: 3px; height: 14px; background: #1a3a6b; border-radius: 2px;
}
.pd-option-wrap { margin-bottom: 18px; }
.pd-option-wrap select.form-control {
  border: 1.5px solid #cbd5e1; border-radius: 10px;
  padding: 10px 16px; font-size: 14px;
  color: #1e293b; background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.pd-option-wrap select.form-control:focus {
  border-color: #1a3a6b;
  box-shadow: 0 0 0 3px rgba(26,58,107,.12); outline: none;
}

/* ---- Start date ---- */
.pd-date-wrap {
  margin-bottom: 18px;
}
.pd-date-wrap input.form-control {
  border: 1.5px solid #cbd5e1; border-radius: 10px;
  padding: 10px 16px; font-size: 14px;
  width: 100%; transition: border-color .15s, box-shadow .15s;
}
.pd-date-wrap input.form-control:focus {
  border-color: #1a3a6b;
  box-shadow: 0 0 0 3px rgba(26,58,107,.12); outline: none;
}

/* ---- Out of stock ---- */
.pd-out-stock {
  display: flex; align-items: center; gap: 10px;
  background: #fff1f2; border: 1.5px solid #fecdd3;
  border-radius: 12px; padding: 16px 20px;
  color: #be123c; font-weight: 700; font-size: 14px;
  margin-bottom: 20px;
}

/* ---- Add to cart button ---- */
.pd-cart-btn {
  display: flex !important;
  width: 100% !important;
  padding: 16px 24px !important;
  background: linear-gradient(135deg, #1a3a6b 0%, #2563a8 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all .2s;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(26,58,107,.3) !important;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
}
.pd-cart-btn:hover {
  background: linear-gradient(135deg, #0f2347 0%, #1a3a6b 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,107,.4) !important;
  color: #fff !important;
  text-decoration: none;
}
.pd-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26,58,107,.2) !important;
}

/* ---- Trust badges ---- */
.pd-trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 20px 0;
}
.pd-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: #64748b; text-align: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 8px;
}
.pd-trust-item i {
  font-size: 20px; color: #1a3a6b;
}
.pd-trust-item strong { font-size: 12px; color: #1e293b; }
@media(max-width:480px) {
  .pd-trust { grid-template-columns: 1fr; }
}

/* ---- Description section ---- */
.pd-desc-section {
  margin-top: 32px; padding-top: 32px;
  border-top: 2px solid #e8edf4;
}
.pd-desc-head {
  font-size: 18px; font-weight: 800; color: #0f172a;
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.pd-desc-head::before {
  content: ''; display: block;
  width: 4px; height: 22px; background: #1a3a6b; border-radius: 3px;
  flex-shrink: 0;
}
.pd-desc-body {
  font-size: 14.5px; color: #475569; line-height: 1.85;
}
.pd-desc-body h2,
.pd-desc-body h3,
.pd-desc-body h4 {
  font-weight: 700; color: #1e293b; margin: 24px 0 10px;
  padding-left: 12px; border-left: 3px solid #1a3a6b;
}
.pd-desc-body p { margin-bottom: 14px; }
.pd-desc-body ul,
.pd-desc-body ol {
  padding-left: 22px; margin-bottom: 16px;
}
.pd-desc-body li { margin-bottom: 7px; }
.pd-desc-body table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; margin-bottom: 18px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.pd-desc-body table th,
.pd-desc-body table td {
  padding: 11px 16px; border: 1px solid #e2e8f0;
  text-align: left;
}
.pd-desc-body table th { background: #1a3a6b; color: #fff; font-weight: 700; }
.pd-desc-body table tr:nth-child(even) td { background: #f8fafc; }
.pd-desc-body table tr:hover td { background: #eff6ff; transition: background .15s; }


