/* ===== Color Tokens — Forest x Pokéball identity ===== */
:root {
  --pine-900: #142B1D;
  --pine-800: #1F3D2B;
  --pine-700: #2E5539;
  --moss-600: #4F7857;
  --moss-500: #6B9873;
  --fern-400: #8FBF7F;
  --fern-300: #B7D9A8;
  --amber-600: #C98A1F;
  --amber-500: #D79A2C;
  --amber-400: #E5B458;
  --berry-600: #A8391F;
  --berry-500: #B8402A;
  --berry-100: #F7E6DE;
  --parchment-100: #FAF6EC;
  --parchment-200: #F6F1E4;
  --parchment-300: #EFE7D3;
  --bark-700: #5B4130;
  --ink-900: #24301F;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--parchment-200);
  color: var(--ink-900);
}

/* ===== App Shell ===== */
#poke-app {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.app-inner {
  position: relative;
  z-index: 1;
}

/* ===== Pokéball & Leaf Background Decorations ===== */
.pokeball-bg {
  position: fixed;
  border-radius: 50%;
  border: 12px solid rgba(184, 64, 42, 0.07);
  pointer-events: none;
  z-index: 0;
}
.pokeball-bg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(184, 64, 42, 0.08);
  border: 8px solid rgba(184, 64, 42, 0.06);
}
.pokeball-bg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 6px);
  height: 12px;
  background: rgba(184, 64, 42, 0.05);
}

.pb1 { width: 220px; height: 220px; top: -60px; right: 80px; }
.pb2 {
  width: 150px; height: 150px;
  bottom: 80px; left: -30px;
  border-color: rgba(79, 120, 87, 0.09);
}
.pb2::before { background: rgba(79, 120, 87, 0.06); }
.pb2::after  { background: rgba(79, 120, 87, 0.1); border-color: rgba(79, 120, 87, 0.07); }
.pb3 {
  width: 100px; height: 100px;
  top: 200px; right: 10px;
  border-color: rgba(215, 154, 44, 0.12);
}
.pb3::before { background: rgba(215, 154, 44, 0.08); }
.pb3::after  { background: rgba(215, 154, 44, 0.1); border-color: rgba(215, 154, 44, 0.09); }
.pb4 {
  width: 80px; height: 80px;
  bottom: 300px; right: 200px;
  border-color: rgba(143, 191, 127, 0.12);
}
.pb4::before { background: rgba(143, 191, 127, 0.08); }
.pb4::after  { background: rgba(143, 191, 127, 0.1); border-color: rgba(143, 191, 127, 0.08); }

/* Leaf-shaped accents — the signature touch mixed in among the Pokéballs */
.leaf-bg {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 0% 100% 0% 100%;
}
.leaf1 {
  width: 130px; height: 130px;
  top: 120px; left: -20px;
  background: rgba(143, 191, 127, 0.10);
  transform: rotate(25deg);
}
.leaf2 {
  width: 90px; height: 90px;
  bottom: 160px; right: 60px;
  background: rgba(215, 154, 44, 0.10);
  transform: rotate(-15deg);
  animation: leafSway 7s ease-in-out infinite;
}
.leaf3 {
  width: 60px; height: 60px;
  top: 340px; left: 60px;
  background: rgba(107, 152, 115, 0.10);
  transform: rotate(60deg);
}
@keyframes leafSway {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%      { transform: rotate(-8deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .leaf2 { animation: none; }
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, var(--pine-800) 0%, var(--pine-900) 100%);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(20, 43, 29, 0.35);
  overflow: hidden;
}
/* Dappled sunlight breaking through the canopy */
header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(229, 180, 88, 0.28) 0%, rgba(229, 180, 88, 0) 70%);
  pointer-events: none;
}

.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: var(--amber-400);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.logo-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 3px solid #333;
  position: relative;
  flex-shrink: 0;
}
.logo-ball::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: var(--berry-500);
  border-radius: 50% 50% 0 0;
  border-bottom: 3px solid #333;
}
.logo-ball::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid #333;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== Buttons ===== */
.btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-yellow { background: var(--amber-500); color: var(--ink-900); }
.btn-yellow:hover { background: var(--amber-600); }

.btn-white { background: white; color: var(--pine-800); }
.btn-white:hover { background: var(--parchment-100); }

