:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --card: #ffffff;
  --primary: #BFCC5A;
  --primary-fg: #1a1a1a;
  --secondary: #f0f0d8;
  --muted: #f0f0f0;
  --muted-fg: #737373;
  --border: #e5e5e5;
  --destructive: #dc2626;
  --destructive-fg: #ffffff;
  --radius: 0.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.text-muted { color: var(--muted-fg); }
.text-center { text-align: center; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.logo-text {
  display: block;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 120px;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-fg);
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 2.25rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  transition: all 0.15s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191, 204, 90, 0.15);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-fg);
  padding: 2px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 50;
  display: none;
}

.search-suggestions.active { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.suggestion-item:hover { background: var(--muted); }

.suggestion-img {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--muted);
}

.suggestion-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-price { color: var(--primary); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.icon-btn:hover { opacity: 0.7; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.cart-btn:hover { opacity: 0.7; }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.burger-wrap { position: relative; }

.burger-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  z-index: 50;
  padding: 0.25rem 0;
}

.burger-link {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.burger-link:hover { background: var(--muted); }

.desktop-only {}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .header-inner { height: 56px; padding: 0 1rem; }
}

/* ===== MAIN LAYOUT ===== */
.main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-wide {
  max-width: 72rem;
}

/* ===== MAIN BLOCK ===== */
.main-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.main-block-content {
  flex: 1;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 120px;
}

.main-block-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.main-block-content p { color: var(--muted-fg); font-size: 0.875rem; }

.delivery-info {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delivery-info-icon { color: var(--muted-fg); }
.delivery-info p { font-size: 0.875rem; line-height: 1.4; }

/* ===== SLIDER ===== */
.slider-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }

.slider-wrapper { position: relative; }

.slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar { display: none; }

.slider-card { width: 220px; flex-shrink: 0; }

.slider-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 10;
  transition: background 0.15s;
}

.slider-arrow:hover { background: var(--muted); }

/* ===== CATEGORY SWITCHER ===== */
.category-switcher {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cat-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}

.cat-btn:hover { opacity: 0.7; }

.cat-btn.active {
  background: var(--muted);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.15s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(191,204,90,0.3);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  height: 176px;
}

.product-img-wrap.compact { height: 112px; }

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

