.products-page {
    max-width: 1320px;
    margin: auto;
    padding: 120px 20px 60px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.products-header h1 {
    font-size: 42px;
}

.products-search-panel {
    width: min(100%, 420px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #222;
    border-radius: 12px;
    background: #181818;
}

.products-search-panel i {
    color: #00bfff;
    flex: 0 0 auto;
}

.products-header input,
.global-search {
    width: min(100%, 320px);
    padding: 12px 16px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    outline: none;
}

.products-search-panel input {
    width: 100%;
    border: 0;
    padding-left: 0;
    background: transparent;
}

.products-header input:focus,
.global-search:focus {
    border-color: #00bfff;
}

.products-search-panel:focus-within {
    border-color: #00bfff;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-filters button {
    padding: 10px 16px;
    border: 1px solid #222;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    background: #181818;
    color: #fff;
}

.category-filters button.active,
.category-filters button:hover {
    background: #00bfff;
    border-color: #00bfff;
}

.product-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: #9edfff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.empty-state,
.empty-cart {
    color: #bbb;
    padding: 20px 0;
}

.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px 20px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.product-detail-image {
    background: #141414;
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
}

.product-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #0d0d0d;
}

.product-detail-info h1 {
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.product-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.product-detail-close {
    width: 44px;
    height: 44px;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    transition: 0.25s;
}

.product-detail-close:hover {
    background: #00bfff;
    border-color: #00bfff;
    transform: scale(1.06);
}

.product-detail-category {
    color: #aaa;
    margin-bottom: 18px;
}

.product-detail-description {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 28px;
}

.detail-back-link {
    display: inline-block;
    color: #00bfff;
    text-decoration: none;
    margin-bottom: 20px;
}

.product-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.product-detail-actions.single-action {
    grid-template-columns: 1fr;
    max-width: 360px;
}

.product-detail-actions button,
.whatsapp-btn,
.offer-card button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #00bfff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.whatsapp-btn {
    background: #20b15a;
}

.related-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

.product-detail-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

@media (max-width: 900px) {
    .products-page {
        padding-top: 110px;
    }

    .products-header h1,
    .product-detail-info h1 {
        font-size: 32px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 110px;
    }

    .product-detail-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .products-page,
    .product-detail,
    .related-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .category-filters button {
        white-space: nowrap;
    }

    .products-header {
        align-items: stretch;
    }

    .products-search-panel {
        width: 100%;
    }
}
