#main-content:has(.store-layout) {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.container:has(.store-layout) {
  padding: 0;
  max-width: none;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 2rem;
}

.store-sidebar,
.store-filter-panel,
.store-category-intro,
.store-disclosure,
.buyer-questions,
.prod-card,
.store-empty-state {
  border: 1px solid rgba(122, 86, 54, 0.18);
  border-radius: 24px;
  background: #fffaf3;
  color: var(--color-text-dark);
  box-shadow: 0 18px 42px rgba(77, 51, 31, 0.1);
}

.store-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding: 1.5rem;
  background: #2c1810;
  color: #fff8ed;
  border-color: rgba(212, 168, 90, 0.28);
}

.store-sidebar-intro h2,
.store-title {
  margin-top: 0;
}

.store-sidebar-intro p,
.store-disclosure p,
.buyer-questions-copy p,
.store-filter-panel-copy p,
.store-category-intro p {
  color: #4f4037;
}

.store-sidebar .store-sidebar-intro p,
.store-sidebar .sb-btn-description {
  color: #eadccc;
}

.store-sidebar-eyebrow,
.store-category-kicker,
.prod-category-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  font-weight: 800;
}

.store-sidebar-eyebrow {
  color: #f0c17a;
}

.sb-list,
.sb-subs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-item + .sb-item {
  margin-top: 0.75rem;
}

.sb-btn,
.sb-sub {
  width: 100%;
  border: 1px solid rgba(255, 248, 237, 0.12);
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.08);
  color: #fff8ed;
  text-align: left;
  padding: 0.9rem 1rem;
  cursor: pointer;
}

.sb-btn.active,
.sb-sub.active,
.sb-btn:hover,
.sb-sub:hover {
  background: #fff8ed;
  color: #2c1810;
  border-color: #d4a85a;
  outline: 2px solid rgba(212, 168, 90, 0.32);
}

.sb-btn.active .sb-btn-description,
.sb-btn:hover .sb-btn-description {
  color: #5e4634;
}

.sb-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sb-btn-description {
  font-size: 0.9rem;
}

.sb-subs {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.store-main {
  padding: 0 0 2rem;
}

.store-filter-panel,
.store-category-intro,
.store-disclosure,
.buyer-questions {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.store-category-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 320px);
  gap: 1.25rem;
  align-items: center;
}

.store-category-media {
  margin: 0;
}

.store-category-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(122, 86, 54, 0.18);
  background: #f4eadc;
}

.store-category-media figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #6b5a4d;
}

.buyer-questions-copy h2,
.store-disclosure h2,
.store-filter-panel h2,
.store-category-intro h2 {
  margin-top: 0;
  color: var(--color-text-dark);
}

.buyer-questions-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  font-weight: 800;
}

.buyer-questions-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.buyer-questions-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f4eadc;
  border: 1px solid rgba(122, 86, 54, 0.16);
}

.buyer-questions-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #3b2619;
}

.buyer-questions-item p {
  margin: 0;
  color: #4f4037;
}

.store-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.store-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.store-filter-field label {
  font-weight: 700;
  color: #3b2619;
}

.store-filter-field input,
.store-filter-field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(122, 86, 54, 0.28);
  background: #ffffff;
  color: #2f241d;
  padding: 0.85rem 1rem;
}

.store-filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.store-clear-button,
.prod-secondary-link,
.prod-amazon-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  font-weight: 800;
}

.store-clear-button,
.prod-secondary-link {
  border: 1px solid rgba(122, 86, 54, 0.32);
  background: #ffffff;
  color: #3b2619;
}

.store-clear-button:hover,
.prod-secondary-link:hover {
  background: #f4eadc;
}

.prod-amazon-link {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.18);
}

.prod-amazon-link:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  color: #ffffff;
}

.store-filter-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.store-results-summary {
  margin: 0;
  font-weight: 700;
  color: #3b2619;
}

.store-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #f4eadc;
  color: #5c3416;
  font-size: 0.9rem;
  font-weight: 700;
}

.store-filter-chip-muted {
  background: #eee5da;
  color: #5c5147;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.prod-card {
  overflow: hidden;
  background: #ffffff;
}

.prod-card-link,
.prod-card-link img {
  display: block;
  width: 100%;
}

.prod-card-link {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at top, #fbf1e3, #efe1d0);
}

.prod-card-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prod-card-link img {
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.prod-card-caption {
  margin: 0;
  padding: 0 1rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  color: #6b5a4d;
}

.prod-info {
  padding: 1.25rem;
}

.affiliate-link-badge,
.prod-meta-badge,
.prod-disclosure {
  font-size: 0.85rem;
}

.affiliate-link-badge {
  color: #7c4a17;
  font-weight: 800;
}

.prod-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: #2f241d;
}

.prod-name a {
  color: inherit;
  text-decoration: none;
}

.prod-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
}

.prod-meta-badge {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #efe1d0;
  color: #5c3416;
  font-weight: 700;
}

.prod-price {
  margin-top: 0.9rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.prod-description,
.prod-urgency,
.prod-disclosure {
  color: #4f4037;
}

.prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.store-empty-state {
  padding: 2rem;
  text-align: center;
}

.affiliate-note-prominent {
  margin-top: 1.5rem;
  color: #4f4037;
}

@media (max-width: 960px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }

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

  .store-category-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-filter-form,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .store-filter-actions,
  .prod-actions,
  .store-filter-meta {
    flex-direction: column;
    align-items: stretch;
  }
}
