:root {
  --blue: #0096d6;
  --blue-dark: #0077b3;
  --blue-light: #e8f7fd;
  --orange: #ff8c00;
  --orange-hover: #e67e00;
  --text: #1a1a1a;
  --gray: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 150, 214, 0.12);
  --success: #10b981;
  --danger: #ef4444;
}

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

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background-color: #0a2540;
  background-image: linear-gradient(rgba(248, 252, 255, 0.72), rgba(248, 252, 255, 0.78)), url("../images/fon.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* На мобильных fixed-фон тормозит — обычный cover */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; }

/* ========== TOP BAR ========== */
.top-bar {
  background: linear-gradient(90deg, #0096d6, #00b4e4);
  color: white;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}

/* ========== HEADER ========== */
header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--blue);
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.search-box {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 30px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.city-btn, .fav-btn, .admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  color: var(--text);
}

.cart-btn {
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ========== CATEGORIES ========== */
.categories {
  max-width: 1280px;
  margin: 30px auto 20px;
  padding: 0 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  cursor: pointer;
  transition: transform 0.2s;
}

.cat-item:hover { transform: translateY(-4px); }

.cat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}

.cat-item.active .cat-circle,
.cat-item:hover .cat-circle {
  border-color: var(--blue);
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ========== BANNER ========== */
.banner {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.banner-inner {
  background: linear-gradient(135deg, #0096d6 0%, #00c4ff 100%);
  border-radius: 24px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.banner-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.banner-content p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 24px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--orange);
  font-weight: 800;
  font-size: 20px;
  padding: 12px 28px;
  border-radius: 40px;
}

.banner-fish {
  font-size: 130px;
  opacity: 0.25;
  position: absolute;
  right: 40px;
  bottom: -20px;
}

/* ========== SECTIONS ========== */
.section {
  max-width: 1280px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span { color: var(--blue); }

/* ========== PRODUCTS GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 150, 214, 0.18);
}

.product-img {
  height: 180px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.stars { color: #fbbf24; }

.product-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
  cursor: pointer;
}

.product-name:hover { color: var(--blue); }

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.product-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 36px;
  background: #f3f4f6;
  font-size: 18px;
  color: var(--text);
}

.qty-control input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
}

.add-btn {
  flex: 1;
  background: var(--blue);
  color: white;
  height: 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.add-btn:hover { background: var(--blue-dark); }

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-card h3 { font-size: 16px; margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: var(--gray); }

/* ========== PRODUCT PAGE ========== */
.product-page {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.breadcrumb a:hover { color: var(--blue); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.product-detail-img {
  background: var(--blue-light);
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
  overflow: hidden;
}
.product-detail-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  margin: 16px 0;
}

.product-detail-desc {
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
}

.product-meta span {
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.detail-actions .qty-control input { width: 50px; height: 44px; }
.detail-actions .qty-control button { width: 40px; height: 44px; }

.detail-add-btn {
  background: var(--blue);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
}

.detail-add-btn:hover { background: var(--blue-dark); }

/* ========== RECIPES ========== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.recipe-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s;
  cursor: pointer;
}

.recipe-card:hover { transform: translateY(-4px); }

.recipe-img {
  height: 180px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.recipe-body { padding: 20px; }

.recipe-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.recipe-body p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-date {
  font-size: 12px;
  color: var(--gray);
}

.recipe-detail {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.recipe-detail h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.recipe-detail .meta {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 14px;
}

.recipe-detail .content {
  line-height: 1.8;
  font-size: 16px;
}

.recipe-detail .content h3 {
  margin: 24px 0 12px;
  color: var(--blue);
}

.recipe-detail .content ul,
.recipe-detail .content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* ========== ADMIN ========== */
.admin-page {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 20px;
  border-radius: 10px;
  background: white;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--border);
}

.admin-tab.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table th {
  background: var(--blue-light);
  font-weight: 600;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.btn-edit { background: #e0f2fe; color: var(--blue); }
.btn-delete { background: #fee2e2; color: var(--danger); }
.btn-add {
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
}

.admin-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 30px;
}

.admin-form h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.form-group textarea { min-height: 100px; resize: vertical; }

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

.btn-save {
  background: var(--success);
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-cancel {
  background: #f3f4f6;
  color: var(--text);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.stat-card .label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: white;
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}

.cart-sidebar.open { right: 0; }

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

.cart-header h2 { font-size: 20px; }

.close-cart {
  background: none;
  font-size: 24px;
  color: var(--gray);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  color: var(--danger);
  font-size: 18px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--orange);
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.checkout-btn:hover { background: var(--orange-hover); }

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

/* ========== FOOTER ========== */
footer {
  background: #0c2d48;
  color: white;
  padding: 50px 20px 30px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #7dd3fc;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .banner-inner { padding: 30px 24px; min-height: 200px; }
  .banner-content h1 { font-size: 26px; }
  .banner-fish { font-size: 80px; right: 10px; }
  .header-main { gap: 12px; }
  .search-box { order: 3; width: 100%; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { height: 240px; font-size: 80px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 10px; }
}

/* ========== FILTERS ========== */
.filters-bar {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.filter-group label {
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

.filter-group input[type="number"] {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.filter-group select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.btn-filter {
  background: var(--blue);
  color: white;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.btn-filter-reset {
  background: #f3f4f6;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

/* ========== FAVORITES ========== */
.fav-btn-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s;
  z-index: 2;
}

.fav-btn-card:hover { transform: scale(1.1); }
.fav-btn-card.active { color: #ef4444; }

.header-fav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  color: var(--text);
  position: relative;
}

.fav-count {
  background: #ef4444;
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ========== CHECKOUT ========== */
.checkout-page {
  max-width: 1000px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.checkout-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.checkout-form h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.checkout-form .form-group {
  margin-bottom: 18px;
}

.checkout-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.checkout-form textarea { min-height: 80px; resize: vertical; }

.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.radio-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.radio-option input { width: auto; }

.checkout-summary {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.checkout-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.summary-item-emoji {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.summary-item-info { flex: 1; }
.summary-item-price { font-weight: 700; color: var(--blue); white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.btn-checkout {
  width: 100%;
  background: var(--orange);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
}

.btn-checkout:hover { background: var(--orange-hover); }
.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-success {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-success .icon { font-size: 64px; margin-bottom: 16px; }
.order-success h2 { font-size: 28px; margin-bottom: 12px; color: var(--success); }
.order-success .order-id {
  font-size: 20px;
  font-weight: 700;
  background: var(--blue-light);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 10px;
  margin: 16px 0;
}

/* ========== ADMIN ORDERS ========== */
.order-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-new { background: #dbeafe; color: #1d4ed8; }
.status-confirmed { background: #fef3c7; color: #b45309; }
.status-delivering { background: #e0e7ff; color: #4338ca; }
.status-done { background: #d1fae5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

.order-items-list {
  font-size: 13px;
  color: var(--gray);
  margin: 8px 0;
}

.order-actions select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-form .form-row { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: stretch; }
}

/* ========== ORIGINAL-LIKE TOP BAR ========== */
.top-bar {
  background: linear-gradient(90deg, #00a0e3, #00b4e4);
  color: white;
  font-size: 13px;
  padding: 0;
  text-align: left;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-nav a {
  color: white;
  font-weight: 500;
  font-size: 13px;
  opacity: 0.95;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.top-nav a:hover,
.top-nav a.active {
  opacity: 1;
  border-bottom-color: white;
}

.top-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-link {
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.wave-divider {
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q30,0 60,10 T120,10 T180,10 T240,10 T300,10 T360,10 T420,10 T480,10 T540,10 T600,10 T660,10 T720,10 T780,10 T840,10 T900,10 T960,10 T1020,10 T1080,10 T1140,10 T1200,10 V20 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 12px;
  margin-top: -1px;
  background-color: #00a0e3;
}

.logo-text {
  font-weight: 800;
  font-size: 22px;
  color: var(--blue);
}

.logo-n1 {
  color: #00a0e3;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00a0e3, #0096d6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid #7dd3fc;
}

.catalog-btn {
  background: white;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s;
}

.catalog-btn:hover {
  background: var(--orange);
  color: white;
}

.phone-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.phone-num {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.phone-sub {
  font-size: 11px;
  color: var(--gray);
}

/* Content pages */
.page-content {
  max-width: 900px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.page-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--blue);
}

.page-content .breadcrumb {
  margin-bottom: 24px;
}

.page-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.page-card h2 {
  font-size: 20px;
  color: var(--blue);
  margin: 24px 0 12px;
}

.page-card h2:first-child { margin-top: 0; }

.page-card ul {
  margin: 12px 0 12px 24px;
}

.page-card li { margin-bottom: 6px; }

.store-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  align-items: flex-start;
}

.store-card .icon {
  font-size: 36px;
  flex-shrink: 0;
}

.review-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.review-card .stars { color: #fbbf24; margin-bottom: 8px; }
.review-card .author { font-weight: 600; margin-bottom: 4px; }
.review-card .date { font-size: 12px; color: var(--gray); margin-bottom: 10px; }

.info-list a {
  display: block;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  font-weight: 600;
  transition: transform 0.15s;
}

.info-list a:hover {
  transform: translateX(4px);
  color: var(--blue);
}

@media (max-width: 900px) {
  .top-nav { gap: 12px; }
  .phone-link { display: none; }
  .catalog-btn { display: none; }
}

/* Catalog dropdown */
.catalog-wrap {
  position: relative;
}

.catalog-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 10px 0;
  z-index: 200;
  border: 1px solid #e5e7eb;
}

.catalog-dropdown.open {
  display: block;
}

.catalog-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}

.catalog-dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* Full-width banner like original */
.banner {
  max-width: none;
  margin: 0 0 40px;
  padding: 0;
}

.banner-inner {
  max-width: none;
  width: 100%;
  border-radius: 0;
  min-height: 320px;
  padding: 48px 60px;
  background: linear-gradient(135deg, #0096d6 0%, #00c4ff 55%, #38bdf8 100%);
}

.banner .banner-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.banner-fish {
  right: 8%;
  font-size: 160px;
}

@media (max-width: 768px) {
  .banner-inner {
    min-height: 220px;
    padding: 32px 24px;
  }
  .banner-fish {
    font-size: 90px;
    right: 4%;
  }
}

.product-img .product-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.product-img .product-emoji,
.product-img .product-emoji-fallback {
  font-size: 64px;
  line-height: 1;
  z-index: 0;
}
.product-img .fav-btn-card,
.product-img .badge {
  z-index: 2;
}

/* Logo image in header */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.logo-n1 { color: var(--blue-dark, #0077b6); }

/* Full-width banner image (legacy) */
.banner-photo {
  width: 100%;
  margin: 0 0 36px;
  line-height: 0;
  background: #0a2540;
}
.banner-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .banner-photo img { max-height: 220px; }
  .logo-img { width: 44px; height: 44px; }
  .logo-text { font-size: 16px; }
}

/* ========== BANNER CAROUSEL ========== */
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 36px;
  overflow: hidden;
  border-radius: 20px;
  background: #0a1a28;
  aspect-ratio: 16 / 5;
}
.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.banner-slide.active {
  display: block;
  animation: bannerFade 0.6s ease;
}
@keyframes bannerFade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Promo slides */
.banner-promo-new,
.banner-promo-crayfish {
  display: none;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.banner-promo-new.active,
.banner-promo-crayfish.active {
  display: flex;
}
.banner-promo-new {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 40%, #90e0ef 100%);
}
.banner-promo-crayfish {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 35%, #f97316 70%, #fb923c 100%);
}
.banner-promo-content {
  text-align: center;
  color: #fff;
  padding: 40px 24px;
  max-width: 640px;
  line-height: 1.4;
}
.banner-promo-badge {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: #c2410c;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.banner-promo-new .banner-promo-badge {
  color: #0077b6;
}
.banner-promo-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.banner-promo-code {
  display: inline-block;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 6px;
  background: rgba(255,255,255,0.2);
  border: 3px dashed rgba(255,255,255,0.9);
  padding: 10px 36px;
  border-radius: 12px;
  margin: 8px 0 16px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.banner-promo-big {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 12px;
}
.banner-promo-content p {
  font-size: 17px;
  opacity: 0.95;
  margin: 0;
}
/* Nav arrows */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #0a2540;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.banner-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
/* Dots */
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  line-height: 0;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
  background: #fff;
  transform: scale(1.2);
}
.banner-dot:hover {
  background: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
  .banner-carousel { aspect-ratio: 16 / 6; border-radius: 14px; }
  .banner-promo-new,
  .banner-promo-crayfish {
    min-height: 220px;
  }
  .banner-promo-content h2 { font-size: 24px; }
  .banner-promo-code { font-size: 32px; letter-spacing: 3px; padding: 8px 20px; }
  .banner-promo-big { font-size: 20px; }
  .banner-promo-content p { font-size: 14px; }
  .banner-nav { width: 36px; height: 36px; font-size: 22px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .banner-dots { bottom: 10px; }
}

/* Footer like moreproduct1.ru */
.site-footer-mp {
  background: linear-gradient(180deg, #00a0e3 0%, #0090d0 100%);
  color: #fff;
  padding: 48px 20px 32px;
  margin-top: 60px;
}
.footer-grid-mp {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.3fr 1.2fr;
  gap: 32px;
}
.footer-grid-mp h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.footer-grid-mp p,
.footer-grid-mp a {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.footer-grid-mp a:hover { text-decoration: underline; color: #fff; }
.footer-col a {
  display: block;
  margin-bottom: 6px;
}
.footer-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 4px;
}
.footer-copy {
  margin-top: 14px;
  font-size: 13px !important;
  opacity: 0.85;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.soc-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0 !important;
}
.footer-phone {
  font-size: 18px !important;
  font-weight: 700;
}
.footer-addr { margin-bottom: 8px; }
.footer-rating-link {
  display: inline-block !important;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}
@media (max-width: 900px) {
  .footer-grid-mp {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid-mp {
    grid-template-columns: 1fr;
  }
}
.soc-btn.soc-tg {
  background: #229ED9 !important;
  color: #fff !important;
}
.soc-btn.soc-vk {
  background: #0077FF !important;
  color: #fff !important;
}
.soc-btn svg {
  display: block;
}


/* ===== Mobile layout like moreproduct1.ru ===== */
.mobile-header-icons,
.mobile-search-bar,
.mobile-menu-overlay,
.mobile-side-menu,
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .top-bar,
  .catalog-btn,
  .search-box,
  .desktop-only,
  .header-actions.desktop-only {
    display: none !important;
  }

  .wave-divider {
    display: block;
  }

  header {
    background: linear-gradient(180deg, #00a0e3 0%, #0096d6 100%);
    padding: 10px 12px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: none;
    padding: 0;
  }

  .logo-text {
    color: #fff !important;
    font-size: 17px;
  }
  .logo-n1 { color: #fff !important; }
  .logo-img {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
  }

  .mobile-header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .m-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
  }
  .m-icon:active { background: rgba(255,255,255,0.15); }

  .mobile-search-bar {
    display: none;
    gap: 8px;
    margin-top: 10px;
  }
  .mobile-search-bar.open {
    display: flex;
  }
  .mobile-search-bar input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .mobile-search-bar button {
    background: #fff;
    color: var(--blue);
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
  }
  .mobile-menu-overlay.open { display: block; }

  .mobile-side-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 210;
    padding: 16px;
    transition: right 0.25s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    overflow-y: auto;
  }
  .mobile-side-menu.open { right: 0; }
  .mobile-side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
  }
  .mobile-side-menu a {
    display: block;
    padding: 12px 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #0096d6;
    z-index: 150;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  }
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    padding: 6px 0;
  }
  .bn-item.active,
  .bn-item:active {
    color: #fff;
  }
  .bn-ico { font-size: 20px; line-height: 1; }
  .bn-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
  .bn-badge:not(:empty) {
    display: inline-flex;
  }
  .bn-badge:empty,
  .bn-badge[data-empty="1"] {
    display: none;
  }

  /* Categories on home - 2 per row like screenshot */
  .categories {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 16px 16px 8px;
    overflow: visible;
    justify-items: center;
  }
  .cat-item {
    width: 100%;
    max-width: 160px;
  }
  .cat-circle {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 8px;
  }
  .cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-align: center;
  }

  .banner-photo {
    padding: 0 12px;
    margin-bottom: 12px;
  }
  .banner-photo img {
    border-radius: 16px;
    max-height: 200px;
  }
  .banner-carousel {
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 16px;
  }
  .banner-carousel {
    aspect-ratio: 16 / 6;
    border-radius: 14px;
  }
  .banner-promo-new,
  .banner-promo-crayfish {
    border-radius: 16px;
  }

  .products-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 0 12px;
  }

  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-grid-mp {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Mobile: no empty space on the right of product cards */
@media (max-width: 768px) {
  .products-grid,
  .products-grid-3,
  #promoGrid,
  #recommendGrid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box;
  }

  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* If odd last card — stretch full width */
  .products-grid-3 > .product-card:last-child:nth-child(odd),
  #promoGrid > .product-card:last-child:nth-child(odd),
  #recommendGrid > .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .product-img {
    height: 140px;
  }

  .product-body {
    padding: 10px 12px 12px;
  }

  .product-body h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 16px;
  }

  .add-btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .section,
  .home-about,
  .page-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-about {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .home-about-text,
  .feature-card,
  .page-card {
    width: 100%;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }
}
