/* products.css — Product Grid · Cards · Detail · Filters */

/* ── Category Filters ── */
.category-filters {
  display: flex;
  gap: .48rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.filter-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: .44rem 1.05rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: var(--bg-sec);
  box-shadow: var(--shadow-teal);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  box-shadow: 0 3px 14px rgba(1,22,39,.22);
}

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.5rem;
}

/* ── Product Card ── */
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: linear-gradient(135deg, var(--alert), var(--alert-h));
  color: var(--bg);
  font-size: .68rem;
  font-weight: bold;
  padding: .24rem .65rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(231,29,54,.3);
}

.product-img-wrap {
  background: linear-gradient(145deg, #F2FBFA, #E8F9F8);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-lt);
  transition: background var(--t);
}

.product-card:hover .product-img-wrap {
  background: linear-gradient(145deg, #E0F9F7, #D0F5F2);
}

.product-img-wrap img {
  max-height: 155px;
  max-width: 72%;
  object-fit: contain;
  transition: transform .3s ease;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 12px rgba(1,22,39,.1));
}

.product-card:hover .product-img-wrap img { transform: scale(1.06) }

.product-card-body {
  padding: 1.2rem 1.25rem;
  flex: 1;
}

.product-brand {
  font-size: .7rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

.product-name {
  font-size: .975rem;
  font-weight: 700;
  margin-bottom: .48rem;
  line-height: 1.35;
  color: var(--text);
}

.product-short-desc {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.62;
  margin-bottom: .7rem;
}

.product-reseller-note {
  font-size: .7rem;
  color: var(--text-3);
  margin-top: .3rem;
}

.product-stock-status {
  font-size: .7rem;
  color: var(--text-3);
  display: block;
  margin-top: .2rem;
}

.product-problems { display: flex; flex-wrap: wrap; gap: .35rem }

.problem-tag {
  font-size: .68rem;
  color: var(--text-2);
  background: var(--bg-sec);
  border: 1px solid var(--border-lt);
  border-radius: 99px;
  padding: .18rem .55rem;
  display: flex;
  align-items: center;
  gap: .28rem;
}

.problem-tag i { color: var(--accent); font-size: .62rem }

.product-card-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border-lt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-sec);
}

.product-price {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-h);
}

/* ── No Results ── */
.no-results { text-align: center; padding: 4rem; color: var(--text-3) }
.no-results i { font-size: 2.8rem; margin-bottom: 1rem; display: block }

/* ── Product Detail ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 3.5rem;
  align-items: start;
}

.pd-image-col { position: sticky; top: 6rem }

.pd-image-wrap {
  position: relative;
  background: linear-gradient(145deg, #EAF9F8, #D6F7F5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  box-shadow: var(--shadow-sm);
}

.pd-image-wrap img {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 24px rgba(1,22,39,.12));
}

.pd-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pd-thumbnail-wrap {
  width: 70px;
  height: 70px;
  background: var(--surface, #fff);
  border: 2px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.pd-thumbnail-wrap:hover {
  opacity: 1;
  border-color: var(--accent);
}

.pd-thumbnail-wrap.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(19,88,184,0.15);
}

.pd-thumbnail-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pd-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 10;
  display: inline-block;
  margin-top: 0;
  background: linear-gradient(135deg, var(--alert), var(--alert-h));
  color: var(--bg);
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(231,29,54,.28);
}

.pd-brand {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.pd-title { font-size: 1.85rem; margin-bottom: .48rem; letter-spacing: -.02em }
.pd-category { font-size: .8rem; color: var(--text-3); margin-bottom: .95rem }

.pd-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-h);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.pd-short-desc { color: var(--text-2); line-height: 1.74; font-size: .94rem }

.product-pricing { margin-bottom: 1.4rem; color: var(--text-3); font-size: 13px }

.pd-cta-group {
  display: flex;
  gap: .95rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pd-block {
  background: var(--grad-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
}

.pd-block h3 {
  font-size: .92rem;
  margin-bottom: .72rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.pd-block h3 i { color: var(--accent) }

.pd-list { display: flex; flex-direction: column; gap: .45rem }

.pd-list li {
  font-size: .855rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}

.pd-list li i { color: var(--success); margin-top: .2rem; flex-shrink: 0 }

.pd-assistance-usp {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  background: linear-gradient(135deg, var(--bg-sec), var(--success-bg));
  border: 1px solid rgba(46,196,182,.3);
  border-radius: var(--r-md);
  padding: 1.1rem;
  box-shadow: 0 2px 12px rgba(46,196,182,.1);
}

.pd-assistance-usp i {
  font-size: 1.45rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.pd-assistance-usp strong { display: block; margin-bottom: .2rem; font-size: .88rem; color: var(--text) }
.pd-assistance-usp p { font-size: .8rem; color: var(--text-2); margin: 0 }

/* ── Key Features Grid ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1rem;
}

.problem-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: all .22s ease;
  box-shadow: var(--shadow-sm);
}

.problem-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.problem-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.problem-label {
  font-size: .65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.problem-text span:last-child { font-size: .83rem; font-weight: 500 }

/* ── Specs Table ── */
.specs-table-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 700px;
  box-shadow: var(--shadow-sm);
}

