/**
 * Styles pour le module TopBar Custom
 * Fichier: modules/topbarcustom/views/css/topbarcustom.css
 */

.topbar-custom-container {
    width: 100%;
    padding: 10px 0;
}

.topbar-custom-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.topbar-item {
    display: flex;
    align-items: center;
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.topbar-link:hover {
    color: #0c6e6e;
    background-color: rgba(12, 110, 110, 0.05);
}

.topbar-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.topbar-text {
    font-size: 14px;
    font-weight: 500;
}

/* Panier */
.topbar-cart .topbar-link {
    position: relative;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-count[data-cart-qty="0"] {
    display: none;
}

/* Bouton personnalisé */
.topbar-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-custom-wrapper {
        gap: 10px;
    }

    .topbar-text {
        display: none;
    }

    .topbar-link {
        padding: 8px;
    }

    .topbar-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .topbar-custom-wrapper {
        gap: 8px;
    }

    .topbar-link svg {
        width: 20px;
        height: 20px;
    }

    .topbar-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .cart-count {
        font-size: 10px;
        padding: 1px 5px;
        min-width: 16px;
        height: 16px;
    }
}