/**
 * All Stores page redesign — light hero, featured cards, directory listing.
 * Scoped under .store-sec-1.cs-as-page (keeps search/filter IDs intact).
 */
.store-sec-1.cs-as-page {
  --as-navy: #0b1b33;
  --as-ink: #13233a;
  --as-muted: #5b6b7c;
  --as-blue: #1677ff;
  --as-cyan: #31c3e4;
  --as-teal: #0e9da9;
  --as-green: #1e9b5f;
  --as-orange: #fb9036;
  --as-purple: #7b3fc4;
  --as-soft: #eef5fb;
  --as-card: #ffffff;
  --as-border: #e2ebf3;
  --as-font: Montserrat, Poppins, "Segoe UI", sans-serif;
  font-family: var(--as-font);
  background: #f7fafc;
  color: var(--as-ink);
  padding-top: 0 !important;
}

/* ===== Hero ===== */
.store-sec-1.cs-as-page .cs-as-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 8px;
  padding: 118px 0 36px;
  background:
    radial-gradient(720px 380px at 82% 28%, rgba(49, 195, 228, 0.28), transparent 60%),
    radial-gradient(640px 360px at 18% 20%, rgba(22, 119, 255, 0.16), transparent 58%),
    linear-gradient(180deg, #eaf4ff 0%, #f5f9fd 55%, #f7fafc 100%);
}
.store-sec-1.cs-as-page .cs-as-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 40%, rgba(22, 119, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(49, 195, 228, 0.1) 0 1px, transparent 2px);
  background-size: 42px 42px, 34px 34px;
  opacity: 0.55;
}
.store-sec-1.cs-as-page .cs-as-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.store-sec-1.cs-as-page .cs-as-hero__copy {
  max-width: 560px;
}
.store-sec-1.cs-as-page .cs-as-hero h1,
.store-sec-1.cs-as-page .cs-as-hero .allstores-seo-heading {
  margin: 0 0 14px !important;
  max-width: none !important;
  color: var(--as-navy) !important;
  font-size: clamp(26px, 3.4vw, 40px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
}
.store-sec-1.cs-as-page .cs-as-hero__sub {
  margin: 0 0 20px;
  max-width: 520px;
  color: var(--as-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.store-sec-1.cs-as-page .cs-as-hero__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.store-sec-1.cs-as-page .cs-as-hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 119, 255, 0.12);
  box-shadow: 0 2px 10px rgba(11, 27, 51, 0.05);
  color: var(--as-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.store-sec-1.cs-as-page .cs-as-hero__features li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1677ff, #31c3e4);
  color: #fff;
  font-size: 12px;
}
.store-sec-1.cs-as-page .cs-as-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.store-sec-1.cs-as-page .cs-as-hero__visual img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(11, 27, 51, 0.14));
}
.store-sec-1.cs-as-page .cs-as-hero__seo {
  margin: 14px 0 0;
  max-width: 560px;
  color: #667788;
  font-size: 13px;
  line-height: 1.5;
}
.store-sec-1.cs-as-page .cs-as-hero__seo a {
  font-weight: 700;
  text-decoration: underline;
}
.store-sec-1.cs-as-page .cs-as-hero__seo a.as-type-cashback { color: #1e9b5f; }
.store-sec-1.cs-as-page .cs-as-hero__seo a.as-type-coupons { color: #0b7f9c; }
.store-sec-1.cs-as-page .cs-as-hero__seo a.as-type-giftcards { color: #c96a12; }
.store-sec-1.cs-as-page .cs-as-hero__seo a.as-type-referrals { color: #7b3fc4; }

/* Body container under hero */
.store-sec-1.cs-as-page > .container {
  padding-top: 8px;
  padding-bottom: 28px;
}
.store-sec-1.cs-as-page .site-main-heading {
  display: none;
}

/* Featured heading */
.store-sec-1.cs-as-page .cs-as-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.store-sec-1.cs-as-page .cs-as-featured-head h2 {
  margin: 0;
  color: var(--as-navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.store-sec-1.cs-as-page .cs-as-featured-head a {
  color: var(--as-blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.store-sec-1.cs-as-page .cs-as-featured-head a:hover {
  color: #0d5fd1;
  text-decoration: none;
}

/* Featured carousel cards */
.store-sec-1.cs-as-page .popular-store-sec {
  margin-bottom: 18px;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .stores-content-block {
  background: var(--as-card) !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(11, 27, 51, 0.06) !important;
  padding: 12px 10px 14px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .stores-content-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 27, 51, 0.1) !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .featured-store-name {
  color: var(--as-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .stores-content-block h4 {
  color: var(--as-green) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-prev,
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-next {
  border-color: #c5d5e4 !important;
  background: #fff !important;
  margin-top: 0 !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .stores-content-block .brand-img-holder img.cs-store-logo,
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .stores-content-block .brand-img-holder img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 96px !important;
  object-fit: contain !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-prev:after,
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-next:after {
  border-color: #6b7f93 !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-prev:hover,
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-next:hover {
  background: var(--as-blue) !important;
  border-color: var(--as-blue) !important;
}
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-prev:hover:after,
.store-sec-1.cs-as-page .popular-store-sec .store_carousel .swiper-button-next:hover:after {
  border-color: #fff !important;
}

/* Category sidebar */
.store-sec-1.cs-as-page .allstore-left-content {
  background: var(--as-card);
  border: 1px solid var(--as-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(11, 27, 51, 0.04);
  padding: 14px 12px 12px;
}
.store-sec-1.cs-as-page .allstore-left-content h3 {
  margin: 0 0 10px !important;
  padding: 0 6px !important;
  color: var(--as-navy) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
.store-sec-1.cs-as-page .allstore-left-content-list ul li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px !important;
  border-radius: 10px;
  color: #3d4f60 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
.store-sec-1.cs-as-page .allstore-left-content-list ul li a:hover,
.store-sec-1.cs-as-page .allstore-left-content-list ul li a.cs-as-cat-active {
  background: #e8f2ff !important;
  color: var(--as-blue) !important;
  text-decoration: none !important;
}
.store-sec-1.cs-as-page .allstore-left-content-list ul li a:before {
  content: none !important;
}

/* Listing card / filters */
.store-sec-1.cs-as-page .allstore-card.custom-card,
.store-sec-1.cs-as-page .custom-card.allstore-card {
  background: var(--as-card) !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.05) !important;
  padding: 16px 16px 10px !important;
}
.store-sec-1.cs-as-page .allstore-search-hero {
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(11, 27, 51, 0.04);
}
.store-sec-1.cs-as-page .allstore-search-hero .ash-label {
  color: #6b7c8d !important;
  letter-spacing: 0.05em;
}
.store-sec-1.cs-as-page .allstore-search-hero input {
  background: #f7fafc !important;
  border: 1.5px solid #d5e1ec !important;
  color: var(--as-ink) !important;
  border-radius: 10px !important;
}
.store-sec-1.cs-as-page .allstore-search-hero input::placeholder {
  color: #8a97a6;
}
.store-sec-1.cs-as-page .allstore-search-hero input:focus {
  border-color: var(--as-blue) !important;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.store-sec-1.cs-as-page .allstore-search-hero .ash-btn {
  background: var(--as-blue) !important;
  border-radius: 10px !important;
  min-height: 44px;
}
.store-sec-1.cs-as-page .allstore-search-hero .ash-btn:hover {
  background: #0d5fd1 !important;
}

/* Alphabet */
.store-sec-1.cs-as-page .allstore-letter-filter-sec a.allstoreltsr {
  color: var(--as-blue) !important;
  font-weight: 700 !important;
}
.store-sec-1.cs-as-page .allstore-letter-filter-sec a.allstoreltsr:hover {
  background: #e8f2ff !important;
  color: #0d5fd1 !important;
}
.store-sec-1.cs-as-page .allstore-letter-filter-sec a.allstoreltsr.mylt:not(#allsel) {
  background-color: var(--as-blue) !important;
  color: #fff !important;
}
.store-sec-1.cs-as-page .allstore-letter-filter-sec a#allsel,
.store-sec-1.cs-as-page .allstore-letter-filter-sec a#allsel.mylt {
  color: var(--as-blue) !important;
  background: transparent !important;
}

/* Type pills / sort */
.store-sec-1.cs-as-page .allstore-type-filter.active[data-type="all"] {
  background: var(--as-blue) !important;
  border-color: var(--as-blue) !important;
}
.store-sec-1.cs-as-page .allstore-sortBy-filter-block .sortlink {
  border-color: #c5d5e4 !important;
  color: #3d4f60 !important;
}
.store-sec-1.cs-as-page .allstore-sortBy-filter-block .sortlink:hover,
.store-sec-1.cs-as-page .allstore-sortBy-filter-block .sortlink.sortparam {
  background: var(--as-blue) !important;
  border-color: var(--as-blue) !important;
  color: #fff !important;
}

/* Store list rows as soft cards */
.store-sec-1.cs-as-page #allstore .allstore-content-block .heading h3 {
  color: var(--as-navy) !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}
.store-sec-1.cs-as-page #allstore .allstore-content-block ul li.store-row,
.store-sec-1.cs-as-page #allstore .allstore-content-block ul li {
  background: #f8fbfd;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  margin: 0 8px 8px 0 !important;
  padding: 10px 12px !important;
  flex: 0 0 calc(50% - 8px) !important;
  max-width: calc(50% - 8px) !important;
}
.store-sec-1.cs-as-page #allstore .allstore-content-block ul {
  gap: 0 !important;
}
.store-sec-1.cs-as-page #allstore .allstore-content-block ul li a,
.store-sec-1.cs-as-page #allstore .allstore-content-block ul li .store-name {
  color: var(--as-ink) !important;
}
.store-sec-1.cs-as-page #allstore .allstore-content-block ul li .store-discount a {
  color: var(--as-green) !important;
}
.store-sec-1.cs-as-page .allstore-no-results,
.store-sec-1.cs-as-page #allstore-filter-empty {
  background: #f5f9fc !important;
  border-color: #d5e1ec !important;
  color: #4c5d6e !important;
}
.store-sec-1.cs-as-page .allstore-no-results h4,
.store-sec-1.cs-as-page #allstore-filter-empty {
  color: var(--as-ink) !important;
}
.store-sec-1.cs-as-page .allstore-no-results a,
.store-sec-1.cs-as-page #allstore-filter-empty a {
  color: var(--as-blue) !important;
}

/* Responsive */
@media only screen and (max-width: 991px) {
  .store-sec-1.cs-as-page .cs-as-hero {
    padding: 96px 0 24px;
  }
  .store-sec-1.cs-as-page .cs-as-hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }
  .store-sec-1.cs-as-page .cs-as-hero__visual {
    order: -1;
    min-height: 0;
  }
  .store-sec-1.cs-as-page .cs-as-hero__visual img {
    width: min(100%, 360px);
    margin: 0 auto;
  }
  .store-sec-1.cs-as-page .cs-as-hero h1,
  .store-sec-1.cs-as-page .cs-as-hero .allstores-seo-heading {
    font-size: clamp(24px, 6.2vw, 32px) !important;
  }
  .store-sec-1.cs-as-page .cs-as-hero__features li {
    font-size: 12px;
    white-space: normal;
  }
  .store-sec-1.cs-as-page.site-main-container {
    padding-top: 0 !important;
  }
}
@media only screen and (max-width: 767px) {
  .store-sec-1.cs-as-page .cs-as-featured-head h2 {
    font-size: 18px;
  }
  .store-sec-1.cs-as-page .custom-card.allstore-card {
    padding: 12px 10px 8px !important;
  }
  .store-sec-1.cs-as-page #allstore .allstore-content-block ul li.store-row,
  .store-sec-1.cs-as-page #allstore .allstore-content-block ul li {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
  }
  .store-sec-1.cs-as-page .cs-as-hero__features {
    gap: 8px;
  }
}
@media only screen and (max-width: 575px) {
  .store-sec-1.cs-as-page .cs-as-hero {
    padding: 88px 0 18px;
  }
  .store-sec-1.cs-as-page .cs-as-hero__sub {
    font-size: 14px;
  }
}
