/* =====================================================
   PekaSolar Shop – Redesign Override Stylesheet
   Design System: Poppins + Open Sans, Red (#da241e) + Grey/White
   ===================================================== */

:root {
  --ps-primary:       #da241e;
  --ps-primary-dark:  #c91e18;
  --ps-primary-light: #fb4943;
  --ps-gold:          #da241e;
  --ps-gold-dark:     #c91e18;
  --ps-bg:            #f7f7f7;
  --ps-bg-alt:        #f2f2f2;
  --ps-text:          #1c1e27;
  --ps-text-muted:    #555555;
  --ps-border:        #e0e0e0;
  --ps-card-bg:       #ffffff;
  --ps-shadow:        0 2px 12px rgba(0,0,0,0.08);
  --ps-shadow-hover:  0 8px 32px rgba(0,0,0,0.16);
  --ps-radius:        10px;
  --ps-radius-sm:     6px;
  --ps-transition:    all 0.22s ease;
}

/* ─── Typography ─────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--ps-text);
  background-color: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ─── Utilities ──────────────────────────────────── */
.ps-tag {
  display: inline-block;
  background: var(--ps-gold);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 30px;
  vertical-align: middle;
}

.ps-badge-stock {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 3px 10px;
  border-radius: 30px;
  letter-spacing: 0.04em;
}
.ps-badge-stock.in  { background: #e8f5e8; color: #2a7a2a; border: 1px solid #cce5cc; }
.ps-badge-stock.out { background: #fdecea; color: #991B1B; border: 1px solid #f5c6c6; }

/* ─── Buttons ────────────────────────────────────── */
.ps-btn-primary {
  display: inline-block;
  background: var(--ps-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--ps-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ps-transition);
  letter-spacing: 0.02em;
}
.ps-btn-primary:hover {
  background: var(--ps-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--ps-shadow-hover);
}

.ps-btn-gold {
  display: inline-block;
  background: var(--ps-gold);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--ps-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ps-transition);
}
.ps-btn-gold:hover {
  background: var(--ps-gold-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ps-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ps-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--ps-radius-sm);
  border: 2px solid var(--ps-primary);
  cursor: pointer;
  text-decoration: none;
  transition: var(--ps-transition);
}
.ps-btn-outline:hover {
  background: var(--ps-primary);
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   HOMEPAGE – HERO / BANNER SECTION
   ===================================================== */

#slider-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 60%, #3a3a3a 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  z-index: 1;
}

/* decorative background circles */
#slider-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(218,36,30,0.07);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#slider-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ps-hero-inner {
  position: relative;
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 520px;
  align-items: center;
  gap: 48px;
  z-index: 1;
}

/* ── LEFT column: categories sidebar ───────────────── */
.ps-hero-cats {
  flex: 0 0 220px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ps-radius);
  padding: 18px 0;
  backdrop-filter: blur(6px);
}

.ps-hero-cats h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  padding: 0 18px 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin: 0 0 6px 0;
}

.ps-hero-cat-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 18px;
  color: rgba(255,255,255,0.85);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ps-transition);
  border-left: 3px solid transparent;
  text-decoration: none;
  line-height: 1.35;
  text-align: left;
}
.ps-hero-cat-link:hover {
  background: rgba(218,36,30,0.15);
  border-left-color: var(--ps-primary);
  color: #fff;
  text-decoration: none;
}

.ps-hero-cat-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.8);
  margin-top: 1px;
}

/* ── CENTRE column: slider ─────────────────────────── */
.ps-hero-slider-wrap {
  flex: 1;
  position: relative;
  border-radius: var(--ps-radius);
  overflow: hidden;
  height: 420px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

#main-slider {
  height: 420px !important;
  width: 100% !important;
  opacity: 0;
  background-color: #000;
  transition: opacity 1s;
}
#main-slider.loaded-banner { opacity: 1; }

