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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.5;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- ТИПОГРАФИКА --- */
h1, .h1 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

h2, .h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

h3, .h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

h4, .h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.text-main {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
}

.text-secondary {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.text-small {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
}

/* --- КНОПКИ --- */
.btn-primary {
    background-color: #f54900;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
    color: #ccc;
}

    .card__favorite:hover {
        transform: scale(1.1);
    }

    .card__favorite.active {
        color: #f44336;
    }

.card__top {
    position: relative;
}

.btn-primary:hover {
    background-color: #d43f00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 73, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #f54900;
    border: 2px solid #f54900;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f54900;
    color: #ffffff;
}

.btn-tertiary {
    background-color: #f5f5f5;
    color: #666666;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tertiary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* --- СЕТКА И АДАПТИВ --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* Адаптив сетки */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ПАГИНАЦИЯ --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #f54900;
    color: #f54900;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #f54900;
    color: #f54900;
}

.page-btn.active {
    background-color: #f54900;
    border-color: #f54900;
    color: #ffffff;
}

/* --- ХЛЕБНЫЕ КРОШКИ --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #f54900;
}

.breadcrumbs .separator {
    color: #ccc;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}