/* Daily Dura - Product Detail Page Custom Stylesheet (Professional Redesign) */

/* Page Background & Layout */
.product-detail-section {
  padding: 2rem 0 5rem;
  background: #F8FAF8;
  min-height: 85vh;
}

/* Header Bar & Breadcrumbs */
.product-detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.product-breadcrumb {
  font-size: 0.9rem;
  color: #64748B;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-breadcrumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
  color: #155E42;
}

.product-breadcrumb .separator {
  opacity: 0.5;
  color: #94A3B8;
}

.product-breadcrumb .active-crumb {
  color: #0E2350;
  font-weight: 700;
}

.detail-header-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.825rem;
  font-weight: 700;
  color: #155E42;
}

/* Product Main 2-Column Grid (Equal 50% / 50% Layout) */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

/* Left Column: Image Gallery Card Box */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(14, 35, 80, 0.03);
}

.main-img-box {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.main-img-box img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.badge-tag-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #0e2350;
  background: #0e2350;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
 
  z-index: 5;
}

/* Thumbnail Gallery Strip */
.thumbnail-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 6px 4px 6px 4px;
}

.thumb-item {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: #F8FAF8;
  border: 2px solid #E2E8F0;
  padding: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: #155E42;
  box-shadow: 0 2px 8px rgba(21, 94, 66, 0.2);
  background: #FFFFFF;
}

/* Right Column: Product Info & Purchase Panel */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-category-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #155E42;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: #E8F5E9;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}

.detail-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #D97706;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.detail-rating-pill i {
  color: #F59E0B;
}

.reviews-count-text {
  color: #78350F;
  font-weight: 600;
  font-size: 0.8rem;
}

.stock-status-badge {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0E2350;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Heading Tagline */
.heading {
  /* margin: 0.25rem 0 1rem 0; */
}

.heading p {
  color: #155E42;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

/* Price Box Card */
.detail-price-box {
  background: #F8FAF8;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-main-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.detail-current-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0E2350;
}

.detail-original-price {
  font-size: 1.15rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.detail-save-badge {
  margin-left: auto;
  background: #FFF4EC;
  color: #F48024;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(244, 128, 36, 0.25);
}

.price-tax-note {
  font-size: 0.825rem;
  color: #64748B;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Small Description Callout Box */
.small-description {
  margin: 1rem 0 0.5rem 0;
  padding: 1rem 1.25rem;
  background: #F8FAF8;
  border: 1px solid #E2E8F0;
  
  border-radius: 12px;
}

.small-description p {
  color: #000000;
  font-size: 0.935rem;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

/* Feature Bullet List */
.detail-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-highlights-list li {
  font-size: 0.925rem;
  color: #0E2350;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-highlights-list li i {
  color: #155E42;
  font-size: 1rem;
}

/* Quantity & Action Buttons Row */
.purchase-actions-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}

.qty-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-qty-picker {
  display: flex;
  align-items: center;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 4px;
  background: #FFFFFF;
}

.detail-qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #F1F5F9;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0E2350;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.detail-qty-btn:hover {
  background: #155E42;
  color: #FFFFFF;
}

.detail-qty-val {
  width: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0E2350;
}

.btn-detail-cart {
  flex: 1;
  min-width: 140px;
  background: #155E42;
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.975rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(21, 94, 66, 0.25);
}

.btn-detail-cart:hover {
  background: #134E37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 94, 66, 0.35);
}

.btn-detail-buy {
  flex: 1;
  min-width: 140px;
  background: #F48024;
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.975rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(244, 128, 36, 0.25);
}

.btn-detail-buy:hover {
  background: #E06E12;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 128, 36, 0.35);
}

.btn-detail-wishlist {
  width: 48px;
  height: 48px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  color: #64748B;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-detail-wishlist:hover {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

/* Trust Footer Strip */
.detail-trust-footer-strip {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0E2350;
}

.trust-footer-item i {
  color: #155E42;
  font-size: 1.1rem;
}

/* Product Specifications & Details Box Section */
.product-description-section {
  margin-top: 4rem;
}

.desc-outside-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0E2350;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

.description-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(14, 35, 80, 0.02);
}

.desc-paragraph {
  color: #000000;
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

/* Related Products Grid ("You May Also Like") */
.related-products-section {
  margin-top: 4rem;
  width: 100%;
}

.related-section-header {
  margin-bottom: 1.75rem;
}

.related-section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0E2350;
  margin-bottom: 0.25rem;
}

.related-section-header p {
  color: #64748B;
  font-size: 0.95rem;
  margin: 0;
}

#relatedProductsGrid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#relatedProductsGrid .product-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #E2E8F0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#relatedProductsGrid .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(14, 35, 80, 0.08);
}

#relatedProductsGrid .product-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  background: #F8FAF8;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#relatedProductsGrid .product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#relatedProductsGrid .product-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

#relatedProductsGrid .product-category-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #155E42;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: inline-block;
}

#relatedProductsGrid .product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0E2350;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

#relatedProductsGrid .product-name a {
  color: inherit;
  text-decoration: none;
}

