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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    min-height: 100vh;
}

/* Hero Section */
.heroo {
    margin-top: 0px;
    text-align: center;
    padding: 20px 20px 40px;
    background: #ffffff;
}

.heroo h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.heroo p {
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: #ffffff;
    color: #1a1a1a;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    border-color: #ffb3d9;
    background: #fafafa;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
    font-weight: 400;
}

.dropdown-menu button:hover {
    background: #fafafa;
    color: #ff6bb5;
}

/* Filter Button Style - Same as others */
.controls .dropdown-btn:last-child {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.controls .dropdown-btn:last-child:hover {
    border-color: #ffb3d9;
    background: #fafafa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #ffb3d9;
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}

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

.product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Product Info */
.product-name {
    text-align: center;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 15px;
    padding: 20px 16px 10px;
    line-height: 1.4;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rating */
.rating {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
    padding: 0 16px;
}

.star {
    color: #e0e0e0;
    font-size: 14px;
}

.star.filled {
    color: #ffb3d9;
}

/* Price */
.price {
    text-align: center;
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 16px;
    min-height: 56px;
}

.size-label {
    background: #f5f5f5;
    color: #666666;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #e0e0e0;
}

.old-price {
    text-decoration: line-through;
    color: #999999;
    font-size: 14px;
    font-weight: 400;
}

.new-price {
    color: #ff6bb5;
    font-weight: 600;
    font-size: 17px;
}

/* Actions */
.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px 20px;
    margin-top: auto;
}

.add-to-cart-btn {
    background: #1a1a1a;
    color: white;
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.add-to-cart-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    color: white;
}

.favorite-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 11px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    background: #fafafa;
    border-color: #ffb3d9;
}

.heart {
    width: 18px;
    height: 18px;
    stroke: #999999;
    fill: none;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.favorite-btn:hover .heart {
    stroke: #ff6bb5;
}

.heart.active {
    fill: #ff6bb5;
    stroke: #ff6bb5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-bottom: 60px;
}

.pagination a {
    text-decoration: none;
}

.pagination button {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination button:hover:not([disabled]) {
    background: #fafafa;
    border-color: #ffb3d9;
}

.pagination button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-number {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.pagination .page-number.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============ Filter Sidebar Styles ============ */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-sidebar.active {
    right: 0;
}

.filter-header {
    padding: 24px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-close {
    background: #f5f5f5;
    color: #666666;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    font-weight: 400;
}

.filter-close:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.filter-body::-webkit-scrollbar {
    width: 6px;
}

.filter-body::-webkit-scrollbar-track {
    background: #fafafa;
}

.filter-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.filter-body::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section-title {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-option:hover {
    padding-left: 4px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #ff6bb5;
}

.filter-option label {
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    font-weight: 400;
}

.filter-footer {
    padding: 20px 28px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.filter-btn {
    flex: 1;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn.clear {
    background: #ffffff;
    color: #666666;
    border: 1px solid #e0e0e0;
}

.filter-btn.clear:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.filter-btn.apply {
    background: #1a1a1a;
    color: #ffffff;
}

.filter-btn.apply:hover {
    background: #333333;
}

/* Active Filters */
.active-filters {
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.filter-tag-close {
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
    color: #999999;
}

.filter-tag-close:hover {
    transform: scale(1.2);
    color: #666666;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .container {
        padding: 0 20px 50px;
    }
}

@media (max-width: 768px) {
    .heroo h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .controls {
        gap: 8px;
    }

    .dropdown-btn {
        padding: 8px 16px;
        min-width: 110px;
        font-size: 13px;
    }

    .filter-sidebar {
        width: 100%;
        right: -100%;
    }
}