/* =========================================
   Galleria – Products / Shop Page Stylesheet
   Extends tokens defined in style.css
   ========================================= */

/* =========================================
   PAGE BANNER
   ========================================= */
.page-banner {
  position: relative;
  background: url('../img/breadcum.jpg');
  padding: 90px 0 50px;
  overflow: hidden;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 14px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.breadcrumb-trail a:hover {
  color: var(--gold-light);
}

.breadcrumb-trail i {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb-trail span {
  color: var(--gold-light);
}

/* =========================================
   SHOP LAYOUT
   ========================================= */
.shop-section {
  background: var(--warm-white);
}

/* =========================================
   SIDEBAR
   ========================================= */
.filter-toggle-btn {
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition);
}

.filter-toggle-btn:hover {
  background: var(--gold-dark);
}

.shop-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
}

.sidebar-block {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.sidebar-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-heading {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.sidebar-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

/* Search box */
.sidebar-search {
  position: relative;
  display: flex;
}

.sidebar-search input {
  padding-right: 44px;
  font-size: 13.5px;
}

.sidebar-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 38px;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-search button:hover {
  background: var(--gold-dark);
}

/* Generic sidebar list */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list>li {
  margin-bottom: 4px;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: #000;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.sidebar-list a:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-dark);
  padding-left: 14px;
}

.sidebar-list a i {
  font-size: 13px;
  color: var(--gold);
}

.cat-hot {
  color: #d4544c !important;
  font-weight: 600;
}

.cat-hot:hover {
  background: rgba(212, 84, 76, 0.08) !important;
}

.cat-sale {
  color: var(--gold-dark) !important;
  font-weight: 600;
}

/* Collapsible category groups */
.has-children {
  margin-bottom: 2px;
}

.cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.cat-toggle:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-dark);
}

.cat-toggle i {
  font-size: 11px;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.cat-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.sub-list {
  list-style: none;
  padding-left: 14px;
  margin: 2px 0 6px;
  border-left: 2px solid rgba(201, 168, 76, 0.25);
}

.sub-list a {
  font-size: 13px;
  padding: 6px 10px;
}

/* Brand checkboxes */
.brand-check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  padding: 7px 4px;
  cursor: pointer;
  transition: color var(--transition);
}

.brand-check-list label:hover {
  color: var(--gold-dark);
}

.brand-check-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* =========================================
   TOOLBAR
   ========================================= */
.shop-toolbar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
}

.result-count {
  font-size: 13.5px;
  color: var(--text-muted);
}

.result-count strong {
  color: var(--charcoal);
}

.sort-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
}

.sort-select {
  font-size: 13px;
  padding: 8px 14px;
  min-width: 180px;
}

/* =========================================
   PRODUCT BADGES (sale variant)
   ========================================= */
.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d4544c;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

/* =========================================
   PAGINATION
   ========================================= */
.shop-pagination .pagination {
  gap: 6px;
  flex-wrap: wrap;
}

.shop-pagination .page-link {
  border: none;
  border-radius: 8px !important;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.shop-pagination .page-item:not(:last-child):not(:nth-last-child(2)) .page-link {
  width: 40px;
}

.shop-pagination .page-item:last-child .page-link,
.shop-pagination .page-item:nth-last-child(2):not(.active) .page-link {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}

.shop-pagination .page-link:hover {
  background: var(--gold);
  color: var(--white);
}

.shop-pagination .page-item.active .page-link {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.shop-pagination .page-item.disabled .page-link {
  background: transparent;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.25);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  .page-banner {
    padding: 70px 0 40px;
  }
}

@media (max-width: 767px) {
  .page-banner {
    padding: 55px 0 32px;
  }

  .shop-sidebar {
    padding: 22px 18px;
  }

  .shop-toolbar {
    padding: 14px 16px;
  }

  .sort-select {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-select {
    width: 100%;
  }
}

/* =========================================
   PRODUCT DETAILS VIEW
   ========================================= */
.breadcrumb-dark {
  color: var(--text-muted);
}
.breadcrumb-dark a { color: var(--text-main); }
.breadcrumb-dark a:hover { color: var(--gold); }
.breadcrumb-dark i { color: var(--text-muted); }
.breadcrumb-dark span { color: var(--gold-dark); }

/* ---- Gallery ---- */
.pd-gallery { position: relative; }

.pd-main-slider {
  position: relative;
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pd-main-img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  padding: 40px;
}
.pd-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
}
.pd-zoom-btn {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  color: var(--charcoal);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.pd-zoom-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.pd-arrow {
  width: 42px; height: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  opacity: 1;
  color: var(--charcoal);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.pd-arrow.carousel-control-prev { left: 16px; }
.pd-arrow.carousel-control-next { right: 16px; }
.pd-arrow:hover { background: var(--gold); color: var(--white); }
.pd-arrow i { font-size: 16px; }

.pd-thumb-strip {
  display: flex;
  gap: 12px;
}
.pd-thumb {
  width: 76px; height: 76px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm-white);
  cursor: pointer;
  padding: 6px;
  transition: border-color var(--transition), transform var(--transition);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--gold); }

/* ---- Info Panel ---- */
.pd-brand { font-size: 11px; }
.pd-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--charcoal);
  margin: 6px 0 14px;
}