#main-slider .flex-viewport,
#main-slider .flex-viewport .slides,
#main-slider ul,
#main-slider li { height: 100% !important; }

#main-slider .flex-viewport .slides .slide {
  width: 100%;
  height: 100%;
  display: block;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

/* gradient overlay on slide */
.ps-hero-slider-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--ps-radius);
}

/* slide text overlay */
.slider-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
  background: none;
  z-index: 2;
}

.slider-text-content {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.slider-text-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.slider-text-inner { display: none; }
.slider-text--hidden { opacity: 0; transition: opacity .5s; }

.slider-text-button {
  flex: 0 0 auto;
  margin-top: 22px;
}

/* pagination dots */
.slider-pagination {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-pager {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  margin: 0 4px;
  cursor: pointer;
  transition: var(--ps-transition);
}
.slider-pager:hover  { background: rgba(255,255,255,0.65); }
.slider-pager.on     { background: var(--ps-gold); width: 22px; border-radius: 4px; }

/* ── RIGHT column: call-to-action ──────────────────── */
.ps-hero-cta {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-hero-cta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--ps-radius);
  padding: 22px 20px;
  backdrop-filter: blur(6px);
}

.ps-hero-cta-card .cta-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.ps-hero-cta-card .cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ps-hero-cta-card .cta-body {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Outline button variant for dark hero card background */
.ps-hero-cta-card .ps-btn-outline {
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.45);
}
.ps-hero-cta-card .ps-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.80);
  color: #fff;
}

/* ── Responsive: hero ──────────────────────────────── */
@media screen and (max-width: 1024px) {
  #slider-section { min-height: auto; padding: 0; }
  .ps-hero-inner {
    flex-direction: column;
    padding: 24px 16px;
    gap: 20px;
    min-height: auto;
  }
  .ps-hero-cats { display: none; }
  .ps-hero-cta  { display: none; }
  .ps-hero-slider-wrap {
    width: 100%;
    height: 260px;
    border-radius: var(--ps-radius);
  }
  #main-slider { height: 260px !important; }
  .slider-text { width: 100%; padding: 20px 20px 48px 20px; }
  .slider-text-content h3 { font-size: 18px; }
}

/* =====================================================
   HOMEPAGE – HIGHLIGHTED ITEMS
   ===================================================== */

#highlights-section {
  background: #fff;
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
}

#highlights-section > h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps-primary);
  margin-bottom: 8px;
}

#highlights-section > h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 4px;
}

.ps-highlights-subtitle {
  font-size: 16px;
  color: var(--ps-text-muted);
  margin-bottom: 48px;
}

.highlights-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1280px;
  margin: 48px auto 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Product card (shared: highlights + search results) ── */
.item {
  display: flex;
  flex-direction: column;
  background: var(--ps-card-bg);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  width: 220px;
  flex: 0 0 220px;
  margin: 0;
}
.item:hover {
  border-color: var(--ps-primary);
  box-shadow: 0 0 0 1px var(--ps-primary);
}

.item-img {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
  height: auto;
  cursor: pointer;
}

/* Status bar sits on top of everything inside the image area */
.item-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.93);
  color: #2a7a2a;
  border-bottom: 1px solid #d4edda;
  text-align: center;
}
.item-status.empty {
  background: var(--ps-primary);
  color: #fff;
  border-bottom-color: var(--ps-primary-dark);
}
.item-status > p {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
}

/* Image: contained with padding, starts BELOW the status bar */
.item-img > img {
  position: absolute;
  top: 28px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 38px);
  object-fit: contain;
  transition: opacity 0.18s ease;
}
.item:hover .item-img > img { opacity: 0.82; }

.item-img.empty > img { opacity: 0.35; filter: grayscale(60%); }

/* Hover overlay: also starts below the status bar */
.item-img-hover {
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,30,30,0.52);
  color: rgba(255,255,255,0.95);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
}
.item-img:hover .item-img-hover { opacity: 1; }

