.store-page {
  min-height: 100vh;
  padding-top: 72px;
  background:
    radial-gradient(circle at 8% 0%, rgba(185, 134, 47, 0.16), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(47, 79, 99, 0.11), transparent 25%),
    var(--page);
}

.store-hero {
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 2.4rem;
}

.store-hero-grid {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.store-hero h1 {
  font-size: 4.1rem;
  margin: 0.35rem 0 0.9rem;
}

.store-hero .lead {
  font-size: 1.03rem;
  max-width: 62ch;
}

.store-trust-panel {
  background: linear-gradient(145deg, rgba(185,134,47,0.14), rgba(47,79,99,0.1)), var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.store-trust-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-trust-list li {
  align-items: flex-start;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 22px 1fr;
}

.store-check {
  align-items: center;
  background: var(--moss-deep);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.store-section {
  padding: 2.2rem 0 4rem;
}

.store-toolbar {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.store-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.store-filter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.5rem 0.85rem;
}

.store-filter:hover,
.store-filter[aria-pressed="true"] {
  background: rgba(185,134,47,0.16);
  border-color: var(--gold);
  color: var(--ink);
}

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

.store-product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(34,33,28,0.09);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.store-product-card:hover {
  border-color: rgba(185,134,47,0.65);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.store-product-media {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e8dfcb, #fff9ee);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.store-product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.store-product-media img.store-fallback-image {
  height: 86px;
  object-fit: contain;
  width: 86px;
}

.store-product-card:hover .store-product-media img:not(.store-fallback-image) {
  transform: scale(1.025);
}

.store-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.store-product-category,
.store-product-type {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-product-card h2 {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.55rem;
}

.store-product-summary {
  color: var(--muted);
  flex: 1;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.store-product-footer {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding-top: 0.85rem;
}

.store-price {
  color: var(--ink);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.store-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.store-skeleton {
  animation: storePulse 1.3s ease-in-out infinite;
  background: linear-gradient(100deg, #e9e0cf 25%, #fff8e9 45%, #e9e0cf 65%);
  background-size: 220% 100%;
  border-radius: var(--radius);
  min-height: 350px;
}

.store-detail {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  padding: 3rem 0 4rem;
}

.store-detail-main,
.store-purchase-panel,
.store-result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.store-detail-main {
  overflow: hidden;
}

.store-detail-image {
  aspect-ratio: 16 / 8;
  background: linear-gradient(145deg, #e8dfcb, #fff9ee);
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
}

.store-detail-image.store-fallback-image {
  object-fit: contain;
  padding: clamp(2rem, 8vw, 5rem);
}

.store-detail-copy {
  padding: 1.4rem;
}

.store-description {
  color: var(--ink-soft);
}

.store-description h2,
.store-description h3 {
  margin-top: 1.25rem;
}

.store-description ul,
.store-description ol {
  padding-left: 1.25rem;
}

.store-purchase-panel {
  align-self: start;
  padding: 1.25rem;
  position: sticky;
  top: 92px;
}

.store-purchase-panel .store-price {
  display: block;
  font-size: 1.8rem;
  margin: 0.4rem 0 0.9rem;
}

.store-form {
  display: grid;
  gap: 0.85rem;
}

.store-field {
  display: grid;
  gap: 0.3rem;
}

.store-field label {
  font-size: 0.88rem;
  font-weight: 800;
}

.store-field input {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.store-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,134,47,0.13);
  outline: none;
}

.store-field-help {
  color: var(--muted);
  font-size: 0.76rem;
}

.store-submit {
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.store-submit[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.store-message {
  border-radius: 10px;
  display: none;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 0.7rem 0.8rem;
}

.store-message.is-error {
  background: #fdeaea;
  border: 1px solid #d58c88;
  color: #7d2f2f;
  display: block;
}

.store-message.is-info {
  background: #edf3f5;
  border: 1px solid #c3d4dc;
  color: #2f4f63;
  display: block;
}

.store-legal-note {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.store-result {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 3rem 0;
}

.store-result-card {
  max-width: 680px;
  padding: 2rem;
  text-align: center;
}

.store-result-icon {
  align-items: center;
  background: rgba(47,106,63,0.12);
  border: 1px solid rgba(47,106,63,0.28);
  border-radius: 50%;
  color: var(--success);
  display: inline-flex;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 58px;
}

.store-result-icon.cancelled {
  background: rgba(185,134,47,0.12);
  border-color: rgba(185,134,47,0.3);
  color: var(--gold-deep);
}

@keyframes storePulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 920px) {
  .store-hero-grid,
  .store-detail {
    grid-template-columns: 1fr;
  }

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

  .store-purchase-panel {
    position: static;
  }

  .store-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 620px) {
  .store-page { padding-top: 62px; }
  .store-hero { padding: 2.6rem 0 1.8rem; }
  .store-hero h1 { font-size: 2.35rem; }
  .store-grid { grid-template-columns: 1fr; }
  .store-toolbar { align-items: stretch; flex-direction: column; }
  .store-product-footer { align-items: stretch; flex-direction: column; }
  .store-product-footer .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .store-product-card,
  .store-product-media img,
  .store-skeleton { animation: none !important; transition: none !important; }
}
