/* ======================================================================
   Mehta Namkeen - Product Detail Page Stylesheet
   ====================================================================== */

/* Page Background & Overall Typography */
.pd-page-wrapper {
  background-color: #FDF8EF;
  padding-top: 1.5rem;
  padding-bottom: 4.5rem;
  font-family: 'Poppins', sans-serif;
}

/* Breadcrumb */
.pd-breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #6C757D;
  margin-bottom: 1.8rem;
}
.pd-breadcrumb a {
  color: #12398A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.pd-breadcrumb a:hover {
  color: #E3172B;
  text-decoration: underline;
}
.pd-breadcrumb .separator {
  margin: 0 8px;
  color: #A0A5B1;
}
.pd-breadcrumb .active-item {
  color: #7A8191;
}

/* Left Column: Gallery */
.pd-main-img-card {
  background: #F3EEE6;
  border-radius: 18px;
  padding: 30px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  overflow: hidden;
}
.pd-bestseller-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: #E3172B;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  z-index: 2;
}
.pd-wishlist-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #ECE4D8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12398A;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 2;
}
.pd-wishlist-btn:hover {
  transform: scale(1.08);
  color: #E3172B;
}
.pd-wishlist-btn.active {
  color: #E3172B;
  background-color: #FFF5F5;
  border-color: #E3172B;
}
.pd-main-img {
  height: 410px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease, opacity 0.15s ease;
}
.pd-main-img:hover {
  transform: scale(1.03);
}

/* Thumbnails */
.pd-thumb-item {
  background: #F3EEE6;
  border-radius: 12px;
  padding: 8px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.pd-thumb-item:hover {
  border-color: #DED5C8;
}
.pd-thumb-item.active {
  border-color: #E3172B;
}
.pd-thumb-item img {
  max-height: 75px;
  max-width: 80%;
  object-fit: contain;
}

/* Right Column: Details */
.pd-cat-badge {
  display: inline-block;
  background-color: #F6EEE2;
  color: #8C6239;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pd-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 38px;
  color: #12398A;
  line-height: 1.2;
  margin-bottom: 12px;
}
.pd-short-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: #2A2F45;
  margin-bottom: 6px;
  max-width: 580px;
}
.pd-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: #555C6E;
  margin-bottom: 14px;
  max-width: 580px;
}
.pd-desc p {
  margin-bottom: 6px;
}
.pd-desc p:last-child {
  margin-bottom: 0;
}

.pd-stars {
  color: #F5B71A;
  font-size: 14.5px;
  display: inline-flex;
  gap: 3px;
}
.pd-rating-score {
  font-weight: 700;
  color: #12398A;
}
.pd-rating-count {
  color: #7A8191;
}

.pd-divider {
  border: none;
  border-top: 1px solid #EBE4D8;
  margin: 18px 0 20px 0;
}

.pd-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.pd-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #12398A;
  line-height: 1;
}
.pd-price-tax {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: #7A8191;
  font-weight: 400;
}
.pd-original-price {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #8C94A6;
  text-decoration: line-through;
}

.pd-section-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2A2F45;
  margin-bottom: 8px;
}
.pd-weight-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 8px;
  border: 1.5px solid #D5D9E2;
  background-color: #ffffff;
  color: #12398A;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pd-weight-btn:hover {
  border-color: #12398A;
}
.pd-weight-btn.active {
  background-color: #12398A;
  border-color: #12398A;
  color: #ffffff;
}

.pd-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #D5D9E2;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}
.pd-qty-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #12398A;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pd-qty-btn:hover {
  background-color: #F8EFE3;
}
.pd-qty-num {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #12398A;
  min-width: 32px;
  text-align: center;
}
.pd-total-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #555C6E;
  margin-left: 16px;
}
.pd-total-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #12398A;
  margin-left: 4px;
}

.pd-btn-cart {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #12398A;
  background-color: #ffffff;
  color: #12398A;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
}
.pd-btn-cart:hover {
  background-color: #12398A;
  color: #ffffff;
}
.pd-btn-buy {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #E3172B;
  background-color: #E3172B;
  color: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
}
.pd-btn-buy:hover {
  background-color: #C51022;
  border-color: #C51022;
  color: #ffffff;
}

