/**
 * Product Slider Styles
 * Matches Figma design exactly - "Best Sellers & Seasonal Picks"
 */

/* Section Container */
.product-slider-section {
    padding: 30px 0;
    background-color: #fff;
}

.product-slider-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.product-slider-header {
    text-align: center;
    margin-bottom: 15px;
}

.product-slider-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Product Slider Items Container */
.product-slider-items {
    margin-bottom: 40px;
}

/* Product Slider Item */
.product-slider-item {
    padding: 0 10px;
    outline: none;
    height: auto;
    display: flex;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #BDBDBD;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

/* Product Image */
.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio to match Figma */
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

/* Product Content */
.product-card-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-category {
    font-size: 11px;
    color: #757575;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.product-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 14px;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Features - Limited to 3 lines */
.product-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-card-features li {
    position: relative;
    padding-left: 12px;
    font-size: 12px;
    color: #424242;
    line-height: 1.6;
    margin-bottom: 4px;
}

.product-card-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #757575;
    font-size: 14px;
}

.product-card-features li:empty {
    display: none;
}

/* Price and Button Container - Inline on same line */
.product-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Product Price */
.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* See Details Button */
.product-card-action {
    flex: 1;
    min-width: 0;
}

.product-card-button {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background-color: #FF6B35;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.product-card:hover .product-card-button {
    background-color: #E85A24;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* View More Button */
.product-slider-view-more {
    text-align: center;
    margin-top: 0;
}

.btn-view-more {
    display: inline-block;
    padding: 13px 45px;
    background-color: #1F2937;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #374151;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Slick Slider Customization */
.product-slider-items.slick-slider {
    position: relative;
    margin-bottom: 20px;
}

.product-slider-items .slick-list {
    overflow: hidden;
    margin: 0 -10px;
}

.product-slider-items .slick-track {
    display: flex !important;
    align-items: stretch;
}

.product-slider-items .slick-slide {
    height: auto;
    display: flex !important;
    align-items: stretch;
    padding: 0 30px;
}

/* Slick Arrows */
.product-slider-items .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.product-slider-items .slick-arrow:before {
    font-family: 'FontAwesome', sans-serif;
    font-size: 16px;
    color: #333;
    opacity: 1;
}

.product-slider-items .slick-arrow:hover {
    background-color: #FF6B35;
    border-color: #FF6B35;
}

.product-slider-items .slick-arrow:hover:before {
    color: #fff;
}

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

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

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

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

/* Slick Dots */
.product-slider-items .slick-dots {
    position: static;
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 15px 0 0;
    margin: 0;
}

.product-slider-items .slick-dots li {
    margin: 0 5px;
}

.product-slider-items .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    background-color: #ddd;
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-slider-items .slick-dots li button:before {
    display: none;
}

.product-slider-items .slick-dots li.slick-active button {
    background-color: #FF6B35;
    width: 24px;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-slider-title {
        font-size: 28px;
    }

    .product-card-image-wrapper {
        min-height: 240px;
        max-height: 240px;
    }

    .product-slider-items .slick-prev {
        left: -15px;
    }

    .product-slider-items .slick-next {
        right: -15px;
    }
}

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

    .product-slider-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .product-slider-header {
        margin-bottom: 15px;
    }

    .product-card-image-wrapper {
        min-height: 200px;
        max-height: 200px;
    }

    .product-card-name {
        font-size: 16px;
        min-height: auto;
    }

    .product-card-features {
        min-height: auto;
    }

    .product-slider-items .slick-prev {
        left: 0;
    }

    .product-slider-items .slick-next {
        right: 0;
    }

    .product-slider-items .slick-arrow {
        width: 35px;
        height: 35px;
    }

    .product-slider-items .slick-arrow:before {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-slider-item {
        padding: 0 5px;
    }

    .product-card-image-wrapper {
        min-height: 180px;
        max-height: 180px;
    }

    .product-card-content {
        padding: 15px 12px;
    }

    .product-slider-title {
        font-size: 20px;
    }

    .product-slider-view-more {
        margin-top: 0;
    }

    .btn-view-more {
        padding: 12px 30px;
        font-size: 13px;
    }
}
