/* PULS — a modern headless-commerce look (the clean utility-first style newer Magento frontends
 * use). The header is white and sticky with a soft blur; search is a grey pill; the category links
 * are pills inside the same white header. The hero is an inset rounded card in deep indigo and
 * violet. Categories and products are rounded-2xl white cards on a cool slate ground, each photo
 * sitting in its own rounded inner frame. On the category page the filters are a sticky rounded
 * panel on the left. Indigo on slate, Figtree throughout, dark slate footer. Same markup as every theme. */

body.theme-puls {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
  --gradient-accent: var(--accent);
  --gradient-dark: var(--dark);

  --font-body: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 800;
  --heading-tracking: -0.025em;
  --header-bg: rgba(255, 255, 255, 0.86);
  --topbar-bg: var(--dark);
  --topbar-ink: #cbd5e1;
  --catnav-bg: transparent;
  --catnav-ink: var(--text);
  --catnav-ink-muted: #475569;
  --catnav-hover-bg: var(--surface-alt);
  --catnav-all-bg: var(--accent);
  --catnav-all-ink: #ffffff;
  --search-border: 1px solid transparent;
  --search-radius: 999px;
  --btn-radius: 999px;
  --card-radius: var(--radius-lg);
  --card-border: 0;
  --card-shadow: var(--shadow-sm);
  --card-media-bg: transparent;
  --card-body-bg: transparent;
  --trust-bg: var(--bg);
  --trust-ink: var(--text);
  --trust-ink-muted: var(--text-muted);
  --trust-icon-bg: var(--accent-soft);
  --footer-bg: var(--dark);
  --footer-ink: #f1f5f9;
  --footer-ink-muted: #94a3b8;
  --hero-min-h: 24rem;
  --hero-min-h-lg: clamp(28rem, 60vh, 36rem);
}

.theme-puls h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

/* ── Header: white, sticky, blurred; the category pills live inside it ─────────────────────── */
.theme-puls .site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

.theme-puls .topbar {
  font-size: 0.78rem;
}

.theme-puls .header-main {
  background: transparent;
  padding: 0.9rem 0 0.35rem;
}

.theme-puls .header-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
}

.theme-puls .brand-mark {
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.theme-puls .header-search-combo {
  max-width: 44rem;
  background: var(--surface-alt);
  min-height: 2.75rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.theme-puls .header-search-combo:focus-within {
  background: #fff;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.theme-puls .search-category-select {
  background: transparent;
  border-right: 1px solid var(--border);
  padding-left: 1.1rem;
  color: #475569;
}

.theme-puls .header-search-input {
  background: transparent;
}

.theme-puls .header-search-btn {
  width: 2.4rem;
  margin: 0.25rem;
  border-radius: 999px;
}

.theme-puls .header-action-btn {
  border-radius: 0.75rem;
}

.theme-puls .header-action-btn:hover {
  background: var(--surface-alt);
  color: var(--accent);
}

.theme-puls .cart-count {
  background: var(--accent);
}

.theme-puls .header-catnav-inner {
  min-height: 3.25rem;
  align-items: center !important;
  gap: 0.35rem;
}

.theme-puls .catnav-all,
.theme-puls .catnav-links > li {
  align-items: center;
}

.theme-puls .catnav-all-toggle {
  height: auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.45);
}

.theme-puls .catnav-links {
  gap: 0.25rem;
}

.theme-puls .catnav-link {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.theme-puls .header-catnav .navbar-toggler {
  color: var(--text);
}

.theme-puls .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.theme-puls .flash-container {
  top: 9.5rem;
}

/* ── Buttons, forms ─────────────────────────────────────────────────────────────────────────── */
.theme-puls .btn {
  font-weight: 700;
}

.theme-puls .btn-primary {
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.5);
}

.theme-puls .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.theme-puls .form-control,
.theme-puls .form-select {
  border-radius: var(--radius-sm);
}

.theme-puls .card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── Hero: an inset, rounded indigo card ────────────────────────────────────────────────────── */
.theme-puls .hero-slider {
  margin: 1.25rem var(--gutter) 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.theme-puls .hero-slide {
  color: #fff;
}

.theme-puls .hero-slide-1 {
  background:
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.55) 0, transparent 40%),
    radial-gradient(circle at 70% 90%, rgba(56, 189, 248, 0.35) 0, transparent 45%),
    linear-gradient(120deg, #1e1b4b 0%, #3730a3 60%, #6d28d9 100%);
}

.theme-puls .hero-slide-2 {
  background:
    radial-gradient(circle at 80% 30%, rgba(52, 211, 153, 0.4) 0, transparent 42%),
    linear-gradient(120deg, #0f172a 0%, #134e4a 60%, #0f766e 100%);
}

.theme-puls .hero-slide-3 {
  background:
    radial-gradient(circle at 85% 25%, rgba(251, 146, 60, 0.45) 0, transparent 42%),
    linear-gradient(120deg, #1e1b4b 0%, #831843 65%, #be185d 100%);
}

.theme-puls .hero-slide-image::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0) 75%);
}

.theme-puls .hero-slide-content {
  max-width: 36rem;
}

.theme-puls .hero-slide h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.theme-puls .hero-slide p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.theme-puls .hero-slide .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
  box-shadow: none;
}

.theme-puls .hero-slide .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-dark);
}

