.shop-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 118px) 0 48px;
}

.shop-hero::before {
  content: "";
  position: absolute;
  width: min(620px, 78vw);
  aspect-ratio: 1;
  right: -16vw;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 85, 255, 0.26), transparent 62%);
  pointer-events: none;
}

.shop-hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: end;
}

.shop-hero h1 {
  margin: 0;
  max-width: 980px;
  color: #f5c542;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: #c8bfd8;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
}

.shop-status {
  margin-top: 18px;
  color: #f5c542;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-panel,
.shop-card,
.cart-panel,
.product-detail-panel,
.product-info-panel,
.shop-empty,
.shop-error {
  border: 1px solid rgba(245, 197, 66, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(19, 18, 28, 0.92), rgba(5, 5, 9, 0.76)),
    radial-gradient(circle at 18% 0%, rgba(157, 85, 255, 0.16), transparent 18rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.shop-panel {
  padding: 24px;
}

.shop-panel h2,
.shop-section h2,
.product-info-panel h1 {
  margin: 0;
  color: #f5c542;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
}

.shop-panel p,
.shop-section p,
.shop-card p,
.cart-panel p,
.product-info-panel p {
  color: #c8bfd8;
  line-height: 1.65;
}

.shop-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 197, 66, 0.48);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  color: #050507;
  background: linear-gradient(135deg, #f5c542, #fff0be 48%, #9b6612);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-button.secondary {
  color: #fff8e8;
  background: rgba(157, 85, 255, 0.1);
  border-color: rgba(192, 140, 255, 0.34);
}

.shop-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.shop-section {
  padding: 46px 0;
}

.shop-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.shop-tabs a,
.cart-toggle {
  min-height: 42px;
  border: 1px solid rgba(157, 85, 255, 0.3);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: #fff8e8;
  background: rgba(157, 85, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.shop-grid,
.collection-grid {
  display: grid;
  gap: 16px;
}

.shop-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(242px, 330px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.shop-carousel .shop-card {
  scroll-snap-align: start;
}

.shop-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shop-card:hover,
.shop-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 66, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 28px rgba(157, 85, 255, 0.16);
}

.shop-card-media {
  display: block;
  aspect-ratio: 1 / 1.08;
  background:
    radial-gradient(circle at 28% 20%, rgba(245, 197, 66, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(157, 85, 255, 0.34), rgba(8, 8, 12, 0.96));
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.shop-card h3 {
  margin: 0;
  color: #fff8e8;
  font-size: 1.08rem;
}

.shop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: #f5c542;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  color: #22c55e;
}

.availability.sold-out {
  color: #ef4444;
}

.shop-empty,
.shop-error {
  padding: 22px;
  color: #c8bfd8;
}

.shop-error strong {
  color: #f5c542;
}

.cart-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}

.cart-panel {
  display: none;
  position: fixed;
  inset: auto 14px 82px auto;
  z-index: 31;
  width: min(410px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  padding: 18px;
}

.cart-panel.is-open {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-line img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-line h4,
.cart-panel h2 {
  margin: 0;
  color: #fff8e8;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  color: #f5c542;
  font-weight: 900;
}

.product-page {
  padding: clamp(42px, 8vw, 90px) 0;
}

.product-layout {
  display: grid;
  gap: 24px;
}

.product-detail-panel,
.product-info-panel {
  padding: 18px;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-thumbs button {
  border: 1px solid rgba(245, 197, 66, 0.18);
  border-radius: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.variant-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.variant-form label {
  display: grid;
  gap: 8px;
  color: #c8bfd8;
  font-size: 0.86rem;
}

.variant-form select,
.quantity-input {
  min-height: 48px;
  border: 1px solid rgba(192, 140, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
  padding: 0.85rem 1rem;
  font: inherit;
}

.product-description {
  margin-top: 20px;
  color: #c8bfd8;
  line-height: 1.7;
}

@media (min-width: 760px) {
  .shop-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  }

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

  .product-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
