.store-home {
  display: grid;
  gap: 30px;
  padding: 12px 0 10px;
}

.store-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: 22px;
  align-items: stretch;
}

.store-home-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(134, 156, 194, 0.36);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 59, 48, 0.18), transparent 56%),
    radial-gradient(100% 120% at 100% 0%, rgba(14, 116, 244, 0.23), transparent 60%),
    linear-gradient(142deg, #0b152b 0%, #0f2142 100%);
  box-shadow: 0 24px 58px rgba(8, 14, 28, 0.30);
}

.store-home-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(211, 225, 248, 0.9);
}

.store-home-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f6f9ff;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 0.92;
  text-wrap: balance;
}

.store-home-subtitle {
  margin: 0;
  max-width: 60ch;
  color: rgba(224, 236, 255, 0.91);
  font-size: 16px;
  line-height: 1.56;
}

.store-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-home-btn,
.store-home-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.012em;
  text-decoration: none;
  white-space: nowrap;
}

.store-home-btn {
  min-height: 54px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid #d92f25;
  background: linear-gradient(135deg, #ff4d42 0%, #df2f26 100%);
  box-shadow: 0 14px 30px rgba(226, 47, 38, 0.34);
}

.store-home-btn-secondary {
  color: #eef5ff;
  border: 1px solid rgba(174, 194, 227, 0.56);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.store-home-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-home-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(170, 192, 226, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #edf4ff;
  font-size: 12px;
  font-weight: 700;
}

.store-home-media {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d0dbef;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 59, 48, 0.13), transparent 56%),
    radial-gradient(100% 120% at 100% 0%, rgba(14, 116, 244, 0.11), transparent 60%),
    linear-gradient(145deg, #ffffff 0%, #edf3ff 100%);
  box-shadow: 0 18px 42px rgba(8, 14, 28, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-home-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-home-placeholder {
  text-align: center;
  padding: 26px;
}

.store-home-placeholder-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0f1b35;
  font-size: 34px;
}

.store-home-placeholder-subtitle {
  margin-top: 8px;
  color: #4f6288;
  font-size: 15px;
}

.store-home-seo {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #d1dcef;
  background: #fff;
  box-shadow: 0 14px 32px rgba(8, 14, 28, 0.08);
}

.store-home-seo-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111f3d;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 0.96;
}

.store-home-seo-copy {
  margin: 0;
  color: #4e5f81;
  line-height: 1.62;
}

.store-home-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.store-home-seo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cdd9ed;
  background: #f8fbff;
  color: #15213d;
  font-size: 12px;
  font-weight: 700;
}

.store-home-rail {
  display: grid;
  gap: 14px;
}

.store-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(156, 176, 208, 0.34);
}

.store-home-head-title {
  margin: 0;
  min-width: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #122142;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.96;
}

.store-home-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #c9d6eb;
  background: #fff;
  color: #162444;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.store-home-leagues {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.store-home-league-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 136px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: linear-gradient(145deg, #eef4ff 0%, #e3ecfb 100%);
  box-shadow: 0 12px 28px rgba(8, 14, 28, 0.09);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-home-league-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(8, 14, 28, 0.14);
}

.league-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d3ddef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.league-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.league-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1b35 0%, #19305f 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.league-name {
  color: #1c2a48;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
}

.store-home-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.store-home-products.is-dragging .pcard,
.store-home-products.is-dragging .store-home-more-card {
  pointer-events: none;
}

.store-home-product-slot {
  min-width: 0;
}

.store-home-product-slot .pcard {
  height: 100%;
  border: 1px solid #ced9ec;
}

.store-home-product-slot .cardpad {
  overflow: visible;
}

.store-home-more-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 100%;
  border: 1px dashed #b9c9e5;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff 0%, #edf3ff 100%);
  color: #122142;
  text-decoration: none;
  padding: 14px 10px;
}

.store-home-more-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-home-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #122142;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.store-home-media.store-home-media-promo {
  display: block;
  min-height: 390px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-promo-carousel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.home-promo-stage {
  position: relative;
  min-height: 346px;
  border-radius: 20px;
  border: 1px solid #d1dcef;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 59, 48, 0.10), transparent 58%),
    radial-gradient(100% 120% at 100% 0%, rgba(14, 116, 244, 0.10), transparent 62%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(8, 14, 28, 0.10);
  overflow: hidden;
}

.home-promo-slide {
  position: absolute !important;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.home-promo-stage {
  cursor: pointer;
}

.home-promo-slide.is-active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.home-promo-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #c8d4ea;
  background: #f8fbff;
  color: #17315f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-promo-title {
  margin: 0;
  color: #102147;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(36px, 4.6vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.022em;
  line-height: 0.9;
  text-wrap: balance;
}

.home-promo-copy {
  margin: 0;
  max-width: 54ch;
  color: #4f6288;
  font-size: 15px;
  line-height: 1.5;
}

.home-promo-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.home-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #c4d1e8;
  background: #fff;
  color: #112244;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.home-promo-btn:hover {
  text-decoration: none;
  border-color: #9eb2d4;
  background: #f8fbff;
}

