.shop-shell { padding: 70px 0 110px; }

.shop-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 80px;
  padding-bottom: 70px;
}

.shop-hero h1 { margin-bottom: 0; font-size: clamp(3.8rem, 7vw, 7.4rem); }
.shop-hero > p { margin: 0 0 10px; }

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}

.catalog-toolbar h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); }
.catalog-status { max-width: 360px; margin: 0; text-align: right; font-size: 0.9rem; }
.catalog-status[data-status="provider_unavailable"] { color: #9b271e; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
}

.product-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  animation: product-in 420ms ease both;
}

.product-card:nth-child(2) { animation-delay: 70ms; }
.product-card:nth-child(3) { animation-delay: 140ms; }

@keyframes product-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-deep);
}

.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-media-placeholder {
  display: grid;
  place-items: center;
  color: var(--copper);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
}

.product-body { padding: 20px; }
.product-body h3 { font-size: 1.3rem; line-height: 1.15; }
.product-body p { min-height: 4.5em; color: rgba(30, 32, 28, 0.72); font-size: 0.9rem; line-height: 1.5; }

.variant-select {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 18px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-actions strong { font-family: var(--display); }
.product-actions .button { min-height: 42px; padding-inline: 14px; }

.product-skeleton {
  aspect-ratio: 0.72;
  background: linear-gradient(100deg, var(--paper-deep) 30%, #faf7ef 50%, var(--paper-deep) 70%);
  background-size: 300% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton { to { background-position-x: -150%; } }

.catalog-empty {
  grid-column: 1 / -1;
  padding: 80px 30px;
  border: 1px dashed var(--line);
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
}

.store-cart {
  position: sticky;
  top: 20px;
  padding: 24px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--copper);
}

.cart-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.cart-heading h2 { margin: 0; font-size: 2.2rem; }
.cart-heading .kicker { color: var(--acid); }
.cart-close { display: none; color: var(--paper); border-color: rgba(244, 239, 228, 0.5); }
.cart-items { min-height: 120px; padding: 22px 0; }
.empty-cart { color: rgba(244, 239, 228, 0.65); }

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 239, 228, 0.18);
}

.cart-item strong, .cart-item span { display: block; }
.cart-item span { margin-top: 5px; color: rgba(244, 239, 228, 0.65); font-size: 0.8rem; }
.cart-item button { align-self: start; border: 0; color: var(--acid); background: transparent; cursor: pointer; font-size: 0.75rem; }

.cart-total { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid rgba(244, 239, 228, 0.4); }
.cart-total strong { font-family: var(--display); }
.checkout-button { width: 100%; }
.checkout-note { margin: 14px 0 0; color: rgba(244, 239, 228, 0.65); font-size: 0.78rem; line-height: 1.45; }

.digital-feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 90px;
  padding: 46px;
  color: var(--paper);
  background: var(--pine);
}

.digital-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pine);
  background: var(--acid);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
}

.digital-feature .kicker { color: var(--acid); }
.digital-feature h2 { margin-bottom: 10px; font-size: clamp(2rem, 3vw, 3.2rem); }
.digital-feature p { margin-bottom: 0; line-height: 1.5; }
.digital-price { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; }
.digital-price strong { font-family: var(--display); font-size: 2.4rem; }
.digital-price .button { grid-column: 1 / -1; margin-top: 12px; }

@media (max-width: 1050px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-cart {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    z-index: 30;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 180ms ease;
  }
  .store-cart.is-open { transform: translateX(0); }
  .cart-close { display: block; }
}

@media (max-width: 720px) {
  .shop-shell { padding-top: 48px; }
  .shop-hero { grid-template-columns: 1fr; gap: 26px; padding-bottom: 50px; }
  .catalog-toolbar { display: block; }
  .catalog-status { margin-top: 14px; text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .digital-feature { grid-template-columns: 1fr; padding: 30px; }
  .digital-price { justify-content: start; }
}
