/*
Theme Name: Cortex Smart Shop Theme
Theme URI: https://cortex.lk/
Author: CorteX Solutions
Author URI: https://cortex.lk/
Description: Ultra-lightweight classic theme for CorteX Smart Shop plugin (no WooCommerce).
Version: 1.2
License: GPL-2.0-or-later
Text Domain: cortex-smart-shop
Tags: custom-logo, custom-background, responsive-layout, one-column, two-columns
*/

:root {
  --accent: #ce0b4d;
  --accent-hover: #a7083e;
  --tint: #ffe4ee;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --cx-accent: #ce0b4d;
  --cx-ink: #0f172a;
  --cx-muted: #64748b;
  --cx-bg: #f8fafc;
  --cx-card: #ffffff;
  --cx-border: #e5e7eb;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --max: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-3);
  background: var(--text);
  color: #fff;
  z-index: 1000;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: #111;
  color: #fff;
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-5);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.topbar-note {
  color: #fff;
  font-size: 12px;
}

.topbar-links ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.topbar-links a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}

.topbar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-control {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.header-main {
  border-bottom: 1px solid var(--border);
}

.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.header-search {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  width: 100%;
}

.search-category select {
  height: 100%;
  min-width: 150px;
  border-radius: 999px;
  width: auto;
}

.cxshop-header-search {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  width: 100%;
}

.cxshop-header-search .search-field {
  flex: 1;
  border-radius: 999px;
  padding: 12px 16px;
}

.cxshop-header-search .search-submit {
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-weight: 600;
  position: relative;
  padding-right: 32px;
}

.cxshop-header-search {
  position: relative;
}
.cxshop-header-search.is-loading .search-submit::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-right-color: transparent;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: cxspin 0.7s linear infinite;
}

.cx-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 999;
  display: none;
}
.cx-search-results.is-open {
  display: block;
}
.cx-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
}
.cx-search-item:hover,
.cx-search-item:focus {
  background: #f8fafc;
}
.cx-search-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  flex: 0 0 36px;
}
.cx-search-thumb--empty {
  background: #f1f5f9;
}
.cx-search-title {
  font-size: 14px;
  font-weight: 600;
}
.cx-search-price {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.cx-search-empty {
  padding: 10px;
  color: #64748b;
  font-size: 13px;
}

@keyframes cxspin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-action {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.header-action__icon {
  display: inline-flex;
}

.header-action--cart {
  position: relative;
}

.header-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  position: absolute;
  top: -6px;
  right: -8px;
}

.header-badge.is-empty {
  display: none;
}

.cxshop-notice-container {
  max-width: var(--max);
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-5);
}

.cxshop-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.cxshop-notice.is-hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.cxshop-notice__text {
  font-weight: 600;
  color: var(--text);
}

.cxshop-notice__name {
  margin-left: 4px;
  font-weight: 600;
  color: var(--muted);
}

.cxshop-notice__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cxshop-notice__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cxshop-notice__btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.cxshop-notice__ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}

.cxshop-notice__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 6px;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
}

.nav-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

/* Microless-style All Categories dropdown (nav bar) */
/* All Categories dropdown — premium styling */
.cx-nav-all-cats {
  position: relative;
}