.product-flag {
  position: absolute;
  top: 0;
  left: 0;
  background: #fecaca;
  border-radius: 0 0 0.75rem 0;
  max-width: 65%;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.combo-eye {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 0.375rem;
  border: none;
  cursor: pointer;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.5rem 0.625rem 0.75rem;
}

.product-name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-weight {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.price-btn-anchor { display: inline-flex; }

.price-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}

.price-btn:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.price-counter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.price-counter span {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.counter-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.counter-btn:hover { background: rgba(191,204,90,0.2); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover { background: var(--muted); }

.page-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.page-dots {
  padding: 0 4px;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.info-text {
  font-size: 0.75rem;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ===== CART ===== */
.page-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.back-btn {
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
  display: flex;
  transition: opacity 0.15s;
}

.back-btn:hover { opacity: 0.7; }

.cart-layout {
  display: flex;
  gap: 1.5rem;
}

.cart-main { flex: 1; min-width: 0; }

.cart-sidebar {
  width: 280px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .cart-layout { flex-direction: column; }
  .cart-sidebar { width: 100%; }
}

/* ===== CART CARD ===== */
.cart-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.cart-card-row {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-card-images {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cart-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--muted);
  overflow: hidden;
  border: 2px solid var(--bg);
  flex-shrink: 0;
  position: relative;
}

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

.cart-card-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-card-qty {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.cart-card-total {
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-card-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  font-size: 0.875rem;
  color: var(--muted-fg);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.cart-card-toggle:hover { color: var(--fg); background: var(--muted); }

.cart-card-toggle svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cart-card-items {
  border-top: 1px solid var(--border);
}

.cart-card-items:not(.open) { display: none; }

.cart-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-card-item:last-child { border-bottom: none; }

.cart-card-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--muted);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-card-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-card-item-info {
  flex: 1;
  min-width: 0;
}

.cart-card-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-card-item-weight {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.cart-card-item-right {
  text-align: right;
  flex-shrink: 0;
}

.cart-card-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-card-counter {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.cart-card-counter button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--muted);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.cart-card-counter button:hover { background: var(--primary); color: var(--primary-fg); }

.cart-card-counter span {
  min-width: 28px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.cart-warning {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.cart-summary-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.cart-address-warning {
  font-size: 0.75rem;
  color: var(--muted-fg);
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

/* ===== SUMMARY BLOCK ===== */
.summary-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.summary-row.muted { color: var(--muted-fg); }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.checkout-btn {
  margin-top: 0.75rem;
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s;
}

.checkout-btn:hover { opacity: 0.9; }
.checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== CART SIDE PANEL ===== */
.cart-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cart-panel-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-panel-header h2 { font-size: 1.125rem; font-weight: 700; }
.cart-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-panel-clear {
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.cart-panel-clear:hover { color: var(--destructive); }
.cart-panel-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-panel-close:hover { background: var(--border); }

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.cart-panel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-panel-item:last-child { border-bottom: none; }

.cart-panel-item-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--muted);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-panel-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-panel-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.cart-panel-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-panel-item-weight {
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.cart-panel-item-price {
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-panel-counter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary);
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}
.cart-panel-counter button {
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-fg);
  opacity: 0.7;
  transition: opacity 0.15s;
}
.cart-panel-counter button:hover { opacity: 1; }
.cart-panel-counter span {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-fg);
}

/* ===== DELIVERY / CHECKOUT ===== */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) { .delivery-grid { grid-template-columns: 1fr; } }

.delivery-section {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.delivery-section p.label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.delivery-section .promo-row {
  display: flex;
  gap: 0.5rem;
}

.promo-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: rgba(240,240,240,0.3);
  outline: none;
}

.promo-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191,204,90,0.15);
}

.promo-apply {
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.promo-apply:hover { opacity: 0.9; }

.promo-error { color: var(--destructive); font-size: 0.75rem; margin-top: 0.5rem; }
.promo-success { color: var(--primary); font-size: 0.75rem; margin-top: 0.5rem; }

.price-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  height: fit-content;
}

.order-btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.order-btn:hover { opacity: 0.9; }
.order-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-radio {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.warning-box {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--destructive);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* ===== SIDE PANEL (Cart & Order) ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 40;
  transition: opacity 0.3s;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 90vw;
  background: white;
  border-left: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.side-panel.open { transform: translateX(0); }

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-btn {
  font-size: 0.75rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: color 0.15s;
}

.clear-btn:hover { color: var(--destructive); }

.side-items {
  flex: 1;
  overflow-y: auto;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.side-item:last-child { border-bottom: none; }

.side-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: var(--muted);
  overflow: hidden;
  flex-shrink: 0;
}

.side-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.side-item-info { flex: 1; min-width: 0; }
.side-item-name { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item-weight { font-size: 0.75rem; color: var(--muted-fg); }
.side-item-price { font-size: 0.875rem; font-weight: 600; }

.side-counter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--primary);
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.side-counter button {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.side-counter span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-fg);
  min-width: 20px;
  text-align: center;
}

.side-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

/* ===== ACCOUNT ===== */
.profile-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-weight: 600; font-size: 1rem; }
.profile-email {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 0.125rem;
  transition: color 0.15s;
}

.profile-email:hover { color: var(--fg); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.badge .label { color: var(--muted-fg); }
.badge .value { font-weight: 600; }

.pay-btn {
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.375rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pay-btn:hover { opacity: 0.9; }

/* Date filter */
.date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-filter input[type="date"] {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg);
  outline: none;
}

.date-sep { font-size: 0.875rem; color: var(--muted-fg); }

.filter-reset {
  font-size: 0.75rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: color 0.15s;
}

.filter-reset:hover { color: var(--fg); }

.period-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(240,240,240,0.3);
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
}

.period-total .text { font-size: 0.875rem; color: var(--muted-fg); }
.period-total .sum { font-size: 0.875rem; font-weight: 700; }

/* Order history */
.order-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  background: rgba(240,240,240,0.3);
}

.order-card.unpaid { background: var(--bg); }

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-card-id { font-size: 0.875rem; font-weight: 500; }

.order-status {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.order-status.muted { color: var(--muted-fg); }
.order-status.primary { color: var(--primary); }
.order-status.destructive { color: var(--destructive); }
.order-status.default { color: var(--fg); }

.order-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.order-see-all {
  font-size: 0.875rem;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.order-see-all:hover { color: var(--fg); }

.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.account-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-footer-links a, .account-footer-links button {
  font-size: 0.875rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: left;
}

.account-footer-links a:hover, .account-footer-links button:hover { opacity: 0.7; }

.logout-btn {
  font-size: 0.875rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.logout-btn:hover { color: var(--fg); }

/* ===== ADMIN ===== */
.admin-layout {
  display: flex;
  gap: 1.5rem;
  flex-direction: row;
}

@media (max-width: 768px) { .admin-layout { flex-direction: column; } }

.admin-sidebar {
  width: 192px;
  flex-shrink: 0;
}

.admin-nav {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .admin-nav { flex-direction: column; }
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}

@media (min-width: 769px) {
  .admin-tab { border-bottom: none; }
}

.admin-tab:hover { background: var(--muted); }

.admin-tab.active {
  background: var(--primary);
  color: var(--primary-fg);
}

.admin-tab-label {}

@media (max-width: 640px) { .admin-tab-label { display: none; } }

.admin-content { flex: 1; min-width: 0; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-card h3 { font-weight: 700; margin-bottom: 0.75rem; }

/* ===== ADMIN FORMS ===== */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.form-group { flex: 1; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* All inputs, selects, textareas in admin and modals */
.admin-card input[type="text"],
.admin-card input[type="email"],
.admin-card input[type="password"],
.admin-card input[type="number"],
.admin-card input[type="time"],
.admin-card input[type="date"],
.admin-card input[type="url"],
.admin-card select,
.admin-card textarea,
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body input[type="time"],
.modal-body input[type="date"],
.modal-body input[type="url"],
.modal-body select,
.modal-body textarea,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.admin-card input::placeholder,
.modal-body input::placeholder {
  color: var(--muted-fg);
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191,204,90,0.15);
}

.admin-card input:disabled,
.modal-body input:disabled,
.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-card textarea.mono,
.modal-body textarea.mono,
.form-group textarea.mono { font-family: monospace; }

/* Date inputs in action rows */
.action-row input[type="date"],
.action-row input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.action-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191,204,90,0.15);
}

/* Inline selects in table rows */
.admin-table select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.admin-table select:focus {
  border-color: var(--primary);
}

/* Modal body spacing */
.modal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-body > input,
.modal-body > select,
.modal-body > textarea {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.cancel-btn:hover { background: var(--muted); }

/* Active state for action-btn primary */
.action-btn.primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.action-btn.primary:hover { opacity: 0.9; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.save-btn:hover { opacity: 0.9; }

.action-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
}

.action-btn:hover { background: var(--muted); }

/* ===== ADMIN TABLE ===== */
.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.admin-table thead { background: var(--muted); }

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.admin-table tr:hover td { background: rgba(240,240,240,0.5); }

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.table-btn {
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-btn:hover { background: var(--muted); }
.table-btn.danger:hover { background: rgba(220,38,38,0.1); color: var(--destructive); }

.role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
}

.role-badge.admin { background: var(--primary); color: var(--primary-fg); }
.role-badge.banned { background: rgba(220,38,38,0.1); color: var(--destructive); }
.role-badge.default { background: var(--muted); }

.flag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--secondary);
}

.flag-badge.new { background: var(--primary); color: var(--primary-fg); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  padding: 32px;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 10;
}

.modal-title { font-weight: 700; font-size: 1rem; }

.modal-close {
  color: var(--muted-fg);
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: right;
  display: block;
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--fg); }

.modal-body { padding: 1.25rem 1.5rem; }

.modal-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem 1.25rem;
}

.modal-footer .save-btn { flex: 1; }

.cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
}

.cancel-btn:hover { background: var(--muted); }

/* ===== LOGIN ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  background: var(--bg);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 24rem;
  padding: 2rem;
}

.login-form { display: flex; flex-direction: column; gap: 0.75rem; }

.login-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: rgba(240,240,240,0.4);
  outline: none;
  transition: all 0.15s;
}

.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191,204,90,0.15);
}

.login-form input::placeholder { color: var(--muted-fg); }

.login-form button {
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
}

.login-form button:hover { opacity: 0.9; }

.login-error { color: var(--destructive); font-size: 0.75rem; padding-left: 0.25rem; }

/* ===== BANNED ===== */
.banned-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.banned-card { text-align: center; max-width: 24rem; }

.banned-icon {
  background: rgba(220,38,38,0.1);
  border-radius: 999px;
  padding: 1.5rem;
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.banned-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.banned-card p { color: var(--muted-fg); margin-bottom: 2rem; }

.banned-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.banned-actions a {
  display: block;
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 0.75rem;
  padding: 0.625rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.banned-actions a:hover { opacity: 0.9; }

.banned-actions .logout-link {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  color: var(--fg);
  text-align: center;
}

/* ===== 404 ===== */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
}

.not-found-card { text-align: center; }
.not-found-card h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.not-found-card p { font-size: 1.25rem; color: var(--muted-fg); margin-bottom: 1rem; }
.not-found-card a { text-decoration: underline; }

/* ===== SEARCH PAGE ===== */
.search-results { padding: 1.5rem; }

/* ===== DELIVERY RESULT ===== */
.result-card {
  background: rgba(240,240,240,0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 32rem;
  position: relative;
}

.result-card-inner {
  background: var(--bg);
  border-radius: 1rem;
  padding: 2rem;
}

.result-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  transition: color 0.15s;
}

.result-close:hover { color: var(--fg); }

.result-title {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-order-id {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 5rem 0;
  color: var(--muted-fg);
}

.empty-state p { font-weight: 500; margin-bottom: 0.25rem; }
.empty-state .sub { font-size: 0.875rem; }

.empty-state .empty-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.empty-state .empty-btn:hover { opacity: 0.9; }

/* ===== COMBO MODAL ===== */
.combo-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.3);
}

.combo-modal {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 320px;
  max-width: 90vw;
}

.combo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.combo-header span { font-weight: 600; font-size: 0.875rem; }

.combo-list {
  list-style: none;
  padding: 0.75rem 1.25rem;
}

.combo-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.375rem 0;
}

