/* =========================================================
   PRODUCT DETAILS — PREMIUM
========================================================= */

.product-detail-section *,
.product-detail-section *::before,
.product-detail-section *::after {
  box-sizing: border-box;
}

/* =========================================================
   TOP BANNER
========================================================= */

.pd-top-banner {
  background: #214842;
  padding: 22px 0;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pd-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: #ffb800;
}

.pd-breadcrumb i {
  color: rgba(255, 255, 255, 0.25);
  font-size: 8px;
}

.pd-breadcrumb span {
  color: #ffb800;
}

/* =========================================================
   MAIN SECTION
========================================================= */

.product-detail-section {
  padding: 65px 0 80px;
  background: #fffefc;
}

/* =========================================================
   PREMIUM CARD
========================================================= */

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.88fr);

  background: #fff;

  border: 1px solid rgba(33, 72, 66, 0.08);

  box-shadow: 0 20px 70px rgba(33, 72, 66, 0.07);

  overflow: hidden;
}

/* =========================================================
   GALLERY
========================================================= */

.pd-gallery {
  min-width: 0;
  padding: 28px;
  background: linear-gradient(145deg, #f8f5ee, #f2eee5);
}

.pd-main-image {
  height: 525px;

  position: relative;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at center, #ffffff 0%, #f5f1e9 70%);

  border: 1px solid rgba(33, 72, 66, 0.07);
}

.pd-image-stage {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-image-stage img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 25px;

  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}

.pd-image-stage img.switching {
  opacity: 0.25;
  transform: scale(0.97);
}

/* =========================================================
   IMAGE BADGE
========================================================= */

.pd-image-badge {
  position: absolute;
  top: 17px;
  left: 17px;

  z-index: 5;

  padding: 8px 12px;

  background: #214842;

  color: #fff;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.pd-image-badge::before {
  content: "";

  display: inline-block;

  width: 5px;
  height: 5px;

  margin-right: 7px;

  border-radius: 50%;

  background: #ffb800;
}

/* =========================================================
   WISHLIST
========================================================= */

.pd-wishlist {
  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 5;

  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(33, 72, 66, 0.1);

  background: rgba(255, 255, 255, 0.95);

  color: #214842;

  cursor: pointer;

  font-size: 16px;

  transition: 0.25s ease;
}

.pd-wishlist:hover,
.pd-wishlist.active {
  background: #214842;
  color: #ffb800;
  transform: translateY(-2px);
}

/* =========================================================
   IMAGE COUNTER
========================================================= */

.pd-image-counter {
  position: absolute;

  right: 18px;
  bottom: 17px;

  z-index: 4;

  display: flex;
  align-items: center;
  gap: 5px;

  color: #87918c;

  font-size: 8px;
  font-weight: 700;
}

.pd-image-counter span:first-child {
  color: #214842;

  font-family: var(--font-serif);

  font-size: 19px;
}

/* =========================================================
   THUMBNAILS
========================================================= */

.pd-thumbnails {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 10px;

  margin-top: 12px;
}

.pd-thumbnail {
  position: relative;

  height: 88px;

  overflow: hidden;

  padding: 4px;

  border: 1px solid rgba(33, 72, 66, 0.1);

  background: #fff;

  cursor: pointer;

  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pd-thumbnail img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

.pd-thumbnail span {
  position: absolute;

  left: 7px;
  bottom: 5px;

  color: #214842;

  font-size: 7px;
  font-weight: 800;

  opacity: 0.6;
}

.pd-thumbnail:hover {
  transform: translateY(-2px);

  border-color: #258f68;
}

.pd-thumbnail.active {
  border: 2px solid #214842;

  box-shadow: 0 7px 20px rgba(33, 72, 66, 0.1);
}

.pd-thumbnail.active span {
  color: #ffb800;
  opacity: 1;
}

/* =========================================================
   GALLERY FEATURES
========================================================= */

.pd-gallery-features {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

  margin-top: 14px;
}

.pd-gallery-features div {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  background: rgba(255, 255, 255, 0.65);

  border: 1px solid rgba(33, 72, 66, 0.06);

  color: #69766f;

  font-size: 7px;
}

.pd-gallery-features i {
  color: #258f68;
  font-size: 11px;
}

/* =========================================================
   INFORMATION
========================================================= */

.pd-information {
  padding: 48px 45px 42px;
}

.pd-company {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #258f68;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 2px;
}

.pd-company > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #ffb800;
}

.pd-company > i {
  width: 20px;
  height: 1px;

  background: rgba(33, 72, 66, 0.15);
}

.pd-company small {
  color: #929b96;

  font-size: 7px;

  letter-spacing: 0.7px;
}

/* =========================================================
   TITLE
========================================================= */

.pd-title {
  margin: 15px 0 0;

  color: #214842;

  font-family: var(--font-serif);

  font-size: clamp(42px, 4vw, 57px);

  font-weight: 500;

  line-height: 0.98;

  letter-spacing: -1.5px;
}

/* =========================================================
   RATING
========================================================= */

.pd-rating {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-top: 17px;

  font-size: 8px;

  color: #8a948f;
}

.pd-stars {
  color: #ffb800;

  font-size: 11px;

  letter-spacing: 2px;
}

.pd-rating strong {
  color: #214842;
}

.pd-rating-line {
  width: 1px;
  height: 12px;

  background: rgba(33, 72, 66, 0.15);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.pd-description {
  margin: 20px 0 0;

  max-width: 560px;

  color: #6e7974;

  font-size: 10px;

  line-height: 1.85;
}

/* =========================================================
   PRICE
========================================================= */

.pd-price-area {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 24px;

  padding: 17px;

  background: #faf7f1;

  border: 1px solid rgba(33, 72, 66, 0.07);
}

.pd-price-area small {
  display: block;

  margin-bottom: 5px;

  color: #9ba39f;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.pd-price-area strong {
  color: #214842;

  font-family: var(--font-serif);

  font-size: 32px;

  font-weight: 500;
}

.pd-price-area del {
  margin-left: 8px;

  color: #9ca39e;

  font-size: 9px;
}

.pd-save {
  padding: 8px 10px;

  background: #214842;

  color: #ffb800;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 0.8px;
}

/* =========================================================
   BENEFITS
========================================================= */

.pd-benefits {
  margin-top: 23px;
}

.pd-section-label {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 13px;
}

.pd-section-label span {
  color: #214842;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 2px;
}

.pd-section-label i {
  width: 42px;
  height: 1px;

  background: #ffb800;
}

.pd-benefit-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 11px 18px;
}

.pd-benefit {
  display: flex;
  align-items: center;

  gap: 8px;
}

.pd-benefit > span {
  width: 29px;
  height: 29px;

  flex: 0 0 29px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f3eee5;

  color: #258f68;
}

.pd-benefit p {
  margin: 0;

  color: #707b76;

  font-size: 8px;

  line-height: 1.4;
}

/* =========================================================
   PURCHASE
========================================================= */

.pd-purchase {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  margin-top: 22px;

  padding-top: 19px;

  border-top: 1px solid rgba(33, 72, 66, 0.09);
}

.pd-quantity-area label {
  display: block;

  margin-bottom: 7px;

  color: #929b96;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.pd-quantity {
  height: 41px;

  display: flex;
  align-items: center;

  border: 1px solid rgba(33, 72, 66, 0.13);

  background: #fff;
}

.pd-quantity button {
  width: 39px;
  height: 100%;

  border: 0;

  background: transparent;

  color: #214842;

  cursor: pointer;

  font-size: 16px;
}

.pd-quantity button:hover {
  background: #f5f0e7;

  color: #258f68;
}

.pd-quantity span {
  min-width: 32px;

  text-align: center;

  color: #214842;

  font-size: 10px;
  font-weight: 800;
}

.pd-stock {
  display: flex;
  align-items: center;

  gap: 8px;
}

.pd-stock > span {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(37, 143, 104, 0.09);

  color: #258f68;
}

.pd-stock div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.pd-stock strong {
  color: #258f68;

  font-size: 8px;
}

.pd-stock small {
  color: #929b96;

  font-size: 7px;
}

/* =========================================================
   ACTIONS
========================================================= */

.pd-actions {
  display: grid;

  grid-template-columns: 1.25fr 1fr;

  gap: 8px;

  margin-top: 15px;
}

.pd-add-cart,
.pd-buy-now {
  min-height: 55px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 15px;

  border: 0;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 1px;

  transition: 0.25s ease;
}

.pd-add-cart {
  background: #214842;

  color: #fff;
}

.pd-add-cart i:first-child {
  color: #ffb800;

  font-size: 15px;
}

.pd-add-cart i:last-child {
  color: rgba(255, 255, 255, 0.45);
}

.pd-add-cart:hover {
  background: #173a35;

  transform: translateY(-2px);

  box-shadow: 0 14px 30px rgba(33, 72, 66, 0.15);
}

.pd-add-cart.added {
  background: #258f68;
}

.pd-buy-now {
  background: #ffb800;

  color: #214842;
}

.pd-buy-now:hover {
  background: #efaa00;

  transform: translateY(-2px);

  box-shadow: 0 14px 30px rgba(255, 184, 0, 0.16);
}

/* =========================================================
   DELIVERY
========================================================= */

.pd-delivery {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-top: 14px;
}

.pd-delivery > div {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 10px;

  background: #faf8f3;
}

.pd-delivery i {
  color: #258f68;

  font-size: 13px;
}

.pd-delivery div div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.pd-delivery strong {
  color: #214842;

  font-size: 7px;
}

.pd-delivery span {
  color: #919a96;

  font-size: 6px;
}

/* =========================================================
   STORY
========================================================= */

.pd-story {
  padding: 75px 0;

  background: #214842;

  color: #fff;
}

.pd-story-inner {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.pd-story-inner > div span {
  color: #ffb800;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 2.5px;
}

.pd-story h2 {
  margin: 13px 0 0;

  color: #fff;

  font-family: var(--font-serif);

  font-size: 50px;

  font-weight: 500;

  line-height: 1.05;
}

.pd-story h2 em {
  color: #ffb800;

  font-style: normal;
}

.pd-story p {
  margin: 0;

  max-width: 550px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 11px;

  line-height: 1.9;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {
  .product-detail-card {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(390px, 0.9fr);
  }

  .pd-gallery {
    padding: 20px;
  }

  .pd-main-image {
    height: 480px;
  }

  .pd-information {
    padding: 38px 30px;
  }

  .pd-title {
    font-size: 47px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {
  .product-detail-section {
    padding: 35px 0 60px;
  }

  .product-detail-card {
    grid-template-columns: 1fr;

    box-shadow: 0 15px 45px rgba(33, 72, 66, 0.07);
  }

  .pd-main-image {
    height: min(600px, 78vw);
  }

  .pd-information {
    padding: 35px 28px 32px;
  }

  .pd-story-inner {
    grid-template-columns: 1fr;

    gap: 30px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {
  .pd-top-banner {
    padding: 17px 0;
  }

  .pd-breadcrumb {
    font-size: 7px;
  }

  .product-detail-section {
    padding: 22px 0 45px;
  }

  .pd-gallery {
    padding: 12px;
  }

  .pd-main-image {
    height: 380px;
  }

  .pd-image-stage img {
    padding: 15px;
  }

  .pd-thumbnails {
    gap: 7px;
  }

  .pd-thumbnail {
    height: 72px;
  }

  .pd-gallery-features {
    grid-template-columns: 1fr;
  }

  .pd-information {
    padding: 30px 18px;
  }

  .pd-title {
    font-size: 38px;
  }

  .pd-benefit-grid {
    grid-template-columns: 1fr;
  }

  .pd-price-area {
    align-items: flex-start;

    flex-direction: column;
  }

  .pd-purchase {
    align-items: flex-start;

    flex-direction: column;

    gap: 15px;
  }

  .pd-actions {
    grid-template-columns: 1fr;
  }

  .pd-delivery {
    grid-template-columns: 1fr;
  }

  .pd-story {
    padding: 55px 0;
  }

  .pd-story h2 {
    font-size: 39px;
  }
}

/* =========================================================
   PRODUCT DETAIL CART NOTIFICATION
   Same premium style as homepage
========================================================= */

.product-cart-notification {
  position: fixed;

  top: 30px;
  left: 50%;

  z-index: 999999;

  min-width: 400px;
  max-width: calc(100vw - 30px);

  min-height: 64px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 27px;

  border-radius: 40px;

  background: #214842;

  color: #fffefc;

  box-shadow:
    0 20px 50px rgba(33, 72, 66, 0.22),
    0 5px 18px rgba(0, 0, 0, 0.08);

  transform: translate(-50%, -125px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* =========================================================
   SHOW
========================================================= */

.product-cart-notification.show {
  transform: translate(-50%, 0);

  opacity: 1;

  visibility: visible;
}

/* =========================================================
   CHECK ICON
========================================================= */

.product-cart-notification-icon {
  width: 21px;
  height: 21px;

  flex: 0 0 21px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #ffb800;

  color: #214842;

  font-size: 12px;
  font-weight: 900;
}

/* =========================================================
   TEXT
========================================================= */

.product-cart-notification-text {
  color: rgba(255, 254, 252, 0.82);

  font-family: var(--font-sans);

  font-size: 15px;

  font-weight: 600;

  letter-spacing: 0.1px;

  white-space: nowrap;
}

.product-cart-notification-text strong {
  color: #fffefc;

  font-weight: 800;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {
  .product-cart-notification {
    top: 18px;

    min-width: 0;

    width: calc(100vw - 30px);

    min-height: 58px;

    padding: 0 20px;

    border-radius: 32px;
  }

  .product-cart-notification-text {
    font-size: 12px;
  }

  .product-cart-notification-icon {
    width: 20px;
    height: 20px;

    flex-basis: 20px;

    font-size: 11px;
  }
}

.pd-add-cart.disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important;}