.item-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 18px 16px;
  text-decoration: none;
  border-top: none;
}

.item-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ps-text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}
.item-name > p {
  display: block;
  margin: 0;
  text-align: center;
  width: 100%;
}

.item-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  flex-direction: row;
  min-height: auto;
  color: initial;
  justify-content: flex-start;
  padding-top: 4px;
  border-top: 1px solid #f2f2f2;
  margin-top: auto;
}

.item-price-current {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ps-primary);
  padding-right: 0;
}

.item-price-old {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #94A3B8;
  text-decoration: line-through;
  padding-right: 0;
}

.item-price-vat {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #94A3B8;
}

.item-info {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #94A3B8;
  padding: 6px 0 0 0;
  text-align: left;
  width: auto;
}

.highlights-wrapper .item { margin: 0; }

@media screen and (max-width: 1024px) {
  #highlights-section { padding: 40px 0; }
  #highlights-section > h1 { font-size: 22px; }
  .highlights-wrapper {
    gap: 12px;
    padding: 0 12px;
    margin-top: 24px;
  }
  .item {
    width: 160px;
    flex: 0 0 160px;
  }
}

@media screen and (max-width: 480px) {
  .highlights-wrapper {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 10px;
  }
  .item {
    width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
  }
}

/* =====================================================
   ITEMS PAGE – LAYOUT + FILTERS + GRID
   ===================================================== */

/* ── Category pill nav (mobile only) ───────────────── */
.items-cat-nav {
  display: none;
  padding: 0 10px;
}

.items-cat-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 0;
}

.items-cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ps-text);
  text-decoration: none;
  transition: var(--ps-transition);
  white-space: nowrap;
}
.items-cat-pill:hover {
  border-color: var(--ps-primary);
  color: var(--ps-primary);
  text-decoration: none;
}
.items-cat-pill.active {
  background: var(--ps-primary);
  border-color: var(--ps-primary);
  color: #fff;
  font-weight: 600;
}

#items-section {
  background: #fff;
  padding: 40px 0 80px 0;
  text-align: left;
}

#items-section > .content-wrapper-wide {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: flex-start;
}

/* ── Sidebar header ───────────────────────────────── */
.ps-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  border-bottom: 2px solid var(--ps-bg);
}

.ps-filter-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ps-text);
}

.ps-filter-clear {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--ps-radius-sm);
  transition: var(--ps-transition);
}
.ps-filter-clear:hover { background: #FEE2E2; color: #991B1B; }

/* Close button inside drawer header — hidden on desktop */
.ps-filter-close-btn {
  display: none;
}

/* FAB button — hidden on desktop */
#ps-filter-fab {
  display: none;
}

/* Backdrop overlay for drawer */
#ps-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 1000;
}
#ps-filter-overlay.active { display: block; }

/* active category link */
.search-filter-item.active {
  background: #fdf0f0;
  color: var(--ps-primary);
  font-weight: 600;
}
.search-filter-item.active::before { background: var(--ps-primary); }

/* ── Sidebar / filters ──────────────────────────────── */
.search-filter {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--ps-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--ps-shadow);
  flex: none;
  width: auto;
  text-align: left;
}

.search-filter-wrapper {
  padding: 20px 18px;
  border-bottom: 1px solid #f2f2f2;
  margin-bottom: 0;
}

.search-filter-wrapper:last-child { border-bottom: none; }

.search-filter-label {
  padding-bottom: 12px;
  text-align: left;
}

.search-filter-label h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
  margin: 0;
}

.search-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ps-text);
  padding: 7px 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--ps-radius-sm);
  transition: var(--ps-transition);
  text-decoration: none;
}
.search-filter-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: var(--ps-transition);
}
.search-filter-item:hover {
  background: #fdf0f0;
  color: var(--ps-primary);
  text-decoration: none;
}
.search-filter-item:hover::before { background: var(--ps-primary); }

