/* ==========================================================================
   ARITHMANCY INFOTECH - PRODUCTS PAGE STYLES
   Builds on design tokens from style.css and components from components.css
   ========================================================================== */

/* Offset anchor targets for fixed header */
.page-products section[id] {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

body.has-tray {
  padding-bottom: 96px;
}

.btn .animate-spin-slow {
  animation-duration: 0.9s;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--electric-blue-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.products-hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.products-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.products-hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, rgba(0, 102, 255, 0.1) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.products-hero-inner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.products-hero h1 {
  margin-bottom: 1.5rem;
}

.products-hero-lead {
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
}

.products-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.products-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.products-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  backdrop-filter: blur(14px);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.products-stat:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.products-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-ai-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.products-stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   2. BUNDLES
   -------------------------------------------------------------------------- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.bundle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--grad-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.bundle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
}

.bundle-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 102, 255, 0.15);
}

.bundle-card.is-featured {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(180deg, rgba(40, 26, 96, 0.55) 0%, rgba(10, 14, 40, 0.9) 100%);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(139, 92, 246, 0.25);
}

.bundle-card.is-featured::before {
  height: 2px;
  background: var(--grad-ai-accent);
}

.bundle-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--grad-ai-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.bundle-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bundle-count {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.35), rgba(139, 92, 246, 0.35));
  border: 1px solid var(--border-medium);
}

.bundle-head h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.bundle-head p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-secondary);
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bundle-usd {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.bundle-inr {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan-glow);
  font-weight: 600;
}

.bundle-per {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0.5rem 0 1.5rem;
}

.bundle-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.bundle-perks li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.bundle-perks svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--emerald-accent);
}

.bundle-cta {
  width: 100%;
}

.bundle-note {
  text-align: center;
  margin: 2.5rem auto 0;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   3. CATALOGUE TOOLBAR & FILTERS
   -------------------------------------------------------------------------- */
.catalogue-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.catalogue-search {
  flex: 1;
  position: relative;
}

.catalogue-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalogue-search input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border-radius: var(--radius-full);
  background: rgba(8, 13, 33, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalogue-search input::placeholder {
  color: var(--text-muted);
}

.catalogue-search input:focus {
  outline: none;
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.catalogue-sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalogue-sort .form-control {
  width: auto;
  min-width: 170px;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.1rem;
  text-transform: none;
  letter-spacing: normal;
}

.catalogue-filters {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  margin-left: 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   4. PRODUCT GRID & CARDS
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.product-card {
  --cat: #38bdf8;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--grad-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cat) 55%, transparent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 32px color-mix(in srgb, var(--cat) 22%, transparent);
  outline: none;
}

.product-card.is-selected {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 20px 45px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.2);
}

.product-visual {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--cat) 45%, transparent) 0%, transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--cat) 14%, #0a1030) 0%, #070b1f 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.product-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--cat) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cat) 14%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  transition: transform var(--transition-slow);
}

.product-card:hover .product-visual-grid {
  transform: scale(1.12);
}

.product-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cat) 70%, #1e1b4b), color-mix(in srgb, var(--cat) 35%, #0b1030));
  border: 1px solid color-mix(in srgb, var(--cat) 60%, transparent);
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--cat) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-icon {
  transform: translateY(-4px) scale(1.06);
}

.product-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1020;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  z-index: 1;
}

.product-select {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  background: rgba(5, 8, 20, 0.65);
  color: #cbd5e1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  z-index: 1;
}

.product-select:hover {
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
  transform: scale(1.08);
}

.product-select.is-on {
  background: var(--grad-button);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.55);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}

.product-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat);
  margin-bottom: 0.45rem;
}

.product-body h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.product-tagline {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.product-highlights span {
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-rating b {
  color: #fff;
}

.product-rating small {
  color: var(--text-muted);
}

.product-sales {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.product-actions .btn {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Star rating */
.stars {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 1px;
}

.stars-base {
  color: rgba(255, 255, 255, 0.15);
}

.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fbbf24;
}

/* Empty state */
.product-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.product-empty svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-empty h3 {
  font-size: 1.35rem;
}

/* --------------------------------------------------------------------------
   5. INCLUDED PANEL & CTA
   -------------------------------------------------------------------------- */
.included-panel {
  padding: 3rem;
}

.included-panel:hover {
  transform: none;
}

.included-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.included-item {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

.included-item:hover {
  border-color: var(--border-medium);
  background: rgba(56, 189, 248, 0.04);
}

.included-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cyan-glow);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.included-icon svg {
  width: 22px;
  height: 22px;
}

.included-item h4 {
  margin-bottom: 0.4rem;
}

.included-item p {
  font-size: 0.9rem;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. BUNDLE TRAY
   -------------------------------------------------------------------------- */
.bundle-tray {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  z-index: 900;
  animation: trayIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bundle-tray[hidden] {
  display: none;
}

@keyframes trayIn {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.bundle-tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 36, 0.92);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 102, 255, 0.2);
}

.bundle-tray.is-unlocked .bundle-tray-inner {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.2);
}

.bundle-tray-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.bundle-tray-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--grad-button);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}