#relatedProductsGrid .product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #F59E0B;
  margin-bottom: 0.65rem;
}

#relatedProductsGrid .product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed #E2E8F0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#relatedProductsGrid .price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

#relatedProductsGrid .current-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0E2350;
}

#relatedProductsGrid .original-price {
  font-size: 0.85rem;
  color: #94A3B8;
  text-decoration: line-through;
}

#relatedProductsGrid .btn-add-cart {
  background: #E8F5E9;
  color: #155E42;
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.825rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

#relatedProductsGrid .btn-add-cart:hover {
  background: #155E42;
  color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .product-detail-section {
    padding: 1rem 0 3rem;
    overflow-x: hidden;
  }
  
  .product-detail-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-detail-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .product-breadcrumb {
    font-size: 0.8rem;
    gap: 4px;
    word-break: break-word;
  }

  .product-detail-grid {
    gap: 1.5rem;
  }

  .gallery-wrapper {
    padding: 8px;
    border-radius: 14px;
    gap: 0.6rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .main-img-box {
    aspect-ratio: 1 / 1;
    max-height: 340px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .main-img-box img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }

  .badge-tag-floating {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .thumbnail-strip {
    gap: 0.4rem;
    padding: 4px 2px;
    width: 100%;
    box-sizing: border-box;
  }

  .thumb-item {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0;
  }

  .thumb-item img {
    object-fit: contain;
  }

  .product-info-panel {
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-header-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .detail-title {
    font-size: 1.35rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .heading p {
    font-size: 0.925rem;
    word-break: break-word;
  }

  .detail-price-box {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .price-main-line {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }

  .detail-current-price {
    font-size: 1.6rem;
  }

  .detail-original-price {
    font-size: 1rem;
  }

  .detail-save-badge {
    margin-left: 0;
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .price-tax-note {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .small-description {
    padding: 0.75rem;
    margin: 0.5rem 0;
  }

  .small-description p {
    font-size: 0.875rem;
  }

  .detail-highlights-list li {
    font-size: 0.85rem;
  }

  .purchase-actions-box {
    gap: 0.75rem;
    padding-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .qty-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .detail-qty-picker {
    justify-content: center;
    width: 100%;
  }

  .btn-detail-cart,
  .btn-detail-buy {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .btn-detail-wishlist {
    width: 100%;
    height: 42px;
  }

  .detail-trust-footer-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .description-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .desc-outside-heading {
    font-size: 1.25rem;
  }

  .related-products-section {
    margin-top: 2.5rem;
    width: 100%;
    overflow-x: hidden;
  }

  .related-section-header {
    margin-bottom: 1.25rem;
  }

  .related-section-header h2 {
    font-size: 1.45rem;
  }

  #relatedProductsGrid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  #relatedProductsGrid .product-card {
    width: 100% !important;
    border-radius: 16px;
  }

  #relatedProductsGrid .product-image-box {
    max-height: 240px;
  }

  #relatedProductsGrid .product-name {
    height: auto;
    font-size: 0.95rem;
  }

  #relatedProductsGrid .product-content {
    padding: 0.9rem 1rem 1rem;
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  #relatedProductsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}
