.catalog-header {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    background-color: var(--card-bg);
    border-radius: 16px;
    aspect-ratio: 4/5;
    position: relative;
    margin-bottom: 15px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.card-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    z-index: 10;
    text-decoration: none;
}

.card-wishlist:hover {
    color: #e57373;
}

.card-brand {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-name {
    font-size: 14px;
    color: var(--text-main);
    margin: 0 0 10px;
    font-weight: 500;
}

.card-price {
    font-weight: 700;
    font-size: 15px;
}

.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gender-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 25px;
}

.gender-toggle a {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.gender-toggle a.active {
    background-color: var(--accent);
    color: #fff;
}

.gender-toggle a:not(.active) {
    background-color: #f0f0f0;
    color: var(--text-main);
}

.categories-nav {
    display: flex;
    gap: 10px;
    overflow: visible;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
    justify-content: center;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.categories-nav a {
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    color: var(--text-main);
    transition: all 0.2s;
}

.categories-nav a.active {
    background-color: #faebe9;
    color: #b57b70;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 35px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #fff;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.dropdown-btn:hover {
    background-color: #fcfcfc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 100;
    border-radius: 12px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

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

.brand-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.apply-btn {
    width: 100%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}


.dropdown-backdrop {
    display: none;
}

.bottom-sheet-handle {
    display: none;
}

.bottom-sheet-header {
    display: none;
}

.brands-list-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.brands-list-container::-webkit-scrollbar {
    width: 4px;
}

.brands-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.brands-list-container::-webkit-scrollbar-thumb {
    background: #e0dcd5;
    border-radius: 2px;
}

body.body-scroll-lock {
    overflow: hidden;
}

@media (max-width: 768px) {
    .dropdown-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .dropdown-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-content {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        top: auto;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0;
        max-height: 80vh;
        z-index: 1001;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
        padding: 0 20px 30px;
        margin-top: 0;
        background-color: #fff;
        visibility: hidden;
        box-sizing: border-box;
        transform-origin: bottom center;
    }

    .dropdown-content.show {
        transform: translateY(0) !important;
        visibility: visible;
    }

    .bottom-sheet-handle {
        display: block;
        width: 36px;
        height: 4px;
        background-color: #e0dcd5;
        border-radius: 2px;
        margin: 12px auto 16px;
    }

    .bottom-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .bottom-sheet-title {
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        font-weight: 600;
        color: var(--text-main);
    }

    .bottom-sheet-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-main);
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-content form {
        display: flex;
        flex-direction: column;
        height: calc(100% - 60px);
        overflow: hidden;
    }

    .brands-list-container {
        flex: 1;
        max-height: calc(80vh - 180px);
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .brand-checkbox {
        padding: 14px 0;
        border-bottom: 1px solid #f5f0eb;
        margin-bottom: 0;
        font-size: 15px;
    }

    .brand-checkbox:last-child {
        border-bottom: none;
    }

    .apply-btn {
        margin-top: auto;
        padding: 16px;
        font-size: 15px;
        border-radius: 12px;
    }
}


@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .categories-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

.catalog-search-container {
    display: none;
}

@media (max-width: 768px) {
    .catalog-search-container {
        display: block;
        margin: 10px 0 20px;
    }

    .catalog-search-form {
        width: 100%;
    }

    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background-color: #fff;
        border: 1px solid #e5dfd8;
        border-radius: 12px;
        padding: 0 16px;
        height: 48px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }

    .search-input-wrapper:focus-within {
        border-color: #b57b70;
        box-shadow: 0 4px 12px rgba(181, 123, 112, 0.08);
    }

    .search-icon {
        font-size: 20px;
        color: #a0978d;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .search-input {
        border: none;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-main);
        width: 100%;
        height: 100%;
        padding: 0;
        outline: none;
    }

    .search-input::placeholder {
        color: #a0978d;
    }

    .search-clear-btn {
        background: none;
        border: none;
        color: #a0978d;
        font-size: 18px;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        margin-left: 8px;
        flex-shrink: 0;
        transition: color 0.2s;
    }

    .search-clear-btn:hover {
        color: var(--text-main);
    }
}

@media (max-width: 768px) {
    .gender-toggle a {
        padding: 10px 16px;
        font-size: 13px;
    }
    .dropdown-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
