.product-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.product-section-heading .section-title { margin-bottom: 0; }
.product-count, .product-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #dce8f3;
  border-radius: 999px;
  padding: 6px 12px;
  color: #355572;
  background: #f4f8fc;
  font-size: .82rem;
  font-weight: 700;
}
.product-filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(180px, .55fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid #e6edf4;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 42, 67, .06);
}
.product-filter-panel label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 800;
}
.product-filter-panel .form-control,
.product-filter-panel .form-select,
.product-filter-panel .input-group-text {
  min-height: 48px;
  border-color: #dce5ee;
}
.product-filter-panel .input-group-text { color: var(--blue); background: #f8fbfe; }
.product-filter-submit { min-height: 48px; white-space: nowrap; }
.product-filter-reset {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.product-filter-reset:hover { text-decoration: underline; }
.product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7edf3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 9px 28px rgba(16, 42, 67, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #c9dbee;
  box-shadow: 0 18px 38px rgba(16, 42, 67, .12);
}
.product-card-visual {
  position: relative;
  display: grid;
  min-height: 208px;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 26%, rgba(0, 184, 217, .34), transparent 34%),
    linear-gradient(135deg, #102a43, #17466e);
  text-decoration: none;
}
.product-card-visual img, .product-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 208px;
  place-items: center;
  color: rgba(255, 255, 255, .88);
  font-size: 3.2rem;
}
.product-card-arrow {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 42, 67, .34);
  transition: transform .2s ease, background .2s ease;
}
.product-card:hover .product-card-arrow { transform: translate(-2px, -2px); background: rgba(16, 42, 67, .68); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.product-card-body .product-category { margin-bottom: 12px; }
.product-card-body h3 { margin: 0 0 9px; color: var(--navy); font-size: 1.18rem; font-weight: 800; line-height: 1.5; }
.product-card-body h3 a { color: inherit; text-decoration: none; }
.product-card-body h3 a:hover { color: var(--blue); }
.product-card-body > p { flex: 1; margin: 0 0 20px; color: var(--gray); font-size: .93rem; line-height: 1.8; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #edf2f7;
}
.product-price { color: var(--navy); font-size: 1rem; font-weight: 900; }
.product-card-footer .text-link { flex: 0 0 auto; text-decoration: none; }
.product-empty-state { max-width: 860px; margin-inline: auto; }
.product-category-link { margin: 3px 0 18px; text-decoration: none; }
.product-category-link:hover { border-color: #9dc5e9; color: var(--blue); }
.product-detail-visual {
  display: grid;
  min-height: 260px;
  aspect-ratio: 9 / 7;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3ebf2;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 75% 25%, rgba(0, 184, 217, .25), transparent 35%),
    linear-gradient(135deg, #102a43, #17466e);
  box-shadow: var(--shadow);
}
.product-detail-visual .product-cover-placeholder-large { min-height: 260px; font-size: 5rem; }
.product-detail-description { margin-top: 15px; color: var(--gray); line-height: 1.9; }
.product-purchase-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 19px;
  border: 1px solid #e7edf3;
  border-radius: 16px;
  background: #fff;
}
.product-purchase-panel .btn { flex: 0 0 auto; }
.product-purchase-label { display: block; margin-bottom: 4px; color: var(--gray); font-size: .8rem; }
.product-price-large { font-size: 1.35rem; }
.product-detail-items .feature-card { height: 100%; }
.product-included-panel { max-width: 920px; margin-inline: auto; }
.product-included-list { margin: 25px 0 0; padding: 0; list-style: none; }
.product-included-list li {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #e6edf4;
}
.product-included-list li:last-child { border-bottom: 0; }
.product-included-list > li > i { flex: 0 0 auto; color: var(--blue); font-size: 1.2rem; }
.product-included-list strong { display: block; color: var(--navy); }
.product-included-list li span span { display: block; margin-top: 4px; color: var(--gray); }

@media (max-width: 767.98px) {
  .product-filter-panel { grid-template-columns: 1fr 1fr; }
  .product-filter-submit { grid-column: 1 / -1; width: 100%; }
  .product-grid > [class*="col"] {
    flex: 0 0 50%;
    width: 50%;
  }
  .product-grid > [class*="col"]:only-child {
    flex-basis: 100%;
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .product-section-heading { align-items: flex-start; flex-direction: column; }
  .product-filter-panel { grid-template-columns: 1fr; padding: 16px; }
  .product-filter-submit { grid-column: auto; }
  .product-card-visual { min-height: 0; aspect-ratio: 1.2; }
  .product-card-body { padding: 12px; }
  .product-card-body .product-category { margin-bottom: 8px; padding: 4px 8px; font-size: .7rem; }
  .product-card-body h3 { font-size: .95rem; }
  .product-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: 12px;
    font-size: .8rem;
  }
  .product-card-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 10px; }
  .product-card-footer .text-link, .product-price { font-size: .82rem; }
  .product-purchase-panel { align-items: stretch; flex-direction: column; }
  .product-purchase-panel .btn { width: 100%; }
  .product-detail-visual { min-height: 220px; }
  .product-detail-visual .product-cover-placeholder-large { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card-arrow { transition: none; }
  .product-card:hover, .product-card:hover .product-card-arrow { transform: none; }
}