.btn-red { background: var(--berry-500); color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-red:hover { background: var(--berry-600); }

.btn-blue { background: var(--moss-600); color: white; }
.btn-blue:hover { background: var(--pine-700); }

.btn-ghost { background: transparent; color: #666; border: 1.5px solid #ddd; }
.btn-ghost:hover { background: #f5f5f5; }

.btn-danger { background: var(--berry-100); color: var(--berry-600); }
.btn-danger:hover { background: #f0d4c8; }
.btn-shop-disabled { background: var(--berry-100); color: var(--berry-600); border: 1.5px solid #d99a86; }
.btn-shop-disabled:hover { background: #f0d4c8; }

.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== Header Right ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ===== Basket Button ===== */
.basket-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}
.basket-btn:hover { color: white; }
.basket-btn.has-items { color: var(--amber-500); }

.basket-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--amber-500);
  color: #333;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--berry-600);
}

/* ===== Basket Overlay ===== */
.basket-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 150;
  cursor: pointer;
}

/* ===== Basket Drawer ===== */
.basket-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  max-width: 95vw;
  background: white;
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.basket-drawer.open { transform: translateX(0); }

.basket-header {
  padding: 18px 18px 14px;
  border-bottom: 1.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.basket-title {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.basket-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
  display: flex;
}
.basket-close-btn:hover { color: var(--berry-600); }

.basket-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.basket-empty {
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-size: 14px;
}

.basket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #f5f5f5;
}
.basket-item:last-child { border-bottom: none; }

.basket-item-img {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-item-img img { width: 100%; height: 100%; object-fit: contain; }
.basket-item-img-placeholder { color: #ccc; font-size: 20px; }

.basket-item-info { flex: 1; min-width: 0; }
.basket-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.basket-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-600);
  margin-bottom: 8px;
}
.basket-item-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.basket-qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #444;
  transition: all 0.12s;
}
.basket-qty-btn:hover { border-color: var(--berry-600); color: var(--berry-600); }
.basket-qty-val {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  min-width: 20px;
  text-align: center;
}
.basket-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 15px;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.basket-item-remove:hover { color: var(--berry-600); }

.basket-footer {
  padding: 16px 18px;
  border-top: 1.5px solid #f0f0f0;
  flex-shrink: 0;
}
.basket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.basket-total-amount {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--berry-600);
}
.basket-go-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  display: flex;
}

/* ===== Out of Stock ===== */
.item-card.out-of-stock { opacity: 0.75; }
.out-of-stock-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.card-basket-btn.disabled {
  background: #f3f4f6;
  color: #bbb;
  cursor: not-allowed;
  font-size: 12px;
  gap: 4px;
}
.card-basket-btn.disabled:hover { background: #f3f4f6; color: #bbb; }

/* ===== Card basket button (grid) ===== */
.card-basket-btn-wrap {
  padding: 0 10px 10px;
}
.card-basket-btn {
  width: 100%;
  padding: 7px;
  border-radius: 10px;
  border: none;
  background: var(--parchment-300);
  color: var(--berry-600);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-basket-btn:hover { background: var(--amber-500); color: #333; }

/* ===== Detail basket button ===== */
.detail-basket-btn {
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 14px;
}

/* ===== Basket page ===== */
.basket-page-list {
  background: white;
  border-radius: 18px;
  border: 2px solid #f0f0f0;
  overflow: hidden;
  margin-bottom: 20px;
}
.basket-page-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1.5px solid #f5f5f5;
}
.basket-page-row:last-child { border-bottom: none; }

.basket-page-img {
  width: 64px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-page-img img { width: 100%; height: 100%; object-fit: contain; }
.basket-page-img-placeholder { color: #ccc; font-size: 24px; }

.basket-page-info { flex: 1; min-width: 0; }
.basket-page-name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.basket-page-cat { font-size: 12px; color: #aaa; margin-bottom: 6px; }
.basket-page-price { font-size: 13px; font-weight: 700; color: var(--berry-600); }

.basket-page-qty-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.basket-page-subtotal {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.basket-page-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 4px;
}
.basket-page-remove:hover { color: var(--berry-600); }

.basket-page-summary {
  background: white;
  border-radius: 18px;
  border: 2px solid #f0f0f0;
  padding: 20px;
}
.basket-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.basket-summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #222;
  border-top: 2px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 4px;
  margin-bottom: 18px;
}
.basket-checkout-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
}
.basket-stripe-note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ===== Admin Lock Button ===== */
.admin-lock-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  margin-left: 4px;
  flex-shrink: 0;
}
.admin-lock-btn:hover { color: rgba(255, 255, 255, 0.7); }
.admin-lock-btn.admin-active { color: var(--amber-500); }

/* ===== Navigation ===== */
nav {
  background: white;
  border-bottom: 2.5px solid var(--amber-500);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 62px;
  z-index: 40;
}
nav::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  margin-bottom: -2.5px;
}
.nav-tab:hover { color: var(--pine-700); }
.nav-tab.active { color: var(--pine-700); border-bottom-color: var(--pine-700); }

.nav-tab-add {
  padding: 12px 14px;
  color: var(--moss-600);
  font-size: 20px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2.5px;
}

.nav-tab-edit {
  padding: 8px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #ccc;
  font-size: 13px;
  margin-left: -8px;
  transition: color 0.15s;
}
.nav-tab-edit:hover { color: var(--berry-600); }

/* ===== Content ===== */
.content {
  padding: 24px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #222;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Items Grid ===== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* ===== Item Card ===== */
.item-card {
  background: white;
  border-radius: 18px;
  border: 2px solid #f0f0f0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  border-color: var(--fern-400);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(47, 85, 43, 0.15);
}

.card-img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  background: var(--parchment-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid var(--parchment-300);
  padding: 10px;
  overflow: hidden;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--parchment-100), var(--parchment-300));
}
.card-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.5;
}