.cx-nav-all-cats .categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #111827);
  background: transparent;
  border: 1px solid var(--border, #e5e7eb);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cx-nav-all-cats .categories-btn:hover {
  background: #fff4f7;
  color: var(--accent, #ce0b4d);
}

.cx-nav-all-cats .categories-btn::after {
  content: "▾";
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.cx-nav-all-cats .categories-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.cx-nav-cats-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 6px 0;
  list-style: none;
  z-index: 9999;
  display: none;
}

.cx-nav-cats-list.is-open {
  display: block;
}

.cx-nav-cats-list li a {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s ease, background 0.2s ease;
}

.cx-nav-cats-list li:last-child a {
  border-bottom: none;
}

.cx-nav-cats-list li a:hover {
  color: #ce0b4d;
  background: #fff9fb;
}

.cx-nav-cats-list .is-empty {
  padding: 12px 20px;
  color: #6b7280;
}

/* Navigation UI refresh (modern look) */
.nav-bar {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.nav-bar-inner {
  gap: 20px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent, #ce0b4d);
  background: #fff4f7;
}

.cx-nav-all-cats .categories-btn {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.cx-nav-all-cats .categories-btn:hover {
  background: #fff4f7;
  color: var(--accent, #ce0b4d);
  border-color: #f1c8d8;
}

.cx-allcats-panel {
  width: 620px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  padding: 0;
}

.cx-allcats-cols {
  gap: 0;
}

.cx-allcats-left {
  background: #fbfbfc;
  border-right: 1px solid #eef0f3;
  padding: 10px 0;
}

.cx-allcats-right {
  padding: 10px 0;
}

.cx-allcats-parent-row {
  padding: 12px 18px;
  border-radius: 10px;
  margin: 4px 8px;
}

.cx-allcats-parent-row:hover {
  background: #fff1f6;
}

.cx-allcats-parent-link {
  font-weight: 700;
  color: #111827;
}

.cx-allcats-children {
  padding: 8px 10px;
}

.cx-allcats-children li a {
  padding: 10px 16px;
  border-radius: 8px;
}

.cx-allcats-children li a:hover {
  background: #fff4f7;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.categories-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.categories-icon {
  width: 14px;
  height: 10px;
  display: inline-block;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  position: relative;
}

.categories-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--text);
  transform: translateY(-50%);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
}

.site-nav .is-pill > a,
.site-nav .menu-item.is-pill > a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
}

@media (min-width: 992px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .cx-header--desktop { display: block; }
  .cx-header--mobile { display: none; }
  .cx-mobile-drawer,
  .cx-mobile-drawer.is-open { display: none !important; }
}

@media (max-width: 991px) {
  .cx-header--desktop { display: none; }
  .cx-header--mobile { display: block; }
  .cx-mobile-drawer { display: none; }
  .cx-mobile-drawer.is-open { display: block; }
}

/* --- Mobile Header (<= 991px) --- */
@media (max-width: 991px) {
  .cx-header--mobile {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .cx-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 0;
  }

  .cx-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .cx-brand__title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
  }

  .cx-header__icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    gap: 15px !important;
  }

  .cx-cart,
  .cx-burger {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    color: var(--text);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
  }

  .cx-burger {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #eee !important;
    background: transparent !important;
    line-height: 0 !important;
    border-radius: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .cx-burger svg,
  .cx-burger i {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
  }

  .cx-cart .header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    line-height: 18px;
    text-align: center;
  }

  .cx-burger span[aria-hidden="true"] {
    width: 18px;
    height: 12px;
    position: relative;
    display: block;
  }

  .cx-burger span[aria-hidden="true"]::before,
  .cx-burger span[aria-hidden="true"]::after,
  .cx-burger span[aria-hidden="true"] {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
  }

  .cx-burger span[aria-hidden="true"] {
    top: 5px;
  }

  .cx-burger span[aria-hidden="true"]::before {
    top: -5px;
  }

  .cx-burger span[aria-hidden="true"]::after {
    top: 5px;
  }

  .cx-header__search {
    padding: 0 0 10px;
  }

  .cx-header__search .cxshop-header-search,
  .cx-header__search form {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cx-header__search .cxshop-header-search {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
  }

  .cx-header__search .search-field {
    border: none;
    padding: 8px 10px;
    border-radius: 999px;
    min-width: 0;
  }

  .cx-header__search .search-category select {
    border-radius: 999px;
    padding: 6px 10px;
    height: 34px;
    font-size: 12px;
  }

  .cx-header__search .search-submit {
    height: 36px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
  }

  .cx-mobile-drawer {
    position: fixed !important;
    top: var(--cx-header-height, 97px) !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--cx-header-height, 97px)) !important;
    overflow-y: auto !important;
    z-index: 99998 !important;
    border-top: 1px solid var(--border);
    background: #fff;
    display: none;
  }

  .cx-mobile-drawer.is-open {
    display: block;
  }

  .cx-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 12px var(--space-5) 18px;
    display: grid;
    gap: 10px;
  }

  .cx-mobile-drawer a {
    color: var(--text);
    font-weight: 600;
  }
}

