
html, body {
    overflow-x: hidden;
    max-width: 100%;
}


.product-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    position: relative;
}


.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.product-hero .container {
    position: relative;
    z-index: 1;
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.product-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}


.product-main {
    display: flex;
    gap: 50px;
    padding: 60px 0;
    width: 100%;
    box-sizing: border-box;
}


.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #C6A43F;
    display: inline-block;
}


.product-categories {
    list-style: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.product-categories li {
    border-bottom: 1px solid #e8e8e8;
    list-style: none;
}

.product-categories li:last-child {
    border-bottom: none;
}

.product-categories li a {
    display: block;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}


.product-categories li.active a {
    /* background: #0A2540; */
    color: #fff;
}

.product-categories li a:hover {
    background: #f5f5f5;
    color: #0A2540;
}


.product-content {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    
    min-width: 0;
}


.search-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.search-box input {
    width: 260px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: #0A2540;
    border: none;
    padding: 0 18px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.search-box button:hover {
    background: #C6A43F;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    
    max-width: 100%;
}


.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    text-decoration: none !important;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card h4 {
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f5f5f5;
    border-color: #C6A43F;
    color: #C6A43F;
}

.pagination a.active {
    background: #0A2540;
    border-color: #0A2540;
    color: #fff;
}




@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 992px) {
    .product-main {
        flex-direction: column;
        gap: 30px;
        padding: 40px 0;
    }

    .product-sidebar {
        width: 100%;
    }

    .sidebar-title {
        font-size: 1.2rem;
    }

    .product-categories {
        display: flex;
        flex-wrap: wrap;
        border: none;
        gap: 8px;
    }

    .product-categories li {
        border: 1px solid #eee;
        border-radius: 30px;
    }

    .product-categories li a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .search-box {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

   
    .product-sidebar {
        display: none;
    }

    /* Banner */
    .product-hero {
        padding: 50px 0;
    }
    .product-hero h1 {
        font-size: 24px !important;
    }
    .product-hero p {
        font-size: 14px !important;
    }

    .product-main {
        padding: 30px 0;
        box-sizing: border-box;
    }

    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
       
        min-width: 0;
    }

    .product-img {
        height: 160px;
    }

    .product-card h4 {
        font-size: 13px;
        padding: 10px;
    }

    .search-box input {
        width: 180px;
        font-size: 13px;
    }

    .pagination a {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
}


@media (max-width: 400px) {
    .product-hero h1 {
        font-size: 22px;
    }
    .product-img {
        height: 140px;
    }
}