.product-categories-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    /* Sleek light background */
}

/* Section Title & Accent Line */
.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-bottom: 70px; */
}

.brand-line {
    width: 2px;
    height: 80px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    /* Brighter brand color for title */
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

/* Categories Carousel */
.categories-grid-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

/* Category item */
.category-item {
    background: transparent;
    padding: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    flex-shrink: 0;
    cursor: pointer;
    color: #4a4a4a;
}

.category-item h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

/* Active State & Hover Effect */
.category-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 1;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
    opacity: 0;
}

.category-item.active .category-icon::before,
.category-item:hover .category-icon::before {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.category-item.active h3 {
    color: #333;
    font-weight: 700;
}

.category-icon img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    transition: all 0.4s ease;
}

/* Category Detail Section */
.category-detail-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.detail-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image-column img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Removed drop shadow for a floating look on light background */
}

.detail-content-column {
    flex: 1.2;
    /* Slightly wider text column */
}

.detail-content-column h2 {
    font-size: 56px;
    /* Larger title as seen in screenshot */
    color: #1a4a7c;
    /* Deep blue from screenshot */
    margin-bottom: 25px;
    font-weight: 400;
    /* Lighter weight for premium feel */
}

.detail-content-column p {
    font-size: 19px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 45px;
    max-width: 550px;
}

.btn-know-more {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-muted);
    /* Very subtle brand tint background */
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-know-more:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .category-detail-section {
        gap: 40px;
    }

    .detail-content-column h2 {
        font-size: 40px;
    }

    .detail-content-column p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .product-categories-section {
        padding: 60px 0;
    }

    .section-title-wrapper {
        margin-bottom: 40px;
    }

    .brand-line {
        height: 50px;
    }

    .category-detail-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .detail-content-column h2 {
        font-size: 32px;
    }

    .detail-content-column p {
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
        margin-bottom: 30px;
    }

    .categories-grid {
        justify-content: flex-start;
        padding-bottom: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .category-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .detail-content-column h2 {
        font-size: 28px;
    }

    .btn-know-more {
        width: 100%;
        padding: 12px 20px;
    }
}