/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Основное отключение курсора редактирования */
* {
    caret-color: transparent !important;
}

/* Разрешить для настоящих полей ввода */
input, 
textarea, 
[contenteditable="true"] {
    caret-color: auto !important;
}

body {
    background-color: #f9f7fe;
    color: #333;
    overflow-x: hidden;
}

/* ШАПКА */
header {
    background: #f9f7fe;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Кнопка каталога */
.catalog-btn-wrapper {
    position: relative;
    margin-right: 20px;
}

.catalog-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.catalog-btn:hover {
    background: linear-gradient(135deg, #4e0c9e 0%, #1a56c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

.catalog-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Боковое меню каталога */
.catalog-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 1100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-sidebar.active {
  left: 0;
}

/* Шапка меню */
.sidebar-header {
  padding: 15px 20px;
  background: #6a11cb;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

.sidebar-close:hover {
  transform: rotate(90deg);
}

/* Дополнительные стили для header-user */
.user-action i.fas.fa-user-circle {
    color: #6a11cb;
}

.user-action i.fas.fa-sign-out-alt {
    color: #f44336;
}


/* Поиск в меню */
.sidebar-search {
  padding: 15px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.sidebar-search-input {
  width: 100%;
  padding: 10px 15px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.sidebar-search-btn {
  position: absolute;
  right: 25px;
  top: 25px;
  background: transparent;
  border: none;
  color: #6a11cb;
  cursor: pointer;
}

/* Основной контейнер с контентом */
.sidebar-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Панели категорий и подкатегорий */
.categories-panel,
.subcategories-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px 0;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.subcategories-panel {
  transform: translateX(100%);
}

.subcategories-panel.active {
  transform: translateX(0);
}

/* Элементы меню */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: #f9f7fe;
  color: #6a11cb;
  border-left-color: #6a11cb;
}

.menu-item i {
  color: #aaa;
  font-size: 12px;
}

/* Заголовок подкатегорий */
.panel-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1;
}

.panel-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 12px;
  color: #6a11cb;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 5px;
}

.back-btn i {
  margin-right: 5px;
  font-size: 14px;
}

/* Список подкатегорий */
.subcategories-list {
  padding: 10px 0;
}

.subcategory-item {
  display: block;
  padding: 12px 20px;
  padding-left: 35px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.subcategory-item:hover {
  background: #f5f5ff;
  color: #6a11cb;
}

.subcategory-item:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #6a11cb;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.subcategory-item:hover:before {
  opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .catalog-sidebar {
    width: 320px;
}

.menu-item,
.subcategory-item {
    padding: 12px 15px;
}

.subcategory-item {
    padding-left: 30px;
}
}

/* Оверлей */
.catalog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.catalog-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Прелоадер для подкатегорий */
.loading-subcategories {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.loading-subcategories:after {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(106,17,203,0.2);
  border-radius: 50%;
  border-top-color: #6a11cb;
  animation: spin 1s linear infinite;
}

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.flash-message.success { background: #4CAF50; }
.flash-message.error { background: #F44336; }

/*--------------------------------------конец хедера-----------------------------------------------------------------------------------------------*/

/* для заголовка на странице category.php*/
.zag_cat{
    padding-bottom: 40px;
} 

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Верхняя строка - контакты */
.header-topline {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.header-topline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

.contact-item i {
    color: #6a11cb;
    font-size: 12px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: #6a11cb;
}

/* Средняя строка - основная */
.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Логотип */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: #6a11cb;
}

/* Поиск */
.header-search {
    flex-grow: 1;
    max-width: 600px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    color: #6a11cb;
    cursor: pointer;
}
/* Результаты поиска */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    width: auto;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
    margin-top: 5px;
}

.search-results.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-item:hover {
    background-color: #f5f5f5;
}

.search-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.search-item-title {
    flex-grow: 1;
}

/* Пользовательские действия */
.header-user {
    display: flex;
    gap: 20px;
}

.user-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    position: relative;
}

.user-action i {
    font-size: 20px;
    margin-bottom: 3px;
}

.cart-action {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 0;
    background: #6a11cb;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Нижняя строка - категории */
.header-main .container,
.header-nav .container {
    width: 100%;
    max-width: 1200px; /* Такая же максимальная ширина */
    margin: 0 auto;    /* Автоматические отступы по бокам */
    padding: 0 15px;   /* Такие же отступы */
}
.header-nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    width: 100%;
}
.categories-nav {
    width: 100%;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;         /* Разрешаем перенос на маленьких экранах */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Категории и выпадающее меню */
.categories-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    position: relative;
    margin: 0 10px; /* Добавляем отступы между пунктами */
}

/* Показываем подкатегории при наведении */
.category-item:hover .subcategories-menu {
    display: block;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 0; /* Оставляем только вертикальные отступы */
    color: #333;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 18px;
}

.category-link i {
    margin-left: 5px;
    font-size: 10px;
    color: #999;
}

.category-item:hover .category-link {
    color: #6a11cb;
}

/* Подменю категорий */
.subcategories-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px 0;
    border-top: 2px solid #6a11cb;
}

.subcategories-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.subcategories-table-wrapper {
    overflow-x: auto;
}

.subcategories-table {
    width: auto;
    margin: 0 auto;
    min-width: 800px;
}

.category-item {
    position: static !important; /* Важно для правильного позиционирования */
}

.subcategories-table {
    width: 100%;
    table-layout: fixed; /* Фиксирует ширину колонок */
}

.subcategory-link {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.subcategory-link:hover {
    color: #6a11cb;
}

/* Адаптивность для таблицы подкатегорий */
@media (max-width: 1200px) {
    .subcategories-table td {
        padding: 6px 10px;
    }
}




/* Адаптивность */
@media (max-width: 992px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
    }
    
    .categories-list {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .categories-list::-webkit-scrollbar {
        display: none;
    }
    
    .category-link {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .header-topline,
    .header-nav {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.logo span {
    color: #6a11cb;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #6a11cb;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #6a11cb;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #6a11cb;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Герой-секция */
.hero {
    padding: 300px 0 100px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.balloon:nth-child(1) {
    top: 45%;
    left: 10%;
    background: #ff9a9e;
    width: 80px;
    height: 100px;
    animation-delay: 0s;
}

.balloon:nth-child(2) {
    top: 45%;
    right: 15%;
    background: #a18cd1;
    animation-delay: 1s;
}

.balloon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    background: #fbc2eb;
    width: 70px;
    height: 90px;
    animation-delay: 2s;
}

.balloon:nth-child(4) {
    bottom: 30%;
    right: 22%;
    background: #84fab0;
    animation-delay: 3s;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background: #6a11cb;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    position: relative;
    z-index: 2;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
    background: #4e0c9e;
}





.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    position: relative;
    padding-bottom: 30px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #6a11cb);
    margin: 15px auto 0;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        margin-bottom: 15px;
    }
    
    .category-info h3 {
        font-size: 16px;
    }
    
    .category-info p {
        font-size: 12px;
    }
}

.breadcrumbs {
    padding: 130px 15px 0; /* Измените с 150px 0 0 0 */
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #6a11cb;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #3700a0;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.category-info p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Популярные товары */
.featured {
    padding: 40px 0;
    background: #f0f5ff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.product-actions button {
    background: #6a11cb;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions button:hover {
    background: #4e0c9e;
    transform: scale(1.1);
}


/* Стили для описания товара */
.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Стили для количества просмотров */
.product-views {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #6a11cb;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.rating {
    color: #ffc107;
    font-size: 14px;
}

/* Стили для страницы продукта */
.product-details-section {
    padding: 180px 0 50px; /* Отступы сверху и снизу */
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 30px;
    align-items: center;
}

.product-details-images {
    display: flex;
    justify-content: center;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-details-info {
    padding: 20px;
}

/* Стили для с этим товаром часто смотрят*/


.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}


/* Стили для артикула товара */
.product-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 200px;
}

.product-article {
    color: #666;
    font-size: 0.9em;
    margin-left: 15px;
    font-weight: 400;
}


.product-details-title {
    font-size: 32px;
    color: #333;
}

.product-details-price {
    font-size: 24px;
    font-weight: 600;
    color: #6a11cb;
    margin-bottom: 20px;
}

.product-details-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-details-btn {
    display: inline-block;
    background: #6a11cb;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    margin-bottom: 20px;
}

.product-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
    background: #4e0c9e;
}
/* Стили для поля ввода количества товара */
.product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-quantity label {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

.product-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.product-quancy input:focus {
    border-color: #6a11cb;
    outline: none;
}

/* Подвал */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: #6a11cb;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ddd;
}


/* Стили для кнопки мессенджера */
.messenger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.messenger-btn a {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366, #0088cc);
    /* Градиент WhatsApp и Telegram */
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.messenger-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.messenger-btn i {
    font-size: 24px;
    margin-right: 10px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.cart-table th {
    background-color: #f9f9f9;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-danger {
    background-color: #ff4757;
}

.btn-danger:hover {
    background-color: #ff6b81;
}

/* Стили для корзины */
.cart-section {
    padding: 100px 0;
}

.cart-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

/* Стили для фото товара в корзине */
.cart-product-image {
    max-width: 100px; /* Максимальная ширина фото */
    height: auto; /* Сохраняем пропорции */
    border-radius: 8px; /* Скругление углов */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Тень для фото */
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
    cursor: pointer; /* Делает курсор указателем при наведении */
}

/* Увеличение фото при наведении (опционально) */
.cart-product-image:hover {
    transform: scale(1.1); /* Увеличение на 10% */
}


.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.cart-table td {
    color: #555;
}

.cart-quantity {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.cart-quantity:focus {
    border-color: #6a11cb;
    outline: none;
}

.cart-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: #6a11cb;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203
    }


    @media (max-width: 480px) {
        .messenger-btn a span {
            display: none;
        }

        .messenger-btn a {
            padding: 15px;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            justify-content: center;
        }

        .messenger-btn i {
            margin-right: 0;
            font-size: 30px;
        }
    }
    /*корзина*/
    .cart-section {
        padding: 100px 0;
    }


/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-details-grid {
        grid-template-columns: 1fr; /* Переключаемся на одну колонку на мобильных */
    }

    .product-details-title {
        font-size: 28px;
    }

    .product-details-price {
        font-size: 20px;
    }

    .product-details-description {
        font-size: 14px;
    }

    @media (max-width: 768px) {
        .catalog-dropdown {
            display: none !important;
        }

        .catalog-menu:hover .catalog-dropdown {
            display: none !important;
        }

    }

