.product-page-content {
    display: flex;
    gap: 2rem; 
    margin-top: 2rem; 
    min-height: 70vh; 
}

.sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content; 
}

.sidebar h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar ul li a {
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.sidebar ul li a:hover {
    color: #4CAF50;
    font-weight: bold;
}

.product-grid-container {
    flex-grow: 1; 
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.product-grid-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

/*ons Dropdown */
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options span {
    font-size: 1rem;
    color: #666;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn .fas {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    right: 0; 
    top: 100%; 
    margin-top: 5px; 
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #4CAF50;
}

.dropdown-content.show {
    display: block;
}

/*rid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem; 
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.product-card img {
    width: 100%;
    max-width: 120px; 
    height: 120px;   
    object-fit: contain;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.product-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 1.2rem;
    color: #dd9e2a;
    font-weight: bold;
    margin: 0;
}


@media (max-width: 768px) {
    .product-page-content {
        flex-direction: column; 
    }

    .sidebar {
        width: 100%;
        flex: none; 
        margin-bottom: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }

    .nav {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 1rem;
    }

    .nav nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-icon {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; 
    }

    .product-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
