/* ============================================
   Category Slider Module
   Designed by: Srijith
   Fully Responsive Design
   ============================================ */

/* Category Slider Module Styles */
.category-slider-module {
    padding: 30px 0;
    overflow: hidden;
}

/* Category Slider Header Styles */
.category-slider-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.category-slider-heading {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-slider-sub-heading {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 30px;
}

.category-slider-sub-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M50 0 L60 10 L50 20 L40 10 Z" fill="%23c9a961"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 20px;
}

.category-slider-wrapper {
    position: relative;
    margin: 0 -15px;
}

.category-slider {
    display: flex;
    flex-wrap: wrap;
}

.category-item {
    padding: 0 15px;
    margin-bottom: 30px;
    position: relative;
}

.category-item a {
    display: block;
    text-decoration: none;
    position: relative;
}

.category-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 445px;
    height: 0;
    padding-bottom: 93.26%; /* Aspect ratio: 415/445 = 0.9326 (93.26%) - maintains proportions */
    margin: 0 auto;
}

.category-image-wrapper:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.category-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the container while maintaining aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.category-image-wrapper:hover img {
    transform: scale(1.02);
}

.category-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 12px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.category-item:hover .category-label {
    bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-name {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* Slick Slider Customization */
.category-slider.slick-initialized {
    display: block;
}

.category-slider .slick-slide {
    outline: none;
}

.category-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-slider .slick-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-slider .slick-prev {
    left: -20px;
}

.category-slider .slick-next {
    right: -20px;
}

.category-slider .slick-arrow:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: #333;
    opacity: 1;
}

.category-slider .slick-prev:before {
    content: '\f053';
}

.category-slider .slick-next:before {
    content: '\f054';
}

.category-slider .slick-dots {
    bottom: -30px;
}

.category-slider .slick-dots li button:before {
    font-size: 12px;
    color: #333;
    opacity: 0.5;
}

.category-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #333;
}

/* Grid Layout (when slider is disabled) */
.category-grid .category-item {
    margin-bottom: 30px;
}

/* Responsive Styles - Designed by Srijith */

/* Large Tablets and Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .category-image-wrapper {
        max-width: 380px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .category-slider-module {
        padding: 25px 0;
    }
    
    .category-slider-header {
        margin-bottom: 30px;
    }
    
    .category-slider-heading {
        font-size: 30px;
    }
    
    .category-slider-sub-heading {
        font-size: 15px;
    }
    
    .category-image-wrapper {
        max-width: 340px;
    }
    
    .category-slider .slick-prev {
        left: 0;
    }
    
    .category-slider .slick-next {
        right: 0;
    }
    
    .category-name {
        font-size: 15px;
    }
}

/* Small Tablets and Large Phones (576px - 767px) */
@media (max-width: 767px) {
    .category-slider-module {
        padding: 20px 0;
    }
    
    .category-slider-header {
        margin-bottom: 25px;
    }
    
    .category-slider-heading {
        font-size: 26px;
    }
    
    .category-slider-sub-heading {
        font-size: 14px;
    }
    
    .category-image-wrapper {
        max-width: 100%;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .category-label {
        padding: 10px 20px;
        bottom: 15px;
    }
    
    .category-slider .slick-arrow {
        width: 35px;
        height: 35px;
    }
    
    .category-slider .slick-arrow:before {
        font-size: 16px;
    }
    
    .category-item {
        margin-bottom: 25px;
    }
}

/* Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .category-slider-module {
        padding: 15px 0;
    }
    
    .category-slider-header {
        margin-bottom: 20px;
    }
    
    .category-slider-heading {
        font-size: 22px;
        letter-spacing: 0.5px;
    }
    
    .category-slider-sub-heading {
        font-size: 13px;
    }
    
    .category-slider-wrapper {
        margin: 0 -10px;
    }
    
    .category-item {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .category-name {
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .category-label {
        padding: 8px 15px;
        bottom: 10px;
    }
    
    .category-slider .slick-arrow {
        width: 30px;
        height: 30px;
    }
    
    .category-slider .slick-arrow:before {
        font-size: 14px;
    }
}

/* Extra Small Mobile Devices (up to 400px) */
@media (max-width: 400px) {
    .category-slider-module {
        padding: 10px 0;
    }
    
    .category-slider-header {
        margin-bottom: 15px;
    }
    
    .category-slider-heading {
        font-size: 18px;
        letter-spacing: 0.3px;
    }
    
    .category-slider-sub-heading {
        font-size: 12px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .category-label {
        padding: 6px 12px;
        bottom: 8px;
    }
    
    .category-slider .slick-arrow {
        width: 28px;
        height: 28px;
    }
    
    .category-slider .slick-arrow:before {
        font-size: 12px;
    }
}

/* ============================================
   Designed and Developed by: Srijith
   Fully Responsive Across All Devices
   ============================================ */


/* FIXED LAYOUT */
.category-slider-module .container{
    width:100%;
    padding:0;
}

.category-slider-wrapper,
.category-slider{
    margin:0 !important;
}

.category-item{
    padding:0 10px !important;
}

.category-image-wrapper{
    max-width:100% !important;
    width:100% !important;
    height:415px !important;
    padding-bottom:0 !important;
}

.category-image-wrapper img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.category-slider .slick-track{
    display:flex !important;
}

.category-slider .slick-slide{
    height:auto !important;
}

.category-slider .slick-slide > div{
    height:100%;
}