.search-filter-bubble {
  border: none;
  border-radius: 0;
  padding: 0 0 12px 0;
  margin-bottom: 0;
}

.search-filter-bubble h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
  margin: 0 0 8px 0;
  padding-top: 0;
}

.search-filter-apply {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px;
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
  transition: var(--ps-transition);
}
.search-filter-apply:hover { background: #fdf0f0; }

.search-filter-apply-btn { flex: 0 0 18px; }

.search-filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--ps-transition);
  background: #fff;
  position: relative;
}
.search-filter-checkbox:hover { border-color: #999; }
.search-filter-checkbox.on {
  background: var(--ps-primary);
  border-color: var(--ps-primary);
}
.search-filter-checkbox.on::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.search-filter-apply-label {
  flex-grow: 1;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--ps-text);
  cursor: pointer;
}

/* ── Results area ──────────────────────────────────── */
.search-results {
  flex: none;
  padding: 0;
  padding-left: 0;
  text-align: left;
}

.search-results-label { text-align: left; }
.search-results-label h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ps-text);
  margin: 0 0 4px 0;
}

.search-results-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px 0;
  border-bottom: 1px solid #E2F5EC;
  margin-bottom: 24px;
}

.search-selectors {
  flex: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--ps-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-order-select {
  border: 1px solid #D1D5DB;
  border-radius: var(--ps-radius-sm);
  padding: 7px 14px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--ps-text);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: var(--ps-transition);
}
.search-order-select:focus { border-color: var(--ps-primary); }

.search-results-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  text-align: left;
  padding: 0;
  font-size: initial;
}

/* ── Pager ────────────────────────────────────────── */
.search-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex: none;
  text-align: center;
}

.search-pager > div { display: none; }

.search-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--ps-radius-sm);
  background: #F1F5F9;
  color: var(--ps-text);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ps-transition);
  border: 1px solid #E2E8F0;
}
.search-pager-btn:hover { background: #fdf0f0; border-color: var(--ps-primary); color: var(--ps-primary); }
.search-pager-btn.active { background: var(--ps-primary); color: #fff; border-color: var(--ps-primary); }
.search-pager-btn.off { background: #F1F5F9; color: #CBD5E1; cursor: default; border-color: transparent; }

.search-placeholder { flex: none; }

@media screen and (max-width: 1024px) {
  #items-section > .content-wrapper-wide {
    grid-template-columns: 1fr;
    padding: 0 12px;
    gap: 0;
  }

  .search-filter {
    position: static;
    width: 100%;
    border-radius: var(--ps-radius);
    margin-bottom: 24px;
  }

  .search-results-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .search-results-nav { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media screen and (max-width: 768px) {
  .items-cat-nav { display: block; padding: 0 16px 8px; }
  .ps-sidebar-cats { display: none; }

  #items-section { padding: 16px 0 100px 0; }

  #items-section > .content-wrapper-wide {
    grid-template-columns: 1fr;
    padding: 0 10px;
    gap: 0;
  }

  /* Sidebar becomes a bottom-sheet drawer */
  #ps-filter-sidebar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-height: 75vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    border: none;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.22);
    transform: translateY(110%);
    transition: transform 0.3s ease;
    z-index: 1001;
    margin-bottom: 0;
  }
  #ps-filter-sidebar.drawer-open {
    transform: translateY(0);
  }

  /* Header stays fixed at top of drawer */
  #ps-filter-sidebar > .ps-filter-header {
    flex: 0 0 auto;
    background: #fff;
  }

  /* Scrollable content area below header */
  #ps-filter-sidebar > .ps-filter-body {
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Close button visible inside drawer */
  .ps-filter-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--ps-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--ps-transition);
    padding: 0;
    margin-left: 8px;
  }
  .ps-filter-close-btn:hover { background: #f2f2f2; color: var(--ps-text); }

  /* FAB: fixed bottom-right */
  #ps-filter-fab {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 999;
    background: var(--ps-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(218,36,30,0.40);
    transition: background 0.18s ease, box-shadow 0.18s ease;
  }
  #ps-filter-fab:hover {
    background: var(--ps-primary-dark);
    box-shadow: 0 6px 22px rgba(218,36,30,0.50);
  }

  /* 2 items per row in search results */
  .search-results-content {
    gap: 10px;
  }
  .search-results-content .item {
    width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
  }
}

