
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: rgb(83, 81, 80); /* main background */
    color: #fff;
}

/* ===== Navbar ===== */
.navbar {
    width: 95%;
    height: 60px;
    background-color: rgba(68, 65, 65, 1); /* dark gray */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: 0 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.navbar p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: white;
}

.nav1 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav1 i {
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.nav1 i:hover {
    color: #ccc;
}

/* ===== Section 2 (Filters + Products) ===== */
.sec2 {
    width: 95%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ===== Sidebar Filters ===== */
.fs {
    flex: 1 1 250px;
    min-width: 250px;
    background-color: rgba(68,65,65,0.9); /* dark gray */
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search h2 {
    font-size: 24px;
    text-align: center;
    color: white;
}

.search input {
    width: 100%;
    height: 35px;
    text-align: center;
    border-radius: 10px;
    background-color: rgb(12,12,12);
    color: white;
    border: none;
    font-size: 16px;
}

input::placeholder {
    color: #aaa;
    font-style: italic;
}

.line {
    width: 80%;
    height: 3px;
    background-color: black;
    margin: 15px auto;
    border: none;
}

.catig {
    max-height: 300px;
    overflow-y: auto;
}

#category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.catigobut {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    text-align: left;
}

.order h2 {
    text-align: center;
    margin-bottom: 10px;
}

#price-sort {
    width: 100%;
    height: 35px;
    background-color: rgb(12,12,12);
    color: white;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    padding-left: 5px;
}

/* ===== Products Section ===== */
.ww {
    flex: 3 1 600px;
    min-width: 300px;
    background-color: rgba(196,196,196,0.2); /* light gray overlay */
    padding: 20px;
    border-radius: 15px;
}

.ww h1 {
    font-weight: 800;
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
}

/* ===== Products Grid ===== */
.shop {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ===== Product Card ===== */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 200px;
    background-color: rgba(196, 196, 196, 0.149);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.product-card a{
  text-decoration: none;
  color: rgb(250, 250, 250);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    background-color: black;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 18px;
    margin: 5px 0;
    color: black;
}

.product-card p {
    font-size: 14px;
    color: #111;
    margin-bottom: 10px;
}

.product-card button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: black;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.product-card button:hover {
    background-color: #fff;
    color: black;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sec2 {
        flex-direction: column;
        align-items: center;
    }

    .fs, .ww {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .navbar p { font-size: 22px; }
    .nav1 i { font-size: 20px; }
    .product-card { width: 45%; }
}

@media (max-width: 480px) {
    .navbar p { font-size: 18px; }
    .product-card { width: 90%; }
    .fs { padding: 15px; }
    .ww { padding: 15px; }
    .search h2 { font-size: 20px; }
}
