/* =========================================================
   BTP Theme — catalog.css
   Modern styles for the Catalog page with glassmorphism,
   dynamic grids, and entry animations.
   ========================================================= */

.catalog-page {
    padding-bottom: 80px;
}



/* Header Section */
.catalog-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .catalog-hero {
        min-height: 320px;
    }
}


.catalog-hero__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.catalog-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-hero__banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(9, 11, 16, 0.8) 0%, rgba(9, 11, 16, 0.2) 100%);
    z-index: 2;
}

.catalog-hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
}


.catalog-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -2px;
    line-height: 1;
}

.catalog-hero h1 span {
    color: var(--btp-lime, #c9f209);
    display: block;
}

.catalog-hero p {
    color: #a0a6b1;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar (Glassmorphism) */
.catalog-filters {
    position: sticky;
    top: 110px; /* Below sticky header */
    z-index: 30;
    margin-top: -60px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.search-field {
    flex: 1;
    min-width: 250px;
    position: relative;
}


.search-field input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: 14px;
    border: 1px solid #e1e4e9;
    background: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.search-field input:focus {
    outline: none;
    border-color: var(--btp-pink, #ff1694);
    box-shadow: 0 0 0 4px rgba(255, 22, 148, 0.1);
}

.search-field .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9da3ae;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}

.search-field input:focus + .search-icon,
.search-field input:not(:placeholder-shown) + .search-icon {
    color: var(--btp-pink, #ff1694);
}


/* Category Chips */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-chip {
    padding: 10px 20px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e1e4e9;
    color: #4a4f58;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-chip:hover {
    border-color: var(--btp-pink, #ff1694);
    color: var(--btp-pink, #ff1694);
}

.cat-chip.active {
    background: var(--btp-pink, #ff1694);
    color: #fff;
    border-color: var(--btp-pink, #ff1694);
    box-shadow: 0 4px 15px rgba(255, 22, 148, 0.3);
}

/* Grid Layout */
.catalog-results {
    margin-top: 40px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* Animations */
.product-card-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card-animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State Styling */
.catalog-empty {
    text-align: center;
    padding: 100px 20px;
    background: var(--surface, #fff);
    border-radius: 32px;
    border: 1px solid var(--line, #e5e6eb);
    margin: 40px 0;
    animation: fadeInUp 0.5s ease forwards;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 22, 148, 0.05);
    color: var(--btp-pink, #ff1694);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 30px;
    position: relative;
}

.empty-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(255, 22, 148, 0.3));
}

.empty-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px dashed var(--btp-pink, #ff1694);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

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

.catalog-empty h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--btp-dark, #090b10);
    text-transform: uppercase;
}

.catalog-empty h3 span {
    color: var(--btp-pink, #ff1694);
}

.catalog-empty p {
    color: #6d747e;
    margin-bottom: 25px;
}

.btn-clear {
    background: var(--btp-dark, #090b10);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-clear:hover {
    transform: scale(1.05);
}

.catalog-empty:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--btp-pink, #ff1694);
}

.catalog-empty, .catalog-empty * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Mobile Tweaks */
@media (max-width: 768px) {
    .catalog-filters {
        top: 80px;
        margin-top: -30px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-filters {
        order: 2;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none;
    }
}


