/* --- Catalog Filters & Pagination --- */
.catalog-filters { display: flex; gap: 10px; margin: 20px 0 28px; }
.catalog-filters input, .catalog-filters select { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.catalog-filters input { flex: 1; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 30px; }
.pagination a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; }
.pagination .current { background: var(--orange); color: #fff; }

/* --- Breadcrumb Bar --- */
.breadcrumb-bar {
  background: #f8faf9;
  border-bottom: 1px solid #eef2f1;
  padding: 10px 0;
  font-size: 13px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #64748b;
}
.breadcrumb-list a {
  color: #64748b;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-list a:hover {
  color: var(--orange, #e9672f);
}
.breadcrumb-list .sep {
  color: #cbd5e1;
  font-size: 11px;
}
.breadcrumb-list .current {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Section Detail Main Container --- */
.section-detail {
  padding-top: 28px;
  padding-bottom: 60px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

/* --- LEFT COLUMN: Gallery --- */
.detail-gallery-col {
  position: sticky;
  top: 90px;
}
.detail-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8faf9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.detail-gallery-main:hover img {
  transform: scale(1.03);
}
.detail-placeholder {
  font-size: 56px;
  color: #cbd5e1;
}

/* Badges on Main Gallery */
.detail-discount-circle {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d15, #e9672f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(233,103,47,0.45);
  border: 2px solid #fff;
  z-index: 3;
}
.detail-flash-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--orange, #e9672f);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(233,103,47,0.35);
  z-index: 3;
}

/* Thumbnail Strip */
.detail-thumbs-wrap {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #f8faf9;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all .15s ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.gallery-thumb:hover, .gallery-thumb.is-active {
  border-color: var(--orange, #e9672f);
  box-shadow: 0 2px 8px rgba(233,103,47,0.25);
  transform: translateY(-2px);
}

/* --- RIGHT COLUMN: Info & Actions --- */
.detail-info-col {
  display: flex;
  flex-direction: column;
}
.detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}
.detail-cat-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.detail-cat-badge:hover {
  background: #e2e8f0;
  color: var(--orange);
}
.detail-sku {
  color: #64748b;
}

/* Title */
.detail-title {
  font-size: 26px;
  font-weight: 850;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}

/* Stock Status */
.detail-stock-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 20px;
}
.stock-pill.in-stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.stock-pill.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Flash Sale Urgency Banner */
.detail-flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff7f2, #ffede5);
  border: 1.5px solid #fed7aa;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.fs-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fs-lightning {
  font-size: 22px;
  color: #e9672f;
}
.fs-banner-text strong {
  display: block;
  font-size: 13.5px;
  color: #9a3412;
}
.fs-banner-text small {
  display: block;
  font-size: 11.5px;
  color: #c2410c;
}

/* Pricing Box */
.detail-pricing-box {
  background: #fbfcfc;
  border: 1px solid #eef2f2;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.price-current {
  font-size: 30px;
  font-weight: 900;
  color: var(--orange, #e9672f);
  letter-spacing: -0.5px;
}
.price-regular {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 500;
  text-decoration: line-through;
}
.price-saved {
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

/* Short Description */
.detail-short-description {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 22px;
}

/* Order Form: Stepper + Buy Now + Add to Cart */
.detail-order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}
.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qty-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.qty-step-btn {
  width: 36px;
  height: 38px;
  border: none;
  background: #f8fafc;
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.qty-step-btn:hover {
  background: #e2e8f0;
}
.qty-stepper input {
  width: 50px;
  height: 38px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
  background: #fff;
  outline: none;
}
.qty-available {
  font-size: 12px;
  color: #64748b;
}

/* Action Buttons */
.detail-actions-row {
  display: flex;
  gap: 12px;
}
.btn-detail-buynow {
  flex: 1.2;
  height: 48px;
  background: var(--orange, #e9672f);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(233,103,47,0.32);
  transition: all .15s ease;
}
.btn-detail-buynow:hover:not(:disabled) {
  background: var(--orange-dark, #c64c20);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233,103,47,0.4);
}
.btn-detail-addcart {
  flex: 1;
  height: 48px;
  background: #fff7f2;
  color: var(--orange, #e9672f);
  border: 2px solid var(--orange, #e9672f);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}
.btn-detail-addcart:hover:not(:disabled) {
  background: var(--orange, #e9672f);
  color: #fff;
}
.btn-detail-buynow:disabled, .btn-detail-addcart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Wishlist Form Button */
.detail-wishlist-form {
  margin-bottom: 24px;
}
.btn-detail-wishlist {
  width: 100%;
  height: 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}
.btn-detail-wishlist:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff5f5;
}

/* Trust Box */
.detail-trust-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: #f8faf9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust-icon {
  font-size: 20px;
  line-height: 1;
}
.trust-item strong {
  display: block;
  font-size: 12.5px;
  color: #1e293b;
  margin-bottom: 2px;
}
.trust-item p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* --- Tabs Section: Description & Delivery --- */
.detail-tabs-section {
  margin-top: 50px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.tab-nav-bar {
  display: flex;
  border-bottom: 1.5px solid #e2e8f0;
  background: #f8fafc;
}
.tab-btn {
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 750;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.tab-btn:hover {
  color: var(--orange, #e9672f);
}
.tab-btn.is-active {
  color: var(--orange, #e9672f);
  background: #fff;
}
.tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--orange, #e9672f);
}
.tab-content {
  padding: 28px;
}
.product-full-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: #334155;
}
.delivery-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.delivery-card {
  background: #f8faf9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
}
.delivery-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #0f172a;
}
.delivery-card p {
  margin: 6px 0;
  font-size: 13px;
  color: #475569;
}

/* Related Products Section */
.related-products-section {
  margin-top: 60px;
}
.related-products-section .section-heading {
  margin-bottom: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-gallery-col {
    position: static;
  }
  .delivery-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .detail-title {
    font-size: 21px;
  }
  .price-current {
    font-size: 25px;
  }
  .detail-actions-row {
    flex-direction: column;
  }
  .btn-detail-buynow, .btn-detail-addcart {
    width: 100%;
    height: 44px;
    font-size: 14px;
  }
  .detail-trust-box {
    grid-template-columns: 1fr;
  }
  .tab-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}
