/* ============================================================
   DISCOUNTLED – SHOP / PRODUCT PAGE STYLES
   ============================================================ */

/* Shop header */
.shop-hero {
  background: linear-gradient(135deg, #060c1a 0%, #0d1b35 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.shop-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.12), transparent 70%);
}
.shop-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.shop-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Filters — scrolls away with the page (NOT sticky) */
.shop-filters {
  padding: 22px 0;
  background: var(--bg-off-white);
  border-bottom: 1px solid var(--border-light);
}
.filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* tabs flow as direct items so the controls can fill the gap on the same line */
.filter-tabs {
  display: contents;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-fast);
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--led-blue);
  border-color: var(--led-blue);
  color: #fff;
  box-shadow: 0 2px 12px var(--led-blue-glow);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 8px 18px;
  transition: var(--trans-fast);
}
.search-bar:focus-within {
  border-color: var(--led-blue);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.search-bar i { color: var(--text-muted); font-size: 0.85rem; }
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 200px;
}

/* Right-side controls (sort + search) */
.shop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto; /* pushes Sort+Search to the right of their row */
  flex-wrap: wrap;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 8px 16px;
  transition: var(--trans-fast);
}
.sort-control:focus-within {
  border-color: var(--led-blue);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.sort-control i { color: var(--text-muted); font-size: 0.85rem; }
.sort-control select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* Screen-reader-only label */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Products grid */
.shop-main { padding: 60px 0 100px; background: var(--bg-white); }

/* Result count + load more + empty state */
.shop-result-bar { margin-bottom: 22px; }
.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.no-results {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.no-results i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 16px; }
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Product card */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-med);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--led-blue);
  box-shadow: var(--shadow-lg);
}
.product-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-popular { background: var(--logo-orange); color: #fff; }
.badge-new { background: #22c55e; color: #fff; }
.badge-sale { background: #ef4444; color: #fff; }

.product-img {
  display: block;
  height: 210px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: var(--trans-med);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform var(--trans-med);
}
.product-card:hover .product-img img { transform: scale(1.05); }
/* Fallback icon when a product has no image */
.product-img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--led-blue);
  background: linear-gradient(135deg, var(--bg-off-white), var(--bg-light));
}
.product-img.no-img .product-img-fallback { display: flex; }
.product-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--led-blue);
  transition: var(--trans-med);
  position: relative;
  z-index: 2;
}
.product-card:hover .product-icon-wrap {
  background: rgba(255,107,0,0.18);
  box-shadow: 0 0 30px var(--led-blue-glow);
  color: #fff;
  transform: scale(1.1);
}
.product-img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,107,0,0.07), transparent 70%);
  opacity: 0;
  transition: opacity var(--trans-med);
}
.product-card:hover .product-img-glow { opacity: 1; }

.product-info { padding: 22px; }
.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--led-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.product-specs span {
  padding: 3px 10px;
  background: var(--bg-off-white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-off-white);
}
.product-price-group {}
.product-price {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.product-price-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--led-blue), #0055cc);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--trans-med);
  box-shadow: 0 3px 12px var(--led-blue-glow);
  white-space: nowrap;
  font-family: var(--font-head);
}
.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--led-blue-glow);
}
.btn-add-cart.added {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 3px 12px rgba(34,197,94,0.4);
}

/* Tab counts — subtle pill badge */
.tab-count {
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}
.filter-tab.active .tab-count,
.filter-tab:hover .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Price: quote-only items */
.product-price-quote {
  font-size: 0.95rem !important;
  color: var(--logo-orange) !important;
  font-weight: 700;
}