.main-content { padding: 0; }

.cx-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.cx-hero {
  background: var(--cx-card);
  border: 1px solid var(--cx-border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: var(--space-6);
}

.cx-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--cx-muted);
  font-weight: 700;
}

.cx-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--cx-ink);
}

.cx-hero__lead {
  font-size: 16px;
  color: var(--cx-muted);
  margin: 0 0 var(--space-4);
}

.cx-hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cx-card {
  background: var(--cx-card);
  border: 1px solid var(--cx-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.cx-card--soft {
  background: #fafafa;
}

.cx-card--map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.cx-section {
  margin-bottom: var(--space-6);
}

.cx-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.cx-stack {
  display: grid;
  gap: var(--space-4);
}

.cx-grid {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.cx-grid--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cx-grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cx-text {
  color: var(--cx-muted);
  margin: 0 0 var(--space-3);
}

.cx-richtext p {
  margin: 0 0 var(--space-3);
  color: var(--cx-muted);
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cx-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cx-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.cx-btn--outline {
  background: transparent;
  border-color: var(--cx-accent);
  color: var(--cx-accent);
}

.cx-btn--outline:hover {
  background: rgba(206, 11, 77, 0.08);
}

.cx-cta-strip {
  border-radius: 16px;
  padding: var(--space-5);
  border: 1px solid var(--cx-border);
  background: #fff7fa;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.cx-cta-strip__actions {
  display: flex;
  gap: var(--space-3);
}

.cx-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(206, 11, 77, 0.1);
  color: var(--cx-accent);
}

.cx-social {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.cx-social__link {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--cx-border);
  color: var(--cx-ink);
}

.cx-social__link:hover {
  border-color: var(--cx-accent);
  color: var(--cx-accent);
}

.cx-form input,
.cx-form textarea {
  width: 100%;
  border: 1px solid var(--cx-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.cx-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cx-accent);
  outline-offset: 2px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.post-title { margin: 0 0 var(--space-2); }

.entry-meta { font-size: 13px; color: var(--muted); }

.site-footer {
  background: #0b0f14;
  color: #cbd5e1;
}

.footer-trust {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) 0;
}

.footer-trust-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.08);
  padding: 8px 10px;
  border-radius: 999px;
}

.footer-trust-icon {
  color: var(--accent);
}

.footer-main {
  padding: var(--space-6) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.footer-title {
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.footer-text {
  margin: 0 0 var(--space-2);
  color: #cbd5e1;
}

.footer-links ul,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-menu a,
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: var(--space-4) 0;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-note {
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 var(--space-4); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (max-width: 960px) {
  .cx-two-col {
    grid-template-columns: 1fr;
  }
  .cx-grid--stats,
  .cx-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cx-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cx-grid--stats,
  .cx-grid--services {
    grid-template-columns: 1fr;
  }
  .cx-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.btn,
.cxss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn:hover,
.cxss-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--tint);
}

.cxss-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--tint);
  color: var(--text);
}

.cxss-price {
  font-weight: 700;
  font-size: 18px;
}

.cxss-stock {
  font-size: 12px;
  color: var(--muted);
}

.cxshop-front .cxss-products,
.cxshop-front .cxss-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.cxshop-front .cxss-product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.cxshop-front .cxss-hero {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.cxshop-front .cxss-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.cxshop-front .cxss-searchbar,
.cxshop-front .cxss-filterbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
}

.cxshop-front .cxss-cart,
.cxshop-front .cxss-checkout,
.cxshop-front .cxss-order-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--card);
}