/* =====
================================================
   ITEM DETAIL PAGE
   ===================================================== */

#item-section {
  background: #fff;
  padding: 32px 0 20px 0;
  text-align: left;
}

#item-section > .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Breadcrumbs ──────────────────────────────────── */
.item-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding: 0;
}

.item-breadcrumb {
  display: inline-flex;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--ps-text-muted);
  vertical-align: middle;
}

.item-breadcrumb i { font-size: 15px; padding: 0 6px; }
.item-breadcrumb .home { color: var(--ps-primary); }
.item-breadcrumb .home:hover { color: var(--ps-primary-dark); cursor: pointer; }
.item-breadcrumb .caret { color: #CBD5E1; }
.item-breadcrumb.previous { color: var(--ps-text-muted); }
.item-breadcrumb.previous:hover { color: var(--ps-primary); cursor: pointer; }
.item-breadcrumb.active { color: var(--ps-text); font-weight: 600; }

/* ── Main layout ──────────────────────────────────── */
.item-content-wrapper {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* ── Image panel ──────────────────────────────────── */
.item-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 90px;
  flex: none;
}

.item-thumbnail {
  border-radius: var(--ps-radius);
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: var(--ps-shadow);
  cursor: zoom-in;
  background: #fafafa;
}

.item-thumbnail img {
  width: 100%;
  display: block;
  clip-path: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
}

.item-gallery {
  flex: none;
}

.item-gallery-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
  border: none;
}

.item-gallery-slide {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: var(--ps-transition);
  max-width: none;
}
.item-gallery-slide:hover { border-color: #999; }

/* ── Content panel ────────────────────────────────── */
.item-content {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item-content-name {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.3;
  padding: 0 0 16px 0;
  border-bottom: 2px solid #eeeeee;
  margin-bottom: 20px;
}

/* ── Specs table ──────────────────────────────────── */
.item-content-custom-fields {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: var(--ps-radius);
  padding: 6px 16px;
  margin: 0 0 22px 0;
}

.item-content-custom-field {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}
.item-content-custom-field:last-child { border-bottom: none; }

.custom-field-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-text-muted);
  min-width: 160px;
}

.custom-field-dots {
  flex-grow: 1;
  height: 1px;
  border-bottom: 1px dashed #cccccc;
  margin: 0 14px;
}

.custom-field-content {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-text);
}

/* ── Price ────────────────────────────────────────── */
.item-content-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 20px;
  font-size: initial;
  color: initial;
}

.item-content-price > .item-price-current {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ps-primary);
  display: inline-block;
}

.item-content-price > .item-price-old {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: #94A3B8;
  text-decoration: line-through;
}

.item-content-price > .item-price-vat {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #94A3B8;
  display: inline-block;
}

.item-content-price-info {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #94A3B8;
  width: 100%;
  margin-top: -6px;
}

/* ── Add-to-cart ──────────────────────────────────── */
.item-content-price-logged-out {
  text-align: left;
  margin-bottom: 20px;
}

.item-content-buttons {
  padding: 0 0 20px 0;
}

.item-option {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* On desktop this wrapper is invisible — children join parent flex row */
.item-option-input-row {
  display: contents;
}

.item-option-label {
  flex: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--ps-text-muted);
  font-weight: 600;
  padding-right: 0;
  min-width: 80px;
}

.item-option-input { flex: none; }

