/*====================================================
                    SHOP PAGE
======================================================*/

.shop-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/img/Kromanalitik/kromanalitik_shop.png') center center / cover no-repeat;
    margin-bottom: 60px;
    overflow: hidden;
}
.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(8, 47, 60, 0.55), rgba(8, 47, 60, 0.55) );
    z-index: 1;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.shop-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.shop-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}
.shop-hero h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 3px;
    background: #fff;
    margin: 14px auto 0;
    opacity: 0.95;
}

@media (max-width: 991px) {
    .shop-hero {
        min-height: 260px;
        margin-bottom: 45px;
    }

        .shop-hero h1 {
            font-size: 40px;
        }

        .shop-hero p {
            font-size: 17px;
            max-width: 90%;
        }
}

@media (max-width: 575px) {
    .shop-hero {
        min-height: 220px;
    }

        .shop-hero h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .shop-hero p {
            font-size: 15px;
            line-height: 1.6;
        }
}
/*====================================================
                    SIDEBAR
======================================================*/

.shop-sidebar-card {
    background: #ffffff;
    border: 1px solid #e7eef4;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(25, 61, 84, 0.05);
    height: 100%;
}

.shop-sidebar-title h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #243746;
}

.category-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.category-block + .category-block {
    margin-top: 12px;
}

.category-item {
    display: block;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    transition: all 0.25s ease;
    user-select: none;
    color: #3d454d;
    background: #f9fbfd;
    text-decoration: none;
}

    .category-item:hover {
        background: #eef6fb;
        border-color: #cfe4f5;
    }

    .category-item.active {
        background: linear-gradient(135deg, #1d99ef 0%, #0b8e95 100%);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 10px 20px rgba(29, 153, 239, 0.18);
    }

.subcategory-list {
    list-style: none;
    padding-left: 8px;
    margin: 12px 0 0 0;
    user-select: none;
}

.subcategory-item {
    margin-bottom: 8px;
}

    .subcategory-item a {
        display: block;
        padding: 9px 12px;
        font-size: 15px;
        color: #607080;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        .subcategory-item a:hover {
            background: #f1f7fb;
            color: #2196f3;
        }

.d-none {
    display: none !important;
}
.all-products-item {
    background: #eef6fb;
}
/*====================================================
                    PRODUCT GRID
======================================================*/

.product-grid {
    align-items: stretch;
}

.product-card {
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(25, 61, 84, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(25, 61, 84, 0.12);
    }

.product-image-wrap {
    display: block;
    background: #f8fafc;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-card-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

    .product-title a {
        color: #2f3d49;
        text-decoration: none;
    }

        .product-title a:hover {
            color: #2196f3;
        }

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #0b8e95;
    margin-bottom: 22px;
}

.product-action {
    margin-top: auto;
}

.product-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: #2196f3;
    border: 1px solid #cfe4f5;
    background: #f8fbff;
    transition: all 0.25s ease;
}

    .product-detail-btn:hover {
        background: linear-gradient(135deg, #1d99ef 0%, #0b8e95 100%);
        color: #fff;
        border-color: transparent;
        text-decoration: none;
    }

.empty-products {
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(25, 61, 84, 0.05);
}

    .empty-products h4 {
        font-size: 28px;
        margin-bottom: 10px;
        color: #243746;
    }

    .empty-products p {
        margin-bottom: 0;
        color: #6a7680;
    }

/*====================================================
                    PAGINATION
======================================================*/

.shop-page .pagination {
    justify-content: center;
    margin-top: 10px;
}

/*====================================================
                    RESPONSIVE
======================================================*/

@media (max-width: 991px) {
    .shop-page {
        padding: 60px 0;
    }

    .shop-sidebar-card {
        margin-bottom: 10px;
    }

    .product-image {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .shop-header h1 {
        font-size: 34px;
    }

    .shop-sidebar-title h3 {
        font-size: 24px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 22px;
    }

    .product-image {
        height: 210px;
    }
}

@media (max-width: 575px) {
    .shop-page {
        padding: 45px 0;
    }

    .shop-sidebar-card {
        padding: 22px 18px;
    }

    .product-card-body {
        padding: 18px 16px 20px;
    }

    .product-image {
        height: 200px;
    }
}
