.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-3 {
    flex: 0 0 250px;
    max-width: 250px;
    transition: all 0.3s ease;
}

.sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.col-md-9 {
    flex: 1;
    max-width: calc(100% - 250px);
}

.product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-right: 15px;
}

@media (max-width: 1200px) {
    .col-md-3 {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .col-md-9 {
        max-width: calc(100% - 220px);
    }
}

@media (max-width: 992px) {
    .col-md-3 {
        flex: 0 0 200px;
        max-width: 200px;
    }

    .col-md-9 {
        max-width: calc(100% - 200px);
    }

    .product-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 100px;
        max-width: 100px;
    }

    .col-md-9 {
        flex: 1;
        /* Allow main content to take full width */
        max-width: 100%;
    }

    .product-card {
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .product-details {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        flex: 0 0 100px;
        max-width: 100px;
    }

    .col-md-9 {
        max-width: calc(100% - 140px);
    }

    .sidebar {
        font-size: 0.9em;
    }

    .product-image {
        width: 120px;
        height: 120px;
    }

    .product-description {
        display: -webkit-box; 
        display: box;
        -webkit-box-orient: vertical;
        overflow: hidden; 
        -webkit-line-clamp: 15; 
        line-clamp: 15; 
        max-height: calc(15 * 1em); 
    }
}

@media (max-width: 300px) {
    .row {
        flex-wrap: wrap;
    }

    .col-md-3,
    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        max-height: none;
        margin-bottom: 20px;
        font-size: 0.8em;
    }

    .product-card {
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%;
        height: auto;
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .product-details {
        width: 100%;
        text-align: center;
        font-size: 0.9em;
    }

    .product-description {
        display: -webkit-box; 
        display: box;
        -webkit-box-orient: vertical;
        overflow: hidden; 
        -webkit-line-clamp: 15; 
        line-clamp: 15; 
        max-height: calc(15 * 1em); 
    }
}

@media (max-width: 768px) {

    .form-control,
    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-links {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-item {
        margin-bottom: 5px;
    }
}

@media (min-width: 1400px) {
    .col-md-3 {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .col-md-9 {
        max-width: calc(100% - 280px);
    }

    .product-image {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 1920px) {
    .col-md-3 {
        flex: 0 0 320px;
        max-width: 320px;
    }

    .col-md-9 {
        max-width: calc(100% - 320px);
    }

    body {
        font-size: 18px;
    }

    .product-image {
        width: 300px;
        height: 300px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 22px;
    }
}

.product-title, .text-mute, .product-price {
    color: black;
}

.product-description {
    display: -webkit-box; 
    display: box;
    -webkit-box-orient: vertical;
    overflow: hidden; 
    -webkit-line-clamp: 25; 
    line-clamp: 25; 
    max-height: calc(25 * 1.2em); 
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #ffab40;
    margin: 0 10px;
    font-size: 2vw;
}

/* Responsive */
@media (min-width: 768px) {
    .banner-container {
        flex-direction: row;
    }

    .banner-text {
        max-width: 50%;
    }

    .banner-text h1 {
        font-size: 48px;
    }

    .banner-text p {
        font-size: 24px;
    }

    .btn {
        font-size: 18px;
    }

    .products h2 {
        font-size: 42px;
    }

    .product-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .product-text {
        width: 45%;
    }

    .product-text h3 {
        font-size: 36px;
    }

    .product-text p {
        font-size: 22px;
    }

    .about img {
        width: 50%;
    }

    .about p {
        font-size: 26px;
    }

    footer a {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .banner-container {
        max-width: 1680px;
    }

    .products h2 {
        font-size: 36px;
    }

    .product-text h3 {
        font-size: 32px;
    }

    .product-text p {
        font-size: 20px;
    }

    .about p {
        font-size: 24px;
    }
}