/* Trust Badges Box (Matching Exact Reference Image 1) */
.pd-trust-box {
  border: 1px solid #ECE4D8;
  border-radius: 12px;
  background-color: #FFFDF7;
  padding: 0;
  margin-top: 24px;
  overflow: hidden;
}
.pd-trust-item {
  text-align: center;
  padding: 18px 6px 16px 6px;
  border-right: 1px solid #ECE4D8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}
.pd-trust-item:last-child {
  border-right: none;
}
.pd-trust-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #12398A;
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.veg-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.8px solid #DB9C28;
  border-radius: 4px;
  padding: 2px;
}
.veg-badge-icon .veg-dot {
  width: 8px;
  height: 8px;
  background-color: #2E7D32;
  border-radius: 50%;
  display: inline-block;
}

/* Information Tabs (Matching Exact Reference Image 2) */
.pd-tabs-section {
  margin-top: 50px;
  position: relative;
}
.pd-tabs-nav {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: -2px;
  padding-left: 0;
  position: relative;
  z-index: 2;
}
.pd-tab-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #6C757D;
  padding: 6px 14px 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: 0;
  outline: none;
}
.pd-tab-link:hover {
  color: #12398A;
}
.pd-tab-link.active {
  color: #12398A;
  font-weight: 700;
  border-bottom: 3px solid #E3172B;
}
.pd-tab-content-box {
  border: 1px solid #EBE4D8;
  border-radius: 0 10px 10px 10px;
  background-color: #ffffff;
  padding: 24px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  min-height: 95px;
  position: relative;
  z-index: 1;
}

/* You May Also Like Section */
.pd-related-section {
  margin-top: 65px;
}
.pd-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.pd-related-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}
.pd-related-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 28px;
  color: #12398A;
  margin: 0;
  white-space: nowrap;
}
.pd-related-line {
  width: 50px;
  height: 2px;
  background-color: #E5AC44;
  border-radius: 2px;
  flex-shrink: 0;
}
.pd-view-all-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #E3172B;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pd-view-all-link:hover {
  color: #C51022;
  text-decoration: underline;
}

/* Related Product Cards (Matching Products Page & Figma Specs) */
.pd-rec-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 8px 8px 14px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-sizing: border-box;
}
.pd-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(18, 57, 138, 0.12);
}
.pd-rec-img-wrap {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  margin-bottom: 10px;
  background-color: #FDF8EF !important;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.pd-rec-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  cursor: pointer;
}
.pd-rec-img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(18, 57, 138, 0.08));
  transition: transform 0.3s ease;
}
.pd-rec-card:hover .pd-rec-img {
  transform: scale(1.05);
}
.pd-rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background-color: #CF0215;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  display: inline-block;
  line-height: 1.2;
}
.pd-rec-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #12398A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.pd-rec-wishlist:hover,
.pd-rec-wishlist.active {
  border-color: #CF0215;
  color: #CF0215;
  background-color: #FFF5F5;
}
.pd-rec-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2px 4px 0;
}
.pd-rec-cat {
  align-self: flex-start;
  background-color: #FEF7ED;
  color: #9A6B1A;
  border: 1px solid #FED7AA;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
  display: inline-block;
}
.pd-rec-title {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 15px;
  color: #12398A;
  margin: 0 0 2px;
  line-height: 1.25;
  text-decoration: none !important;
  display: inline-block;
  transition: color 0.2s ease;
}
.pd-rec-title:hover {
  color: #CF0215 !important;
}
.pd-rec-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #71717A;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}
.pd-rec-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 8px;
}
.pd-rec-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #12398A;
}
.pd-rec-weight-select {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 3px 22px 3px 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234B5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 9px 9px;
  min-width: 76px;
  height: 28px;
  line-height: 1;
  outline: none;
  transition: border-color 0.2s ease;
}
.pd-rec-weight-select:focus {
  border-color: #12398A;
}
.pd-rec-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.pd-rec-btn-cart {
  background-color: #ffffff !important;
  border: 1.5px solid #12398A !important;
  color: #12398A !important;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6.5px 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pd-rec-btn-cart:hover {
  background-color: #12398A !important;
  border-color: #12398A !important;
  color: #ffffff !important;
}
.pd-rec-btn-buy {
  background-color: #12398A !important;
  border: 1.5px solid #12398A !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6.5px 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pd-rec-btn-buy:hover {
  background-color: #0D2D70 !important;
  border-color: #0D2D70 !important;
  color: #ffffff !important;
}

/* ======================================================================
   Responsive Design Breakpoints for Product Detail
   ====================================================================== */

