.shop-page .section h2 {
  margin-bottom: 10px;
}

.shop-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.shop-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 10px;
  align-items: stretch;
}

.category-tile {
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #151515;
  color: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  min-height: 200px;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile.is-active {
  border-color: var(--green);
  transform: translateY(-1px);
}

.category-tile:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.category-thumb {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-meta {
  display: grid;
  gap: 2px;
}


.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.shop-card {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-card-media {
  background: #f6f1e7;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
}

.shop-card-body {
  display: grid;
  gap: 8px;
}

.shop-card-body .event-button {
  width: 100%;
  justify-content: center;
}

.shop-card-body strong {
  font-size: 14px;
  line-height: 1.3;
}

.shop-card-body .event-button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shop-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.cart-pill {
  position: fixed;
  right: 12px;
  bottom: 16px;
  border: 1px solid #000;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 40;
  transition: transform 0.2s ease, opacity 0.2s ease;
  touch-action: pan-y;
}

.cart-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.corner-cart {
  position: fixed;
  right: 12px;
  bottom: 16px;
  width: min(320px, 90vw);
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 10px;
  z-index: 60;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.corner-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.corner-cart-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.corner-cart .cart-lines {
  max-height: 220px;
  overflow: auto;
}

.corner-cart-tab {
  display: none;
  position: absolute;
  left: -54px;
  top: 16px;
  transform: rotate(-90deg);
  transform-origin: left top;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}

.corner-cart-panel {
  display: grid;
  gap: 10px;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.corner-cart.is-collapsed {
  transform: translateX(110%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.corner-cart.is-collapsed {
  pointer-events: none;
}

.corner-cart.is-collapsed .corner-cart-panel {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 92vw);
  height: 100%;
  background: #fdfbf7;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
  padding: 18px;
  display: grid;
  gap: 12px;
  z-index: 30;
  transition: right 0.25s ease;
  pointer-events: none;
}

.cart-drawer.is-open {
  right: 0;
  z-index: 60;
  pointer-events: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  display: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  display: block;
  z-index: 30;
}

.cart-open {
  overflow: hidden;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #e5dfd6;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.cart-line-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f6f1e7;
  overflow: hidden;
  flex: 0 0 auto;
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-line-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.cart-line-actions button {
  border: 1px solid #e5dfd6;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.event-button.is-loading {
  opacity: 0.75;
  cursor: progress;
}

.cart-count.is-pulse {
  animation: cart-pop 0.35s ease;
}

@keyframes cart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.cart-actions {
  margin-top: 12px;
  display: flex;
}

.cart-actions .event-button {
  width: 100%;
  justify-content: center;
}

#checkout-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 520px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