.home-promo-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.home-promo-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.home-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #bfd0ea;
  padding: 0;
  cursor: pointer;
}

.home-promo-dot.is-active {
  width: 24px;
  background: #102147;
}

@media (max-width: 1180px) {
  .store-home-leagues {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .store-home-hero {
    grid-template-columns: 1fr;
  }

  .store-home-media.store-home-media-promo {
    min-height: 370px;
  }

  .home-promo-stage {
    min-height: 324px;
  }

  .store-home-leagues {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-home {
    gap: 24px;
    padding-top: 8px;
  }

  .store-home-mobile-hidden {
    display: none !important;
  }

  .store-home-copy {
    padding: 20px;
    border-radius: 22px;
  }

  .store-home-title {
    font-size: clamp(34px, 9vw, 54px);
  }

  .store-home-subtitle {
    font-size: 15px;
  }

  .store-home-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-home-btn,
  .store-home-btn-secondary {
    width: 100%;
  }

  .store-home-notes {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-home-note {
    justify-content: center;
  }

  .store-home-seo {
    padding: 18px;
  }

  .store-home-leagues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body:not(.admin) .store-home-leagues {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .store-home-league-card {
    min-height: 100px;
    padding: 10px 7px;
    gap: 8px;
  }

  .store-home-league-card .league-logo-wrap,
  .store-home-league-card .league-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .store-home-league-card .league-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .store-home-products {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -14px;
    padding: 2px 14px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .store-home-products::-webkit-scrollbar {
    display: none;
  }

  .store-home-product-slot.store-home-desktop-only {
    display: none;
  }

  .store-home-product-slot {
    flex: 0 0 min(40vw, 176px);
    min-width: min(40vw, 176px);
    scroll-snap-align: start;
  }

  .store-home-product-slot .cardpad {
    padding: 8px;
  }

  .store-home-product-slot .h2 {
    font-size: 13px;
    line-height: 1.2;
  }

  .store-home-product-slot .muted {
    font-size: 11px;
  }

  .store-home-product-slot .price-current {
    font-size: 14px;
  }

  .store-home-product-slot .price-compare {
    font-size: 11px;
  }

  .store-home-more-card {
    flex: 0 0 min(40vw, 176px);
    min-width: min(40vw, 176px);
    min-height: 100%;
    scroll-snap-align: start;
    padding: 10px 8px;
  }

  .store-home-more-label {
    font-size: 12px;
  }

  .store-home-more-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .store-home-media.store-home-media-promo {
    min-height: 352px;
  }

  .home-promo-stage {
    min-height: 308px;
    border-radius: 16px;
  }

  .home-promo-slide {
    padding: 16px;
    gap: 10px;
  }

  .home-promo-title {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 0.92;
  }

  .home-promo-copy {
    font-size: 14px;
    max-width: none;
  }

  .home-promo-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-promo-btn {
    width: 100%;
    min-height: 40px;
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .store-home-title {
    font-size: clamp(30px, 11vw, 42px);
  }

  .store-home-seo-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-home-seo-tag {
    justify-content: center;
  }

  .store-home-league-card {
    min-height: 92px;
    padding: 9px 6px;
    gap: 7px;
  }

  body:not(.admin) .store-home-leagues {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .store-home-league-card .league-logo-wrap,
  .store-home-league-card .league-badge {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .store-home-league-card .league-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .store-home-products {
    gap: 10px;
    margin: 0 -12px;
    padding: 2px 12px 10px;
  }

  .store-home-product-slot,
  .store-home-more-card {
    flex: 0 0 min(48vw, 178px);
    min-width: min(48vw, 178px);
  }

  .store-home-media.store-home-media-promo {
    min-height: 326px;
  }

  .home-promo-stage {
    min-height: 282px;
    border-radius: 14px;
  }

  .home-promo-title {
    font-size: clamp(26px, 9.2vw, 34px);
  }

  .home-promo-copy {
    font-size: 13px;
    line-height: 1.4;
  }

  .home-promo-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-promo-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Force horizontal product rails on home mobile (overrides store fallback) */
@media (max-width: 900px) {
  body:not(.admin) .store-home-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 -14px !important;
    padding: 2px 14px 10px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.admin) .store-home-products::-webkit-scrollbar {
    display: none;
  }

  body:not(.admin) .store-home-product-slot.store-home-desktop-only {
    display: none !important;
  }

  body:not(.admin) .store-home-product-slot {
    flex: 0 0 min(40vw, 176px) !important;
    min-width: min(40vw, 176px) !important;
    scroll-snap-align: start !important;
  }

  body:not(.admin) .store-home-more-card {
    flex: 0 0 min(40vw, 176px) !important;
    min-width: min(40vw, 176px) !important;
    min-height: 100% !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 640px) {
  body:not(.admin) .store-home-products {
    gap: 10px !important;
    margin: 0 -12px !important;
    padding: 2px 12px 10px !important;
  }

  body:not(.admin) .store-home-product-slot,
  body:not(.admin) .store-home-more-card {
    flex: 0 0 min(48vw, 178px) !important;
    min-width: min(48vw, 178px) !important;
  }
}
