/* Unified Carousel Base Styles */
.carousel-wrap {
    position: relative;
    width: 100%;
    padding: 20px 40px;
    margin: 0 !important; /* Remove all margins */
}

/* Section spacing */
#category-section {
    margin: 0 !important; /* Remove all margins */
    padding: 0 !important; /* Remove all padding */
}

/* Add spacing to section title */
#category-section .section-title {
    margin-top: 30px;
}

/* Category carousel container */
.category-carousel-scroll {
    padding: 5px 0 !important; /* Minimal padding */
    margin: 0 !important;
}

.category-carousel-flex {
    gap: 2px !important; /* Reduce gap between items */
    padding: 0 !important;
}

/* Category carousel items */
.category-carousel-link {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    display: flex;
    gap: 2px;
    align-items: stretch;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Shared item styles */
.carousel-item {
    flex: 0 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure all items take full height */
    display: flex;
    flex-direction: column;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

/* Brand-specific styles */
.brand-item {
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.brand-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Category-specific styles */
.category-item {
    min-width: 100px;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding: 2px;
}

/* Create a container for both icon and text to ensure alignment */
.category-content {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4DB7FE, #01BBCC);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.category-icon-wrap i {
    color: #fff;
    font-size: 20px;
}

.category-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 3px auto 0;
    text-align: center;
    width: 50px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    position: static;
}

/* Navigation arrows */
.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-nav-arrow.left {
    left: 0;
}

.carousel-nav-arrow.right {
    right: 0;
}

.carousel-nav-arrow:hover {
    background: #f8f9fa;
}

.carousel-nav-arrow i {
    color: #666;
    font-size: 16px;
}

/* Brand Carousel Specific Styles */
.brand-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.brand-carousel-header h3 {
    color: #334e6f;
    font-size: 20px;
    font-weight: 600;
}

.brand-carousel-header .view-all-link {
    color: #4DB7FE;
    text-decoration: none;
}

/* Section headers */
.carousel-header {
    margin-bottom: 10px;
}

.carousel-header h2 {
    color: #334e6f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.carousel-header p {
    color: #878c9f;
    font-size: 14px;
} 