/* Products Page - White Catalogue Theme */
.products-page-wrapper {
    background-color: #ffffff !important;
    /* Force white background */
    min-height: 100vh;
    padding-top: 100px;
    /* Space for fixed navbar */
    padding-bottom: 80px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

/* Ensure global reset doesn't override */
body {
    background-color: #ffffff;
}

.products-hero {
    /* Kept structure but removed conflicting styles if any */
    padding-bottom: 40px;
    display: none;
    /* User requested removal of content, so we hide the section or remove markup */
}

.products-split-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

/* Catalogue Sidebar */
.catalogue-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.catalogue-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cat-link:hover {
    background: #f1f5f9;
    color: #4B5563;
}

.cat-link.active {
    background: #556b2f;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cat-link .count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cat-link.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar-promo {
    margin-top: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.sidebar-promo h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-promo p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.sidebar-promo a {
    font-size: 0.85rem;
    color: #556b2f;
    font-weight: 600;
    text-decoration: none;
}

/* Main Content */
.catalogue-content {
    flex-grow: 1;
}

.collection-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.section-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.collection-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}

.collection-subtitle {
    color: #64748b;
    margin: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    /* Robust square layout */
    background: #f1f5f9;
    padding: 24px;
    /* Previous design padding */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrap .product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Don't crop the product, as in previous design */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-cat {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-actions {
    margin-top: auto;
}

.btn-bulk-order {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn-bulk-order:hover {
    background-color: #556b2f;
    color: white;
    border-color: #556b2f;
}

/* Responsive */
@media (max-width: 992px) {
    .products-split-layout {
        flex-direction: column;
    }

    .catalogue-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 40px;
        z-index: 10;
        overflow-x: auto;
    }

    .catalogue-nav {
        flex-direction: row;
        padding-bottom: 10px;
    }

    .cat-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
}