/* Card actions (View + Add/Quote) */
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-view {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  transition: var(--trans-fast);
  white-space: nowrap;
}
.btn-view:hover {
  border-color: var(--led-blue);
  color: var(--led-blue);
}
.btn-quote {
  background: linear-gradient(135deg, var(--logo-orange), #cc4400) !important;
  box-shadow: 0 3px 12px var(--led-blue-glow) !important;
}

/* Quote CTA banner */
.quote-cta-banner {
  background: linear-gradient(135deg, var(--logo-orange), #d44000);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.quote-cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.quote-cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 28px;
  position: relative;
}
.quote-cta-banner .btn-primary {
  background: #fff !important;
  color: var(--logo-orange) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
  position: relative;
}
.quote-cta-banner .btn-primary:hover {
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
  transform: translateY(-2px);
}
.quote-cta-banner .btn-primary::before { display: none; }

/* ---- RESPONSIVE SHOP ---- */
@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-controls { flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; }
  .sort-control,
  .search-bar { width: 100%; }
  .search-bar input { width: 100%; }
}

/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.pdp-main { padding: 108px 0 70px; background: var(--bg-white); }
.pdp-main .breadcrumb { margin-bottom: 26px; color: var(--text-muted); font-size: 0.82rem; }
.pdp-main .breadcrumb a { color: var(--logo-orange); }
.pdp-main .breadcrumb a:hover { color: #ff8c00; }
.pdp-main .breadcrumb span { margin: 0 6px; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
/* Gallery: vertical thumbnail column on the LEFT of the main image */
.pdp-gallery { display: flex; gap: 14px; align-items: flex-start; }
.pdp-main-img {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg-off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.pdp-main-img.no-img .pdp-fallback { font-size: 4rem; color: var(--led-blue); }
.pdp-thumbs {
  order: -1;                 /* thumbnails to the left of the main image */
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 76px;
}
.pdp-thumb {
  width: 76px; height: 76px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-off-white);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: var(--trans-fast);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp-thumb:hover { border-color: var(--led-blue); }
.pdp-thumb.active { border-color: var(--led-blue); box-shadow: 0 0 0 2px var(--led-blue-glow); }

/* Info */
.pdp-category {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--logo-orange); margin-bottom: 12px;
}
.pdp-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; line-height: 1.25; color: var(--text-primary);
  margin-bottom: 18px;
}
.pdp-price {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 14px;
}
.pdp-price-quote { color: var(--logo-orange); font-size: 1.5rem; }
.pdp-sku { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.pdp-sku span { color: var(--text-secondary); font-weight: 600; }
.pdp-short { color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; font-size: 0.95rem; }

.pdp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.pdp-add { padding: 14px 26px !important; font-size: 0.9rem !important; }
.pdp-view {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 50px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: var(--text-secondary); border: 1px solid var(--border-light);
  background: var(--bg-white); transition: var(--trans-fast);
}
.pdp-view:hover { border-color: var(--led-blue); color: var(--led-blue); }

.pdp-trust { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--border-light); }
.pdp-trust li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.pdp-trust li i { color: var(--logo-orange); width: 18px; text-align: center; }

/* Description */
.pdp-desc {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.pdp-desc-title {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 18px;
}
.pdp-desc-body { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; max-width: 900px; }
.pdp-desc-body p { margin-bottom: 14px; }
.pdp-desc-body strong { color: var(--text-primary); }
.pdp-desc-body ul { margin: 0 0 16px; padding-left: 4px; }
.pdp-desc-body li {
  position: relative; padding-left: 26px; margin-bottom: 8px; list-style: none;
}
.pdp-desc-body li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--logo-orange); font-size: 0.8rem;
}
.pdp-desc-body a { color: var(--logo-orange); font-weight: 600; }
.pdp-desc-body a:hover { text-decoration: underline; }
.pdp-desc-body img { border-radius: var(--radius); margin: 12px 0; }
.pdp-desc-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.pdp-desc-body th, .pdp-desc-body td { border: 1px solid var(--border-light); padding: 8px 12px; text-align: left; font-size: 0.88rem; }

/* Related */
.pdp-related { padding: 70px 0; background: var(--bg-off-white); }

@media (max-width: 880px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp-main-img { height: 340px; }
  /* stack gallery: main image on top, thumbnails in a row below */
  .pdp-gallery { flex-direction: column; }
  .pdp-thumbs { order: 0; flex-direction: row; flex-wrap: wrap; flex-basis: auto; }
}

/* ---- PDP: quantity + buy row ---- */
.pdp-buy { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pdp-add { flex: 1 1 auto; justify-content: center; padding: 14px 26px !important; font-size: 0.92rem !important; }
.pdp-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-light); border-radius: 50px;
  overflow: hidden; background: var(--bg-white); flex: 0 0 auto;
}
.pdp-qty-btn {
  width: 42px; height: 48px; font-size: 1.25rem; line-height: 1;
  color: var(--text-secondary); background: none; border: none; cursor: pointer;
  transition: var(--trans-fast);
}
.pdp-qty-btn:hover { background: var(--bg-off-white); color: var(--logo-orange); }
.pdp-qty-input {
  width: 46px; height: 48px; text-align: center; border: none; outline: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-primary);
  background: transparent; -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-extlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 22px;
  transition: var(--trans-fast);
}
.pdp-extlink:hover { color: var(--logo-orange); }

.pdp-meta { padding: 16px 0; border-top: 1px solid var(--border-light); }
.pdp-meta-row { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.pdp-meta-row span { color: var(--text-secondary); font-weight: 700; }
.pdp-muted { color: var(--text-muted); }

/* ---- PDP: tabs ---- */
.pdp-tabs-wrap { margin-top: 56px; }
.pdp-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border-light); margin-bottom: 26px;
}
.pdp-tab {
  padding: 12px 22px; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: var(--trans-fast);
}
.pdp-tab:hover { color: var(--text-primary); }
.pdp-tab.active { color: var(--logo-orange); border-bottom-color: var(--logo-orange); }
.pdp-tabpanel { display: none; }
.pdp-tabpanel.active { display: block; }

/* ---- PDP: reviews placeholder ---- */
.pdp-reviews-empty { text-align: center; padding: 24px 0 8px; color: var(--text-muted); }
.pdp-stars { color: #f5b301; font-size: 1.1rem; margin-bottom: 12px; display: flex; gap: 5px; justify-content: center; }
.pdp-reviews-empty p { margin-bottom: 16px; }

/* ---- PDP: Compare / Wishlist links ---- */
.pdp-extra-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.pdp-extra {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--trans-fast);
}
.pdp-extra i { font-size: 1rem; color: var(--text-secondary); transition: var(--trans-fast); }
.pdp-extra:hover { color: var(--logo-orange); }
.pdp-extra:hover i { color: var(--logo-orange); }
.pdp-extra.active { color: var(--logo-orange); }
.pdp-extra.active i { color: var(--logo-orange); }
