/* Catalog Page Styles */
.catalog-section {
    padding: 3rem 0;
    background-color: #fcfbfe;
}

.catalog-header-search {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.catalog-search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.catalog-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem !important;
    font-size: 1rem;
    border: 2px solid #e0d5f0;
    border-radius: 50px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(181, 107, 255, 0.05);
}

.catalog-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(181, 107, 255, 0.15);
    outline: none;
}

.catalog-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a493b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    background-color: var(--light);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--accent);
    color: var(--dark);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(188, 146, 87, 0.3);
}

/* Product Card Improvements */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(181, 107, 255, 0.12);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: linear-gradient(135deg, #f5f0ff, #e9e0fc);
    overflow: hidden;
}

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

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

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #b56bff;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(181, 107, 255, 0.2));
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.product-badge.budget {
    background: linear-gradient(135deg, #4ecdc4, #6ee2da);
    color: white;
}

.product-badge.premium {
    background: linear-gradient(135deg, #ffe66d, #fff099);
    color: #4a3e00;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #c8b7db;
    border-radius: 4px;
}

.thumb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background-color: #fdfdfd;
}

.thumb-img:hover {
    border-color: #d1b8fa;
}

.thumb-img.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(181, 107, 255, 0.2);
}

.remaining-images-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background-color: #f3ecfc;
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    margin-left: 0.25rem;
    white-space: nowrap;
    border: 1px dashed var(--primary);
    display: inline-block;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f3ecfc;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-footer .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.add-to-cart-btn {
    background: var(--accent);
    color: #3f3500;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background-color: #f7d848;
    color: #2b2400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 230, 109, 0.4);
}

.view-more-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.view-more-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 107, 255, 0.2);
    text-decoration: none;
}

/* Page Header Design */
.page-header {
    background: linear-gradient(135deg, var(--light), var(--background));
    padding: 4rem 0 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(188, 146, 87, 0.2);
}

.catalog-header-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* No Results Section */
.no-results-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #b56bff;
    opacity: 0.6;
}

.no-results-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.no-results-card p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

/* Responsive adjustements */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.25rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .catalog-section {
        padding: 2rem 0;
    }
    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.88rem;
    }
}