/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Body Layout for Sticky Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    /* Modern Font */
    background-color: #f8f9fa;
    /* Slightly lighter background */
    color: #333;
}

/* Container & Layout */
.product-page-container {
    flex: 1;
    width: 100%;
    display: flex;
    max-width: 1440px;
    /* Wider container */
    margin: 40px auto;
    padding: 0 40px;
    gap: 40px;
    box-sizing: border-box;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 280px;
    /* Slightly wider */
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    /* modern radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* Softer shadow */
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-sidebar h3 {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    font-size: 1.5rem;
    /* Bigger Title */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 1.1rem;
    /* Bigger Heading */
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    /* Readable text */
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: #000;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #111;
}

.filter-group input[type="number"] {
    width: 45%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.2s;
}

.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

.filter-actions button {
    width: 100%;
    padding: 14px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.1s;
}

.filter-actions button:hover {
    background: #333;
    transform: translateY(-1px);
}

.filter-actions a {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 10px;
}

/* Main Content Area */
.product-grid-section {
    flex-grow: 1;
}

/* Top Bar (Search & Sort) */
.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    /* Pill shape */
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.2s;
}

.search-form input:focus {
    outline: none;
    background: #fff;
    border-color: #333;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    /* Focus ring */
}

.search-form button {
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #333;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-box label {
    font-weight: 500;
    color: #555;
    font-size: 1rem;
}

.sort-box select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

/* Product Grid cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Bigger cards */
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Deep shadow */
    border-color: #f0f0f0;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image styling */
.product-card .image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
    height: 320px;
    /* Taller images */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.product-card .info {
    padding: 20px;
}

.product-card h3 {
    font-size: 1.1rem;
    /* Bigger title */
    font-weight: 600;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
}

.product-card .brand {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card .price {
    font-size: 1.25rem;
    /* Much bigger price */
    font-weight: 700;
    color: #111;
}

.product-card .original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: none;
    width: 40px;
    /* Bigger button */
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn:hover {
    transform: scale(1.15);
    background: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.wishlist-btn i {
    font-size: 18px;
    color: #bbb;
    transition: color 0.2s;
}

.wishlist-btn:hover i {
    color: #ff4757;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    border-radius: 50%;
    /* Circular pagination */
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
}

.pagination a:hover {
    border-color: #333;
    background: #fafafa;
}

.pagination a.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Discount Badge */
.image-wrapper span {
    background: #111 !important;
    /* Elegant black badge */
    color: #fff !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    top: 15px !important;
    left: 15px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .product-page-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
        position: static;
        box-sizing: border-box;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}