.bundle-tray-count strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

.bundle-tray-count span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.bundle-tray-status {
  flex: 1;
  min-width: 0;
}

.bundle-tray-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-tray-label b {
  color: #fff;
}

.bundle-tray-progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bundle-tray-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-ai-accent);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bundle-tray.is-unlocked .bundle-tray-progress span {
  background: linear-gradient(90deg, #10b981, #00f0ff);
}

.bundle-tray-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. PRODUCT DETAIL MODAL
   -------------------------------------------------------------------------- */
.product-modal-box {
  --cat: #38bdf8;
  max-width: 820px;
  padding: 0 0 2.25rem 0;
}

.product-modal-box > *:not(.modal-close):not(.pm-hero) {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.pm-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--cat) 30%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--cat) 10%, #0a1030) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.pm-icon {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cat) 70%, #1e1b4b), color-mix(in srgb, var(--cat) 35%, #0b1030));
  border: 1px solid color-mix(in srgb, var(--cat) 60%, transparent);
  box-shadow: 0 12px 34px -8px color-mix(in srgb, var(--cat) 60%, transparent);
}

.pm-hero-text {
  min-width: 0;
  padding-right: 2.5rem;
}

.pm-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.pm-hero h3 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pm-hero p {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.pm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pm-meta b {
  color: #fff;
}

.pm-meta .dot {
  color: var(--text-muted);
}

.pm-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.pm-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pm-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #fff;
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 40%, transparent);
}

.pm-highlights svg {
  color: var(--cat);
}

.pm-section {
  margin-bottom: 1.75rem;
}

.pm-section h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.pm-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}

.pm-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.pm-features svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--cyan-glow);
}

.pm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pm-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pm-reqs div {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-reqs dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pm-reqs dd {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.pm-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

#pm-btn-bundle.is-on {
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   8. QUOTE MODAL
   -------------------------------------------------------------------------- */
.quote-modal-box {
  max-width: 760px;
}

.q-count {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  background: rgba(8, 13, 33, 0.6);
  border: 1px solid var(--border-subtle);
}

.q-chips-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0.35rem;
}

.q-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.q-chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95rem;
}

.q-chip button:hover {
  background: rgba(244, 63, 94, 0.5);
}

.q-picker {
  margin-top: 0.65rem;
}

.q-picker summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--electric-blue-light);
  user-select: none;
}

.q-picker summary:hover {
  color: var(--cyan-glow);
}

.q-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(8, 13, 33, 0.6);
  border: 1px solid var(--border-subtle);
}

.q-pick {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.3rem 0;
}

.q-pick input {
  accent-color: #00d2ff;
  width: 16px;
  height: 16px;
}

/* Hidden anchor element for products validation */
#q-products-error {
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   9. SUCCESS MODAL
   -------------------------------------------------------------------------- */
.success-check {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.success-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.success-row:last-child {
  margin-bottom: 0;
}

.success-row span {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.success-row strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bundle-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .products-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogue-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalogue-sort {
    justify-content: space-between;
  }
  .catalogue-sort .form-control {
    flex: 1;
  }
  .pm-features,
  .pm-two-col,
  .q-picker-grid {
    grid-template-columns: 1fr;
  }
  .bundle-tray-label {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .included-grid {
    grid-template-columns: 1fr;
  }
  .included-panel {
    padding: 2rem 1.25rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .pm-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem 1.5rem;
  }
  .pm-hero-text {
    padding-right: 0;
  }
  .product-modal-box > *:not(.modal-close):not(.pm-hero) {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
  .product-modal-box {
    padding: 0 0 1.75rem 0;
  }
  .pm-actions {
    grid-template-columns: 1fr;
  }
  .bundle-tray-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .bundle-tray-actions .btn {
    flex: 1;
  }
  body.has-tray {
    padding-bottom: 170px;
  }
}
