* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.cosmetics-hero {
    padding: 4rem 3rem 6rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Controls Section */
.controls-section {
    margin-bottom: 3rem;
}

/* Product Dropdown Navigation */
.product-nav-container {
    display: flex;
    justify-content: right;
}

.category-dropdown {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin-right: 0;
}

.category-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.category-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(201,169,97,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-dropdown-btn svg {
    transition: transform 0.3s ease;
    color: #1a1a1a;
    flex-shrink: 0;
}

.category-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.category-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-item {
    width: 100%;
    padding: 0.875rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
}

.category-dropdown-item:last-child {
    border-bottom: none;
}

.category-dropdown-item:hover {
    background: rgba(201,169,97,0.06);
    padding-left: 2rem;
    color: #c9a961;
}

.category-dropdown-item.active {
    color: #c9a961;
    font-weight: 600;
    background: rgba(201,169,97,0.05);
}

/* Featured Product Container */
.featured-product-container {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.featured-product-container.active {
    opacity: 1;
    transform: translateY(0);
}

.close-featured {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: #666;
    font-size: 1.1rem;
}

.close-featured:hover {
    background: #1a1a1a;
    color: white;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 8px 48px rgba(201,169,97,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(201,169,97,0.15);
}

.featured-image-wrapper {
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    position: relative;
}

.featured-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.featured-name {
    font-size: 3.2rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1.75rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.featured-description {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201,169,97,0.03), transparent);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    z-index: 1;
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 12px 40px rgba(201,169,97,0.12);
    border-color: rgba(201,169,97,0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.9rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
    font-weight: 400;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.2;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #c9a961;
}

.empty-state h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .cosmetics-hero {
        padding: 3.5rem 2rem 5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .category-dropdown {
        max-width: 100%;
    }

    .featured-image-wrapper {
        height: 450px;
    }

    .featured-content {
        padding: 3rem;
    }

    .featured-name {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cosmetics-hero {
        padding: 3rem 1.5rem 4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .featured-product {
        border-radius: 16px;
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        height: 350px;
    }

    .featured-content {
        padding: 2.5rem;
    }

    .featured-name {
        font-size: 2rem;
    }

    .featured-description {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-image-wrapper {
        height: 280px;
    }

    .product-content {
        padding: 1.75rem;
    }

    .product-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        padding-bottom: 1rem;
    }

    .section-title::after {
        width: 60px;
        height: 2px;
    }

    .cosmetics-hero {
        padding: 2.5rem 1rem 3rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .close-featured {
        width: 38px;
        height: 38px;
        top: 1rem;
        right: 1rem;
        font-size: 1rem;
    }

    .featured-product {
        border-radius: 12px;
    }

    .featured-image-wrapper {
        height: 280px;
    }

    .featured-content {
        padding: 2rem 1.5rem;
    }

    .featured-name {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .featured-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image-wrapper {
        height: 240px;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-name {
        font-size: 1.15rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .empty-state {
        padding: 4rem 1.5rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-icon i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.5rem;
    }

    .empty-state p {
        font-size: 1rem;
    }
}