* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ede7dd;
    color: #241d16;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.product-page {
    padding: 40px 24px;
}

.product-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
}

.related-panel {
    position: sticky;
    top: 24px;
    margin-top: 90px;
    background: #fffaf2;
    border: 1px solid rgba(134, 97, 42, 0.18);
    border-radius: 8px;
    padding: 18px;
}

.related-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.2;
}

.related-list {
    display: grid;
    gap: 8px;
}

.related-link {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f7efe2;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.related-link:hover,
.related-link.is-active {
    background: #fff;
    border-color: #86612a;
    transform: translateX(3px);
}

.related-link-type {
    color: #86612a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.related-link-title {
    font-size: 15px;
    font-weight: 700;
}

.products-panel {
    min-width: 0;
}

.product-section {
    display: none;
}

.product-section.is-active {
    display: block;
}

.products-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(134, 97, 42, 0.22);
    padding-bottom: 18px;
}

.products-kicker {
    margin: 0 0 6px;
    color: #86612a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.products-header h1,
.empty-products h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}

.products-header p {
    margin: 8px 0 0;
    color: #6d6258;
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(36, 29, 22, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(36, 29, 22, 0.08);
}

.product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5efe7;
}

.product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    display: grid;
    gap: 14px;
    padding: 16px;
    text-align: center;
}

.product-card-body h2 {
    min-height: 44px;
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.product-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #86612a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.product-button:hover {
    background: #6f4f21;
}

.empty-products {
    background: #fffaf2;
    border: 1px solid rgba(134, 97, 42, 0.18);
    border-radius: 8px;
    padding: 28px;
}

.empty-products p {
    margin: 8px 0 0;
    color: #6d6258;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-page {
        padding: 24px 16px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        margin-top: 90px;
    }

    .related-panel {
        position: static;
    }

    .related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .related-list,
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-layout {
        gap: 16px;
    }

    .products-header h1,
    .empty-products h1 {
        font-size: 26px;
    }
}
