/* ========================================
   CATALOG & PRODUCT PAGES STYLES
======================================== */

/* Purple Banner */
.catalog-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem 1rem;
    text-align: center;
}

.banner-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.banner-accent {
    color: var(--accent-color);
    font-weight: 600;
}

/* Search Section */
.search-section {
    padding: 2rem 1rem;
    background: white;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(104, 36, 211, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #999;
    pointer-events: none;
}

/* Products Section */
.products-section {
    padding: 3rem 1rem 5rem;
    background: white;
}

.section-title-purple {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card,
.product-card-catalog {
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Match soft shadow from ref */
    transition: all 0.3s;
    position: relative;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.product-card-catalog:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-star {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    background: transparent;
}

.product-star i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-image-wrapper {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1.2rem;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image,
.product-card-catalog:hover .product-image {
    transform: scale(1.1);
    /* Zoom effect requested */
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.2rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.btn-ver-mas {
    display: inline-block;
    padding: 0.7rem 2.5rem;
    background: var(--primary-color);
    /* Default purple from mockup */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    margin-top: auto;
    /* Push to bottom */
}

.btn-ver-mas:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 36, 211, 0.4);
}

/* Featured overrides if still needed, but now default is purple */
.product-card[data-featured="1"] .btn-ver-mas,
.product-card-catalog[data-featured="1"] .btn-ver-mas {
    background: var(--primary-color);
}

.product-card[data-featured="1"] .btn-ver-mas:hover,
.product-card-catalog[data-featured="1"] .btn-ver-mas:hover {
    background: var(--primary-dark);
}

/* Catalog CTA */
.catalog-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-catalog-full {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-catalog-full:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(104, 36, 211, 0.3);
}

/* ========================================
   CATALOG PAGE WITH SIDEBAR LAYOUT
======================================== */

.catalog-content {
    padding: 3rem 1rem;
    background: #f5f5f5;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.catalog-sidebar {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.category-list a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.category-list a.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Catalog Main Area */
.catalog-main {
    background: transparent;
}

.search-wrapper-catalog {
    max-width: 100%;
    margin: 0 0 2rem 0;
    position: relative;
}

/* Products Grid for Catalog */
.products-grid-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card-catalog {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-align: center;
}

.product-card-catalog:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Responsive Catalog Layout */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .products-grid-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-grid-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid-catalog {
        grid-template-columns: 1fr;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .section-title-purple {
        font-size: 1.5rem;
    }
}