* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111; color: #e0e0e0; min-height: 100vh;
}

/* ========== HEADER ========== */
header {
  background: rgba(13,13,13,.95); backdrop-filter: blur(12px);
  color: #fff; padding: 0 2rem; position: sticky; top: 0;
  z-index: 100; border-bottom: 1px solid rgba(255,107,0,.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; height: 64px;
}
header h1 {
  font-family: 'Poppins', sans-serif; font-size: 1.6rem;
  font-weight: 800; color: #ff6b00; letter-spacing: -.5px;
}
header h1 span { font-weight: 300; color: #fff; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.cart-btn {
  background: linear-gradient(135deg, #ff6b00, #e65100);
  color: #fff; border: none; padding: 0.5rem 1.2rem;
  border-radius: 25px; cursor: pointer; font-weight: 600;
  font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
  transition: all .3s; box-shadow: 0 2px 12px rgba(255,107,0,.3);
  position: relative;
}
.cart-btn:hover {
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,0,.45);
}
.cart-btn:active { transform: translateY(0); }
.cart-count {
  background: #fff; color: #e65100; border-radius: 50%;
  padding: 0 6px; font-size: 0.7rem; min-width: 20px; height: 20px;
  text-align: center; font-weight: 800; line-height: 20px;
  transition: transform .2s;
}

/* ========== HERO ========== */
.hero {
  position: relative; overflow: hidden; padding: 4rem 2rem 3rem;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,107,0,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255,107,0,.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero-content p { color: #999; font-size: 1.1rem; margin-bottom: 2rem; }

.hero-title {
  font-family: 'Poppins', sans-serif; font-size: 3.5rem;
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: .6rem;
  letter-spacing: -1px;
}
.hero-title span { font-weight: 300; color: #ff6b00; }

.search-box {
  position: relative; max-width: 480px; margin: 0 auto;
}
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #666; pointer-events: none;
}
#searchInput {
  width: 100%; padding: .9rem 1rem .9rem 48px;
  border: 2px solid #333; border-radius: 14px; font-size: 1rem;
  background: #1a1a1a; color: #e0e0e0; outline: none;
  transition: border-color .3s, box-shadow .3s;
  font-family: 'Inter', sans-serif;
}
#searchInput:focus {
  border-color: #ff6b00; box-shadow: 0 0 0 4px rgba(255,107,0,.15);
}
#searchInput::placeholder { color: #555; }

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem 3rem; }

/* ========== CATEGORIES ========== */
.categories {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
  justify-content: center;
}
.categories button {
  background: #1a1a1a; color: #999;
  border: 1.5px solid #2a2a2a; padding: .55rem 1.3rem;
  border-radius: 100px; cursor: pointer; font-weight: 500;
  font-size: .85rem; transition: all .25s; font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
}
.categories button::before {
  content: ''; position: absolute; inset: 0; border-radius: 100px;
  background: linear-gradient(135deg, #ff6b00, #e65100); opacity: 0;
  transition: opacity .25s; z-index: 0;
}
.categories button:hover { border-color: #ff6b00; color: #fff; }
.categories button:hover::before { opacity: 1; }
.categories button.active {
  border-color: #ff6b00; color: #fff; font-weight: 600;
}
.categories button.active::before { opacity: 1; }
.categories button span { position: relative; z-index: 1; }

/* ========== PRODUCT GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: #1a1a1a; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: all .4s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  border: 1px solid #222; opacity: 0; animation: cardIn .5s forwards;
  position: relative;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.product-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.5);
  border-color: rgba(255,107,0,.3);
}
.product-card .img-wrap {
  position: relative; overflow: hidden; height: 200px; background: #222;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .img-wrap .cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  color: #fff; font-size: .7rem; font-weight: 600; padding: .25rem .7rem;
  border-radius: 100px; text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.1);
}
.product-card .info {
  padding: 1.2rem 1.2rem 1.2rem; flex: 1;
  display: flex; flex-direction: column;
}
.product-card .info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; margin-bottom: .35rem; color: #fff;
  font-weight: 600; line-height: 1.3;
}
.product-card .info .desc {
  color: #777; font-size: .82rem; margin-bottom: .6rem;
  flex: 1; line-height: 1.5;
}
.product-card .info .price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: .5rem;
}
.product-card .info .price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: #ff6b00;
}
.product-card .info .price .currency { font-size: .85rem; font-weight: 600; }
.product-card .info button {
  background: linear-gradient(135deg, #ff6b00, #e65100);
  color: #fff; border: none; padding: .55rem 1rem; border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: .82rem; transition: all .25s;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.product-card .info button:hover {
  transform: scale(1.04); box-shadow: 0 4px 16px rgba(255,107,0,.35);
}
.product-card .info button:active { transform: scale(.96); }

/* ========== SKELETON ========== */
.skeleton-card {
  background: #1a1a1a; border-radius: 16px; height: 340px;
  border: 1px solid #222; position: relative; overflow: hidden;
}
.skeleton-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent);
  transform: translateX(-100%); animation: skeleton 1.6s infinite;
}
@keyframes skeleton { 100% { transform: translateX(100%); } }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #ff6b00; color: #fff; padding: .75rem 1.5rem;
  border-radius: 12px; font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 24px rgba(255,107,0,.4);
  z-index: 300; opacity: 0; transition: all .4s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid #222; padding: 2rem;
  background: #0d0d0d;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-left p { color: #666; font-size: .9rem; }