.card-info {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--berry-600);
}
.card-category {
  font-size: 11px;
  color: #999;
  margin-top: 3px;
}

.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.item-card:hover .card-actions { opacity: 1; }

.card-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.card-action-btn:active { transform: scale(0.9); }
.edit-btn { background: #dbeafe; color: #2563eb; }
.edit-btn:hover { background: #bfdbfe; }
.del-btn { background: var(--berry-100); color: var(--berry-600); }
.del-btn:hover { background: #F0D4C8; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
  grid-column: 1 / -1;
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state p { font-size: 15px; line-height: 1.6; }

/* ===== Gallery Strip ===== */
.gallery-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: #f9f9f9;
  border-bottom: 1.5px solid #f0f0f0;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  min-height: 72px;
  align-items: center;
}
.gallery-strip:empty { display: none; }

.gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2.5px solid #e8e8e8;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
  background: white;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover { border-color: var(--amber-500); }
.gallery-thumb.active { border-color: var(--berry-600); box-shadow: 0 0 0 2px rgba(184, 64, 42, 0.25); }

.gallery-thumb-del {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}
.gallery-thumb:hover .gallery-thumb-del { opacity: 1; }
.gallery-thumb-del:hover { background: var(--berry-600); }

.gallery-thumb-add {
  border-style: dashed;
  border-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #bbb;
  background: white;
}
.gallery-thumb-add:hover { border-color: var(--moss-600); color: var(--moss-600); background: #F0F5EC; }

/* ===== Detail View ===== */
.detail-view {
  padding: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--moss-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 0;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-btn:hover { color: #2a7add; }

.detail-card {
  background: white;
  border-radius: 22px;
  border: 2px solid #f0f0f0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.detail-img {
  width: 100%;
  height: 260px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid #f5f5f5;
}

.detail-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fafafa;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}
.detail-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.detail-body { padding: 24px; }

.detail-name {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  color: #222;
  margin-bottom: 8px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--berry-600);
}
.detail-cat {
  background: var(--parchment-300);
  color: var(--bark-700);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.detail-desc-section { margin-top: 20px; }

.desc-label {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desc-text {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  background: #FAFAFA;
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid #f0f0f0;
  min-height: 90px;
}

.desc-edit-area {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 2px solid var(--moss-600);
  min-height: 120px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal {
  background: white;
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--berry-600);
  margin-bottom: 22px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #ebebeb;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
  background: white;
}
.form-input:focus { border-color: var(--moss-600); }

.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #ebebeb;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--moss-600); }

/* ===== Pokémon TCG Search ===== */
.img-source-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.img-source-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  background: white;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.img-source-tab:hover { border-color: #bbb; color: #555; }
.img-source-tab.active { border-color: var(--berry-600); color: var(--berry-600); background: #EFF5F0; }

.tcg-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.tcg-mode-tab {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  background: white;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}
.tcg-mode-tab:hover { border-color: #bbb; color: #555; }
.tcg-mode-tab.active { border-color: var(--moss-600); color: var(--moss-600); background: #F0F5EC; }

.tcg-lang-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.tcg-lang-tab {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 2px solid #e8e8e8;
  background: white;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  transition: all 0.15s;
  white-space: nowrap;
}
.tcg-lang-tab:hover { border-color: #bbb; color: #555; }
.tcg-lang-tab.active { border-color: var(--berry-600); color: var(--berry-600); background: #EFF5F0; }

.tcg-results { max-height: 280px; overflow-y: auto; }

.tcg-searching {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #888;
  font-size: 13px;
  justify-content: center;
}
.tcg-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid #eee;
  border-top-color: var(--berry-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.tcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.tcg-card {
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fafafa;
  transition: all 0.15s;
  text-align: center;
}
.tcg-card:hover { border-color: var(--amber-500); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tcg-card img { width: 100%; display: block; }
.tcg-card-name {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  padding: 4px 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcg-card-set {
  font-size: 9px;
  color: #aaa;
  padding: 2px 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Image Upload ===== */
.img-upload-area {
  width: 100%;
  min-height: 140px;
  border: 2px dashed #ddd;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.img-upload-area:hover { border-color: var(--moss-600); background: #F0F5EC; }
.img-upload-area.drag-over { border-color: var(--berry-600); background: #FBEEE8; }

.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: #aaa;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.img-upload-placeholder i { font-size: 32px; color: #ccc; }
.img-hint { font-size: 11px; color: #ccc; font-weight: 400; }

.img-preview-thumb {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  padding: 8px;
  background: #fafafa;
}

/* ===== Quantity Badge (card grid) ===== */
.qty-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--berry-600);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== Quantity Row (detail view) ===== */
.detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 4px;
}
.detail-qty-label {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e8e8e8;
  background: white;
  font-size: 18px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--berry-600); color: var(--berry-600); background: #EFF5F0; }
.qty-btn:active { transform: scale(0.92); }
.qty-value {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #222;
  min-width: 28px;
  text-align: center;
}

/* ===== Quantity Input Row (modal) ===== */
.qty-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-input-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  background: white;
  font-size: 20px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  line-height: 1;
}
.qty-input-btn:hover { border-color: var(--berry-600); color: var(--berry-600); background: #EFF5F0; }
.qty-input-field {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ===== Category Chips ===== */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 6px 14px 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin: 4px;
}
.cat-chip-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.cat-chip-del:hover { color: var(--berry-600); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.modal-actions .btn { flex: 1; justify-content: center; }

/* ===== Collection Toolbar ===== */
.collection-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-search {
  flex: 1;
  min-width: 180px;
  position: relative;
  display: flex;
  align-items: center;
}
.toolbar-search-icon {
  position: absolute;
  left: 12px;
  color: #bbb;
  font-size: 16px;
  pointer-events: none;
}
.toolbar-search-input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border: 2px solid #ebebeb;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  background: white;
  transition: border-color 0.15s;
}
.toolbar-search-input:focus { border-color: var(--moss-600); }
.toolbar-search-input::placeholder { color: #bbb; }
.toolbar-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 15px;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.15s;
}
.toolbar-search-clear:hover { color: var(--berry-600); }

.toolbar-expansion-select {
  padding: 9px 14px;
  border: 2px solid #ebebeb;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: white;
  cursor: pointer;
  outline: none;
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color 0.15s;
}
.toolbar-expansion-select:focus { border-color: var(--moss-600); }

/* Active filter pills */
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-height: 0;
}
.active-filters:empty { margin-bottom: 0; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--parchment-300);
  border: 1.5px solid var(--amber-500);
  color: var(--bark-700);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px 4px 10px;
  border-radius: 20px;
}
.filter-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bark-700);
  font-size: 15px;
  line-height: 1;
  padding: 0;
  margin-left: 2px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.filter-pill button:hover { opacity: 1; }
.filter-clear-all {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--berry-600);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  text-decoration: underline;
  transition: opacity 0.15s;
}
.filter-clear-all:hover { opacity: 0.7; }

/* Search highlight */
mark.search-highlight {
  background: var(--amber-400);
  color: var(--ink-900);
  border-radius: 3px;
  padding: 0 1px;
}

/* ===== Orders (admin) ===== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-row {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s;
  flex-wrap: wrap;
}
.order-row:hover {
  border-color: var(--amber-500);
  box-shadow: 0 4px 14px rgba(47, 85, 43, 0.1);
}
.order-row-main { min-width: 140px; flex: 1; }
.order-row-customer {
  font-weight: 700;
  font-size: 14px;
  color: #222;
}
.order-row-email {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.order-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  color: #888;
  min-width: 110px;
}
.order-row-count { font-weight: 700; color: #555; }
.order-row-total {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--berry-600);
  min-width: 80px;
  text-align: right;
}
.order-row-arrow { color: #ccc; font-size: 18px; }

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.order-status-paid     { background: #dcfce7; color: #16a34a; }
.order-status-pending  { background: #fef3c7; color: var(--bark-700); }
.order-status-failed   { background: var(--berry-100); color: var(--berry-600); }
.order-status-refunded { background: #f3f4f6; color: #6b7280; }

/* Order detail */
.order-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: #fafafa;
  border-radius: 14px;
  border: 1.5px solid #f0f0f0;
}
.order-meta-block { min-width: 0; }
.order-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-top: 4px;
  word-break: break-word;
}
.order-meta-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.order-total-breakdown {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px solid #f0f0f0;
}
.order-total-breakdown .basket-summary-row {
  font-size: 13px;
  margin-bottom: 4px;
}

.order-address-block {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.order-items-list {
  margin-top: 10px;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.order-item-row:last-child { border-bottom: none; }
.order-item-img {
  width: 46px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-item-img img { width: 100%; height: 100%; object-fit: contain; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-qty { font-size: 12px; color: #999; margin-top: 2px; }
.order-item-price { font-weight: 700; color: #222; font-size: 14px; flex-shrink: 0; }

/* ===== Bulk Add Modal ===== */
/* ===== Shipping Settings Modal ===== */
.checkout-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #f2f2f2;
}
.checkout-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.checkout-section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ship-cat-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  padding: 6px 0;
  cursor: pointer;
}
.ship-cat-check input { accent-color: var(--berry-600); width: 16px; height: 16px; cursor: pointer; }

.ship-weight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.ship-weight-input { width: 80px; text-align: center; padding: 6px 8px; }

.ship-tier-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
}
.ship-tier-row:last-child { border-bottom: none; }
.ship-tier-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 80px;
}
.ship-tier-field label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
}
.ship-tier-field input { padding: 7px 8px; font-size: 13px; }
.ship-tier-field span { display: none; }
.ship-tier-del {
  background: var(--berry-100);
  color: var(--berry-600);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ship-tier-del:hover { background: #F0D4C8; }

.modal-bulk {
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.bulk-card-list {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
  border: 1.5px solid #f0f0f0;
  border-radius: 12px;
  background: white;
}

.bulk-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s;
}
.bulk-card-row:last-child { border-bottom: none; }
.bulk-card-row:hover { background: #fafbff; }

.bulk-card-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.bulk-card-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--berry-600);
  cursor: pointer;
}

.bulk-card-thumb {
  width: 38px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f5f5f5;
}

.bulk-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bulk-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulk-card-set {
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
}

.bulk-price-col {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.bulk-price-symbol {
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-600);
}
.bulk-price-input {
  width: 72px;
  padding: 6px 8px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  outline: none;
  text-align: right;
  transition: border-color 0.15s;
}
.bulk-price-input:focus { border-color: var(--berry-600); }

/* ===== CSV Import Preview ===== */
.import-notice {
  background: #fffbeb;
  border: 1.5px solid var(--amber-500);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.import-notice i { color: #f59e0b; font-size: 16px; flex-shrink: 0; }

.import-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1.5px solid #f0f0f0;
  border-radius: 12px;
}
.import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.import-table thead tr {
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1;
}
.import-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid #f0f0f0;
}
.import-table td {
  padding: 9px 12px;
  color: #333;
  border-bottom: 1px solid #f8f8f8;
}
.import-table tr:last-child td { border-bottom: none; }
.import-table .row-even { background: #fafcff; }
.import-cat-badge {
  background: var(--parchment-300);
  color: var(--bark-700);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== Loading Overlay ===== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  backdrop-filter: blur(2px);
}
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.loading-ball {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 4px solid #333;
  position: relative;
  animation: spin 0.8s linear infinite;
}
.loading-ball::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: var(--berry-600);
  border-radius: 50% 50% 0 0;
  border-bottom: 4px solid #333;
}
.loading-ball::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  border: 3px solid #333;
}
.loading-box p {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #555;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--pine-900);
  color: white;
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(20, 43, 29, 0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  header { padding: 12px 16px; }
  .logo { font-size: 20px; }
  .content { padding: 16px; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .detail-view { padding: 14px; }
  .modal { padding: 20px; }
}