.specs-table { width: 100%; border-collapse: collapse }

.specs-table tr:not(:last-child) { border-bottom: 1px solid var(--border-lt) }

.specs-table th {
  background: var(--bg-sec);
  padding: .85rem 1.2rem;
  text-align: left;
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 600;
  width: 38%;
}

.specs-table td { padding: .85rem 1.2rem; font-size: .855rem; color: var(--text-2) }

/* ── PD Description ── */
.pd-desc-inner { max-width: 740px; margin: 0 auto; text-align: center }
.pd-desc-inner p { color: var(--text-2); font-size: 1rem; line-height: 1.84 }

/* ── How to Buy ── */
.pd-how-to-buy-section { background: var(--bg-sec) }
.pd-how-to-buy-section .section-title { text-align: center }
.pd-how-to-buy-section .section-subtitle { text-align: center; margin-bottom: 3rem }

.how-to-buy-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.how-to-buy-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 1px);
  right: calc(10% + 1px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--border));
  z-index: 0;
}

.buy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .75rem;
  position: relative;
  z-index: 1;
}

.buy-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-orange);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  border: 3px solid var(--bg-sec);
  box-shadow: var(--shadow-orange);
}

.buy-step-content strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
}

.buy-step-content p { margin: 0; font-size: .8rem; color: var(--text-2); line-height: 1.57 }

@media (max-width: 768px) {
  .how-to-buy-steps { grid-template-columns: 1fr; gap: 1.5rem }
  .how-to-buy-steps::before { display: none }
  .buy-step { flex-direction: row; text-align: left; gap: 1rem }
  .buy-step-number { margin-bottom: 0; flex-shrink: 0 }
}

/* ── Section Backgrounds ── */
.pd-problems-section { background: var(--bg) }
.pd-specs-section    { background: var(--bg-alt) }
.pd-desc-section     { background: var(--bg-sec) }
.related-section     { background: var(--bg) }

/* ── Sticky CTA mobile ── */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: .75rem .85rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(1,22,39,.12);
  flex-direction: row;
  gap: .5rem;
  align-items: stretch;
}

.sticky-cta-mobile .btn {
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: .75rem;
  padding-right: .75rem;
  font-size: .78rem;
  min-width: 0;
}

.sticky-call-btn { width: 100%; justify-content: center }

.product-problems-sections { margin-bottom: 0 }

.product-problems-sections-subheading {
  margin-bottom: 0.65rem;
  font-size: 14px;
  color: var(--text-3);
}

/* ── Description Blocks (structured multiline descriptions) ── */
.pd-desc-blocks { display: flex; flex-direction: column; gap: .2rem; }
.pd-desc-block-heading {
  margin-top: 1rem;
  margin-bottom: .3rem;
  font-size: .94rem;
  color: var(--text);
}
.pd-desc-block-heading:first-child { margin-top: .2rem; }
.pd-desc-block-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-left: 1.1rem;
  list-style: disc;
}
.pd-desc-block-list li {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── PD Editor Rich Description (CKEditor) ── */
.pd-editor-disc {
  font-size: .94rem;
  line-height: 1.74;
  color: var(--text-2);
}
.pd-editor-disc p {
  margin-bottom: 1rem;
}
.pd-editor-disc p:last-child {
  margin-bottom: 0;
}
.pd-editor-disc ul, .pd-editor-disc ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.pd-editor-disc ul {
  list-style-type: disc;
}
.pd-editor-disc ol {
  list-style-type: decimal;
}
.pd-editor-disc li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.pd-editor-disc a {
  color: var(--accent);
  text-decoration: underline;
  transition: color .2s;
}
.pd-editor-disc a:hover {
  color: var(--accent-light, var(--primary));
}
.pd-editor-disc strong {
  font-weight: 700;
  color: var(--text);
}