.theme-puls .hero-slider .carousel-control-prev,
.theme-puls .hero-slider .carousel-control-next {
  filter: none;
  opacity: 0.6;
}

.theme-puls .hero-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #fff;
  opacity: 0.5;
  transition: width 0.2s ease;
}

.theme-puls .hero-slider .carousel-indicators .active {
  width: 28px;
  opacity: 1;
}

@media (min-width: 992px) {
  .theme-puls .hero-slide {
    padding: 3.5rem calc(var(--gutter) + 3rem);
  }
}

/* ── Home bands ─────────────────────────────────────────────────────────────────────────────── */
.theme-puls .fb-section,
.theme-puls .fb-band-alt {
  background: var(--bg);
}

.theme-puls .fb-section-title {
  text-align: left;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 1.25rem;
}

.theme-puls .fb-band-trust {
  padding: 0.5rem 0 1rem;
}

.theme-puls .fb-feature-row {
  gap: 1rem;
}

.theme-puls .fb-feature {
  flex: 1 1 14rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.theme-puls .fb-feature svg {
  color: var(--accent);
  border-radius: 0.75rem;
}

.theme-puls .fb-feature h3 {
  font-weight: 700;
  font-size: 0.98rem;
}

.theme-puls .category-card {
  padding: 1rem 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.theme-puls .category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.theme-puls .category-item {
  width: 7.5rem;
}

@media (max-width: 575.98px) {
  .theme-puls .category-item {
    width: 6rem;
  }
}

.theme-puls .category-tile,
.theme-puls .category-tile.category-tile-photo {
  box-shadow: none;
}

.theme-puls .category-card-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.theme-puls .category-scroll-btn {
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 0;
}

/* ── Product cards: rounded, the photo in its own rounded frame ─────────────────────────────── */
.theme-puls .row:has(> .col > .product-card) {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

@media (min-width: 1200px) {
  .theme-puls .row:has(> .col > .product-card) > .col { width: 20%; }
}

@media (min-width: 1700px) {
  .theme-puls .row:has(> .col > .product-card) > .col { width: 16.6667%; }
}

.theme-puls .product-card {
  padding: 0.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-puls .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.theme-puls .product-card-media {
  border-radius: 0.9rem;
  background: var(--surface-alt);
}

.theme-puls .product-card .card-body {
  padding: 0.8rem 0.5rem 0.4rem;
}

.theme-puls .card-title {
  font-weight: 700 !important;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.theme-puls .price-row {
  text-align: left !important;
}

.theme-puls .price {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-puls .sku-pill {
  border: 0;
  background: var(--surface-alt);
}

.theme-puls .stock-ribbon {
  top: 0.6rem;
  left: 0.6rem;
  right: auto;
  backdrop-filter: blur(6px);
}

.theme-puls .stock-ribbon-in {
  background: rgba(236, 253, 245, 0.9);
  color: #047857;
}

.theme-puls .quick-add-btn {
  padding: 0.6rem;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6);
}

.theme-puls .badge.text-bg-light {
  border-radius: 999px;
  border: 0;
}

/* ── Category page: a sticky filter panel on the left ───────────────────────────────────────── */
@media (min-width: 992px) {
  .theme-puls .site-main > .container:has(#filters-form) {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 1.75rem;
    align-items: start;
  }

  .theme-puls .site-main > .container:has(#filters-form) > * {
    grid-column: 2;
  }

  .theme-puls .site-main > .container:has(#filters-form) > nav {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .theme-puls .site-main > .container:has(#filters-form) > div:has(> #filters-form) {
    display: contents !important; /* beats Bootstrap .d-flex */
  }

  .theme-puls .site-main > .container:has(#filters-form) h1 {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 1.25rem !important;
  }

  .theme-puls #filters-form {
    grid-column: 1;
    grid-row: 2 / 5;
    position: sticky;
    top: 10rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .theme-puls #filters-form::before {
    content: "Filteri";
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
  }

  .theme-puls #filters-form .filter-select {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface-alt);
  }

  .theme-puls #filters-form .filter-range {
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.35rem;
  }

  .theme-puls #filters-form .filter-range input {
    min-width: 0;
  }

  .theme-puls #filters-form .filter-range legend {
    float: none;
    grid-column: 1 / -1;
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text);
  }

  .theme-puls #filters-form .filter-reset {
    text-align: center;
  }

  .theme-puls .site-main > .container:has(#filters-form) .row:has(> .col > .product-card) > .col {
    width: 33.3333%;
  }
}

@media (min-width: 1400px) {
  .theme-puls .site-main > .container:has(#filters-form) .row:has(> .col > .product-card) > .col { width: 25%; }
}

@media (min-width: 1800px) {
  .theme-puls .site-main > .container:has(#filters-form) .row:has(> .col > .product-card) > .col { width: 20%; }
}

/* ── Pagination, footer ─────────────────────────────────────────────────────────────────────── */
.theme-puls .pagination .page-link {
  border-radius: 999px !important;
  margin: 0 0.15rem;
  border: 0;
}

.theme-puls .site-footer {
  border-radius: 2rem 2rem 0 0;
  margin-top: 2rem;
}

.theme-puls .footer-heading {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-puls .site-footer hr {
  border-color: rgba(148, 163, 184, 0.25);
  opacity: 1;
}

.theme-puls .footer-social-link {
  border-radius: 0.75rem;
}

.theme-puls .footer-social-link:hover {
  background: var(--accent);
  color: #fff;
}
