/* Стили для страницы категорий */
#categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 5px;
}

.category {
    cursor: pointer;
    overflow: hidden;
}

.category img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.category h3 {
    margin: 0 0 5px 0;
    font-size: 17px;
    color: var(--primary-color);
}

.category p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Стили для страницы товаров */
#products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.product {
    cursor: pointer;
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 12px;
}

.product h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.product p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.product b {
    color: var(--primary-color);
    font-size: 16px;
}

/* Стили для детальной страницы товара */
.product-detail {
    margin-top: 10px;
}

.product-detail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
}

.product-detail h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.product-detail p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Стили для опций товара */
.option-group {
    margin: 20px 0;
}

.option-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: var(--primary-color);
}

.option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option.disabled {
    opacity: 0.5;
    position: relative;
    cursor: not-allowed;
}

.color-option.disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: red;
    transform: rotate(-45deg);
}

/* Стили для корзины */
#cart-items-container {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item h4 {
    margin: 0;
    font-size: 15px;
    flex-grow: 1;
}

.cart-item p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
}

#checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#categories-view,
#products-view,
#product-view,
#cart-view {
    animation: fadeIn 0.3s ease forwards;
}

/* Адаптивные стили */
@media (max-width: 600px) {
    #categories-container {
        grid-template-columns: 1fr;
    }

    .product-detail img {
        height: 180px;
    }

    .option {
        padding: 8px 12px;
    }
}

@media (max-width: 400px) {
    .header h2 {
        font-size: 16px;
    }

    .product-detail h3 {
        font-size: 18px;
    }
}
/* Стили корзины */
.cart-item {
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.cart-item-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-category {
    color: #666;
    font-size: 13px;
    margin: 3px 0;
}

.cart-item-option {
    margin: 2px 0;
    font-size: 14px;
}

.cart-item-option span {
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    margin-top: 5px;
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 30px 0;
}

.empty-cart img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart h3 {
    margin: 10px 0;
    color: #333;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}


.nav-btn, .cart-icon {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
    /* Новые стили для увеличения размера */
  font-size: 20px; /* Увеличиваем размер шрифта */
  padding: 12px 20px; /* Увеличиваем внутренние отступы */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; Скругляем углы */
  gap: 8px; /* Расстояние между иконкой и текстом */
}




/* Убираем возможные перекрытия */
.header {
  position: relative;
  z-index: 10;
}