.cxshop-filters {
  margin-bottom: var(--space-5);
}

.cxshop-filters__inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: var(--space-4);
}

.cxshop-filters__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.cxshop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cxshop-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cxshop-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(206, 11, 77, 0.16);
  outline: none;
}

.cxshop-category,
.cxshop-subcategory,
.cxshop-availability {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 2.5 1.4 1l4.6 4.4L10.6 1 12 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

.cxshop-filters__actions {
  margin-top: var(--space-3);
  display: flex;
  justify-content: flex-end;
}

.cxshop-cartlink {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  border: none;
  text-decoration: none;
  font-weight: 600;
}

.cxshop-cartlink:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

@media (min-width: 700px) {
  .cxshop-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cxshop-filters__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cx-hero-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-6);
}

.cx-hero-slider__viewport {
  display: grid;
  position: relative;
  min-height: 85vh;
  outline: none;
}

.cx-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
  background: linear-gradient(120deg, rgba(11, 15, 20, 0.85), rgba(11, 15, 20, 0.35));
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.cx-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 15, 20, 0.7), rgba(11, 15, 20, 0.2));
  opacity: 0.85;
}

.cx-hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.cx-hero-slide__inner {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 80px);
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.cx-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.cx-hero-slide__content {
  max-width: 620px;
}

.cx-hero-slide__content h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  margin: 10px 0 14px;
}

.cx-hero-slide__content p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.82);
}

.cx-hero-slide__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.cx-hero-slide__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cx-hero-slide .btn {
  background: var(--accent);
  color: #fff;
}

.cx-hero-slide .btn:hover {
  background: var(--accent-hover);
}

.cx-hero-slide .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.cx-hero-slide .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cx-hero-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cx-hero-arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 15, 20, 0.4);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.cx-hero-arrow[data-prev] { left: 24px; }
.cx-hero-arrow[data-next] { right: 24px; }

.cx-hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.cx-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cx-hero-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.cx-hero-dot:focus-visible,
.cx-hero-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.cxshop-front .site-header {
  position: sticky;
  top: 0;
  z-index: 99999 !important;
  width: 100%;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.cxshop-front.cx-hero-inview .site-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  box-shadow: none;
}

body.cxshop-front.cx-hero-out .site-header {
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body.cxshop-front .cx-trust-strip {
  margin-top: -48px;
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-5);
}

body.cxshop-front .cx-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

body.cxshop-front .cx-trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.cxshop-front .cx-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.cxshop-front .cx-trust-icon svg {
  width: 20px;
  height: 20px;
}

body.cxshop-front .cx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

body.cxshop-front .cx-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-4);
}

/* The Scrollable Container */
.cx-category-strip {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 15px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.cx-category-strip::-webkit-scrollbar { display: none; }

.cx-category-wrapper {
  position: relative;
}

.cx-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  z-index: 2;
}

.cx-nav-btn.prev { left: -6px; }
.cx-nav-btn.next { right: -6px; }

.cx-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* The Individual Card (Icon Box) */
.cx-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 110px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover Effect */
.cx-category-item:hover {
  border-color: #ce0b4d;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(206, 11, 77, 0.1);
}

/* The Icon Size Force */
.cx-category-item img.cx-cat-icon {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 0;
}

/* Text Style */
.cx-category-item .cx-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

/* Featured categories (grid layout) */
body.cxshop-front .cx-home-cats {
  display: grid;
  gap: 12px;
}
body.cxshop-front .cx-home-cats--grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  body.cxshop-front .cx-home-cats--grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1100px) {
  body.cxshop-front .cx-home-cats--grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
body.cxshop-front .cx-home-cat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.cxshop-front .cx-home-cat:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #ce0b4d);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
body.cxshop-front .cx-home-cat__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f5f7;
}
body.cxshop-front .cx-home-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.cxshop-front .cx-home-cat__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffe4ee, #f8fafc);
}
body.cxshop-front .cx-home-cat__title {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 10px 8px 12px;
  color: #0f172a;
}

