/* ===== CATALOG PAGE FULL WIDTH ===== */
.catalog-page-full {
    display: flex;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* Left Sidebar */
.catalog-sidebar {
    width: 425px;
    background-color: #D9D9D9;
    border-right: 1px solid #000;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.catalog-category-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #4C4C4C;
}

.catalog-category-item:hover,
.catalog-category-item.active {
    color: #35A63A;
    background-color: rgba(53, 166, 58, 0.1);
}

.catalog-category-item img {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(11%) saturate(0%) hue-rotate(346deg) brightness(97%) contrast(87%);
    transition: filter 0.2s;
}

.catalog-category-item:hover img,
.catalog-category-item.active img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(94%) saturate(705%) hue-rotate(88deg) brightness(95%) contrast(90%);
}

.catalog-category-item span {
    font-size: 20px;
    font-weight: 600;
}

/* Mobile Menu Button - Integrated in header flow */
.catalog-mobile-btn {
    display: none;
    background-color: #35A63A;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
    margin: 12px 16px 16px 16px;
}

.catalog-mobile-btn i {
    margin-right: 6px;
}

.catalog-mobile-btn:hover {
    background-color: #2d8f32;
}

/* Mobile Overlay */
.catalog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 998;
    pointer-events: none;
}

/* Right Content */
.catalog-content {
    flex-grow: 1;
    padding: 0;
    background-color: white;
}

.catalog-header {
    padding: 0 32px;
}

.catalog-title {
    font-size: 50px;
    font-weight: 900;
    color: #4D4D4D;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    width: 100%;
}

/* Products Grid */
.catalog-products {
    padding: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-sidebar {
        width: 350px;
    }
    
    .catalog-category-item span {
        font-size: 18px;
    }
    
    .catalog-products {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .catalog-page-full {
        display: block;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .catalog-sidebar {
        width: 100%;
        max-width: 320px;
        border-right: none;
        border-bottom: 1px solid #000;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .catalog-sidebar.open {
        left: 0;
    }
    
    .catalog-mobile-btn {
        display: inline-block;
    }
    
    .catalog-overlay {
        display: none;
    }
    
    .catalog-overlay.active {
        display: block;
    }
    
    .catalog-category-item {
        padding: 16px 20px;
    }
    
    .catalog-category-item img {
        width: 32px;
        height: 32px;
    }
    
    .catalog-category-item span {
        font-size: 16px;
    }
    
    .catalog-title {
        font-size: 32px;
        padding: 12px 0;
    }
    
    .catalog-products {
        padding: 20px;
    }
    
    /* Center products on mobile */
    .catalog-products .row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .catalog-sidebar {
        max-width: 280px;
    }
    
    .catalog-title {
        font-size: 26px;
    }
    
    .catalog-products {
        padding: 16px;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-page {
    padding: 40px 0 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 170px);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-detail-image {
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-detail-info {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.product-detail-category {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-name {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 900;
    color: #F42331;
    margin-bottom: 24px;
}

.product-detail-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-add-to-cart-large {
    background-color: #35A63A;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.btn-add-to-cart-large:hover {
    background-color: #2d8f32;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 166, 58, 0.3);
}

.btn-add-to-cart-large i {
    font-size: 18px;
}

.btn-buy-now {
    background-color: white;
    color: #35A63A;
    border: 2px solid #35A63A;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-buy-now:hover {
    background-color: #35A63A;
    color: white;
}

.product-detail-meta {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.product-detail-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.product-detail-meta-label {
    color: #64748b;
    font-weight: 500;
}

.product-detail-meta-value {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
        margin: 0 16px;
    }
    
    .product-detail-image img {
        max-width: 100%;
        max-height: 400px;
    }
    
    .product-detail-name {
        font-size: 28px;
    }
    
    .product-detail-price {
        font-size: 26px;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .btn-add-to-cart-large,
    .btn-buy-now {
        width: 100%;
    }
}