.pd-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pd-meta-row i { color: var(--gold); margin-right: 4px; }
.pd-divider { color: rgba(0,0,0,0.15); }
.pd-stock.in-stock { color: #2e9e5b; font-weight: 600; }
.pd-stock.in-stock i { color: #2e9e5b; }

.pd-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pd-rating .testi-stars { color: var(--gold); font-size: 14px; }
.pd-review-link {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
}
.pd-review-link:hover { color: var(--gold-dark); }

.pd-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pd-price-old {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.pd-sale-tag { position: static; font-size: 11px; padding: 4px 10px; }

.pd-short-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Options */
.pd-option-group { margin-bottom: 20px; }
.pd-option-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.pd-swatches { display: flex; gap: 10px; }
.pd-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}
.pd-swatch:hover { transform: scale(1.08); }
.pd-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.pd-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-pill {
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition);
}
.pd-pill:hover { border-color: var(--gold); color: var(--gold-dark); }
.pd-pill.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

/* Buy Row */
.pd-buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pd-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  overflow: hidden;
}
.pd-qty-btn {
  width: 38px; height: 46px;
  background: var(--warm-white);
  border: none;
  font-size: 16px;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--transition);
}
.pd-qty-btn:hover { background: var(--gold); color: var(--white); }
.pd-qty-input {
  width: 44px; height: 46px;
  border: none;
  border-left: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.pd-add-cart-btn {
  flex: 1;
  min-width: 180px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pd-wish-btn {
  width: 46px; height: 46px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.pd-wish-btn:hover { border-color: #e74c3c; color: #e74c3c; }

.pd-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #25D366;
  margin-bottom: 24px;
}
.pd-whatsapp-link i { font-size: 16px; }
.pd-whatsapp-link:hover { text-decoration: underline; }

/* Trust row */
.pd-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.pd-trust-item i { color: var(--gold); font-size: 15px; }

/* Tabs */
.pd-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid rgba(0,0,0,0.07);
  margin-bottom: 24px;
}
.pd-tab-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: color var(--transition);
}
.pd-tab-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.pd-tab-btn:hover { color: var(--charcoal); }
.pd-tab-btn.active { color: var(--gold-dark); }
.pd-tab-btn.active::after { transform: scaleX(1); }

.pd-tab-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.pd-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.pd-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.pd-feature-list i { color: var(--gold); margin-top: 3px; }

.pd-spec-table { width: 100%; border-collapse: collapse; }
.pd-spec-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.pd-spec-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  width: 40%;
}
.pd-spec-table td {
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Zoom Modal */
.pd-zoom-modal-content {
  background: var(--white);
  border: none;
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.pd-zoom-modal-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .pd-main-img { height: 380px; }
}

@media (max-width: 767px) {
  .pd-main-img { height: 320px; padding: 24px; }
  .pd-thumb { width: 64px; height: 64px; }
  .pd-title { font-size: 1.6rem; }
  .pd-price { font-size: 1.7rem; }
  .pd-buy-row { flex-direction: column; align-items: stretch; }
  .pd-add-cart-btn { width: 100%; }
  .pd-wish-btn { width: 100%; height: 46px; }
  .pd-trust-row { flex-direction: column; gap: 10px; }
  .pd-tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
}

@media (max-width: 480px) {
  .pd-thumb-strip { overflow-x: auto; }
  .pd-swatches, .pd-pills { flex-wrap: wrap; }
}