.combo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== ADDRESS EDITOR ===== */
.address-editor { position: relative; }

.address-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
  min-width: 180px;
}

.address-trigger:hover { background: var(--muted); }

.address-trigger .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }

.address-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 280px;
  padding: 0.75rem;
}

.address-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

.address-item:hover { background: var(--muted); }
.address-item.selected { background: rgba(191,204,90,0.2); }
.address-item .text { flex: 1; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-item .delete { opacity: 0; transition: opacity 0.15s; background: none; border: none; padding: 2px; cursor: pointer; }
.address-item:hover .delete { opacity: 1; }

.address-add-section {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.address-add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.address-add-btn:hover { color: var(--fg); }

.address-input-group { display: flex; flex-direction: column; gap: 0.5rem; }

.address-input {
  width: 100%;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(240,240,240,0.4);
  outline: none;
}

.address-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191,204,90,0.15);
}

.address-actions { display: flex; gap: 0.5rem; }

.address-save-btn {
  flex: 1;
  font-size: 0.875rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.address-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.address-save-btn:hover:not(:disabled) { opacity: 0.9; }

.address-cancel-btn {
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s;
}

.address-cancel-btn:hover { background: var(--muted); }

.empty-address {
  font-size: 0.875rem;
  color: var(--muted-fg);
  text-align: center;
  padding: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.15s ease;
}
