/* You can add global styles to this file, and also import other style files */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

input {
  outline: none;
  border: none;
}.app-layout {
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.app-sidebar-left {
  width: 18%;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.app-sidebar-right {
  width: 18%;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.app-content {
  flex: 1;
  min-width: 0;
}
.sidebar-inner {
  width: 90%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .app-layout { flex-direction: column; }
  .app-sidebar-left { width: 100%; position: static; }
  .app-sidebar-right { width: 100%; position: static; }
  .app-content { width: 100%; }
}.auth-page { max-width: 400px; margin: 0 auto; padding: 40px 20px 60px; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; margin-bottom: 24px; transition: opacity 0.2s; cursor: pointer; }
.back-btn:hover { opacity: 0.7; }
.auth-card { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }
.auth-header { margin-bottom: 28px; }
.auth-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.auth-header h1 { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: #888; }
.auth-providers { display: flex; flex-direction: column; gap: 12px; }
.auth-btn { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: all 0.2s; cursor: pointer; border: 1px solid #e0e0e0; background: white; color: #333; }
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.auth-btn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; flex-shrink: 0; }
.auth-yandex .auth-btn-icon { background: #fc3f1d; }
.auth-vk .auth-btn-icon { background: #4a76a8; }
.auth-google .auth-btn-icon { background: #4285f4; }
.auth-gosuslugi .auth-btn-icon { background: #1f7a1f; }
.auth-hint { font-size: 12px; color: #aaa; margin-top: 20px; }.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 0;
}
.crumb-link {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.crumb-link:hover {
  color: #e74c3c;
}
.crumb-link.active {
  color: #222;
  font-weight: 500;
  pointer-events: none;
}
.crumb-sep {
  color: #ccc;
  font-size: 16px;
  margin: 0 2px;
}.cart-page { max-width: 900px; margin: 0 auto; padding-bottom: 60px; }
.cart-page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cart-page-header h1 { font-size: 24px; font-weight: 700; color: #222; flex: 1; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; transition: opacity 0.2s; cursor: pointer; }
.back-btn:hover { opacity: 0.7; }
.clear-btn { background: none; color: #e74c3c; font-size: 14px; font-weight: 500; padding: 8px 16px; border: 1px solid #e74c3c; border-radius: 8px; transition: all 0.2s; cursor: pointer; }
.clear-btn:hover { background: #fef2f0; }
.cart-empty { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.cart-empty p { font-size: 18px; color: #666; }
.empty-hint { font-size: 14px !important; color: #aaa !important; margin-top: 8px; }
.cart-content { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.select-all-bar { padding: 12px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #333; user-select: none; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #e74c3c; }
.cart-store-group { background: white; border-radius: 12px; border: 1px solid #eee; overflow: hidden; margin-bottom: 16px; }
.store-group-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.store-group-info { display: flex; align-items: center; gap: 10px; }
.store-group-icon { width: 28px; height: 28px; border-radius: 6px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.store-group-icon img { width: 100%; height: 100%; object-fit: contain; }
.store-group-name { font-size: 15px; font-weight: 600; color: #222; }
.store-group-count { font-size: 12px; color: #999; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; align-items: center; }
.cart-item:last-child { border-bottom: none; }
.item-checkbox { flex-shrink: 0; }
.item-image { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f8f8f8; cursor: pointer; }
.item-image img { width: 100%; height: 100%; object-fit: cover; }
.item-discount-badge { position: absolute; top: 4px; left: 4px; background: #e74c3c; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.item-details { flex: 1; min-width: 0; cursor: pointer; }
.item-name { font-size: 15px; font-weight: 500; color: #222; margin-bottom: 4px; }
.item-name:hover { color: #e74c3c; }
.item-weight { font-size: 12px; color: #aaa; margin-bottom: 6px; }
.item-prices { display: flex; align-items: center; gap: 8px; }
.item-old-price { font-size: 13px; color: #aaa; text-decoration: line-through; }
.item-price { font-size: 16px; font-weight: 700; color: #e74c3c; }
.item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.item-quantity { display: flex; align-items: center; gap: 6px; background: #f5f5f5; border-radius: 20px; padding: 4px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: white; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.qty-btn:hover { background: #e74c3c; color: white; }
.qty-value { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.item-total { font-size: 16px; font-weight: 700; color: #222; }
.cart-summary { background: white; border-radius: 12px; border: 1px solid #eee; padding: 20px; position: sticky; top: 80px; }
.cart-summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: #222; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; padding: 8px 0; }
.summary-discount { color: #27ae60; }
.summary-total { font-size: 16px; font-weight: 700; color: #222; padding-top: 12px; border-top: 1px solid #eee; margin-top: 4px; }
.summary-delivery { color: #3498db; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 4px; }
.delivery-free { color: #27ae60; font-weight: 600; }
.summary-total-final { font-size: 18px; font-weight: 700; color: #222; padding-top: 8px; border-top: 1px solid #eee; }
.action-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.action-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.shopping-list-btn { background: #f0f0f0; color: #333; }
.shopping-list-btn:hover:not(:disabled) { background: #e0e0e0; }
.delivery-btn { background: #3498db; color: white; }
.delivery-btn:hover:not(:disabled) { background: #2980b9; }
.checkout-btn { background: #e74c3c; color: white; }
.checkout-btn:hover:not(:disabled) { background: #c0392b; }
.delivery-info { margin-top: 12px; text-align: center; }
.delivery-hint { font-size: 12px; color: #e67e22; }
@media (max-width: 768px) { .cart-content { grid-template-columns: 1fr; } }.cart-sidebar { background: white; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.cart-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 18px; font-weight: 600; }
.clear-link { background: none; color: #e74c3c; font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.2s; }
.clear-link:hover { background: #fef2f0; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { text-align: center; padding: 40px 0; }
.empty-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.cart-empty p { font-size: 14px; color: #666; }
.empty-hint { font-size: 12px !important; color: #aaa !important; margin-top: 6px; }
.cart-store-group { margin-bottom: 8px; }
.cart-store-group:last-child { margin-bottom: 0; }
.store-group-header { padding: 6px 0 4px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px; }
.store-group-name { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.2s; }
.cart-item:hover { background: #fafafa; }
.cart-item:last-child { border-bottom: none; }
.item-image { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f8f8f8; }
.item-image img { width: 100%; height: 100%; object-fit: cover; }
.item-discount-badge { position: absolute; top: 3px; left: 3px; background: #e74c3c; color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.item-details { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-name { font-size: 13px; font-weight: 500; color: #222; line-height: 1.3; }
.item-weight { font-size: 11px; color: #aaa; }
.item-prices { display: flex; align-items: center; gap: 6px; }
.item-old-price { font-size: 12px; color: #aaa; text-decoration: line-through; }
.item-price { font-size: 14px; font-weight: 700; color: #e74c3c; }
.item-quantity { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; background: #f5f5f5; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; cursor: pointer; }
.qty-btn:hover { background: #e0e0e0; }
.qty-value { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }
.cart-footer { padding: 16px 20px; border-top: 1px solid #eee; }
.cart-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; }
.summary-discount { color: #27ae60; }
.summary-total { font-size: 16px; font-weight: 700; color: #222; padding-top: 8px; border-top: 1px solid #eee; }
.checkout-btn { width: 100%; background: #e74c3c; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.2s; cursor: pointer; }
.checkout-btn:hover { background: #c0392b; }.category-filter { margin-bottom: 24px; }
.filter-buttons { display: flex; gap: 12px; margin-bottom: 16px; }
.filter-btn { padding: 10px 24px; border-radius: 20px; background: white; color: #666; font-size: 14px; font-weight: 500; border: 1px solid #e0e0e0; transition: all 0.2s; cursor: pointer; font-family: 'Roboto', sans-serif; }
.filter-btn:hover { background: #fef2f0; border-color: #e74c3c; color: #e74c3c; }
.filter-btn.active { background: #e74c3c; color: white; border-color: #e74c3c; }
.filter-toggle-btn { display: flex; align-items: center; gap: 6px; }
.filter-icon { font-size: 14px; }
.filter-indicator { font-size: 8px; color: #ccc; transition: color 0.2s; }
.filter-indicator.active { color: #e74c3c; }
.category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.category-card { display: flex; align-items: center; gap: 14px; background: white; border-radius: 12px; padding: 14px; border: 1px solid #eee; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.category-card:hover { border-color: #e74c3c; box-shadow: 0 4px 12px rgba(231,76,60,0.1); transform: translateY(-2px); }
.category-card-image { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f8f8f8; }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card-info { display: flex; flex-direction: column; gap: 4px; }
.category-card-name { font-size: 14px; font-weight: 600; color: #222; }
.category-card-count { font-size: 12px; color: #999; }
.promotion-section { display: flex; align-items: center; gap: 10px; padding-top: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.promotion-label { font-size: 13px; color: #888; white-space: nowrap; }
.promotion-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid #e0e0e0; background: white; color: #666; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Roboto', sans-serif; }
.promotion-btn:hover { opacity: 0.8; }
.promotion-btn.active { color: white; border-color: transparent; }
.promotion-btn--no-discount { }
.promotion-btn--no-discount.active { background: #e74c3c; color: white; border-color: #e74c3c; }
.promotion-btn--no-discount:hover:not(.active) { background: #fff5f5; border-color: #e74c3c; color: #e74c3c; }
.promotion-btn--future { }
.promotion-btn--future.active { background: #f0c040; color: white; border-color: #f0c040; }
.promotion-btn--future:hover:not(.active) { background: #fffbe6; border-color: #f0c040; color: #b8960f; }
.promotion-btn--current { }
.promotion-btn--current.active { background: #4caf50; color: white; border-color: #4caf50; }
.promotion-btn--current:hover:not(.active) { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.promotion-btn--ended { }
.promotion-btn--ended.active { background: #f44336; color: white; border-color: #f44336; }
.promotion-btn--ended:hover:not(.active) { background: #ffebee; border-color: #f44336; color: #c62828; }
.promotion-clear { background: none; border: none; color: #999; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 50%; transition: all 0.2s; line-height: 1; }
.promotion-clear:hover { background: #f0f0f0; color: #333; }
.sort-section { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.sort-label { font-size: 13px; color: #888; white-space: nowrap; }
.sort-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid #e0e0e0; background: white; color: #666; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Roboto', sans-serif; display: flex; align-items: center; gap: 4px; }
.sort-btn:hover { background: #fef2f0; border-color: #e74c3c; color: #e74c3c; }
.sort-btn.active { background: #e74c3c; color: white; border-color: #e74c3c; }
.sort-icon { font-size: 14px; }.contact-page { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.contact-page h1 { font-size: 28px; color: #222; margin-bottom: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.contact-card { background: white; border-radius: 12px; padding: 24px; border: 1px solid #eee; transition: box-shadow 0.2s; }
.contact-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.contact-icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; color: #222; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #555; margin: 4px 0; }
.contact-hint { font-size: 12px !important; color: #999 !important; }.add-card-page { max-width: 600px; margin: 0 auto; padding: 20px; }
.back-btn { background: none; border: none; color: #4caf50; font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 24px; }
.back-btn:hover { text-decoration: underline; }
.add-card-page h1 { margin: 0 0 24px; font-size: 24px; color: #222; }
.card-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: #444; }
.form-group input, .form-group textarea { padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #4caf50; }
.form-group textarea { resize: vertical; min-height: 60px; }
.store-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.store-chip { background: #f0f0f0; padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.store-chip:hover { background: #e0e0e0; }
.store-chip.selected { background: #4caf50; color: white; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.cancel-btn { background: none; border: 1px solid #ddd; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; color: #666; }
.cancel-btn:hover { background: #f5f5f5; }
.save-btn { background: #4caf50; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.save-btn:hover:not(:disabled) { background: #43a047; }
.save-btn:disabled { background: #ccc; cursor: not-allowed; }.card-detail-page { max-width: 600px; margin: 0 auto; padding: 20px; }
.back-btn { background: none; border: none; color: #4caf50; font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 24px; }
.back-btn:hover { text-decoration: underline; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 12px; }
.card-title-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.card-title-row h1 { margin: 0; font-size: 24px; color: #222; }
.card-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: #f5f5f5; flex-shrink: 0; }
.edit-btn { background: none; border: 1px solid #4caf50; color: #4caf50; padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap; flex-shrink: 0; }
.edit-btn:hover { background: #4caf50; color: white; }
.detail-section { margin-bottom: 20px; }
.detail-section label { display: block; font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-number-display { font-size: 20px; font-family: monospace; color: #222; background: #f5f5f5; padding: 12px 16px; border-radius: 8px; letter-spacing: 2px; }
.barcode-wrapper { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; display: flex; justify-content: center; }
.barcode-wrapper canvas { max-width: 100%; height: auto; }
.qr-wrapper { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; display: flex; justify-content: center; }
.qr-wrapper canvas { max-width: 100%; height: auto; border-radius: 4px; }
.notes-text { color: #555; font-size: 14px; margin: 0; }
.date-text { color: #666; font-size: 14px; margin: 0; }
.remove-btn { background: #e53935; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; cursor: pointer; margin-top: 12px; transition: background 0.2s; }
.remove-btn:hover { background: #c62828; }
.not-found { text-align: center; padding: 60px 20px; color: #999; }
.not-found p { margin-bottom: 20px; }
.add-btn { background: #4caf50; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }.discount-cards-page { max-width: 800px; margin: 0 auto; padding: 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #222; }
.add-btn { background: #4caf50; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.add-btn:hover { background: #43a047; }
.search-wrapper { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 10px; padding: 0 14px; margin-bottom: 20px; transition: border-color 0.2s, background 0.2s; }
.search-wrapper:focus-within { border-color: #4caf50; background: #ffffff; }
.search-icon { font-size: 16px; flex-shrink: 0; }
.search-input { flex: 1; border: none; background: transparent; padding: 12px 0; font-size: 14px; outline: none; font-family: inherit; }
.search-clear { background: none; border: none; color: #999; font-size: 16px; cursor: pointer; padding: 4px; flex-shrink: 0; }
.search-clear:hover { color: #333; }
.cards-list { display: flex; flex-direction: column; gap: 12px; }
.card-item { display: flex; align-items: center; gap: 16px; background: white; border: 1px solid #e0e0e0; border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.card-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-color: #4caf50; }
.card-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: #f5f5f5; flex-shrink: 0; }
.card-qr { width: 56px; height: 56px; border-radius: 6px; border: 1px solid #eee; flex-shrink: 0; }
.card-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-shop { font-size: 16px; font-weight: 600; color: #222; }
.card-number { font-size: 14px; color: #666; font-family: monospace; }
.card-notes { font-size: 12px; color: #999; }
.remove-btn { background: none; border: none; color: #e53935; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; flex-shrink: 0; }
.remove-btn:hover { background: #ffebee; }
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state p { margin-bottom: 20px; font-size: 16px; }.filter-panel { background: white; border-radius: 12px; padding: 20px; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.filter-header { margin-bottom: 20px; }
.filter-title { font-size: 16px; font-weight: 600; color: #222; }
.filter-body { display: flex; flex-direction: column; gap: 18px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 13px; font-weight: 500; color: #555; }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-input { flex: 1; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; font-family: 'Roboto', sans-serif; outline: none; color: #333; min-width: 0; }
.filter-input:focus { border-color: #e74c3c; }
.range-sep { color: #aaa; font-size: 13px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag { display: inline-flex; align-items: center; gap: 4px; background: #fef2f0; color: #e74c3c; font-size: 12px; padding: 4px 8px; border-radius: 6px; font-weight: 500; }
.tag-remove { background: none; font-size: 10px; color: #e74c3c; padding: 0 2px; line-height: 1; }
.tag-remove:hover { color: #c0392b; }
.filter-add-row { display: flex; gap: 6px; }
.filter-add-input { flex: 1; }
.filter-add-btn { width: 32px; height: 32px; border-radius: 8px; background: #e74c3c; color: white; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.filter-add-btn:hover { background: #c0392b; }
.filter-toggle-row { display: flex; justify-content: space-between; align-items: center; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ddd; border-radius: 22px; transition: 0.3s; }
.slider:before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: #e74c3c; }
input:checked + .slider:before { transform: translateX(18px); }
.filter-footer { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.filter-btn { flex: 1; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: all 0.2s; font-family: 'Roboto', sans-serif; cursor: pointer; }
.filter-btn-reset { background: #f5f5f5; color: #666; border: 1px solid #e0e0e0; }
.filter-btn-reset:hover { background: #eee; }
.filter-btn-apply { background: #e74c3c; color: white; border: none; }
.filter-btn-apply:hover { background: #c0392b; }.header { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 12px; }
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-text { font-size: 16px; font-weight: 600; color: #e74c3c; }
.logo-link:hover .logo-text { opacity: 0.8; }
.header-divider { color: #ddd; font-size: 20px; font-weight: 300; }
.current-store-link { font-size: 15px; font-weight: 500; color: #333; cursor: pointer; text-decoration: none; border-bottom: 1px dashed #ccc; transition: color 0.2s, border-color 0.2s; }
.current-store-link:hover { color: #e74c3c; border-bottom-color: #e74c3c; }
.nav { display: flex; gap: 20px; margin-left: 20px; }
.nav-link { font-size: 14px; font-weight: 500; color: #666; padding: 8px 0; border-bottom: 2px solid transparent; transition: all 0.2s; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: #e74c3c; border-bottom-color: #e74c3c; }
.header-right { display: flex; align-items: center; gap: 16px; }
.location-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; background: none; padding: 6px 10px; border-radius: 8px; transition: background 0.2s; cursor: pointer; }
.location-btn:hover { background: #f5f5f5; }
.location-icon { font-size: 16px; }
.location-text { font-weight: 500; border-bottom: 1px dashed #aaa; }
.profile-btn { background: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; cursor: pointer; font-size: 20px; }
.profile-btn:hover { background: #f5f5f5; }
.profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-icon { font-size: 20px; }
.cart-btn { background: #e74c3c; color: white; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: background 0.2s; cursor: pointer; position: relative; }
.cart-btn:hover { background: #c0392b; }
.cart-icon { font-size: 18px; }
.cart-total { font-weight: 600; white-space: nowrap; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: #222; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.city-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 300; visibility: hidden; opacity: 0; transition: all 0.3s; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.city-overlay.open { visibility: visible; opacity: 1; }
.city-modal { background: white; border-radius: 16px; min-width: 40%; max-width: 90%; max-height: 70vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: translateY(-20px); transition: transform 0.3s; }
.city-overlay.open .city-modal { transform: translateY(0); }
.city-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #eee; }
.city-modal-header h2 { font-size: 18px; font-weight: 600; }
.city-close-btn { background: none; font-size: 20px; color: #888; padding: 4px 8px; cursor: pointer; }
.city-search-wrapper { position: relative; margin: 16px 24px; display: flex; align-items: center; border: 2px solid #e0e0e0; border-radius: 10px; transition: border-color 0.2s; }
.city-search-wrapper:focus-within { border-color: #e74c3c; }
.city-search-icon { position: absolute; left: 12px; font-size: 16px; }
.city-search-input { width: 100%; padding: 12px 36px 12px 40px; font-size: 14px; font-family: 'Roboto', sans-serif; background: transparent; border: none; outline: none; color: #333; }
.city-search-input::placeholder { color: #aaa; }
.city-search-clear { position: absolute; right: 8px; background: #f0f0f0; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; color: #888; cursor: pointer; }
.city-list { overflow-y: auto; padding: 0 24px 16px; flex: 1; }
.city-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; background: none; text-align: left; transition: background 0.2s; margin-bottom: 4px; cursor: pointer; }
.city-item:hover { background: #f5f5f5; }
.city-item.active { background: #fef2f0; }
.city-item-icon { font-size: 20px; flex-shrink: 0; }
.city-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.city-item-name { font-size: 14px; font-weight: 500; color: #222; }
.city-item-address { font-size: 12px; color: #888; }
.city-check { color: #e74c3c; font-weight: 700; font-size: 16px; }
.city-no-results { text-align: center; padding: 24px; color: #888; font-size: 14px; }
@media (max-width: 768px) { .city-modal { max-height: 80vh; } }.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f8f8;
  cursor: pointer;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.product-info {
  padding: 16px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
  cursor: pointer;
  transition: color 0.2s;
}
.product-name:hover {
  color: #e74c3c;
}
.product-description {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-weight {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}
.product-old-price {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}
.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.detail-btn {
  background: transparent;
  color: #e74c3c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e74c3c;
  transition: all 0.2s;
}
.detail-btn:hover {
  background: #fef2f0;
}
.add-btn {
  background: #e74c3c;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.15s;
}
.add-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #e74c3c;
  border-radius: 20px;
  padding: 2px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.qty-value {
  min-width: 24px;
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.promo-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}.product-detail { padding: 20px 0; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; margin-bottom: 24px; transition: opacity 0.2s; cursor: pointer; }
.back-btn:hover { opacity: 0.7; }
.detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: white; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.detail-left { display: flex; flex-direction: column; gap: 16px; }
.detail-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; border-radius: 12px; overflow: hidden; background: #f8f8f8; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-discount { position: absolute; top: 16px; left: 16px; background: #e74c3c; color: white; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; flex-shrink: 0; }
.gallery-thumb.active { border-color: #e74c3c; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 16px; }
.detail-category { font-size: 13px; color: #e74c3c; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-name { font-size: 28px; font-weight: 700; color: #222; line-height: 1.2; }
.detail-description { font-size: 15px; color: #666; line-height: 1.6; }
.detail-rating { display: flex; align-items: center; gap: 8px; }
.rating-stars { display: flex; gap: 2px; }
.star { font-size: 18px; color: #ddd; }
.star.filled { color: #f1c40f; }
.rating-text { font-size: 14px; font-weight: 600; color: #222; }
.rating-count { font-size: 13px; color: #888; }
.detail-weight { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #888; }
.detail-prices { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-price { font-size: 32px; font-weight: 700; color: #222; }
.price-separator { font-size: 24px; color: #ccc; font-weight: 300; }
.detail-old-price { font-size: 20px; color: #aaa; text-decoration: line-through; }
.detail-save { font-size: 13px; color: #27ae60; font-weight: 500; background: #e8f8f0; padding: 4px 10px; border-radius: 6px; }
.promo-badge { display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; align-self: flex-start; }
.detail-section { padding-top: 8px; border-top: 1px solid #f0f0f0; }
.section-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.section-text { font-size: 14px; color: #666; }
.ingredients-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ingredient-tag { background: #f5f5f5; color: #555; font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.detail-actions { margin-top: 8px; align-self: flex-start; }
.detail-actions .add-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #e74c3c; color: white; padding: 14px 36px; border-radius: 12px; font-size: 16px; font-weight: 600; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; cursor: pointer; box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3); }
.detail-actions .add-btn:hover { background: #c0392b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4); }
.detail-actions .quantity-selector { display: flex; align-items: center; gap: 6px; background: #e74c3c; border-radius: 14px; padding: 4px; box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3); }
.detail-actions .qty-btn { width: 40px; height: 40px; border-radius: 10px; background: transparent; color: white; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: background 0.2s; cursor: pointer; }
.detail-actions .qty-btn:hover { background: rgba(255, 255, 255, 0.2); }
.detail-actions .qty-value { min-width: 32px; text-align: center; color: white; font-size: 18px; font-weight: 700; }
.stores-toggle-btn { display: flex; align-items: center; gap: 8px; background: #f8f8f8; border: 1px solid #e0e0e0; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #444; cursor: pointer; transition: all 0.2s; align-self: flex-start; }
.stores-toggle-btn:hover { background: #f0f0f0; border-color: #ccc; }
.toggle-arrow { font-size: 10px; transition: transform 0.2s; margin-left: 4px; }
.toggle-arrow.open { transform: rotate(180deg); }
.stores-offers-list { display: flex; flex-direction: column; gap: 8px; border: 1px solid #eee; border-radius: 12px; padding: 12px; background: #fafafa; max-height: 400px; overflow-y: auto; }
.store-offer-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: white; border-radius: 10px; cursor: pointer; transition: box-shadow 0.2s, transform 0.15s; border: 1px solid #f0f0f0; }
.store-offer-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }
.offer-store-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.offer-store-icon { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.offer-store-icon img { width: 100%; height: 100%; object-fit: cover; }
.offer-store-details { display: flex; flex-direction: column; min-width: 0; }
.offer-store-name { font-size: 14px; font-weight: 600; color: #222; }
.offer-store-desc { font-size: 11px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-price-info { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.offer-prices { display: flex; align-items: center; gap: 6px; }
.offer-price { font-size: 16px; font-weight: 700; color: #222; }
.offer-old-price { font-size: 12px; color: #aaa; text-decoration: line-through; }
.offer-discount { font-size: 11px; font-weight: 700; color: #e74c3c; background: #fef2f0; padding: 2px 6px; border-radius: 4px; }
.offer-add-btn { width: 32px; height: 32px; border-radius: 50%; background: #e74c3c; color: white; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.15s; cursor: pointer; flex-shrink: 0; }
.offer-add-btn:hover { background: #c0392b; transform: scale(1.1); }
.variant-selectors { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f0; }
.variant-group { display: flex; align-items: center; gap: 10px; }
.variant-label { font-size: 13px; font-weight: 600; color: #555; min-width: 52px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-btn { padding: 6px 14px; border-radius: 8px; border: 1.5px solid #e0e0e0; background: white; font-size: 13px; font-weight: 500; color: #444; cursor: pointer; transition: all 0.2s; }
.variant-btn:hover { border-color: #e74c3c; color: #e74c3c; }
.variant-btn.active { background: #e74c3c; border-color: #e74c3c; color: white; }
.nutrition-block { background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.nutrition-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutrition-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; background: white; border-radius: 10px; border: 1px solid #f0f0f0; }
.nutrition-item-highlight { background: #fff8f0; border-color: #fce4c8; }
.nutrition-value { font-size: 20px; font-weight: 700; color: #222; line-height: 1.1; }
.nutrition-unit { font-size: 11px; color: #999; font-weight: 500; }
.nutrition-label { font-size: 11px; color: #888; font-weight: 500; }
.reviews-section { margin-top: 40px; background: white; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.reviews-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 16px; }
.reviews-rating-summary { display: flex; align-items: center; gap: 10px; padding: 16px; background: #fafafa; border-radius: 12px; margin-bottom: 24px; }
.summary-rating-stars { display: flex; gap: 2px; }
.summary-rating-text { font-size: 18px; font-weight: 700; color: #222; }
.summary-rating-count { font-size: 14px; color: #888; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-card { padding: 20px; border: 1px solid #eee; border-radius: 12px; transition: box-shadow 0.2s; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-author { flex: 1; }
.author-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #222; }
.author-link:hover .author-name { color: #e74c3c; }
.author-icon { width: 28px; height: 28px; border-radius: 50%; background: #4a76a8; color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-name { font-size: 14px; font-weight: 500; transition: color 0.2s; }
.review-rating { display: flex; gap: 1px; }
.review-rating .star { font-size: 14px; }
.review-date { font-size: 12px; color: #aaa; white-space: nowrap; }
.review-text { font-size: 14px; color: #555; line-height: 1.5; }
.review-media { margin-top: 12px; }
.review-image { max-width: 100%; max-height: 300px; border-radius: 8px; object-fit: cover; }
.review-video { width: 100%; max-width: 400px; height: 225px; border-radius: 8px; }
.not-found { text-align: center; padding: 80px 20px; }
.not-found h2 { font-size: 24px; margin-bottom: 12px; color: #333; }
.not-found p { color: #888; margin-bottom: 24px; }
@media (max-width: 768px) { .detail-content { grid-template-columns: 1fr; gap: 24px; padding: 20px; } .detail-name { font-size: 22px; } .detail-price { font-size: 26px; } .nutrition-grid { grid-template-columns: repeat(2, 1fr); } }.reviews-page { padding: 20px; max-width: 800px; margin: 0 auto; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; cursor: pointer; border: none; }
.back-btn:hover { opacity: 0.7; }
h2 { font-size: 22px; margin: 16px 0; color: #222; }
.reviews-rating-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.summary-rating { font-size: 24px; font-weight: 700; color: #222; }
.summary-count { font-size: 14px; color: #888; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: white; border-radius: 12px; padding: 16px; border: 1px solid #eee; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-author { font-weight: 600; color: #222; font-size: 14px; }
.review-stars { color: #f0c040; font-size: 14px; }
.review-date { font-size: 12px; color: #999; margin-left: auto; }
.review-text { font-size: 14px; color: #555; line-height: 1.5; }
.no-reviews { text-align: center; padding: 40px; color: #888; }.review-detail-page { padding: 20px; max-width: 800px; margin: 0 auto; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; cursor: pointer; border: none; }
.back-btn:hover { opacity: 0.7; }
h2 { font-size: 22px; margin: 16px 0; color: #222; }
.review-card { background: white; border-radius: 12px; padding: 20px; border: 1px solid #eee; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.review-author { font-weight: 600; color: #222; font-size: 14px; }
.author-link { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 6px; }
.author-link:hover { opacity: 0.7; }
.author-icon { font-size: 16px; }
.review-rating { color: #f0c040; font-size: 16px; }
.star { color: #ddd; }
.star.filled { color: #f0c040; }
.review-date { font-size: 12px; color: #999; margin-left: auto; }
.review-text { font-size: 15px; color: #555; line-height: 1.6; }
.review-media { margin-top: 16px; }
.review-image { max-width: 100%; border-radius: 8px; }
.review-video { width: 100%; height: 400px; border-radius: 8px; }
.not-found { text-align: center; padding: 60px 20px; }
.not-found h2 { font-size: 24px; color: #222; margin-bottom: 12px; }
.not-found p { color: #888; margin-bottom: 20px; }.scroll-to-top-btn {
  position: fixed;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.scroll-to-top-btn:active {
  cursor: grabbing;
}

.scroll-to-top-btn.dragging {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
  transition: none;
}.search-container { margin-bottom: 20px; }
.search-input-wrapper { position: relative; display: flex; align-items: center; background: white; border-radius: 12px; border: 2px solid #e0e0e0; transition: border-color 0.2s; }
.search-input-wrapper:focus-within { border-color: #e74c3c; }
.search-icon { position: absolute; left: 16px; font-size: 18px; }
.search-input { width: 100%; padding: 14px 44px 14px 48px; font-size: 15px; font-family: 'Roboto', sans-serif; background: transparent; border: none; outline: none; color: #333; }
.search-input::placeholder { color: #aaa; }
.search-clear { position: absolute; right: 12px; background: #f0f0f0; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; display: flex; align-items: center; justify-content: center; color: #888; transition: background 0.2s; }
.search-clear:hover { background: #e0e0e0; }.shopping-list-add {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 16px;
}

.add-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.add-header h1 {
  margin: 0;
  font-size: 22px;
}

.btn-back {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.btn-back:hover {
  background: #f5f5f5;
}

.add-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #f0f0f0;
  color: #555;
}

.btn-secondary:hover {
  background: #e0e0e0;
}.shopping-list-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-header h1 {
  margin: 0;
  font-size: 22px;
  flex: 1;
}

.btn-back {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.btn-back:hover {
  background: #f5f5f5;
}

.list-date {
  font-size: 13px;
  color: #888;
}

.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.toggle-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.selection-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.selection-summary {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #555;
}

.summary-price {
  font-weight: 600;
  color: #333;
}

.summary-weight {
  color: #888;
}

.summary-discount {
  color: #27ae60;
}

.store-group {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.store-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.store-select {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.store-count {
  font-size: 13px;
  color: #888;
}

.store-items {
  padding: 8px;
}

.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  margin-bottom: 4px;
}

.item-card:hover {
  background: #f5f5f5;
}

.item-card.selected {
  background: #e8f4fd;
}

.item-card.status-bought {
  opacity: 0.7;
}

.item-card.status-bought .item-name {
  text-decoration: line-through;
}

.item-card.status-not-found {
  background: #fde8e8;
}

.item-card.status-searching {
  background: #fffde7;
}

.item-check {
  flex-shrink: 0;
}

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

.item-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.item-details {
  font-size: 12px;
  color: #888;
}

.item-store {
  color: #666;
}

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

.current-price {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.old-price {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.item-status {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.status-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.5;
}

.status-btn.active {
  opacity: 1;
  border-color: #999;
  background: #f0f0f0;
}

.status-btn:hover {
  opacity: 0.8;
}

.btn-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  flex-shrink: 0;
}

.btn-remove:hover {
  color: #e74c3c;
}

.empty-items {
  text-align: center;
  padding: 40px;
  color: #888;
}.shopping-lists-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
}

.lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.list-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.list-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.list-card-header h3 {
  margin: 0;
  font-size: 16px;
  flex: 1;
}

.btn-delete {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
}

.btn-delete:hover {
  color: #e74c3c;
}

.list-card-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.list-card-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-tag {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 16px;
}.store-list-page { padding-bottom: 60px; }
.search-container { margin-bottom: 24px; }
.search-input-wrapper { position: relative; display: flex; align-items: center; background: white; border-radius: 12px; border: 2px solid #e0e0e0; transition: border-color 0.2s; }
.search-input-wrapper:focus-within { border-color: #e74c3c; }
.search-icon { position: absolute; left: 16px; font-size: 18px; }
.search-input { width: 100%; padding: 14px 44px 14px 48px; font-size: 15px; font-family: 'Roboto', sans-serif; background: transparent; border: none; outline: none; color: #333; }
.search-input::placeholder { color: #aaa; }
.search-clear { position: absolute; right: 12px; background: #f0f0f0; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; display: flex; align-items: center; justify-content: center; color: #888; transition: background 0.2s; }
.search-clear:hover { background: #e0e0e0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 24px; font-weight: 600; color: #222; }
.stores-count { font-size: 14px; color: #888; }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.store-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: block; text-decoration: none; color: inherit; }
.store-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.store-card-image { height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.store-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.store-card:hover .store-card-image img { transform: scale(1.05); }
.store-card-info { padding: 20px; }
.store-card-name { font-size: 20px; font-weight: 600; color: #222; margin-bottom: 6px; }
.store-card-desc { font-size: 14px; color: #888; margin-bottom: 8px; line-height: 1.4; }
.store-card-status { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.store-card-status .status-icon { font-size: 14px; }
.store-card-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.store-card-meta span { font-size: 13px; color: #666; }
.no-results { text-align: center; padding: 60px 20px; background: white; border-radius: 12px; }
.no-results-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.no-results p { font-size: 16px; color: #666; }
.no-results-hint { font-size: 13px !important; color: #aaa !important; margin-top: 8px; }
@media (max-width: 768px) { .stores-grid { grid-template-columns: 1fr; } }.store-map-page { padding: 20px; max-width: 800px; margin: 0 auto; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; cursor: pointer; border: none; }
.back-btn:hover { opacity: 0.7; }
h2 { font-size: 22px; margin: 16px 0; color: #222; }
.branches-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.branch-card { background: white; border-radius: 12px; padding: 16px; border: 1px solid #eee; }
.branch-address { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.branch-phone { font-size: 13px; color: #666; margin-bottom: 4px; }
.branch-hours { font-size: 13px; color: #888; }
.map-placeholder { background: #f8f8f8; border-radius: 12px; padding: 40px; text-align: center; border: 2px dashed #ddd; }
.map-note { font-size: 16px; color: #666; }.store-page { padding-bottom: 40px; }
.store-banner { border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.banner-content { display: flex; justify-content: space-between; align-items: flex-start; }
.store-info { flex: 1; }
.store-name { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.store-meta { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.meta-item { font-size: 14px; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.status-icon { font-size: 14px; }
.status-label { font-weight: 600; }
.store-hours { font-size: 13px; opacity: 0.8; margin-bottom: 8px; }
.hours-text { }
.store-details { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.detail-item { font-size: 13px; opacity: 0.85; }
.store-link { color: blue; text-decoration: underline; }
.store-link:hover { opacity: 0.8; }
.store-delivery { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.delivery-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; background: rgba(255,255,255,0.2); font-size: 12px; font-weight: 600; }
.delivery-badge.no-delivery { background: rgba(255,255,255,0.1); }
.delivery-info { font-size: 12px; opacity: 0.8; }
.store-logo img { border-radius: inherit; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 600; color: #222; }
.products-count { font-size: 14px; color: #888; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.no-results { text-align: center; padding: 60px 20px; background: white; border-radius: 12px; }
.no-results-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.no-results p { font-size: 16px; color: #666; }
.no-results-hint { font-size: 13px !important; color: #aaa !important; margin-top: 8px; }
.not-found { text-align: center; padding: 80px 20px; }
.not-found h2 { font-size: 24px; margin-bottom: 12px; color: #333; }
.not-found p { color: #888; margin-bottom: 24px; }
.back-btn { background: none; color: #e74c3c; font-size: 15px; font-weight: 500; padding: 8px 0; transition: opacity 0.2s; }
.back-btn:hover { opacity: 0.7; }
@media (max-width: 768px) { .store-banner { padding: 20px; } .store-name { font-size: 24px; } .store-logo img { width: 80px; height: 80px; } }/* ===== Дополнительные стили Laravel-версии ===== */

/* Инлайн-формы внутри карточек */
.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Чекбокс-форма товара в списке покупок */
.item-check-form {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Сайдбар корзины: скрыт по умолчанию, открывается JS-ом */
#cart-sidebar-panel .cart-sidebar {
    display: none;
}
#cart-sidebar-panel.open .cart-sidebar {
    display: block;
}

/* Карточки-ссылки */
a.store-card,
a.list-card,
a.card-item,
a.category-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Flash-сообщения */
.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 14px;
}

/* Кнопки в виде ссылок-форм */
form .btn-delete,
form .remove-btn {
    all: revert;
}

/* Хлебные крошки кликабельны */
.crumb-link {
    text-decoration: none;
    color: #888;
    font-size: 13px;
    transition: color 0.2s;
}
.crumb-link:hover {
    color: #e74c3c;
}
.crumb-link.active {
    color: #333;
    cursor: default;
}

/* Промо-кнопки и кнопки фильтра как ссылки */
.filter-buttons a.filter-btn,
.promotion-section a.promotion-btn,
.sort-section a.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Отступы для текстовых ссылок-кнопок */
a.add-btn,
a.edit-btn,
a.btn {
    text-decoration: none;
}

/* Плавное появление кнопки "наверх" */
.scroll-to-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 200;
    user-select: none;
}
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Категории-карточки как ссылки */
a.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
a.category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Адаптивность layout */
@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr !important;
    }
    .app-sidebar-left,
    .app-sidebar-right {
        display: none !important;
    }
}

/* Поле ввода фильтра: ширина */
.filter-add-input {
    flex: 1;
}
