/* Boutique Styles - Mobile First */

.boutique-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: calc(100vh - 80px);
}

/* Header avec barre de recherche */
.boutique-header {
    background: #182D38;
    padding: 15px 20px;
    position: relative;
    z-index: 100;
}

.boutique-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.boutique-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boutique-search-bar {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
}

.boutique-search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.boutique-search-bar:focus {
    background: rgba(255, 255, 255, 0.15);
}

.boutique-voice-btn {
    display: none;
}

/* Navigation Tabs */
.boutique-tabs {
    background: #182D38;
    padding: 0 20px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.boutique-tabs::-webkit-scrollbar {
    display: none;
}

.boutique-tab {
    padding: 15px 20px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
    flex-shrink: 0;
}

.boutique-tab.active {
    color: #C9F1EA;
}

.boutique-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C9F1EA;
}

.boutique-tab:hover {
    color: #C9F1EA;
}

/* Banner Promotionnel */
.boutique-banner {
    background: #C9F1EA;
    padding: 20px;
    text-align: center;
    margin: 0;
}

.boutique-banner h2 {
    color: #182D38;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.boutique-banner p {
    color: #182D38;
    font-size: 14px;
    margin: 0;
}

/* Contenu principal */
.boutique-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.boutique-tab-content {
    display: none;
}

.boutique-tab-content.active {
    display: block;
}

/* Grille d'items */
.boutique-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Carte d'item */
.boutique-item-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #182D38;
    padding: 15px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    transition: transform 0.3s;
    align-items: stretch;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.boutique-item-card:hover {
    transform: translateY(-5px);
}

.boutique-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.boutique-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.boutique-item-price {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: left;
}

.boutique-item-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.boutique-item-image {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    min-width: 200px;
    max-width: 300px;
    height: 120%;
    min-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1;
}

/* Style spécifique pour les images des clés en mobile uniquement */
@media (max-width: 767px) {
    #cles-content .boutique-item-image {
        width: 40%;
        min-width: 120px;
        max-width: 180px;
        height: 100%;
        min-height: 180px;
        object-fit: contain;
    }
}

.boutique-item-button {
    padding: 8px 16px;
    background: white;
    border: 2px solid #182D38;
    border-radius: 8px;
    color: #182D38;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.boutique-item-button:hover {
    background: #182D38;
    color: #F0E090;
}

.boutique-item-button::after {
    content: '→';
    font-size: 18px;
}

.boutique-item-button-disabled {
    background: #e0e0e0 !important;
    border-color: #b0b0b0 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.boutique-item-button-disabled:hover {
    background: #e0e0e0 !important;
    color: #888 !important;
}

.boutique-item-button-disabled::after {
    content: '' !important;
}

/* Responsive Tablet */
@media (min-width: 768px) {

    .boutique-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .boutique-item-card {
        padding: 20px;
        flex-direction: column;
        overflow: visible;
    }

    .boutique-item-content {
        order: 1;
        align-items: center;
        position: static;
        z-index: auto;
    }

    .boutique-item-price {
        text-align: center;
        margin: 0 0 10px 0;
    }

    .boutique-item-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    .boutique-item-image {
        position: static;
        transform: none;
        width: 100%;
        height: 250px;
        min-width: auto;
        max-width: none;
        min-height: auto;
        order: 0;
        right: auto;
        top: auto;
    }

    /* Style spécifique pour les images des clés en tablette */
    #cles-content .boutique-item-image {
        object-fit: contain;
    }

    .boutique-banner h2 {
        font-size: 28px;
    }

    .boutique-banner p {
        font-size: 16px;
    }
}

/* Responsive Desktop */
@media (min-width: 1024px) {
    .boutique-container {
        padding-top: 0;
    }

    .boutique-back-btn {
        display: none;
    }

    .boutique-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .boutique-item-card {
        flex-direction: column;
        overflow: visible;
    }

    .boutique-item-content {
        order: 1;
        align-items: center;
        position: static;
        z-index: auto;
    }

    .boutique-item-price {
        text-align: center;
        margin: 0 0 10px 0;
    }

    .boutique-item-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    .boutique-item-image {
        position: static;
        transform: none;
        width: 100%;
        height: 280px;
        min-width: auto;
        max-width: none;
        min-height: auto;
        order: 0;
        right: auto;
        top: auto;
    }

    /* Style spécifique pour les images des clés en desktop */
    #cles-content .boutique-item-image {
        object-fit: contain;
    }

    .boutique-tabs {
        justify-content: center;
        padding: 0;
    }

    .boutique-tab {
        padding: 20px 30px;
        font-size: 18px;
    }

    .boutique-content {
        padding: 40px 20px;
    }
}

