/**
 * Aromas Duftnoten Filter Styles
 */

/* CSS Variables */
.adf-filter {
    --adf-primary: #c9a050;
    --adf-primary-hover: #b8913f;
    --adf-primary-light: rgba(201, 160, 80, 0.1);
    --adf-primary-lighter: rgba(201, 160, 80, 0.05);
    --adf-secondary: #1a1a1a;
    --adf-bg: #ffffff;
    --adf-bg-alt: #f8f7f4;
    --adf-text: #333333;
    --adf-text-light: #666666;
    --adf-text-muted: #999999;
    --adf-border: #e5e5e5;
    --adf-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --adf-radius: 12px;
    --adf-radius-sm: 8px;
    --adf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    background: var(--adf-bg);
    border-radius: var(--adf-radius);
    box-shadow: var(--adf-shadow);
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.adf-header {
    text-align: center;
    margin-bottom: 32px;
}

.adf-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--adf-secondary);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.adf-subtitle {
    font-size: 18px;
    color: var(--adf-text-light);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search */
.adf-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 32px;
}

.adf-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid var(--adf-border);
    border-radius: 50px;
    background: var(--adf-bg);
    color: var(--adf-text);
    transition: var(--adf-transition);
    box-sizing: border-box;
}

.adf-search-input:focus {
    outline: none;
    border-color: var(--adf-primary);
    box-shadow: 0 0 0 4px var(--adf-primary-light);
}

.adf-search-input::placeholder {
    color: var(--adf-text-muted);
}

.adf-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--adf-text-muted);
    pointer-events: none;
}

/* Selected Notes */
.adf-selected {
    background: var(--adf-primary-lighter);
    border-radius: var(--adf-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.adf-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.adf-selected-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--adf-secondary);
    font-family: 'Montserrat', sans-serif;
}

.adf-clear-all {
    font-size: 13px;
    color: var(--adf-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: var(--adf-transition);
}

.adf-clear-all:hover {
    color: var(--adf-primary);
}

.adf-selected-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adf-selected-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--adf-primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--adf-transition);
}

.adf-selected-note:hover {
    background: var(--adf-primary-hover);
}

.adf-selected-note svg {
    width: 14px;
    height: 14px;
}

/* Notes Categories */
.adf-notes-container {
    margin-bottom: 40px;
}

.adf-notes-category {
    margin-bottom: 28px;
}

.adf-notes-category:last-child {
    margin-bottom: 0;
}

.adf-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--adf-secondary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--adf-border);
}

.adf-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--adf-primary-light);
    border-radius: 8px;
    color: var(--adf-primary);
}

.adf-category-icon svg {
    width: 18px;
    height: 18px;
}

.adf-category-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--adf-text-muted);
    margin-left: auto;
    font-style: italic;
}

/* Notes Grid */
.adf-notes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.adf-note {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--adf-text);
    background: var(--adf-bg);
    border: 2px solid var(--adf-border);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--adf-transition);
    position: relative;
    z-index: 1;
}

.adf-note:hover {
    border-color: var(--adf-primary);
    color: var(--adf-primary);
    background: var(--adf-primary-lighter);
}

.adf-note.active {
    background: var(--adf-primary);
    border-color: var(--adf-primary);
    color: white;
}

.adf-note.hidden {
    display: none;
}

.adf-note.adf-note-hidden {
    display: none;
}

.adf-notes-category.expanded .adf-note.adf-note-hidden {
    display: inline-flex;
}

/* Search functionality */
.adf-note.adf-search-hidden {
    display: none !important;
}

.adf-note.adf-search-visible {
    display: inline-flex !important;
}

/* When searching, hide the "show more" button */
.adf-notes-category.adf-searching .adf-show-more {
    display: none;
}

/* Show More Button */
.adf-show-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--adf-primary);
    background: transparent;
    border: 1px dashed var(--adf-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--adf-transition);
}

.adf-show-more:hover {
    background: var(--adf-primary-light);
}

/* Category Toggle */
.adf-category-toggle {
    cursor: pointer;
    user-select: none;
    transition: var(--adf-transition);
}

.adf-category-toggle:hover {
    color: var(--adf-primary);
}

.adf-category-toggle:hover .adf-category-arrow svg {
    color: var(--adf-primary);
}

.adf-category-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.adf-category-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--adf-text-muted);
}

.adf-notes-category.collapsed .adf-category-arrow {
    transform: rotate(-90deg);
}

.adf-notes-category.collapsed .adf-notes-grid,
.adf-notes-category.collapsed .adf-show-more {
    display: none;
}

/* Results */
.adf-results {
    border-top: 1px solid var(--adf-border);
    padding-top: 32px;
}

.adf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.adf-results-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--adf-secondary);
    margin: 0;
}

.adf-results-count {
    font-size: 14px;
    color: var(--adf-text-muted);
    font-family: 'Montserrat', sans-serif;
}

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

.adf-product-card {
    background: var(--adf-bg);
    border: 1px solid var(--adf-border);
    border-radius: var(--adf-radius-sm);
    overflow: hidden;
    transition: var(--adf-transition);
}

.adf-product-card:hover {
    border-color: var(--adf-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.adf-product-image {
    position: relative;
    padding-top: 100%;
    background: var(--adf-bg-alt);
    overflow: hidden;
}

.adf-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.adf-product-info {
    padding: 16px;
}

.adf-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--adf-secondary);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adf-product-name a {
    color: inherit;
    text-decoration: none;
}

.adf-product-name a:hover {
    color: var(--adf-primary);
}

.adf-product-notes {
    font-size: 12px;
    color: var(--adf-text-muted);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

.adf-product-notes .highlight {
    background: var(--adf-primary-light);
    color: var(--adf-primary);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}

.adf-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--adf-primary);
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
}

.adf-product-price del {
    font-size: 13px;
    color: var(--adf-text-muted);
    font-weight: 400;
}

.adf-product-price ins {
    text-decoration: none;
}

.adf-product-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--adf-transition);
    background: var(--adf-primary);
    color: white;
}

.adf-product-btn:hover {
    background: var(--adf-primary-hover);
}

/* No Results */
.adf-no-results {
    text-align: center;
    padding: 60px 20px;
}

.adf-no-results p {
    font-size: 16px;
    color: var(--adf-text-light);
    margin: 0;
}

/* Loading */
.adf-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.adf-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--adf-border);
    border-top-color: var(--adf-primary);
    border-radius: 50%;
    animation: adf-spin 1s linear infinite;
}

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

/* Empty State */
.adf-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--adf-text-muted);
}

.adf-empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .adf-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .adf-filter {
        padding: 24px 20px;
    }

    .adf-title {
        font-size: 26px;
    }

    .adf-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .adf-category-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .adf-filter {
        padding: 20px 16px;
    }

    .adf-title {
        font-size: 22px;
    }

    .adf-subtitle {
        font-size: 15px;
    }

    .adf-products-grid {
        grid-template-columns: 1fr;
    }

    .adf-note {
        padding: 6px 12px;
        font-size: 13px;
    }

    .adf-selected-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
