/**
 * PRODUITS PREMIUM SECTION - MOBILE RESPONSIVE STYLES
 * Optimized for mobile devices (max-width: 767px)
 */

/* ==========================================
   DESKTOP STYLES (min-width: 992px)
   ========================================== */

@media only screen and (min-width: 992px) {
    .premium-products-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        z-index: 10;
        pointer-events: none;
        left: 0;
        right: 0;
    }

    .premium-products-prev,
    .premium-products-next {
        position: absolute;
        cursor: pointer;
        pointer-events: all;
        background: rgba(255, 152, 0, 0.9);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s;
    }

    .premium-products-prev {
        left: 10px;
    }

    .premium-products-next {
        right: 10px;
    }

    .premium-products-prev:hover,
    .premium-products-next:hover {
        background: rgba(255, 152, 0, 1);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .premium-products-prev:active,
    .premium-products-next:active {
        transform: scale(0.95);
    }
}

@media only screen and (max-width: 767px) {

    /* ==========================================
       SECTION CONTAINER
       ========================================== */

    .category-one {
        padding: 40px 0 !important; /* Reduced padding */
        margin: 0 !important;
    }

    .category-one .auto-container {
        padding: 0 15px !important;
    }

    /* ==========================================
       SECTION TITLE
       ========================================== */

    .category-one .sec-title {
        margin-bottom: 30px !important;
    }

    .category-one .sec-title_title {
        font-size: 1.5rem !important; /* Reduced from 2.6rem */
        padding: 15px 20px !important; /* Reduced padding */
        margin-bottom: 15px !important;
        max-width: 90% !important;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4) !important;
    }

    .category-one .sec-title_heading {
        font-size: 1.5rem !important; /* Reduced */
        line-height: 1.3 !important;
        text-align: center !important;
        padding: 0 10px !important;
    }

    .category-one .sec-title_heading br {
        display: none !important; /* Remove line breaks on mobile */
    }

    /* ==========================================
       CAROUSEL WRAPPER
       ========================================== */

    .premium-products-carousel-wrapper {
        position: relative !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .premium-products-slider {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .premium-products-slider .swiper-wrapper {
        display: flex !important;
        align-items: stretch !important;
    }

    .premium-products-slider .swiper-slide {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* ==========================================
       ROW LAYOUT - One product per slide
       ========================================== */

    .premium-products-slider .row {
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    /* ==========================================
       PRODUCT CARD
       ========================================== */

    .category-block_one {
        width: 100% !important; /* Full width on mobile */
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .category-block_one-inner {
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        background: #fff !important;
        transition: all 0.3s ease !important;
    }

    .category-block_one-inner:hover {
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.2) !important;
        transform: translateY(-4px) !important;
    }

    /* ==========================================
       PRODUCT LABEL BADGE
       ========================================== */

    .product-label-badge {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10 !important;
        padding: 5px 12px !important; /* Slightly smaller */
        font-size: 11px !important;
        border-radius: 15px !important;
    }

    .product-label-badge i {
        font-size: 10px !important;
    }

    /* ==========================================
       PRODUCT TITLE
       ========================================== */

    .category-block_one-title {
        font-size: 1.1rem !important; /* Reduced */
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        padding: 0 5px !important;
    }

    .category-block_one-title a {
        color: var(--black-color) !important;
        text-decoration: none !important;
    }

    /* ==========================================
       PRODUCT IMAGE - Remove circular avatar, show full image
       ========================================== */

    .category-block_one-image {
        width: 100% !important;
        max-width: 100% !important; /* Full width instead of limited */
        margin: 0 auto 15px auto !important;
        display: block !important;
        text-align: center !important;
        background: transparent !important; /* Remove circular background */
        border-radius: 0 !important; /* Remove circular shape */
        padding: 0 !important;
    }

    .category-block_one-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important; /* Increased from 200px */
        object-fit: contain !important;
        border-radius: 12px !important; /* Rounded corners for image only */
        background: #f8f9fa !important; /* Light background for image */
        padding: 10px !important; /* Small padding around image */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    .category-block_one-icon {
        font-size: 80px !important; /* Increased icon size */
        display: block !important;
        text-align: center !important;
        color: var(--main-color) !important;
        padding: 20px !important;
        background: transparent !important; /* No circular background */
        border-radius: 0 !important;
    }

    /* ==========================================
       CATEGORY TEXT
       ========================================== */

    .category-block_one-text {
        font-size: 16px !important; /* Slightly reduced */
        font-weight: 600 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        color: var(--main-color) !important;
    }

    /* ==========================================
       ARROW LINK
       ========================================== */

    .category-block_one-arrow {
        display: block !important;
        text-align: center !important;
        font-size: 18px !important;
        color: var(--main-color) !important;
        margin-top: 10px !important;
        transition: all 0.3s ease !important;
    }

    .category-block_one-arrow:hover {
        color: var(--color-three) !important;
        transform: translateX(5px) !important;
    }

    /* ==========================================
       NAVIGATION ARROWS
       ========================================== */

    .premium-products-nav {
        position: static !important; /* Changed from absolute */
        transform: none !important;
        width: 100% !important;
        margin-top: 30px !important;
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        pointer-events: all !important;
    }

    .premium-products-prev,
    .premium-products-next {
        position: static !important; /* Not absolute on mobile */
        left: auto !important;
        right: auto !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(255, 152, 0, 0.9) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-size: 18px !important;
        cursor: pointer !important;
        pointer-events: all !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .premium-products-prev:hover,
    .premium-products-next:hover {
        background: rgba(255, 152, 0, 1) !important;
        transform: scale(1.1) !important;
    }

    .premium-products-prev:active,
    .premium-products-next:active {
        transform: scale(0.95) !important;
    }

    /* ==========================================
       BACKGROUND PATTERN
       ========================================== */

    .category-one > div[style*="background: url"] {
        opacity: 0.3 !important; /* Lighter background on mobile */
    }
}

/* ==========================================
   SMALL MOBILE (max-width: 480px)
   ========================================== */

@media only screen and (max-width: 480px) {

    .category-one {
        padding: 30px 0 !important;
    }

    .category-one .sec-title_title {
        font-size: 1.3rem !important;
        padding: 12px 15px !important;
    }

    .category-one .sec-title_heading {
        font-size: 1.3rem !important;
    }

    .category-block_one-inner {
        padding: 15px 12px !important;
    }

    .category-block_one-title {
        font-size: 1rem !important;
    }

    .category-block_one-image {
        max-width: 100% !important; /* Full width on small mobile */
        margin-bottom: 12px !important;
    }

    .category-block_one-image img {
        max-height: 220px !important; /* Slightly reduced */
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .category-block_one-text {
        font-size: 14px !important;
    }

    .product-label-badge {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

    .premium-products-prev,
    .premium-products-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

/* ==========================================
   TABLET (768px - 991px)
   ========================================== */

@media only screen and (min-width: 768px) and (max-width: 991px) {

    .category-one .sec-title_title {
        font-size: 2rem !important;
    }

    .category-one .sec-title_heading {
        font-size: 1.8rem !important;
    }

    /* Show 2 products per row on tablet */
    .premium-products-slider .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .category-block_one {
        width: 50% !important;
        max-width: 50% !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
    }

    .premium-products-nav {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-top: 0 !important;
    }

    .premium-products-prev {
        position: absolute !important;
        left: -40px !important;
    }

    .premium-products-next {
        position: absolute !important;
        right: -40px !important;
    }
}

