/* Refined Premium Skincare Aesthetics */
:root {
    --primary-bg: #fdfdfd;
    --soft-gray: #f7f7f7;
    --underline-color: #e5e7eb;
    --accent-color: #000;
    --secondary-text: #6b7280;
}

body {
    background-color: #fff;
}

.shop-container {
    background-color: var(--primary-bg);
}

/* Modern Pill Dropdown Style */
.filter-dropdown {
    position: relative;
    cursor: pointer;
    padding: 10px 18px;
    border: 1px solid var(--underline-color);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    background-color: #fff;
}

.filter-dropdown:hover, .filter-dropdown.open {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 250px;
    background: #fff;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 12px 8px;
    z-index: 100;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-dropdown.open .filter-dropdown-menu {
    display: block;
    animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.filter-option:hover {
    background-color: var(--soft-gray);
    transform: translateX(4px);
}

.filter-option span {
    font-size: 14.5px;
    color: #4b5563;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.filter-option.selected span {
    color: var(--accent-color);
    font-weight: 500;
}

/* Modern Rounded Checkbox */
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    background: transparent;
}

.filter-option:hover .custom-checkbox {
    border-color: var(--accent-color);
}

.filter-option.selected .custom-checkbox {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-option.selected .custom-checkbox::after {
    content: '\2713';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    display: block;
}

/* Filter Tags */
.filter-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    min-height: 32px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: var(--soft-gray);
    border-color: #d1d5db;
}

.filter-tag i {
    cursor: pointer;
    font-size: 14px;
}

.clear-all-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 12px;
    display: none;
}

/* Premium Skincare Card Style */
.product-card-premium {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    text-align: center;
    animation: productFadeIn 0.5s ease backwards;
}

@keyframes productFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.product-card-premium .img-container {
    aspect-ratio: 1/1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

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

.product-card-premium:hover .img-container img {
    transform: scale(1.05);
}

.product-card-premium .tag-new {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px;
    border: 1px solid #3b82f6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    background: white;
}

.product-card-premium .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.product-card-premium .product-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.product-card-premium .product-price {
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
}

.product-card-premium .quick-view-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3b82f6;
    text-decoration: underline;
    margin-top: auto;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.product-card-premium:hover .quick-view-link {
    opacity: 1;
    transform: translateY(0);
}

/* Load More Button */
#load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    gap: 20px;
}

.button-load-more {
    padding: 14px 40px;
    background: #000;
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid #000;
    cursor: pointer;
    position: relative;
}

.button-load-more:hover {
    background: transparent;
    color: #000;
}

.button-load-more.loading {
    color: transparent !important;
    pointer-events: none;
}

.button-load-more.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.button-load-more.loading:hover::after {
    border-color: #000;
    border-top-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-text {
    font-size: 13px;
    color: var(--secondary-text);
    font-weight: 500;
}

.product-grid > .hidden {
    display: none !important;
}
