/* ========================= */
/* RESET */
/* ========================= */

* {
  box-sizing: border-box;
}

/* ========================= */
/* MAIN */
/* ========================= */

.contant {
  width: 100%;
  padding: 24px 4% 60px;
}

/* ========================= */
/* PRODUCT TOP */
/* ========================= */

.product-details {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 38px;
  align-items: stretch;
}

/* ========================= */
/* PRODUCT IMAGE */
/* ========================= */

.product-image-box {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 22px;
  overflow: hidden;
}

.cardImg {
  width: 100%;
  height: 540px;
  object-fit: contain;
  padding: 30px;
}

/* ========================= */
/* RIGHT SIDE */
/* ========================= */

.card {
  width: 100%;
  padding: 10px 0;
}

.information {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========================= */
/* CATEGORY */
/* ========================= */

.card h5 {
  width: fit-content;
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #edf4ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}

/* ========================= */
/* TITLE */
/* ========================= */

.card h1 {
  margin: 0;
  color: #08265c;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 600;
}

/* ========================= */
/* DISCOUNT */
/* ========================= */

.redCard {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff1eb;
  color: #f97316;
  font-size: 13px;
  font-weight: 600;
}

/* ========================= */
/* PRICE */
/* ========================= */

.price {
  margin: 0;
}

.discountPercent {
  color: #2563eb;
  font-size: 36px;
  font-weight: 700;
}

.real-price {
  margin-left: 10px;
  color: #94a3b8;
  font-size: 16px;
  text-decoration: line-through;
}

/* ========================= */
/* NOTE */
/* ========================= */

.product-note {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.product-note strong {
  color: #08265c;
}

/* ========================= */
/* ACTION ROW */
/* ========================= */

.action-row {
  display: grid;
  grid-template-columns: 1fr 170px 55px;
  gap: 10px;
  margin-top: 12px;
}

/* ========================= */
/* ADD TO CART */
/* ========================= */

.add-to-cart {
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* ========================= */
/* SHARE */
/* ========================= */

.shareBtn {
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: #f3f6fa;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.shareBtn:hover {
  background: #e8eef7;
}

/* ========================= */
/* PRODUCT FAVORITE */
/* ========================= */

.product-detail-favorite {
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: #f3f6fa;
  color: #08265c;
  font-size: 26px;
  cursor: pointer;
  transition: 0.3s;
}

.product-detail-favorite:hover {
  color: #f97316;
  background: #fff4ef;
}

/* ========================= */
/* EXTRA CARDS */
/* ========================= */

.extra-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.extra-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #f5f7fa;
}

.extra-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: #e8ecf2;
  color: #08265c;
  font-size: 22px;
}

.extra-icon.orange {
  background: #f97316;
  color: white;
}

.extra-card strong {
  display: block;
  color: #08265c;
  font-size: 17px;
  margin-bottom: 5px;
}

.extra-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

/* STOCK */

.stock-card {
  background: #f0fdf4;
}

.stock-card .extra-icon {
  background: #dcfce7;
  color: #16a34a;
}

/* ========================= */
/* FEATURES JUMP */
/* ========================= */

.features-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.features-jump:hover {
  background: #f5f8ff;
  border-color: #bfdbfe;
}

.features-jump span {
  font-size: 21px;
}

/* ========================= */
/* PRODUCT INFORMATION */
/* ========================= */

.product-information-section {
  width: 100%;
  max-width: 1500px;
  margin: 35px auto 0;
  padding: 30px 40px;
  background: #f5f7fa;
  border-radius: 26px;
  scroll-margin-top: 115px;
}

/* ========================= */
/* FEATURES HEADER */
/* ========================= */

.features-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.features-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #e9edf2;
  color: #334155;
  font-size: 28px;
}

.features-header h2 {
  margin: 0;
  color: #334155;
  font-size: 26px;
  font-weight: 600;
}

/* ========================= */
/* SPECIFICATIONS */
/* ========================= */

.product-specifications {
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
}

.product-specifications h3,
.product-description h3 {
  margin: 0 0 20px;
  color: #142b5f;
  font-size: 20px;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table tr {
  border-bottom: 1px solid #e8edf5;
}

.specifications-table tr:last-child {
  border-bottom: none;
}

.specifications-table td {
  padding: 15px 18px;
  color: #475569;
  font-size: 15px;
}

.specifications-table td:first-child {
  width: 35%;
  color: #142b5f;
  font-weight: 600;
  background: #f8fafc;
}

.specifications-table td:last-child {
  color: #334155;
}

/* ========================= */
/* PRODUCT DESCRIPTION */
/* ========================= */

.product-description {
  margin-top: 22px;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
}

.product-description h3 {
  margin-bottom: 15px;
}

.product-description p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.product-description strong {
  color: #142b5f;
}

/* ========================= */
/* SHARE MESSAGE */
/* ========================= */

.shareMsg {
  color: #16a34a;
  font-size: 13px;
  transition: opacity 0.3s;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1000px) {
  .product-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-image-box {
    min-height: 450px;
  }

  .cardImg {
    height: 420px;
  }
}

@media (max-width: 600px) {
  .contant {
    padding: 15px;
  }

  .product-image-box {
    min-height: 350px;
  }

  .cardImg {
    height: 330px;
  }

  .card h1 {
    font-size: 25px;
  }

  .discountPercent {
    font-size: 29px;
  }

  .action-row {
    grid-template-columns: 1fr 1fr 55px;
  }

  .extra-actions {
    grid-template-columns: 1fr;
  }

  .product-information-section {
    padding: 20px 14px;
  }

  .features-header h2 {
    font-size: 22px;
  }

  .product-specifications,
  .product-description {
    padding: 15px;
  }

  .specifications-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .specifications-table td:first-child {
    width: 42%;
  }
}

/* ================================= */
/* PRICE + STOCK */
/* ================================= */

.price-stock-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.price-stock-row .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  white-space: nowrap;
}

.stock-check {
  font-size: 22px;
  font-weight: 700;
}

.stock-badge strong {
  font-size: 14px;
}

@media (max-width: 600px) {
  .price-stock-row {
    gap: 12px;
  }
}
.product-detail-favorite.active {
  color: #f97316;
  background: #fff4ef;
}

.product-detail-favorite {
  font-size: 26px;
}
