/* ============================================================
   PRODUCT LAYOUT GRID
   ============================================================ */

.product-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 340px 1fr 300px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

/* ============================================================
   GALLERY COL
   ============================================================ */
.gallery-col {
  width: 100%;
  min-width: 0;
}

.gallery-col .card-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.main-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #fdf9f2;
  border: 1px solid #d8cbb6;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.main-image-wrap:hover img {
  transform: scale(1.04);
}

/* .main-image-wrap .card-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
} */

.thumb-carousel-wrap {
  margin-top: 12px;
  padding: 0 22px;
  position: relative;
}

.thumb-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  aspect-ratio: 1 / 1;
  display: block;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: #2d5a1b;
}

/* Owl Nav for thumbnails */
.thumb-carousel-wrap .owl-nav {
  margin: 0;
}

.thumb-carousel-wrap .owl-nav button.owl-prev,
.thumb-carousel-wrap .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fdf9f2 !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin: 0 !important;
}

.thumb-carousel-wrap .owl-nav button.owl-prev {
  left: 0;
}

.thumb-carousel-wrap .owl-nav button.owl-next {
  right: 0;
}

.thumb-carousel-wrap .owl-nav button span {
  color: #2d5a1b;
  font-size: 20px;
  line-height: 1;
  display: block;
  margin-top: -2px;
}

.thumb-carousel-wrap .owl-nav button:hover {
  background: #e8e0d4 !important;
}

/* ============================================================
   INFO COL
   ============================================================ */
.info-col {
  min-width: 0;
  width: 100%;
}

.product-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #573e19;
  line-height: 1.25;
  margin-bottom: 8px;
  max-width: none;
  padding: 0;
}

.product-price {
  font-size: 26px;
  font-weight: 700;
  color: #2d5a1b;
  margin-bottom: 10px;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
}

.reviews-count {
  font-size: 13px;
  color: #888;
}

/* ---------- QTY CONTROL ---------- */
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #d8cbb6;
  border-radius: 7px;
  overflow: hidden;
  background: #fdf9f2;
  flex-shrink: 0;
}

.qty-btn {
  width: 36px;
  height: 40px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #2c5220;
  transition: background 0.15s;
  line-height: 1;
  font-family: "Noto Sans", sans-serif;
}

.qty-btn:hover {
  background: #e8e0d4;
}

.qty-val {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-left: 1px solid #d8cbb6;
  border-right: 1px solid #d8cbb6;
  line-height: 40px;
  user-select: none;
  color: #573e19;
}

/* ---------- ADD ROW BUTTONS ---------- */
.add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn-buy-now,
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: #2d5a1b;
  border: 2px solid #2d5a1b;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: "Noto Sans", sans-serif;
}

.btn-buy-now:hover,
.btn-add-cart:hover {
  background: #3d7a1a;
  border-color: #3d7a1a;
  transform: translateY(-1px);
}

/* ---------- HIGHLIGHTS ---------- */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #2b2112;
}

.highlight-item svg {
  color: #2d5a1b;
  flex-shrink: 0;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  margin-bottom: 16px;
  border-top: 1px solid #d8cbb6;
  border-left: 1px solid #d8cbb6;
  border-right: 1px solid #d8cbb6;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  background: #fdf9f2;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #888;
  border-right: 1px solid #d8cbb6;
  border-bottom: 2px solid #d8cbb6;
  transition: all 0.2s ease;
  font-family: "Noto Sans", sans-serif;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  color: #2d5a1b;
  background: #f0e8d8;
}

.tab-btn.active {
  color: #2d5a1b;
  border-bottom-color: #2d5a1b;
  background: #fff;
}

/* ---------- TAB CONTENT ---------- */
.tab-content {
  display: none;
  padding: 16px 0 0;
}

.tab-content.active {
  display: block;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  text-align: justify !important;
}

.benefit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2d5a1b;
  margin-top: 6px;
  flex-shrink: 0;
}

.benefit-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #2b2112;
}

.benefit-item strong {
  color: #2c5220;
}

/* ---------- NUTRITION TABLE ---------- */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.nutrition-table th {
  background: #e8e0d4;
  padding: 8px 12px;
  text-align: left;
  color: #2c5220;
  font-weight: 700;
}

.nutrition-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #d8cbb6;
  color: #2b2112;
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

.nutrition-table tr:nth-child(even) td {
  background: #faf5ed;
}

/* ---------- HOW TO USE ---------- */
.how-to-use {
  font-size: 13.5px;
  line-height: 1.8;
  color: #2b2112;
}

.how-to-use ol {
  padding-left: 20px;
}

.how-to-use li {
  margin-bottom: 6px;
}

/* ============================================================
   SIDEBAR COL
   ============================================================ */
