/* Custom Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Header Adjustment */
.header_sticky .sticky-brand-nav {
    top: 70px; /* Adjust based on your main header height */
}

/* Brand Pill Hover Effects */
.brand-pill {
    transition: all 0.2s ease;
}
.brand-pill:hover:not(.btn-dark) {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    transform: translateY(-1px);
}
.brand-pill.btn-dark {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.brand-pill.btn-dark img {
    filter: brightness(1.1);
}

/* Product Grid Transitions */
#products-grid {
    transition: opacity 0.3s ease;
}
#products-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Banner Text Shadow */
.shop-banner__content .text-white {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Category Banner Improvements */
.shop-banner {
    border-radius: 16px !important;
}

.shop-banner__content {
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .shop-banner__content {
        padding: 3rem 2rem;
    }
}

/* Brand Navigation Improvements */
.sticky-brand-nav {
    border: 1px solid #e9ecef !important;
}

.brand-scroll-container {
    padding: 1rem 0.75rem;
}

@media (min-width: 768px) {
    .brand-scroll-container {
        padding: 1.25rem 1rem;
    }
}

/* Brand Scroll Arrows */
.brand-scroll-arrow {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef !important;
    background-color: #fff !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.brand-scroll-arrow:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.05);
}

.brand-scroll-arrow:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .brand-scroll-arrow {
        width: 36px !important;
        height: 36px !important;
    }

    .brand-scroll-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Products Section Spacing */
.category-page-wrapper {
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .category-page-wrapper {
        padding-bottom: 2rem;
    }
}

/* Empty State Improvements */
.empty-state {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .empty-state {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

.empty-state svg {
    opacity: 0.4;
}

/* Loading Spinner Improvements */
#btn-loading-spinner {
    border-width: 3px;
}

/* Child Category Cards (Small) */
.category-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    height: 100%;
}

.category-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.category-card--small {
    padding: 1rem 0.75rem;
    min-height: 140px;
    border-radius: 10px;
}

.category-card__image-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.category-card__image-wrapper--small {
    height: 50px;
    margin-bottom: 0.5rem;
}

.category-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__image {
    transform: scale(1.05);
}

.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.category-card__content {
    text-align: center;
    width: 100%;
}

.category-card__content--small {
    padding: 0;
}

.category-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card__title--small {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 1;
}

.category-card__count {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.category-card__count--small {
    font-size: 0.7rem;
}

@media (min-width: 768px) {
    .category-card--small {
        padding: 1.25rem 1rem;
        min-height: 160px;
    }

    .category-card__image-wrapper--small {
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .category-card__title--small {
        font-size: 0.85rem;
    }

    .category-card__count--small {
        font-size: 0.75rem;
    }
}