/* Common adjustments for related cards inside product detail */
.pd-related-section .fav-card {
  max-width: 100% !important;
  min-height: auto !important;
  width: 100% !important;
}

/* ----------------------------------------------------------------------
   Tablet & Medium Devices (< 992px)
   ---------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .pd-page-wrapper {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }
  .pd-main-img-card {
    height: 400px;
    padding: 24px;
  }
  .pd-main-img {
    max-height: 330px;
  }
  .pd-thumb-item {
    height: 85px;
  }
  .pd-thumb-item img {
    max-height: 65px;
  }
  .pd-title {
    font-size: 30px;
    margin-top: 10px;
  }
  .pd-tabs-section {
    margin-top: 40px;
  }
  .pd-related-section {
    margin-top: 50px;
  }
}

/* ----------------------------------------------------------------------
   Mobile Devices (< 768px)
   ---------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .pd-page-wrapper {
    padding-top: 0.85rem;
    padding-bottom: 3rem;
  }
  .pd-breadcrumb {
    font-size: 12px;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 6px;
    line-height: 1.4;
  }
  .pd-breadcrumb .separator {
    margin: 0 4px;
  }

  /* Gallery */
  .pd-main-img-card {
    height: 340px;
    padding: 16px 12px;
    border-radius: 14px;
  }
  .pd-main-img {
    max-height: 270px;
    max-width: 86%;
  }
  .pd-wishlist-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .pd-bestseller-badge {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 3px 10px;
  }
  .pd-thumb-item {
    height: 72px;
    padding: 4px;
    border-radius: 8px;
  }
  .pd-thumb-item img {
    max-height: 56px;
  }

  /* Text & Details */
  .pd-cat-badge {
    font-size: 11px;
    padding: 3px 12px;
    margin-top: 14px;
  }
  .pd-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .pd-short-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .pd-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
  }
  .pd-divider {
    margin: 12px 0 16px 0;
  }

  /* Price & Weight */
  .pd-price-wrap {
    margin-bottom: 16px;
    gap: 10px;
  }
  .pd-price {
    font-size: 26px;
  }
  .pd-original-price {
    font-size: 17px;
  }
  .pd-section-label {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .pd-weight-btn {
    padding: 6px 16px;
    font-size: 12.5px;
    border-radius: 6px;
  }

  /* Quantity & Buttons */
  .pd-qty-stepper {
    border-radius: 6px;
  }
  .pd-qty-btn {
    padding: 5px 12px;
    font-size: 14px;
  }
  .pd-qty-num {
    font-size: 13.5px;
    min-width: 28px;
  }
  .pd-total-text {
    font-size: 13px;
    margin-left: 14px;
  }
  .pd-total-amount {
    font-size: 15px;
  }
  .pd-btn-cart {
    height: 44px;
    font-size: 13.5px;
    padding: 0 6px;
    gap: 5px;
    border-radius: 8px;
  }
  .pd-btn-buy {
    height: 44px;
    font-size: 13.5px;
    padding: 0 6px;
    border-radius: 8px;
  }

  /* Trust Badges 2x2 Grid */
  .pd-trust-box {
    margin-top: 18px;
    border-radius: 10px;
  }
  .pd-trust-item {
    padding: 12px 6px;
    min-height: 72px;
  }
  .pd-trust-item:nth-child(odd) {
    border-right: 1px solid #ECE4D8;
  }
  .pd-trust-item:nth-child(even) {
    border-right: none;
  }
  .pd-trust-item:nth-child(1),
  .pd-trust-item:nth-child(2) {
    border-bottom: 1px solid #ECE4D8;
  }
  .pd-trust-title {
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.25;
  }

  /* Tabs Section */
  .pd-tabs-section {
    margin-top: 32px;
  }
  .pd-tabs-nav {
    gap: 12px;
  }
  .pd-tab-link {
    font-size: 13.5px;
    padding: 6px 10px 8px 10px;
  }
  .pd-tab-content-box {
    padding: 18px 16px;
    font-size: 13px;
    border-radius: 0 0 10px 10px;
  }

  /* Related Products Section */
  .pd-related-section {
    margin-top: 40px;
  }
  .pd-related-header {
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .pd-related-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .pd-related-title {
    font-size: 17px;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
  }
  .pd-related-line {
    width: 28px;
    min-width: 16px;
    height: 2px;
    flex-shrink: 0;
  }
  .pd-view-all-link {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Tablet cards optimization (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .pd-related-section .fav-img-wrap {
    height: 145px;
    padding: 8px;
  }
  .pd-related-section .fav-prod-title,
  .pd-related-section .fav-title-link {
    font-size: 13.5px;
  }
  .pd-related-section .fav-prod-desc {
    font-size: 10.5px;
    min-height: 24px;
    -webkit-line-clamp: 2;
  }
  .pd-related-section .fav-prod-price {
    font-size: 14px;
  }
  .pd-related-section .fav-weight-select {
    font-size: 10.5px;
    height: 26px;
    min-width: 60px;
    padding: 2px 16px 2px 5px;
  }
  .pd-related-section .btn-fav-detail,
  .pd-related-section .btn-fav-cart,
  .pd-related-section .btn-fav-buy {
    font-size: 10.5px;
    padding: 5px 3px;
  }
}

/* ----------------------------------------------------------------------
   Small Mobile Devices (< 576px)
   ---------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .pd-main-img-card {
    height: 310px;
    padding: 14px 10px;
  }
  .pd-main-img {
    max-height: 245px;
  }
  .pd-thumb-item {
    height: 64px;
    padding: 3px;
  }
  .pd-thumb-item img {
    max-height: 50px;
  }
  .pd-btn-cart {
    font-size: 13px;
  }
  .pd-btn-buy {
    font-size: 13px;
  }

  /* Related Header on Small Mobile */
  .pd-related-header {
    gap: 6px;
  }
  .pd-related-title {
    font-size: 16px;
  }
  .pd-related-line {
    width: 22px;
    min-width: 14px;
  }
  .pd-view-all-link {
    font-size: 11.5px;
  }

  /* Related 2-Column Cards Polish */
  .pd-related-section .fav-card {
    padding: 6px 6px 10px 6px;
    border-radius: 12px;
  }
  .pd-related-section .fav-img-wrap {
    height: 125px;
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
  }
  .pd-related-section .fav-cat-badge {
    font-size: 9px;
    padding: 1px 6px;
    margin-bottom: 2px;
  }
  .pd-related-section .fav-prod-title,
  .pd-related-section .fav-title-link {
    font-size: 12.5px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .pd-related-section .fav-prod-desc {
    display: none;
  }
  .pd-related-section .fav-price-weight-row {
    min-height: auto;
    margin-bottom: 6px;
    gap: 4px;
  }
  .pd-related-section .fav-prod-price {
    font-size: 13.5px;
  }
  .pd-related-section .fav-weight-select {
    font-size: 10px;
    height: 24px;
    padding: 2px 14px 2px 4px;
    min-width: 52px;
  }
  .pd-related-section .fav-card-actions {
    gap: 4px;
  }
  .pd-related-section .btn-fav-detail {
    font-size: 10.5px;
    padding: 5px 2px;
    height: 30px;
  }
  .pd-related-section .btn-fav-cart {
    font-size: 10px;
    padding: 5px 2px;
    height: 30px;
    gap: 2px;
  }
  .pd-related-section .btn-fav-buy {
    font-size: 10px;
    padding: 5px 2px;
    height: 30px;
  }
  .pd-related-section .fav-bestseller-badge {
    font-size: 8.5px;
    padding: 2px 5px;
    top: 6px;
    left: 6px;
  }
}

/* ----------------------------------------------------------------------
   Extra Small Mobile Screens (< 375px)
   ---------------------------------------------------------------------- */
@media (max-width: 374.98px) {
  .pd-title {
    font-size: 21px;
  }
  .pd-price {
    font-size: 23px;
  }
  .pd-btn-cart {
    font-size: 11.5px;
    gap: 3px;
  }
  .pd-btn-buy {
    font-size: 12px;
  }
  .pd-main-img-card {
    height: 270px;
  }
  .pd-main-img {
    max-height: 215px;
  }
  .pd-thumb-item {
    height: 56px;
  }
  .pd-thumb-item img {
    max-height: 44px;
  }
  .pd-trust-item {
    padding: 10px 4px;
  }
  .pd-trust-title {
    font-size: 10px;
  }
  .pd-related-title {
    font-size: 14.5px;
  }
  .pd-related-line {
    width: 16px;
    min-width: 12px;
  }
  .pd-view-all-link {
    font-size: 10.5px;
  }
}

