body.store-page {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(12, 17, 24, 0.08), rgba(12, 17, 24, 0)),
    linear-gradient(180deg, #f2f4f7 0%, #e7eaef 46%, #dfe4ea 100%);
}

body.store-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(17, 37, 61, 0.014) 60px 61px);
  z-index: 0;
}

body.store-modal-open {
  overflow: hidden;
}

.store-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

body.store-page .settings-panel {
  z-index: 70;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 48;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.store-header-main {
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 12px 18px;
  background: #111827;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f8fafc;
  text-decoration: none;
}

.store-logo-mark {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.store-logo-text {
  color: #f8fafc;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.store-delivery,
.store-header-action,
.store-cart {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  color: #f8fafc;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.store-delivery:hover,
.store-header-action:hover,
.store-cart:hover,
.store-department-button:hover,
.store-back-link:hover {
  border-color: rgba(255, 255, 255, 0.82);
}

.store-delivery {
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 10px;
}

.store-delivery-line {
  display: block;
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.store-delivery-line-small {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
}

.store-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 44px;
}

.store-search-category-shell {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 70px;
  padding: 0 30px 0 12px;
  border-radius: 10px 0 0 10px;
  color: #111827;
  background: #e5e7eb;
  overflow: hidden;
}

.store-search-category-label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-search-category {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.store-search-input {
  width: 100%;
  padding: 0 14px;
  border: 0;
  font-size: 0.96rem;
  outline: none;
}

.store-search-submit {
  width: 50px;
  border: 0;
  border-radius: 0 10px 10px 0;
  color: #111827;
  font-size: 1.2rem;
  background: #f59e0b;
  cursor: pointer;
}

.store-search-submit:hover {
  background: #fbbf24;
}

.store-search-submit-glyph {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
}

.store-header-actions {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.store-header-action {
  border-radius: 10px;
  text-align: left;
}

.store-header-action-top {
  display: block;
  color: #dbe2ee;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.1;
}

.store-header-action-bottom {
  display: block;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
}

.store-cart {
  position: relative;
  align-self: center;
  min-width: 74px;
  padding: 8px 6px 8px 28px;
  border-radius: 10px;
  text-align: left;
}

.store-cart::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 16px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.store-cart::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 12px;
  height: 8px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.store-cart-count {
  position: absolute;
  left: 15px;
  top: 2px;
  color: #f59e0b;
  font-size: 1rem;
  font-weight: 800;
}

.store-cart-copy {
  display: block;
  padding-top: 15px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.store-header-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: #1f2937;
}

.store-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-department-button,
.store-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.store-department-button-all::before {
  content: "\2630";
  margin-right: 8px;
  font-size: 0.92rem;
}

.store-department-button-all::before {
  content: "☰";
  margin-right: 8px;
  font-size: 0.92rem;
}

.store-main {
  width: min(1520px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.store-hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 22px;
  background: #d8dfea;
  box-shadow: 0 26px 54px rgba(17, 24, 39, 0.14);
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(231, 236, 243, 0.98) 0%, rgba(231, 236, 243, 0.88) 28%, rgba(231, 236, 243, 0.18) 58%, rgba(231, 236, 243, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.store-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--store-hero-position, 50% 50%);
  transform:
    translate(var(--store-hero-offset-x, 0%), var(--store-hero-offset-y, 0%))
    scale(var(--store-hero-scale, 1));
  transform-origin: center;
}

.store-hero-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 46vw);
  padding: 42px 36px;
}

.store-hero-kicker {
  margin: 0 0 12px;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.store-hero-title {
  margin: 0 0 12px;
  max-width: none;
  color: #111827;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.store-hero-body {
  margin: 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-hero-button,
.store-hero-link,
.store-promo-card-action,
.store-shelf-link,
.store-product-action,
.store-search-result-action,
.store-bait-dismiss,
.store-footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: #f59e0b;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 12px 20px rgba(245, 158, 11, 0.2);
}

.store-hero-button:hover,
.store-hero-link:hover,
.store-promo-card-action:hover,
.store-shelf-link:hover,
.store-product-action:hover,
.store-search-result-action:hover,
.store-bait-dismiss:hover,
.store-footer-top:hover {
  transform: translateY(-1px);
  background: #fbbf24;
}

.store-hero-link {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.store-card-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -128px;
  padding: 0 20px;
}

.store-promo-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.store-promo-card-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--store-image-position, 50% 50%);
  transform:
    translate(var(--store-image-offset-x, 0%), var(--store-image-offset-y, 0%))
    scale(var(--store-image-scale, 1));
  transform-origin: center;
}

.store-promo-card-copy {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
}

.store-promo-card-kicker {
  margin: 0;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-promo-card-title {
  margin: 0;
  max-width: none;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.05;
}

.store-promo-card-action {
  justify-self: start;
}

.store-search-feedback,
.store-promo-strip,
.store-shelf {
  margin-top: 22px;
}

.store-search-feedback,
.store-shelf {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.store-search-feedback-head,
.store-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-search-feedback-title,
.store-shelf-title {
  color: #111827;
  font-size: 1.4rem;
  font-weight: 800;
}

.store-search-feedback-close,
.store-bait-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  background: #e5e7eb;
  cursor: pointer;
}

.store-search-feedback-copy {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.55;
}

.store-search-feedback-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.store-search-result {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.store-search-result-image-frame {
  width: 90px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.store-search-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--store-image-position, 50% 50%);
  transform:
    translate(var(--store-image-offset-x, 0%), var(--store-image-offset-y, 0%))
    scale(var(--store-image-scale, 1));
  transform-origin: center;
}

.store-search-result-title,
.store-product-title {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.35;
}

.store-search-result-price,
.store-product-price {
  margin: 4px 0 0;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 800;
}

.store-promo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.store-promo-card-inline .store-promo-card-image {
  aspect-ratio: 16 / 10;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.store-product-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.store-product-image-frame {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}

.store-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--store-image-position, 50% 50%);
  transform:
    translate(var(--store-image-offset-x, 0%), var(--store-image-offset-y, 0%))
    scale(var(--store-image-scale, 1));
  transform-origin: center;
}

.store-product-copy {
  display: grid;
  gap: 6px;
}

.store-product-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.3;
}

.store-product-meta-secondary {
  color: #7b8593;
}

.store-product-action {
  justify-self: start;
}

.store-footer {
  margin-top: 32px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #1f2937;
  color: #e5e7eb;
}

.store-footer-top {
  width: 100%;
  min-height: 46px;
  border-radius: 0;
  color: #fff;
  background: #334155;
  box-shadow: none;
}

.store-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 26px 26px;
}

.store-footer-column-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.store-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.store-footer-list li {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.45;
}

.store-footer-brand {
  display: grid;
  gap: 8px;
  padding: 0 26px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-footer-logo {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  text-transform: lowercase;
}

.store-footer-note {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.store-bait-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.store-bait-modal[hidden] {
  display: none;
}

.store-bait-panel {
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 58%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.store-bait-kicker {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.store-bait-title {
  margin: 0;
  color: #111827;
  font-size: 1.8rem;
  line-height: 1.02;
}

.store-bait-body {
  margin: 14px 0 20px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .store-header-main {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    grid-template-areas:
      "logo actions actions"
      "delivery search search";
  }

  .store-logo {
    grid-area: logo;
  }

  .store-delivery {
    grid-area: delivery;
  }

  .store-search {
    grid-area: search;
  }

  .store-header-actions {
    grid-area: actions;
    justify-self: end;
  }

  .store-card-grid,
  .store-promo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .store-header-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "delivery"
      "search"
      "actions";
  }

  .store-header-actions,
  .store-header-sub,
  .store-shelf-head,
  .store-search-feedback-head {
    flex-direction: column;
    align-items: stretch;
  }

  .store-main {
    width: min(100vw - 16px, 980px);
  }

  .store-hero {
    min-height: 520px;
  }

  .store-hero::after {
    background:
      linear-gradient(180deg, rgba(231, 236, 243, 0.98) 0%, rgba(231, 236, 243, 0.9) 44%, rgba(231, 236, 243, 0.08) 100%);
  }

  .store-hero-copy {
    width: auto;
    max-width: none;
    padding: 26px 22px;
  }

  .store-card-grid {
    margin-top: -64px;
    padding: 0 10px;
  }

  .store-search-result {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .store-search-result-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .store-product-grid,
  .store-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-header-main,
  .store-header-sub {
    padding-left: 10px;
    padding-right: 10px;
  }

  .store-main {
    width: calc(100vw - 10px);
    padding-top: 10px;
  }

  .store-logo-text {
    font-size: 1.44rem;
  }

  .store-hero {
    min-height: 460px;
    border-radius: 18px;
  }

  .store-card-grid,
  .store-promo-strip,
  .store-product-grid,
  .store-footer-grid {
    grid-template-columns: 1fr;
  }

  .store-card-grid {
    margin-top: -38px;
  }

  .store-search {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-search-category-shell,
  .store-search-submit,
  .store-search-input {
    border-radius: 10px;
  }

  .store-search-submit {
    width: 100%;
    min-height: 42px;
  }

  .store-hero-actions,
  .store-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-hero-button,
  .store-hero-link,
  .store-promo-card-action,
  .store-product-action,
  .store-shelf-link,
  .store-search-result-action,
  .store-bait-dismiss {
    width: 100%;
  }

  .store-bait-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-hero-button,
  .store-hero-link,
  .store-promo-card-action,
  .store-shelf-link,
  .store-product-action,
  .store-search-result-action,
  .store-bait-dismiss,
  .store-footer-top,
  .store-delivery,
  .store-header-action,
  .store-cart,
  .store-department-button,
  .store-back-link {
    transition: none;
  }
}
