/* Основные стили для сайта Пина-лада */

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo i {
  color: #ffd700;
  font-size: 1.8rem;
}

/* Уменьшаем размер номера телефона */
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 1rem;
  font-size: 0.9rem; /* Уменьшен с обычного размера */
  opacity: 0.9;
}

.header-phone i {
  font-size: 0.8rem; /* Уменьшена иконка телефона */
  color: #ffd700;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #ffd700;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffd700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Объединяем стили кнопок администратора для единообразия */
.btn-auth,
.btn-admin-star {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-auth:hover,
.btn-admin-star:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffd700;
  color: #ffd700;
  transform: scale(1.05);
}

.btn-auth i,
.btn-admin-star i {
  font-size: 1.1rem;
}

/* Подсказка для кнопки администратора */
.btn-auth::after,
.btn-admin-star::after {
  content: "Вход для администратора";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.btn-auth:hover::after,
.btn-admin-star:hover::after {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.mobile-nav.show {
  display: block;
  opacity: 1;
  max-height: 200px;
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
}

/* Hero sections */
.catalog-hero,
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.catalog-hero h1,
.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.catalog-hero p,
.about-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Search and filters */
.catalog-search {
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-btn {
  padding: 1rem 2rem;
  white-space: nowrap;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-select,
.sort-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-select:focus,
.sort-select:focus {
  outline: none;
  border-color: #007bff;
}

/* Categories */
.categories {
  padding: 4rem 0;
  background: white;
}

.categories h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.category-card i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Products */
.products-catalog {
  padding: 4rem 0;
  background: #f8f9fa;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-header h2 {
  font-size: 2rem;
  color: #333;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.results-count {
  color: #666;
  font-size: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.3;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffd700;
}

.reviews-count {
  color: #666;
  font-size: 0.9rem;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #007bff;
}

.old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.stock-badge.in-stock {
  background: #d4edda;
  color: #155724;
}

.stock-badge.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

.order-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #007bff;
  color: #007bff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-number {
  padding: 0.5rem 0.75rem;
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  border-color: #007bff;
  color: #007bff;
}

.pagination-number.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

/* About page */
.about-content {
  padding: 4rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
}

.stat span {
  color: #666;
  font-size: 0.9rem;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Features */
.features {
  padding: 4rem 0;
  background: #f8f9fa;
}

/* Contacts */
.contacts {
  padding: 4rem 0;
  background: white;
}

.contacts-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #007bff;
  width: 30px;
  text-align: center;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #333;
}

.contact-item p {
  color: #666;
  margin: 0;
}

.map-section {
  margin-top: 3rem;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

/* Loading indicator */
.loading-indicator {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #666;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* Admin Login Styles */
.auth-section {
  padding: 4rem 0;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.admin-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-header i {
  font-size: 48px;
  color: #007bff;
  margin-bottom: 15px;
}

.admin-header h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.admin-header p {
  color: #666;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5e9;
}

.auth-footer a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #0056b3;
}

.test-credentials {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.test-credentials h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.test-credentials p {
  margin: 5px 0;
  color: #666;
  font-size: 0.9rem;
}

/* Admin Panel Styles */
.admin-section {
  padding: 2rem 0;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.admin-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.admin-sidebar h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.2rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #007bff;
  color: white;
}

.admin-nav-link i {
  width: 20px;
  text-align: center;
}

.admin-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-header h2 {
  color: #333;
  font-size: 1.8rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-icon.orders {
  background: #007bff;
}

.stat-icon.revenue {
  background: #28a745;
}

.stat-icon.users {
  background: #ffc107;
}

.stat-icon.products {
  background: #dc3545;
}

.stat-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  color: #333;
}

.stat-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Admin Filters */
.admin-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-search,
.admin-filter {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
}

.admin-search {
  flex: 1;
  min-width: 250px;
}

/* Admin Table */
.admin-table {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

.admin-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  background: white;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

.admin-table th:nth-child(1) /* № заказа */,
.admin-table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
}

.admin-table th:nth-child(2) /* Клиент */,
.admin-table td:nth-child(2) {
  width: 150px;
  min-width: 150px;
}

.admin-table th:nth-child(3) /* Товар */,
.admin-table td:nth-child(3) {
  width: 180px;
  min-width: 180px;
}

.admin-table th:nth-child(4) /* Адрес */,
.admin-table td:nth-child(4) {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.admin-table th:nth-child(5) /* Кол-во */,
.admin-table td:nth-child(5) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

.admin-table th:nth-child(6) /* Сумма */,
.admin-table td:nth-child(6) {
  width: 100px;
  min-width: 100px;
  text-align: right;
}

.admin-table th:nth-child(7) /* Дата */,
.admin-table td:nth-child(7) {
  width: 120px;
  min-width: 120px;
}

.admin-table th:nth-child(8) /* Статус */,
.admin-table td:nth-child(8) {
  width: 120px;
  min-width: 120px;
}

.admin-table th:nth-child(9) /* Действия */,
.admin-table td:nth-child(9) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.address-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.address-cell:hover {
  overflow: visible;
  white-space: normal;
  background: #f8f9fa;
  position: relative;
  z-index: 100;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu .icon-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-menu .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffd700;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #f8f9fa;
  color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.3rem 0;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 1.2rem;
  }

  .logo i {
    font-size: 1.4rem;
  }

  /* Уменьшаем размер номера телефона еще больше на мобильных */
  .header-phone {
    margin-left: 0;
    font-size: 0.8rem;
  }

  .header-phone i {
    font-size: 0.7rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
  }

  .mobile-nav.show {
    display: block;
  }

  .catalog-hero h1,
  .about-hero h1 {
    font-size: 2rem;
  }

  .search-form {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .pagination-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .pagination-numbers {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .pagination-number {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
  }

  .admin-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-sidebar {
    order: 2;
  }

  .admin-content {
    order: 1;
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-search {
    min-width: auto;
  }

  .tab-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.25rem;
  }

  /* Скрываем колонку адреса на очень маленьких экранах */
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) {
    display: none;
  }

  .orders-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  /* Самый маленький размер номера телефона для очень маленьких экранов */
  .header-phone {
    font-size: 0.75rem;
  }

  .header-phone i {
    font-size: 0.65rem;
  }

  .catalog-hero,
  .about-hero {
    padding: 2rem 0;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 10px;
  }

  .orders-table th,
  .orders-table td {
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
  }

  /* Скрываем дополнительные колонки на мобильных */
  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3),
  .orders-table th:nth-child(7),
  .orders-table td:nth-child(7) {
    display: none;
  }

  .orders-table {
    min-width: 400px;
  }

  .pagination {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .pagination-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .pagination-numbers {
    gap: 0.2rem;
  }

  .pagination-number {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    min-width: 35px;
  }

  /* Скрываем некоторые номера страниц на очень маленьких экранах */
  .pagination-number:not(.active):nth-child(n + 6) {
    display: none;
  }

  .logo {
    font-size: 1rem;
  }

  .logo i {
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    top: 0.3rem;
    right: 1rem;
    font-size: 1.3rem;
  }
}

/* Orders Table */
.orders-table-container {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.orders-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background: white;
}

.orders-table th,
.orders-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.orders-table tr:hover {
  background: #f8f9fa;
}

.orders-table th:nth-child(1) /* № заказа */,
.orders-table td:nth-child(1) {
  width: 80px;
  min-width: 80px;
}

.orders-table th:nth-child(2) /* Клиент */,
.orders-table td:nth-child(2) {
  width: 150px;
  min-width: 150px;
}

.orders-table th:nth-child(3) /* Товар */,
.orders-table td:nth-child(3) {
  width: 180px;
  min-width: 180px;
}

.orders-table th:nth-child(4) /* Адрес */,
.orders-table td:nth-child(4) {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.orders-table th:nth-child(5) /* Кол-во */,
.orders-table td:nth-child(5) {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

.orders-table th:nth-child(6) /* Сумма */,
.orders-table td:nth-child(6) {
  width: 100px;
  min-width: 100px;
  text-align: right;
}

.orders-table th:nth-child(7) /* Дата */,
.orders-table td:nth-child(7) {
  width: 120px;
  min-width: 120px;
}

.orders-table th:nth-child(8) /* Статус */,
.orders-table td:nth-child(8) {
  width: 120px;
  min-width: 120px;
}

.orders-table th:nth-child(9) /* Действия */,
.orders-table td:nth-child(9) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.address-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.address-cell:hover {
  overflow: visible;
  white-space: normal;
  background: #f8f9fa;
  position: relative;
  z-index: 5;
}
/* Добавляем стили для красивой красной кнопки удаления */
.btn-delete-order {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-delete-order:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete-order:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-delete-order i {
  font-size: 12px;
}

/* Стили для мобильных карточек */
.order-card-actions .btn-delete-order {
  padding: 6px 12px;
  font-size: 13px;
}

/* Адаптивные стили для таблицы */
@media (max-width: 768px) {
  .btn-delete-order {
    padding: 6px 10px;
    font-size: 12px;
  }

  .btn-delete-order span {
    display: none;
  }
}