.sidebar-col {
  min-width: 0;
  width: 100%;
}

/* ---------- QUALITY CARD ---------- */
.quality-card {
  background: #fdf9f2;
  border: 1px solid #d8cbb6;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.quality-card h3,
.reviews-card h3 {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #573e19;
}

.quality-badges {
  display: flex;
  justify-content: space-around;
  gap: 6px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.badge-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d8cbb6;
  padding: 4px;
  background: #ede8df;
}

.badge-item span {
  font-size: 9.5px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---------- REVIEWS CARD ---------- */
.reviews-card {
  background: #fdf9f2;
  border: 1px solid #d8cbb6;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.review-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8cbb6;
}

.review-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.reviewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8cbb6;
  flex-shrink: 0;
}

.reviewer-info strong {
  display: block;
  font-size: 13px;
  color: #573e19;
}

.reviewer-info span {
  font-size: 10.5px;
  color: #888;
}

.review-stars {
  color: #f5a623;
  font-size: 13px;
  margin-bottom: 5px;
}

.review-text {
  font-size: 12.5px;
  color: #2b2112;
  line-height: 1.6;
  font-style: italic;
}

.btn-write-review {
  width: 100%;
  padding: 11px;
  background: #2d5a1b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, transform 0.15s;
  font-family: "Noto Sans", sans-serif;
}

.btn-write-review:hover {
  background: #3d7a1a;
  transform: translateY(-1px);
}

/* ---------- MOBILE FIXED BAR (hidden on desktop) ---------- */
.mobile-fixed-bar {
  display: none;
}

/* ============================================================
   DESKTOP LARGE ≥ 1600px
   ============================================================ */
@media (min-width: 1600px) {
  .product-layout {
    grid-template-columns: 360px 1fr 310px;
    padding: 0 40px 60px;
  }
}

/* ============================================================
   TABLET ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "gallery info"
      "sidebar sidebar";
    padding: 0 24px 60px;
    gap: 20px;
  }

  .gallery-col {
    grid-area: gallery;
  }

  .info-col {
    grid-area: info;
  }

  .sidebar-col {
    grid-area: sidebar;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .quality-card {
    margin-bottom: 0;
  }
}

/* ============================================================
   MOBILE ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
    padding: 28px 16px 4px;
  }

  .breadcrumb {
    padding: 4px 16px 18px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info-top"
      "gallery"
      "info-bottom"
      "sidebar";
    padding: 0 14px 86px;
    gap: 0;
  }

  .gallery-col {
    grid-area: gallery;
    margin-bottom: 14px;
  }

  .info-col {
    grid-area: info-top;
    display: flex;
    flex-direction: column;
  }

  .sidebar-col {
    grid-area: sidebar;
    display: block;
  }

  .quality-card {
    margin-bottom: 16px;
  }

  .product-title {
    order: 1;
    margin-bottom: 6px;
    font-size: 20px;
  }

  .product-price {
    order: 2;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .product-description{
    order: 3;
  }

  .stars-row {
    order: 3;
    margin-bottom: 14px;
  }

  .desktop-add-row {
    order: 4;
    display: flex !important;
    margin-bottom: 16px;
  }

  .highlights {
    order: 10;
    margin-top: 4px;
  }

  .tabs {
    order: 11;
  }

  #tab-benefits,
  #tab-nutrition,
  #tab-howto {
    order: 12;
  }

  .add-row.desktop-add-row .btn-buy-now {
    display: none;
  }

  /* Fixed bar */
  .mobile-fixed-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fdf9f2;
    border-top: 2px solid #d8cbb6;
    padding: 10px 14px;
    gap: 10px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    align-items: center;
  }

  .mobile-fixed-bar .qty-control {
    flex-shrink: 0;
  }

  .mobile-fixed-bar .btn-buy-now-fixed {
    flex: 1;
    padding: 13px 10px;
    background: #2d5a1b;
    color: #fff;
    border: 2px solid #2d5a1b;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    text-align: center;
    font-family: "Noto Sans", sans-serif;
  }

  .mobile-fixed-bar .btn-buy-now-fixed:hover {
    background: #3d7a1a;
    transform: translateY(-1px);
  }
}

@media (max-width: 400px) {
  .page-title {
    font-size: 26px;
  }

  .product-title {
    font-size: 17px;
  }

  .tab-btn {
    padding: 8px 11px;
    font-size: 12px;
  }

  .btn-add-cart,
  .btn-buy-now {
    padding: 10px 12px;
    font-size: 12.5px;
  }
}


.thumb-carousel-wrap .owl-nav button.owl-prev,
.thumb-carousel-wrap .owl-nav button.owl-next {
  display: none !important;
}