/* ============================================================
   =============== BASE RESET ===============================
============================================================ */
* {
    box-sizing: border-box;
}

/* ============================================================
   =============== SEARCH PAGE LAYOUT ========================
============================================================ */

/* --- Container principal --- */
.search-page-container {
    width: 100%;
    min-height: 100vh;
    background: white;
    padding-bottom: 50px;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header Search --- */
.search-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-header .logo {
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* --- Sticky Barre Recherche --- */
.sticky-search {
    position: sticky;
    top: 70px;
    /* z-index: 999; */
    background: white;
    padding: 8px 15px;
    border-radius: 35px;
    margin-bottom: 20px;
}

.sticky-search.is-sticky {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

/* --- Zone centrale --- */
.search-content {
    margin-top: 80px;
}

/* --- Input Search --- */
.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #4bcef3;
    padding: 8px 15px;
    max-width: 650px;
    margin: 0 auto 20px auto;
    margin-top: 100px;
    border-radius: 35px;
}

.search-input-wrapper svg {
    margin-right: 15px;
    width: 28px;
    height: 28px;
    fill: #4bcef3;
}

.search-input-lg {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 5px 0;
    color: #4bcef3;
}

.search-input-lg::placeholder {
    color: #aaa;
    font-style: italic;
}


/* ============================================================
   =============== PRODUCT GRID =============================
============================================================ */

.product-grid-search {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*gap: 30px;*/
    justify-content: center;
}

.product-card {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
}

.custom-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #fff;
    color: #000;
    font-size: 10px;
    padding: 3px 6px;
    font-weight: 500;
}

.wishlist-btn {
    position: absolute;
    top: 5px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}

.wishlist-btn svg {
    fill: #000;
    transition: fill 0.2s;
}

.wishlist-btn:hover svg {
    fill: #4bcef3;
}

.product-info {
    text-align: center;
}

.product-info p {
    margin: 2px 0;
    font-size: 13px;
    color: #000;
}

.product-price { font-weight: 600; }


/* ============================================================
   =============== RESPONSIVE ================================
============================================================ */

/* --- TABLETTE --- */
@media (max-width: 1024px) {
    .search-header .logo { font-size: 20px; }

    .search-input-wrapper svg {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* --- MOBILE --- */
@media (max-width: 768px) {

    .search-header { padding: 8px 0 12px; }
    .search-header .logo { font-size: 18px; }

    .search-input-wrapper {
        padding: 6px 12px;
        border-radius: 28px;
    }

    .search-input-wrapper svg {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }

    .search-input-lg { font-size: 15px; }

    .popular-searches .tags a {
        padding: 4px 10px;
        font-size: 13px;
        border-radius: 20px;
        background: #f5f5f5;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* --- PETITS TELEPHONES --- */
@media (max-width: 500px) {
    .search-header .logo { font-size: 16px; }

    .search-input-wrapper {
        padding: 5px 10px;
        border-radius: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info p { font-size: 12px; }

    .custom-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .wishlist-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* --- ULTRA SMALL --- */
@media (max-width: 360px) {
    .search-input-lg { font-size: 13px;
     }
     
    .product-grid {
        gap: 8px;
        grid-template-columns: repeat(2, 2fr) !important; /* 1 produit par ligne */
        gap: 1rem;
    }
}



/* ============================================================
   =============== SLIDER DIVYA =============================
============================================================ */



.slider { margin: 0 auto; }

.slide_viewer {
    height: 340px;
    overflow: hidden;
    position: relative;
}

.slide_group {
    height: 100%;
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
}

.slide:first-child {
    display: block;
}

.slide:nth-of-type(1) { background: #D7A151; }
.slide:nth-of-type(2) { background: #F4E4CD; }
.slide:nth-of-type(3) { background: #C75534; }
.slide:nth-of-type(4) { background: #D1D1D4; }

.slide_buttons {
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
}

a.slide_btn {
    color: #474544;
    font-size: 32px;
    margin: 0 0.175em;
    transition: all 0.4s ease;
}

.slide_btn.active,
.slide_btn:hover {
    color: #428CC6;
    cursor: pointer;
}

.directional_nav {
    height: 240px;
    max-width: 940px;
    margin: 0 auto;
    position: relative;
    top: -340px;
}

.previous_btn,
.next_btn {
    cursor: pointer;
    height: 60px;
    width: 50px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.previous_btn { left: 50px; }
.next_btn { right: 50px; }

.previous_btn:hover,
.next_btn:hover {
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .previous_btn { left: 30px; }
    .next_btn { right: 30px; }
}