.footer-left strong { color: #ff6b00; }
.footer-small { font-size: .8rem; margin-top: .3rem; color: #444; }
.footer-right {
  display: flex; align-items: center; gap: 8px; color: #666; font-size: .9rem;
  flex-shrink: 0;
}
.footer-right svg { flex-shrink: 0; color: #ff6b00; }

/* ========== MODAL (CARRITO) ========== */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); z-index: 200;
  justify-content: center; align-items: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-overlay.show .modal {
  animation: modalIn .35s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal {
  background: #1a1a1a; border-radius: 20px; width: 92%; max-width: 500px;
  max-height: 80vh; overflow-y: auto; padding: 2rem; position: relative;
  border: 1px solid #2a2a2a; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.modal h2 { font-family: 'Poppins', sans-serif; margin-bottom: 1.5rem; color: #ff6b00; font-size: 1.4rem; }
.modal .close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: #555; transition: color .2s;
  line-height: 1; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal .close:hover { color: #fff; background: #2a2a2a; }
.cart-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid #222; animation: cartItemIn .3s forwards;
}
@keyframes cartItemIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.cart-item img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px;
  background: #222; flex-shrink: 0;
}
.cart-item .item-info { flex: 1; min-width: 0; }
.cart-item .item-info h4 {
  font-size: .9rem; color: #fff; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item .item-info .item-price { color: #ff6b00; font-weight: 600; font-size: .85rem; margin-top: 2px; }
.cart-item .qty-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-item .qty-controls button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #333;
  background: #222; cursor: pointer; font-weight: 700; font-size: 1rem;
  line-height: 1; color: #fff; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.cart-item .qty-controls button:hover { background: #333; border-color: #ff6b00; }
.qty-controls .qty-input {
  width: 48px; height: 30px; border: 1px solid #333; border-radius: 6px;
  background: #222; color: #fff; text-align: center; font-weight: 600;
  font-size: .85rem; outline: none; font-family: 'Inter', sans-serif;
  -moz-appearance: textfield;
}
.qty-controls .qty-input::-webkit-outer-spin-button,
.qty-controls .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-controls .qty-input:focus { border-color: #ff6b00; }
.cart-item .qty-controls span {
  min-width: 22px; text-align: center; color: #fff; font-weight: 600; font-size: .95rem;
}
.cart-item .remove {
  color: #555; cursor: pointer; font-size: 1.4rem; background: none;
  border: none; transition: color .2s; flex-shrink: 0; margin-left: 4px;
  width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.cart-item .remove:hover { color: #ff4444; background: rgba(255,68,68,.1); }
.cart-summary { margin-top: 1.2rem; }

.delivery-section {
  background: #151515; border-radius: 12px; padding: 1rem;
  margin-bottom: 1rem; border: 1px solid #222;
}
.delivery-title {
  font-size: .85rem; font-weight: 600; color: #ccc;
  margin-bottom: .75rem;
}
.delivery-option {
  display: flex; align-items: center; gap: 10px;
  padding: .65rem .8rem; border-radius: 10px;
  cursor: pointer; transition: all .2s; border: 1.5px solid #222;
  margin-bottom: 6px;
}
.delivery-option:hover { border-color: #333; background: #1a1a1a; }
.delivery-option.selected {
  border-color: #ff6b00; background: rgba(255,107,0,.08);
}
.delivery-option input[type="radio"] {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #444; flex-shrink: 0;
  transition: all .2s; position: relative; cursor: pointer;
}
.delivery-option input[type="radio"]:checked {
  border-color: #ff6b00; background: #ff6b00;
  box-shadow: inset 0 0 0 4px #151515;
}
.delivery-option .do-label {
  font-size: .88rem; font-weight: 600; color: #e0e0e0; flex: 1;
}
.delivery-option .do-addr {
  font-size: .75rem; color: #666;
}
.delivery-address-box {
  margin-top: 8px; animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.delivery-address-box textarea {
  width: 100%; padding: .7rem; border: 1.5px solid #333;
  border-radius: 10px; font-size: .88rem; background: #1a1a1a;
  color: #e0e0e0; outline: none; resize: vertical; min-height: 60px;
  font-family: 'Inter', sans-serif;
}
.delivery-address-box textarea:focus {
  border-color: #ff6b00;
}
.delivery-address-box textarea::placeholder { color: #555; }

.cart-grand-total {
  text-align: right; font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600; color: #999;
}
.cart-grand-total span { color: #ff6b00; }
.cart-final-total {
  font-size: 1.3rem; font-weight: 700; color: #fff; margin-top: 4px;
}
.cart-final-total span { color: #ff6b00; }
.delivery-fee-notice {
  background: rgba(255,107,0,.1); border: 1px solid rgba(255,107,0,.25);
  border-radius: 8px; padding: .5rem .7rem; margin-top: 8px;
  font-size: .82rem; color: #ff6b00; animation: fadeIn .25s;
}
.delivery-fee-notice strong { color: #fff; }
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #25d366; color: #fff; border: none;
  padding: 1rem; border-radius: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 1rem; transition: all .25s;
  font-family: 'Inter', sans-serif;
}
.whatsapp-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,.35);
}
.whatsapp-btn:active { transform: translateY(0); }
.whatsapp-btn:disabled {
  background: #444; color: #999; cursor: not-allowed; transform: none; box-shadow: none;
}
.min-purchase-notice {
  background: rgba(214,40,40,.12); border: 1px solid rgba(214,40,40,.35);
  border-radius: 8px; padding: .6rem .8rem; margin-top: 10px;
  font-size: .85rem; color: #ff6b6b; font-weight: 600; text-align: center;
  animation: fadeIn .25s;
}
.empty-cart { text-align: center; padding: 2.5rem; color: #555; font-size: .95rem; }

/* Delivery cost calc */
.calc-envio-btn {
  width: 100%; margin-top: 8px; padding: .55rem; border: 1px solid #444;
  border-radius: 8px; background: #222; color: #ccc; cursor: pointer;
  font-size: .82rem; font-weight: 600; transition: all .2s;
  font-family: 'Inter', sans-serif; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.calc-envio-btn:hover { border-color: #ff6b00; color: #ff6b00; }
.calc-envio-btn:disabled { opacity: .6; cursor: not-allowed; }
.calc-spinner {
  width: 14px; height: 14px; border: 2px solid #333;
  border-top-color: #ff6b00; border-radius: 50%;
  display: inline-block; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.calc-error {
  margin-top: 6px; color: #d62828; font-size: .78rem; animation: fadeIn .25s;
}
.delivery-fee-pending {
  background: rgba(255,107,0,.05); border-color: rgba(255,107,0,.1); color: #666;
}

/* ========== ZONAS DE REPARTO ========== */
.zones-section {
  padding: 2.5rem 1rem; background: #0d0d0d;
  border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
}
.zones-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.zones-inner h3 {
  font-family: 'Poppins', sans-serif; color: #ff6b00; margin-bottom: 1rem;
  font-size: 1.1rem;
}
.zones-tags { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.zone-tag {
  background: #1a1a1a; color: #ccc; padding: .4rem 1.2rem;
  border-radius: 100px; font-size: .85rem; font-weight: 500;
  border: 1px solid #2a2a2a;
}
.zones-info { color: #555; font-size: .8rem; max-width: 500px; margin: 0 auto; }
.zones-info strong { color: #ff6b00; }
.delivery-map {
  width: 100%; max-width: 560px; height: 340px;
  margin: 1rem auto; border-radius: 14px;
  border: 1px solid #222; overflow: hidden;
  position: relative; z-index: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.zones-note {
  color: #888; font-size: .8rem; max-width: 560px;
  margin: .8rem auto 0; line-height: 1.5;
}
.zones-note strong { color: #ccc; }
.zones-note span { color: #e05a5a; }
.zones-legend {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  margin: .9rem auto .2rem; font-size: .78rem; color: #bbb;
}
.zones-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zones-legend .swatch {
  width: 14px; height: 14px; border-radius: 3px; display: inline-block;
  border: 1px solid rgba(255,255,255,.25);
}
.swatch-zone { background: rgba(255,107,0,.5); }
.swatch-no { background: rgba(224,90,90,.6); }
.zone-street-label {
  background: rgba(255,255,255,.9); color: #222; font: 600 11px 'Inter',sans-serif;
  padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2);
  white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
}
.store-pin {
  width: 18px; height: 18px; background: #ff6b00;
  border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.no-zone-pin {
  width: 12px; height: 12px; background: #e05a5a;
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,.45);
}

/* Vaciar carrito */
.clear-cart-wrap { text-align: center; margin-top: .8rem; }
.clear-cart-btn {
  background: none; border: 1px solid #333; color: #888; padding: .4rem 1rem;
  border-radius: 8px; cursor: pointer; font-size: .8rem; font-weight: 500;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.clear-cart-btn:hover { border-color: #d62828; color: #d62828; }

/* ========== CONFIRMACIÓN ========== */
.confirm-modal { max-width: 440px; }
.confirm-items { margin-bottom: .5rem; }
.confirm-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; font-size: .9rem;
}
.confirm-item-name { color: #ccc; }
.confirm-item-name small { color: #ff6b00; font-weight: 600; margin-left: 4px; }
.confirm-item-price { color: #fff; font-weight: 600; }
.confirm-divider { height: 1px; background: #222; margin: .5rem 0; }
.confirm-line { font-size: .85rem; color: #999; padding: .2rem 0; }
.confirm-addr { color: #ccc; font-size: .9rem; padding-left: .5rem; }
.confirm-fee { color: #ff6b00; font-size: .85rem; }
.confirm-total {
  text-align: right; font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: #fff;
}
.confirm-total span { color: #ff6b00; }
.confirm-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.confirm-actions .whatsapp-btn { margin-top: 0; }
.confirm-cancel {
  background: none; border: 1px solid #333; color: #888; padding: .7rem;
  border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: all .2s; font-family: 'Inter', sans-serif; text-align: center;
}
.confirm-cancel:hover { border-color: #555; color: #ccc; }

/* ========== ADMIN ========== */
.admin-link {
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem;
  margin-left: 1rem; transition: .2s;
}
.admin-link:hover { color: #ff6b00; }
.admin-panel { padding: 2rem; max-width: 1000px; margin: 0 auto; }
.admin-panel h2 { margin-bottom: 1rem; color: #ff6b00; }
.admin-section { background: #1a1a1a; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; border: 1px solid #222; }
.admin-section h3 { color: #ff6b00; margin-bottom: 1rem; font-family: 'Poppins', sans-serif; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .full { grid-column: span 2; }
.admin-form label { font-weight: 600; font-size: .9rem; color: #ccc; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: .6rem; border: 1px solid #333; border-radius: 8px;
  font-size: .9rem; background: #111; color: #e0e0e0; outline: none;
  font-family: 'Inter', sans-serif;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  border-color: #ff6b00;
}
.admin-form textarea { resize: vertical; min-height: 60px; }
.admin-form button {
  grid-column: span 2; background: #ff6b00; color: #fff; border: none;
  padding: .8rem; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 1rem; font-family: 'Inter', sans-serif;
}
.admin-form button:hover { background: #e65100; }
.admin-form .cancel-btn { background: #555; }
.admin-form .cancel-btn:hover { background: #444; }
.admin-table { width: 100%; border-collapse: collapse; background: #1a1a1a; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { padding: .8rem; text-align: left; border-bottom: 1px solid #222; }
.admin-table th { background: #0d0d0d; color: #ff6b00; font-size: .85rem; font-weight: 600; }
.admin-table td { color: #ccc; font-size: .9rem; }
.admin-table td img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; background: #222; }
.admin-table .actions { display: flex; gap: 6px; }
.admin-table .actions button {
  padding: .3rem .8rem; border: none; border-radius: 6px; cursor: pointer;
  font-size: .8rem; font-weight: 600; font-family: 'Inter', sans-serif;
}
.admin-table .edit-btn { background: #ff6b00; color: #fff; }
.admin-table .delete-btn { background: #d62828; color: #fff; }
.admin-table .toggle-btn { background: #555; color: #fff; }
.admin-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ff6b00; cursor: pointer; }
.admin-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.admin-toolbar input[type="search"] {
  flex: 1 1 220px; padding: .55rem .8rem; border: 1px solid #333; border-radius: 8px;
  font-size: .9rem; background: #111; color: #e0e0e0; font-family: 'Inter', sans-serif;
}
.admin-toolbar select {
  padding: .55rem .8rem; border: 1px solid #333; border-radius: 8px;
  font-size: .9rem; background: #111; color: #e0e0e0; font-family: 'Inter', sans-serif; cursor: pointer;
}
.admin-toolbar input:focus, .admin-toolbar select:focus { border-color: #ff6b00; }
.bulk-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bulk-bar #selectedCount { color: #ff6b00; font-weight: 600; }
.bulk-delete {
  background: #d62828; color: #fff; border: none; padding: .5rem 1rem;
  border-radius: 8px; cursor: pointer; font-weight: 600; font-family: 'Inter', sans-serif;
  font-size: .85rem;
}
.bulk-delete:hover { background: #a71d1d; }
.bulk-delete:disabled { background: #444; color: #888; cursor: not-allowed; }
.back-link { display: inline-block; margin-bottom: 1rem; color: #ff6b00; text-decoration: none; font-weight: 600; }
.back-link:hover { color: #e65100; }
.cat-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.cat-tag {
  display: flex; align-items: center; gap: 6px; background: #222;
  padding: .4rem .8rem; border-radius: 20px; font-size: .85rem; color: #ccc;
  border: 1px solid #333;
}
.cat-tag .cat-del {
  background: none; border: none; color: #d62828; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0 2px;
}
.cat-tag .cat-del:hover { color: #ff4444; }
.cat-tag .cat-edit {
  background: none; border: none; color: #ff6b00; cursor: pointer;
  font-size: .85rem; line-height: 1; padding: 0 2px;
}
.cat-tag .cat-edit:hover { color: #e65100; }
.cat-form { display: flex; gap: .5rem; }
.cat-form input {
  flex: 1; padding: .5rem; border: 1px solid #333; border-radius: 8px;
  font-size: .9rem; background: #111; color: #e0e0e0;
  font-family: 'Inter', sans-serif;
}
.cat-form button {
  background: #ff6b00; color: #fff; border: none; padding: .5rem 1rem;
  border-radius: 8px; cursor: pointer; font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.image-preview {
  position: relative; display: inline-block; border-radius: 10px;
  overflow: hidden; border: 1px solid #333;
}
.image-preview img { max-width: 160px; max-height: 100px; display: block; }
.image-remove {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(0,0,0,.7); color: #fff;
  border: none; font-size: 1.1rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.image-remove:hover { background: #d62828; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero { padding: 2.5rem 1.2rem 2rem; }
  .hero-content p { font-size: .95rem; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .full,
  .admin-form button { grid-column: span 1; }
  header h1 { font-size: 1.3rem; }
  .header-inner { height: 56px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .product-card .img-wrap { height: 130px; }
  .product-card .info { padding: .7rem; }
  .product-card .info h3 { font-size: .85rem; }
  .product-card .info .desc { font-size: .75rem; }
  .product-card .info .price { font-size: 1rem; }
  .product-card .info button { font-size: .7rem; padding: .4rem .6rem; }
  .product-card .info button svg { width: 14px; height: 14px; }
  .categories { justify-content: flex-start; gap: .4rem; }
  .categories button { font-size: .75rem; padding: .35rem .8rem; }
  #searchInput { font-size: .9rem; padding: .75rem 1rem .75rem 42px; }
  .modal { padding: 1.5rem; }
  .delivery-option { padding: .5rem .7rem; }
  .delivery-option .do-label { font-size: .82rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: .8rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .product-card .img-wrap { height: 110px; }
  .product-card .info { padding: .5rem; }
  .product-card .info h3 { font-size: .78rem; }
  .product-card .info .price { font-size: .9rem; }
  .product-card .info button { font-size: .65rem; padding: .35rem .5rem; }
  .product-card .info .desc { display: none; }
  .categories button { font-size: .7rem; padding: .3rem .7rem; }
}
