* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fb;
    color: #333;
}
.btn-back {
    background: #b88e2f;
    margin-bottom: 15px;
}

.btn-back:hover {
    background: #000;
}
/* Layout */
.page-wrapper {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 60px 0;
    display: flex;
    gap: 40px;
}
a.btn {
    text-decoration: none;
}
/* Sidebar */
.sidebar {
    width: 250px;
}

.sidebar h3 {
    font-size: 15px;
    margin: 20px 0 10px;
}

.sidebar select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

/* Products Grid */
.grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card */
.card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #b88e2f;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTENT FIX (this removes the big gap issue) */
.card-content {
    padding: 12px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: flex-start;
}

/* Title FIX */
.card h4 {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BUTTON LINK (clean replacement for anchor + button) */
.btn {
    display: block;
    width: 100%;
    padding: 9px 18px;
    border: none;
    border-radius: 30px;
    background: #b88e2f;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    margin-top: 6px;
}

.btn:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .grid { grid-template-columns: repeat(1, 1fr); }
}