/* Featured Categories Grid — Best Deals Style */
body.cxshop-front .cx-home-cats--grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  body.cxshop-front .cx-home-cats--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  body.cxshop-front .cx-home-cats--grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.cxshop-front .cx-home-cat {
  position: relative;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f6f8;
  border: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

body.cxshop-front .cx-home-cat::after {
  content: none !important;
}

body.cxshop-front .cx-home-cat__media,
body.cxshop-front .cx-home-cat__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cxshop-front .cx-home-cat__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffe4ee, #f8fafc);
}

body.cxshop-front .cx-home-cat__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
}

@media (max-width: 719px) {
  body.cxshop-front .cx-home-cat {
    height: 200px;
  }
  body.cxshop-front .cx-home-cat__title {
    font-size: 14px;
  }
}

/* Featured Categories wide container */
body.cxshop-front .cx-featured-wide {
  width: 95%;
  max-width: 1600px;
}

/* Filter Chips */
.cx-filter-chips {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding: 6px 2px 12px;
    margin: 0 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cx-filter-chips::-webkit-scrollbar { display: none; }

.cx-filter-chips .cx-chip {
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cx-filter-chips .cx-chip:hover,
.cx-filter-chips .cx-chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cxshop-grid.is-loading {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.cx-category-item .cx-cat-icon--empty {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  border-radius: 8px;
}

body.cxshop-front .cx-category-card,
body.cxshop-front .cxshop-catcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-4);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

body.cxshop-front .cx-category-card:hover,
body.cxshop-front .cxshop-catcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

body.cxshop-front .cx-category-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

body.cxshop-front .cx-category-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

body.cxshop-front .cx-category-card.has-bg,
body.cxshop-front .cxshop-catcard.has-bg {
  color: #fff;
  border-color: transparent;
  background: var(--cxcat-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

body.cxshop-front .cx-category-card.has-bg::before,
body.cxshop-front .cxshop-catcard.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.2));
}

body.cxshop-front .cx-category-card.has-bg .cx-category-card__name,
body.cxshop-front .cx-category-card.has-bg .cx-category-card__cta,
body.cxshop-front .cxshop-catcard.has-bg .cx-category-card__name,
body.cxshop-front .cxshop-catcard.has-bg .cx-category-card__cta {
  position: relative;
  z-index: 1;
  color: #fff;
}

body.cxshop-front .cx-products-section {
  position: relative;
}

body.cxshop-front .cxshop-products {
  margin-top: var(--space-4);
}

body.cxshop-front .cxshop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

body.cxshop-front .cxshop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.cxshop-front .cxshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 34px rgba(15, 23, 42, 0.12);
}

body.cxshop-front .cxshop-card__img {
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  position: relative;
}

body.cxshop-front .cxshop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-gradient-placeholder {
  background: linear-gradient(135deg, hsl(var(--cx-h, 340) 75% 45%), hsl(var(--cx-h, 340) 75% 62%));
  color: #fff;
  font-weight: 700;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cx-gradient-letter {
  line-height: 1;
  text-transform: uppercase;
}

body.cxshop-front .cxshop-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

body.cxshop-front .cxshop-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

body.cxshop-front .cxshop-card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.cxshop-front .cxshop-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

body.cxshop-front .cxshop-card__actions {
  padding: 0 var(--space-4) var(--space-4);
}

body.cxshop-front .cxshop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

body.cxshop-front .cxshop-btn:hover {
  background: var(--accent-hover);
}

body.cxshop-front .cxshop-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: #cbd5e1;
  color: #475569;
}