.item-amount-selector {
  width: 68px;
  padding: 10px 10px;
  border: 1px solid #D1D5DB;
  border-radius: var(--ps-radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background: #fff;
  transition: var(--ps-transition);
}
.item-amount-selector:focus { outline: none; border-color: var(--ps-primary); }

.item-option-button { flex: none; }

/* ── Documents ────────────────────────────────────── */
.item-files {
  margin-top: 16px;
  border-top: 1px solid #eeeeee;
  padding-top: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-text-muted);
}

.item-files-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }

.document-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ps-text);
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--ps-radius-sm);
  text-decoration: none;
  background: #f7f7f7;
  transition: var(--ps-transition);
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.document-entry svg { flex-shrink: 0; }
.document-entry span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.document-entry:hover {
  background: var(--ps-primary);
  color: #fff;
  border-color: var(--ps-primary);
  text-decoration: none;
}
.document-entry i { font-size: 16px; }

/* ── Description section ──────────────────────────── */
#item-details-section {
  background: #fff;
  padding: 40px 0 60px 0;
}

#item-details-section > .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

#item-details-section .details-nav h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ps-text);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.details-content {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ps-text-muted);
  max-width: 820px;
}

/* ── Suggestions ──────────────────────────────────── */
#item-details-suggestions {
  background: #f7f7f7;
  padding: 60px 0;
}
#item-details-suggestions > .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
#item-details-suggestions .details-nav h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ps-text);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.details-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Cards inside suggestions grid must fill the cell */
.details-suggestions .item {
  width: 100%;
  flex: none;
  min-width: 0;
}

/* ── Responsive: item page ────────────────────────── */
@media screen and (max-width: 1024px) {
  .item-content-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .item-image { position: static; }
  #item-section > .content-wrapper,
  #item-details-section > .content-wrapper,
  #item-details-suggestions > .content-wrapper {
    padding: 0 16px;
  }
  .item-content-name { font-size: 20px; }
  .item-content-price { justify-content: center; }
  .item-content-price > .item-price-current { font-size: 24px; }
  .item-content-price-logged-out { text-align: center; }
  .item-content-price-logged-out .ps-btn-primary { width: 100%; justify-content: center; }
  .ps-item-badges { justify-content: center; }
  .item-files-list { width: 100%; }
  .document-entry { width: 100%; }
  #item-details-section { padding: 28px 0 40px 0; }
  #item-details-suggestions { padding: 36px 0; }
  .details-suggestions { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Add-to-cart: label above, input + button on same row */
  .item-option {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .item-option-label {
    min-width: auto;
  }
  .item-option-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .item-option-input { flex: none; }
  .item-option-button { flex: 1; }
  .item-option-button .ps-btn-primary { width: 100%; justify-content: center; }
}

/* =====================================================
   SECTION HEADERS (generic override for h1/h3 pattern)
   ===================================================== */
#highlights-section h3,
#about-section h3,
#questions-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps-primary);
  margin-bottom: 8px;
}
#highlights-section h1,
#about-section h1,
#questions-section h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ps-text);
}

/* sub-page banner header */
#banner-sub-section {
  background-color: #1c1c1c;
}
#sub-section-header {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  border-bottom: 4px solid var(--ps-primary);
}


/* =====================================================
   WRAPPER WIDTH OVERRIDES
   (allow redesigned sections to use full width / own padding)
   ===================================================== */

#items-section > .content-wrapper-wide {
  width: auto;
  max-width: 1380px;
}

#item-section > .content-wrapper,
#item-details-section > .content-wrapper,
#item-details-suggestions > .content-wrapper {
  width: auto;
  max-width: 1200px;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

/* Block-width button helper */
.ps-btn-block {
  width: 100%;
  text-align: center;
  display: block;
}

/* Item detail — stock badge row */
.ps-item-badges {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

/* Inline SVG icon helper */
.ps-icon-inline {
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
}
.ps-icon-inline.ps-icon-sm {
  margin-right: 3px;
}

/* Filter header icon */
.ps-filter-icon {
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--ps-primary);
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
