:root {
  color-scheme: light;
}

.pagination-meta,
.pagination-actions,
.chip-row,
.chip,
.notice,
.muted,
.stack-item,
.stack-list,
.actions,
.inline-form,
.form-grid,
.modal,
.modal-card,
.modal-body {
  box-sizing: border-box;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.status-panel,
.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-width: 0;
}

.status-label,
.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.status-value {
  font-size: 22px;
  font-weight: 700;
}

.actions,
.filters,
.panel-grid,
.account-grid,
.category-tabs,
.section-tabs,
.pagination-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form > * {
  flex: 1 1 140px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.product-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.product-grid,
.admin-list,
.stack-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card,
.stack-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}

.product-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--product-border, var(--border));
  box-shadow:
    0 18px 35px rgba(43, 32, 20, 0.08),
    0 0 0 1px var(--product-glow, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 235, 0.84)),
    linear-gradient(180deg, var(--product-top, #d7b188), var(--product-bottom, #465f63));
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 42px rgba(43, 32, 20, 0.14),
    0 0 0 1px var(--product-glow, transparent);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--product-glow, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%);
  pointer-events: none;
}

.product-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--product-border, var(--border)) 55%, white);
  background: linear-gradient(
    135deg,
    var(--product-top, #d7b188),
    var(--product-bottom, #465f63)
  );
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.product-cover::before,
.product-detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.42), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(24, 17, 12, 0.16), transparent 46%);
  pointer-events: none;
}

.product-cover::after,
.product-detail-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.product-image-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.product-image-shell.grid {
  padding: 10px 10px 8px;
}

.product-image-shell.detail {
  padding: 12px 12px 10px;
}

.product-image,
.product-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease, filter 300ms ease;
  filter: drop-shadow(0 10px 18px rgba(35, 24, 17, 0.16));
  transform: scale(1.08);
  transform-origin: center center;
}

.product-card:hover .product-image {
  transform: translateY(-2px) scale(1.12);
  filter: drop-shadow(0 18px 26px rgba(35, 24, 17, 0.22));
}

.product-badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 24, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 248, 240, 0.96);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.product-badge.subtle {
  background: rgba(255, 252, 245, 0.82);
  color: rgba(42, 34, 26, 0.78);
  border-color: rgba(145, 117, 90, 0.18);
}

.product-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.bundle-collage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(50, 36, 25, 0.18), rgba(255, 255, 255, 0.02));
}

.bundle-collage-slot {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 248, 235, 0.55);
  box-shadow: 0 10px 24px rgba(22, 15, 10, 0.22);
  background: rgba(255, 255, 255, 0.18);
}

.bundle-collage-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-collage-four .slot-1 {
  inset: 10% 46% 28% 8%;
  transform: rotate(-10deg);
}

.bundle-collage-four .slot-2 {
  inset: 18% 24% 18% 28%;
  transform: rotate(-2deg);
}

.bundle-collage-four .slot-3 {
  inset: 12% 10% 30% 52%;
  transform: rotate(9deg);
}

.bundle-collage-four .slot-4 {
  inset: 48% 26% 6% 18%;
  transform: rotate(4deg);
}

.bundle-collage-six .slot-1,
.bundle-collage-six .slot-2,
.bundle-collage-six .slot-3,
.bundle-collage-six .slot-4,
.bundle-collage-six .slot-5,
.bundle-collage-six .slot-6 {
  transform: none;
}

.bundle-collage-six .slot-1 {
  inset: 8% 68% 52% 6%;
}

.bundle-collage-six .slot-2 {
  inset: 8% 38% 52% 36%;
}

.bundle-collage-six .slot-3 {
  inset: 8% 8% 52% 66%;
}

.bundle-collage-six .slot-4 {
  inset: 52% 68% 8% 6%;
}

.bundle-collage-six .slot-5 {
  inset: 52% 38% 8% 36%;
}

.bundle-collage-six .slot-6 {
  inset: 52% 8% 8% 66%;
}

.bundle-collage-gloss {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(15, 11, 8, 0.16));
  pointer-events: none;
}

.bundle-collage-empty {
  display: grid;
  place-items: center;
}

.product-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(20, 16, 13, 0.18), transparent 34%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .toolbar > *,
  .actions > *,
  .filters > *,
  .section-tabs > * {
    width: 100%;
    min-width: 0;
  }

  .product-name {
    font-size: 15px;
    line-height: 1.2;
  }

  .product-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .product-name {
    font-size: 14px;
    line-height: 1.2;
  }

  .product-meta {
    font-size: 11px;
  }
}
