.page-header {
    background: linear-gradient(135deg, var(--main-color), #ff8c5a);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}
.catalog-categories {
    padding: 0 0 30px 0;
}
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.category-btn {
    padding: 12px 30px;
    border: 2px solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.category-btn:hover,
.category-btn.active {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,74,0.3);
}
.catalog-products {
    padding: 0 0 50px 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.product-item .product-image {
    height: 250px;
    overflow: hidden;
}
.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-item:hover .product-image img {
    transform: scale(1.1);
}
.product-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}
.product-desc {
    padding: 0 20px 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}
.product-price {
    padding: 0 20px 15px;
    color: var(--main-color);
    font-weight: 700;
    font-size: 1.5rem;
}
.product-item .btn-small {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    background: var(--main-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.product-item .btn-small:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,74,0.3);
}
.calculator-section {
    background: var(--white);
    border-radius: 20px;
    margin: 40px 0;
    padding: 40px 0;
}
.calculator {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.calculator-note {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1rem;
}
.calculator-items {
    max-width: 600px;
    margin: 0 auto 30px;
}
.calc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #f0f0f0;
}
.calc-item:hover {
    background: #ffe4d9;
    border-color: var(--main-color);
}
.calc-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--main-color);
    cursor: pointer;
}
.calc-item span {
    font-size: 1rem;
    color: var(--text-dark);
}
.calculator-result {
    background: var(--main-color);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}
.calculator-result p {
    font-size: 1.2rem;
    margin: 5px 0;
}
.calculator-result span {
    font-size: 2rem;
    font-weight: 700;
}
.cart-section {
    background: var(--white);
    border-radius: 20px;
    margin: 40px 0 60px;
    padding: 40px 0;
}
.cart {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.cart h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-dark);
}
.cart-count {
    background: var(--main-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1rem;
}
.cart-items {
    min-height: 100px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cart-item-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 15px;
}
.cart-item-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}
.cart-item-price {
    font-weight: 700;
    color: var(--main-color);
    font-size: 1.1rem;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.cart-item-remove:hover {
    background: #ff4444;
    color: white;
}
.cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    background: white;
    border-radius: 8px;
    font-style: italic;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    margin-bottom: 20px;
}
.cart-total p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}
.cart-total span {
    color: var(--main-color);
    font-size: 1.8rem;
    font-weight: 700;
}
#checkoutBtn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
#checkoutBtn:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,74,0.3);
}
.add-to-cart {
    transition: all 0.3s ease;
}
.add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .categories-nav {
        flex-direction: column;
        align-items: center;
    }
    .category-btn {
        width: 100%;
        max-width: 300px;
    }
    .page-header {
        padding: 40px 0;
    }
    .page-title {
        font-size: 2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .cart-total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cart-total span {
        display: block;
        margin-top: 5px;
    }
    .calculator-items {
        padding: 0 10px;
    }
    .calc-item {
        padding: 10px 15px;
    }
}
@media (max-width: 480px) {
    .product-item .product-image {
        height: 200px;
    }
    .product-item h3 {
        font-size: 1.2rem;
    }
    .product-price {
        font-size: 1.3rem;
    }
    .cart {
        padding: 20px;
    }
}