body.cxshop-front .cx-products-section .cxshop-filters {
  position: sticky;
  top: calc(var(--cx-header-height, 80px) + 16px);
  z-index: 20;
}

body.cxshop-front .cx-products-section .cxshop-filters__inner {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.cxshop-front .cx-products-section .cxshop-filters.is-stuck .cxshop-filters__inner {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(206, 11, 77, 0.3);
}

body.cxshop-front .cx-cta-home {
  margin: var(--space-6) 0;
}

body.cxshop-front .cx-cta-home__inner {
  background: linear-gradient(120deg, rgba(206, 11, 77, 0.12), rgba(206, 11, 77, 0.02));
  border: 1px solid rgba(206, 11, 77, 0.2);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

body.cxshop-front .cx-cta-home__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

body.cxshop-front .cx-cta-home__actions .cx-btn {
  min-width: 140px;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.wp-block-image.alignwide,
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.front-content {
  margin-top: var(--space-5);
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .cx-hero-slider__viewport { min-height: 70vh; }
  .cx-hero-slide__inner { min-height: 70vh; padding: var(--space-5); }
  .cx-hero-arrow { display: none; }
}

@media (max-width: 700px) {
  .cx-hero-slider__viewport { min-height: 60vh; }
  .cx-hero-slide__inner { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-hero-slide {
    transition: none;
  }
}
/* Fix: double dropdown arrow on selects */
.cxshop-control select,
select.cxshop-control,
select.cxshop-category,
select.cxshop-subcategory,
select.cxshop-availability {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* keep room for our custom arrow */
  padding-right: 42px;
}

/* IE/Edge legacy: hide default arrow */
select.cxshop-category::-ms-expand,
select.cxshop-subcategory::-ms-expand,
select.cxshop-availability::-ms-expand {
  display: none;
}

/* Make sure our custom arrow stays */
.cxshop-category,
.cxshop-subcategory,
.cxshop-availability {
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
/* ✅ Mobile: disable fixed filter panel so products show */
@media (max-width: 768px) {

  /* filters wrapper / panel */
  .cxshop-filters,
  .cxshop-filter-panel,
  .cxshop-filters-wrap {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  /* if you used sticky anywhere */
  .cxshop-filters.is-sticky,
  .cxshop-filters.is-fixed {
    position: static !important;
  }

  /* optional: add spacing between filters and products */
  .cxshop-products,
  .cxshop-product-grid,
  .cxshop-product-list {
    margin-top: 14px !important;
  }
}
/* All Categories mega dropdown */
.cx-nav-all-cats { position: relative; }

.cx-allcats-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 520px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 99999;
  padding: 10px;
}

.cx-allcats-panel.is-open { display: block; }

.cx-allcats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cx-allcats-parents,
.cx-allcats-children,
.cx-allcats-children-inline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cx-allcats-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.cx-allcats-parent-row:hover {
  background: #fff4f7;
}

.cx-allcats-parent-link,
.cx-allcats-children a,
.cx-allcats-children-inline a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.cx-allcats-children {
  display: none;
  padding: 6px 0;
}

.cx-allcats-children.is-active {
  display: block;
}

.cx-allcats-children li a,
.cx-allcats-children-inline li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
}

.cx-allcats-children li a:hover,
.cx-allcats-children-inline li a:hover {
  color: var(--accent, #ce0b4d);
  background: #fff9fb;
}

.cx-allcats-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #6b7280;
}

@media (max-width: 991px) {
  .cx-allcats-panel {
    position: fixed;
    top: var(--cx-header-height, 97px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--cx-header-height, 97px));
    overflow-y: auto;
    border-radius: 0;
  }

  .cx-allcats-cols {
    grid-template-columns: 1fr;
  }

  .cx-allcats-right { display: none; }

  .cx-allcats-toggle { display: inline-flex; }

  .cx-allcats-children-inline { display: none; padding-left: 10px; }
  .cx-allcats-parent.is-open .cx-allcats-children-inline { display: block; }
}
