/**
 * Stili frontend Group Buy Manager
 */

/* Nascondi completamente la barra di amministrazione WordPress per i clienti */
body:not(.wp-admin) #wpadminbar {
    display: none !important;
}

/* Rimuovi il margin-top che WordPress aggiunge quando la barra è visibile */
body:not(.wp-admin) {
    margin-top: 0 !important;
}

html:not(.wp-admin) {
    margin-top: 0 !important;
}

/* Reset e base - Previene overflow orizzontale */
.gbm-page-container,
.gbm-deals-list-wrapper,
.gbm-deals-list,
.gbm-deal-card-compact {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.gbm-deals-list-wrapper *,
.gbm-deals-list *,
.gbm-deal-card-compact * {
    box-sizing: border-box;
}

/* Assicura che le card non escano dal container */
.gbm-deal-card-compact {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gbm-deal-card-compact-title,
.gbm-deal-card-compact-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Messaggi */
.gbm-message {
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 5px solid;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gbm-message p {
    margin: 0;
}

.gbm-message p + p {
    margin-top: 10px;
}

.gbm-message.gbm-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.gbm-message.gbm-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.gbm-message.gbm-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-color: #17a2b8;
    color: #0c5460;
}

/* Container principale pagine */
.gbm-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Nascondi titolo e sottotitolo della pagina Offerte di Gruppo */
.gbm-deals-list-wrapper ~ * .entry-title,
.gbm-deals-list-wrapper ~ * h1.entry-title,
.gbm-deals-list-wrapper ~ * .page-title,
.gbm-deals-list-wrapper ~ * h1.page-title,
body:has(.gbm-deals-list-wrapper) .entry-title,
body:has(.gbm-deals-list-wrapper) h1.entry-title,
body:has(.gbm-deals-list-wrapper) .page-title,
body:has(.gbm-deals-list-wrapper) h1.page-title,
body:has(.gbm-deals-list-wrapper) .wp-block-post-title,
body:has(.gbm-deals-list-wrapper) .has-text-align-center {
    display: none !important;
}

/* Nascondi anche il paragrafo sottotitolo se presente */
body:has(.gbm-deals-list-wrapper) .has-text-align-center p,
body:has(.gbm-deals-list-wrapper) p.has-text-align-center,
body:has(.gbm-deals-list-wrapper) .entry-content > p:first-of-type,
body:has(.gbm-deals-list-wrapper) .wp-block-post-content > p:first-of-type {
    display: none !important;
}

/* Nascondi paragrafi che contengono testo sulle offerte */
body:has(.gbm-deals-list-wrapper) p:contains("Scopri le nostre offerte"),
body:has(.gbm-deals-list-wrapper) p:contains("Registrati o accedi per partecipare") {
    display: none !important;
}

@media (max-width: 767px) {
    .gbm-page-container {
        padding: 20px 15px;
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .gbm-page-container {
        padding: 50px 30px;
    }
}

/* Form registrazione e login */
.gbm-registration-form,
.gbm-login-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Contenuto centrato */
.gbm-centered-content {
    text-align: center;
}

.gbm-centered-content .gbm-form {
    text-align: left;
}

.gbm-centered-content .gbm-message {
    text-align: center;
}

.gbm-login-external {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.gbm-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Form compatto */
.gbm-form-compact {
    padding: 30px;
}

.gbm-form-compact .gbm-form-section {
    margin-bottom: 30px;
}

.gbm-form-compact .gbm-form-section:last-of-type {
    margin-bottom: 20px;
}

.gbm-form-compact .gbm-form-section-optional {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.gbm-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 1.3em;
    font-weight: 700;
}

.gbm-form h3 .optional-label {
    font-size: 0.75em;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

/* Form rows */
.gbm-form-row {
    margin-bottom: 20px;
}

.gbm-form-row-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gbm-form-row-half {
    flex: 1;
    margin-bottom: 0;
}

.gbm-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gbm-form-row .required {
    color: #dc3545;
    font-weight: 700;
}

/* Checkbox row */
.gbm-form-row-checkbox {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffc107;
    margin-bottom: 25px;
}

.gbm-form-row-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.gbm-form-row-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    cursor: pointer;
}

/* Submit button */
.gbm-form-submit {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .gbm-form-compact {
        padding: 20px;
    }
    
    .gbm-form-row-group {
        flex-direction: column;
        gap: 0;
    }
    
    .gbm-form-row-half {
        margin-bottom: 20px;
    }
}

.gbm-form-row input[type="text"],
.gbm-form-row input[type="email"],
.gbm-form-row input[type="password"],
.gbm-form-row input[type="number"],
.gbm-form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
}

.gbm-form-row input[type="text"]:focus,
.gbm-form-row input[type="email"]:focus,
.gbm-form-row input[type="password"]:focus,
.gbm-form-row input[type="number"]:focus,
.gbm-form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gbm-form-row textarea {
    resize: vertical;
}

.gbm-form-row input[type="checkbox"] {
    margin-right: 8px;
}

.gbm-form-row input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.gbm-form-row .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.gbm-button {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gbm-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.gbm-button:active {
    transform: translateY(-1px);
}

/* Form prenotazione inline nelle card */
.gbm-reservation-form-inline {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px solid #0073aa;
}

.gbm-reservation-form-inline h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.2em;
    font-weight: 700;
}

.gbm-reservation-form-inline-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gbm-form-row-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gbm-form-row-inline label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gbm-quantity-input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.gbm-quantity-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gbm-quantity-hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.gbm-submit-reservation-inline {
    width: 100%;
    margin-top: 10px;
}

.gbm-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gbm-button-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.gbm-button-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.gbm-auth-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gbm-warning-text {
    color: #856404;
    background-color: #fff3cd;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    margin: 0;
    font-size: 14px;
}

/* Lista eventi - Wrapper */
.gbm-deals-list-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    background: #f8f9fa;
    border-radius: 0;
    overflow-x: hidden;
}

.gbm-deals-list-wrapper > .gbm-page-container {
    padding: 20px 40px 20px;
    margin: 0;
    background: transparent;
}

@media (max-width: 767px) {
    .gbm-deals-list-wrapper {
        margin: 20px 0;
        padding: 0;
    }
    
    .gbm-deals-list-wrapper > .gbm-page-container {
        padding: 15px 10px;
    }
}

/* Lista eventi - Layout singola offerta (semplice e pulito) */
.gbm-deals-list.gbm-single-deal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    justify-items: center;
}

.gbm-deals-list.gbm-single-deal-layout .gbm-deal-card-compact {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: auto;
}

/* Lista eventi - Layout griglia compatta (multiple offerte) */
.gbm-deals-list.gbm-deals-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

@media (min-width: 600px) {
    .gbm-deals-list.gbm-deals-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (min-width: 768px) {
    .gbm-deals-list.gbm-deals-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .gbm-deals-list.gbm-deals-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
}

@media (min-width: 1400px) {
    .gbm-deals-list.gbm-deals-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 35px;
    }
}

/* Card evento compatta (layout ottimizzato) */
.gbm-deal-card-compact {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.gbm-deal-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

/* Immagine card compatta */
.gbm-deal-card-compact-image {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .gbm-deal-card-compact-image {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    
    /* Layout singola offerta su mobile torna verticale */
    .gbm-deals-list.gbm-single-deal-layout {
        padding: 0 10px;
    }
    
    .gbm-deal-card-single {
        flex-direction: column;
        max-height: none;
        min-height: auto;
    }
    
    .gbm-deal-card-single-image {
        width: 100%;
        max-width: 100%;
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        border-radius: 16px 16px 0 0;
    }
    
    .gbm-deal-card-single-content {
        width: 100%;
        max-height: none;
        padding: 20px;
        gap: 15px;
    }
    
    .gbm-deal-card-single-main-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gbm-deal-card-single-right {
        grid-column: 1;
    }
}

.gbm-deal-card-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gbm-deal-card-compact:hover .gbm-deal-card-compact-image img {
    transform: scale(1.08);
}

/* Contenuto card compatta */
.gbm-deal-card-compact-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .gbm-deal-card-compact-content {
        padding: 20px;
        gap: 15px;
    }
}

.gbm-deal-card-compact-title {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 767px) {
    .gbm-deal-card-compact-title {
        font-size: 1.2em;
    }
}

.gbm-deal-card-compact-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    flex: 0 1 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 6.4em;
}

@media (max-width: 767px) {
    .gbm-deal-card-compact-excerpt {
        -webkit-line-clamp: 3;
        max-height: 4.8em;
    }
}

/* Info card compatta */
.gbm-deal-card-compact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .gbm-deal-card-compact-info {
        padding: 12px;
        gap: 10px;
    }
}

.gbm-deal-card-compact-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
    min-width: 0;
}

.gbm-deal-card-compact-info-item .gbm-info-label,
.gbm-deal-card-compact-info-item .gbm-info-value {
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 1;
}

.gbm-deal-card-compact-info-item .gbm-info-value {
    text-align: right;
    flex-shrink: 0;
}

.gbm-info-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.gbm-info-value {
    font-weight: 700;
    color: #0073aa;
    font-size: 1em;
}

.gbm-info-value.gbm-price {
    color: #28a745;
    font-size: 1.1em;
}

/* Progresso card compatta */
.gbm-deal-card-compact-progress {
    margin-top: 4px;
}

.gbm-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gbm-progress-label {
    color: #666;
    font-size: 0.85em;
    font-weight: 500;
}

.gbm-progress-percentage {
    font-weight: 700;
    color: #0073aa;
    font-size: 0.95em;
}

.gbm-progress-bar-compact {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gbm-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.5s ease;
    border-radius: 5px;
}

/* Countdown card compatta */
.gbm-deal-card-compact-countdown {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    text-align: center;
}

.gbm-countdown-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 6px;
}

.gbm-countdown-compact {
    color: #fff;
}

.gbm-countdown-value-compact {
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    display: block;
}

/* Azione card compatta */
.gbm-deal-card-compact-action {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 2px solid #e9ecef;
}

.gbm-form-row-compact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gbm-quantity-label {
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 4px;
}

.gbm-quantity-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.gbm-quantity-input-card {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    cursor: text;
    min-width: 80px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

/* Rimuovi spinner per input number su Chrome/Safari */
.gbm-quantity-input-card::-webkit-inner-spin-button,
.gbm-quantity-input-card::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gbm-quantity-input-card:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #f0f9ff;
}

.gbm-quantity-input-card:hover:not(:disabled) {
    border-color: #0073aa;
    cursor: pointer;
}

.gbm-button-card {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    min-width: 140px;
}

.gbm-quantity-hint-card {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    text-align: center;
}

.gbm-status-badge {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.gbm-status-closed-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

/* Messaggi nelle card compatte */
.gbm-deal-card-compact .gbm-message,
.gbm-deal-card-compact-action .gbm-message,
.gbm-form-row-compact-card .gbm-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 10;
    position: relative;
}

/* Stile sobrio per eventi conclusi */
.gbm-sold-out {
    position: relative;
}

/* Blocca SOLO i form e i pulsanti degli eventi chiusi */
.gbm-sold-out .gbm-reservation-form-inline-form input,
.gbm-sold-out .gbm-reservation-form-inline-form button {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* NON bloccare l'intera card - permetti scroll e visualizzazione */
.gbm-sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 1;
}

.gbm-sold-out .gbm-sold-out-display {
    position: relative;
    z-index: 2;
}

/* SOLD OUT al posto del timer - stile sobrio */
.gbm-sold-out-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    min-height: 50px;
}

.gbm-sold-out-text-simple {
    font-size: 1.1em;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gbm-deal-card-compact-action .gbm-message {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Lista eventi - Layout card (per mobile) */
.gbm-deals-list:not(.gbm-deals-table-view) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin: 40px 0;
    padding: 20px 0;
}

.gbm-deal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.gbm-deal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #0073aa;
}

.gbm-deal-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.gbm-deal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gbm-deal-card:hover .gbm-deal-image-wrapper img {
    transform: scale(1.05);
}

.gbm-deal-content-wrapper {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gbm-deal-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #1a1a1a;
    font-size: 1.6em;
    line-height: 1.3;
    font-weight: 700;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gbm-deal-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.gbm-deal-stats {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.gbm-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.gbm-stat:hover {
    background-color: rgba(0, 115, 170, 0.05);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.gbm-stat:last-child {
    border-bottom: none;
}

.gbm-stat-label {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.gbm-stat-value {
    font-weight: 700;
    color: #0073aa;
    font-size: 16px;
}

/* Progress bar */
.gbm-progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gbm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.5s ease;
    border-radius: 12px;
}

/* Countdown */
.gbm-countdown {
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.gbm-countdown-text {
    font-weight: 600;
    color: #fff;
    font-size: 0.95em;
}

.gbm-countdown-value {
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    display: inline-block;
    margin-left: 5px;
}

/* Dettaglio evento */
.gbm-deal-detail {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.gbm-deal-detail h2 {
    margin-top: 0;
    color: #333;
}

.gbm-deal-content {
    margin: 20px 0;
    line-height: 1.8;
    color: #555;
}

.gbm-deal-info {
    margin: 35px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gbm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #dee2e6;
    transition: all 0.2s;
}

.gbm-info-row:hover {
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.gbm-info-row:last-child {
    border-bottom: none;
}

.gbm-info-row strong {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
}

.gbm-info-row span {
    color: #0073aa;
    font-weight: 600;
    font-size: 16px;
}

/* Form prenotazione */
.gbm-reservation-form {
    margin-top: 35px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #0073aa;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15);
}

.gbm-reservation-form h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.5em;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

/* Titoli pagine */
.gbm-page-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
}

.gbm-page-title h1,
.gbm-page-title h2 {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    font-weight: 800;
    margin: 0;
}

/* Sezione intro pagine */
.gbm-page-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .gbm-page-intro {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gbm-deals-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Layout card compatta responsive */
    .gbm-deals-list.gbm-deals-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .gbm-deal-card-compact {
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-width: 0;
    }

    .gbm-deal-card-compact-content {
        padding: 18px;
        gap: 12px;
    }

    .gbm-deal-card-compact-title {
        font-size: 1.15em;
        line-height: 1.3;
    }

    .gbm-deal-card-compact-excerpt {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .gbm-deal-card-compact-info {
        padding: 12px;
        gap: 10px;
    }

    .gbm-deal-card-compact-info-item {
        padding: 6px 0;
        font-size: 0.9em;
    }

    .gbm-progress-bar-compact {
        height: 8px;
    }

    .gbm-countdown-compact {
        padding: 10px 12px;
    }

    .gbm-countdown-value-compact {
        font-size: 1em;
    }

    .gbm-quantity-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .gbm-button-card {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
    }

    .gbm-quantity-input-card {
        width: 100%;
    }

    .gbm-user-reserved-info {
        padding: 8px;
        font-size: 0.85em;
    }

    .gbm-form {
        padding: 25px;
    }

    .gbm-deal-detail {
        padding: 25px;
    }

    .gbm-page-container {
        padding: 20px 15px;
    }

    .gbm-page-title h1,
    .gbm-page-title h2 {
        font-size: 2em;
    }

    .gbm-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .gbm-auth-links {
        flex-direction: column;
    }

    .gbm-button-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================
   PRODOTTI SINGOLI
   ============================================ */

/* Sezione Offerte di Gruppo - in alto */
.gbm-deals-section {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 30px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 100%;
}

.gbm-deals-list {
    display: grid;
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

/* Sezione Prodotti Disponibili - sotto le offerte */
.gbm-products-section {
    margin-top: 50px;
    padding: 0;
}

.gbm-section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

.gbm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gbm-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

/* Bottone WhatsApp per prodotti */
.gbm-product-whatsapp {
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
}

.gbm-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.gbm-whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}

.gbm-whatsapp-button:active {
    transform: translateY(0);
}

.gbm-whatsapp-icon {
    font-size: 18px;
    line-height: 1;
}

.gbm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gbm-product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbm-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbm-product-card-content {
    padding: 20px;
}

.gbm-product-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.gbm-product-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.gbm-product-brand,
.gbm-product-model {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.gbm-product-card-info {
    margin-bottom: 20px;
}

.gbm-product-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gbm-product-info-item:last-child {
    border-bottom: none;
}

.gbm-product-info-item .gbm-info-label {
    font-size: 0.9em;
    color: #666;
}

.gbm-product-info-item .gbm-info-value {
    font-weight: 600;
    color: #333;
}

.gbm-product-info-item .gbm-price {
    color: #0073aa;
    font-size: 1.1em;
}

.gbm-product-card-action {
    margin-top: 20px;
}

.gbm-form-row-product {
    margin-bottom: 0;
}

.gbm-quantity-input-product {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    cursor: text;
    min-width: 70px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.gbm-quantity-input-product::-webkit-inner-spin-button,
.gbm-quantity-input-product::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gbm-quantity-input-product:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #f0f9ff;
}

.gbm-quantity-hint-product {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.gbm-button-product {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.gbm-status-out-of-stock {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
}

/* Slider prodotti per marca */
.gbm-brand-section {
    margin-bottom: 50px;
    padding: 30px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 100%;
    position: relative;
}

.gbm-brand-section:last-child {
    margin-bottom: 0;
}

.gbm-brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.gbm-brand-title::before {
    content: "📱";
    font-size: 32px;
}

.gbm-products-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 85px;
    margin: 0;
}

.gbm-products-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Previeni scroll quando non necessario */
    scroll-behavior: smooth;
    /* Compensa il padding extra del wrapper per mantenere i prodotti allineati */
    margin: 0 -15px;
}

.gbm-products-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

.gbm-product-slide {
    flex: 0 0 auto;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    /* Previeni che il prodotto venga compresso */
    flex-shrink: 0;
}

@media (min-width: 1400px) {
    .gbm-product-slide {
        width: 350px;
        min-width: 350px;
    }
}

@media (min-width: 1800px) {
    .gbm-product-slide {
        width: 380px;
        min-width: 380px;
    }
}

.gbm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 115, 170, 0.95);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.5);
    border: 2px solid white;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    outline: none;
    /* Estendi l'area per l'ombra senza tagliarla */
    filter: drop-shadow(0 4px 12px rgba(0, 115, 170, 0.4));
}

.gbm-slider-nav:hover {
    background: rgba(0, 115, 170, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 115, 170, 0.7);
    filter: drop-shadow(0 6px 18px rgba(0, 115, 170, 0.6));
}

.gbm-slider-nav:active {
    transform: translateY(-50%) scale(1.02);
}

.gbm-slider-nav span {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.gbm-slider-prev {
    left: 10px;
}

.gbm-slider-next {
    right: 10px;
}

/* Nascondi frecce quando non necessarie */
.gbm-slider-nav[style*="display: none"] {
    display: none !important;
}

.gbm-slider-nav span {
    line-height: 1;
    display: block;
}

/* Prezzo più visibile */
.gbm-product-price-main {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 115, 170, 0.3);
}

.gbm-price-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.gbm-price-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.2;
}

/* Card prodotto ottimizzata per slider */
.gbm-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gbm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gbm-product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gbm-product-card-info {
    margin-bottom: 20px;
    flex: 1;
}

/* Responsive prodotti */
@media (max-width: 767px) {
    .gbm-product-slide {
        width: 280px;
        min-width: 280px;
    }
    
    .gbm-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .gbm-slider-prev {
        left: 5px;
    }
    
    .gbm-slider-next {
        right: 5px;
    }
    
    .gbm-brand-title {
        font-size: 1.3em;
    }
    
    .gbm-section-title {
        font-size: 1.5em;
    }
}

/* Stili carrello */
.gbm-cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gbm-cart-items {
    margin-bottom: 30px;
}

.gbm-cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.gbm-cart-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gbm-cart-item-image {
    display: none !important;
}

.gbm-cart-thumbnail {
    display: none !important;
}

.gbm-cart-item-details {
    flex: 1;
    min-width: 0;
}

.gbm-cart-item-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.gbm-cart-item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gbm-cart-brand,
.gbm-cart-model {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.gbm-cart-item-quantity {
    flex: 0 0 120px;
}

.gbm-cart-item-quantity label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.gbm-cart-quantity-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
}

.gbm-cart-item-price {
    flex: 0 0 150px;
    text-align: right;
}

.gbm-cart-item-unit-price {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.gbm-cart-item-total-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #0073aa;
}

.gbm-cart-item-actions {
    flex: 0 0 auto;
}

.gbm-button-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.gbm-button-remove:hover {
    background: #c82333;
}

.gbm-cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #0073aa;
    text-align: right;
}

.gbm-cart-summary-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #0073aa;
}

.gbm-cart-summary-box h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.3em;
}

.gbm-cart-summary-box p {
    margin: 8px 0;
    font-size: 1em;
}

.gbm-cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.gbm-cart-actions .gbm-confirm-order {
    flex-shrink: 0;
}

.gbm-button-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.gbm-button-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.gbm-cart-total {
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gbm-cart-total strong {
    color: #333;
}

.gbm-cart-total-amount {
    color: #0073aa;
    font-weight: 700;
    font-size: 1.2em;
}

.gbm-button-large {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 700;
    min-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbm-confirm-order {
    min-width: 250px !important;
    width: auto;
    max-width: 100%;
}

/* Responsive carrello */
@media (max-width: 767px) {
    .gbm-cart-item {
        flex-wrap: wrap;
    }
    
    .gbm-cart-item-image {
        display: none !important;
    }
    
    .gbm-cart-item-details {
        flex: 1 1 100%;
        order: 1;
    }
    
    .gbm-cart-item-quantity {
        flex: 1 1 auto;
        order: 2;
    }
    
    .gbm-cart-item-price {
        flex: 1 1 auto;
        order: 3;
        text-align: left;
    }
    
    .gbm-cart-item-actions {
        flex: 1 1 100%;
        order: 4;
        margin-top: 10px;
    }
    
    .gbm-cart-summary {
        text-align: center;
    }
}

/* Carrello fluttuante */
.gbm-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.gbm-cart-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.gbm-cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 115, 170, 0.6);
}

.gbm-cart-icon {
    font-size: 28px;
    line-height: 1;
    filter: brightness(0) invert(1); /* Rende l'icona bianca */
    display: block;
}

.gbm-cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gbm-cart-counter:empty {
    display: none;
}

.gbm-cart-dropdown {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
    max-height: calc(100vh - 150px);
    flex-direction: column;
}

.gbm-cart-dropdown.active {
    display: flex;
}

.gbm-cart-dropdown-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gbm-cart-dropdown-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
}

.gbm-cart-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gbm-cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gbm-cart-dropdown-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 250px);
    overflow: hidden;
}

.gbm-cart-items-mini {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 400px;
}

.gbm-cart-item-mini {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.gbm-cart-item-mini:last-child {
    border-bottom: none;
}

.gbm-cart-item-mini-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.gbm-cart-item-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbm-cart-item-mini-details {
    flex: 1;
    min-width: 0;
}

.gbm-cart-item-mini-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbm-cart-item-mini-info {
    font-size: 0.85em;
    color: #666;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gbm-cart-item-mini-quantity {
    color: #0073aa;
    font-weight: 600;
}

.gbm-cart-item-mini-price {
    color: #333;
    font-weight: 600;
}

.gbm-cart-item-mini-remove {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gbm-cart-item-mini-remove:hover {
    transform: scale(1.2);
}

.gbm-cart-dropdown-summary {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 2px solid #0073aa;
}

.gbm-cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.gbm-cart-dropdown-total strong {
    color: #333;
}

.gbm-cart-dropdown-total-amount {
    color: #0073aa;
    font-weight: 700;
    font-size: 1.3em;
}

.gbm-button-block {
    width: 100%;
    display: block;
    text-align: center;
}

.gbm-cart-empty-message {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.gbm-cart-empty-message p {
    margin: 0;
    font-size: 1em;
}

/* Responsive carrello fluttuante */
@media (max-width: 767px) {
    .gbm-floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .gbm-cart-toggle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .gbm-cart-icon {
        font-size: 24px;
    }
    
    .gbm-cart-counter {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .gbm-cart-dropdown {
        width: calc(100vw - 40px);
        max-width: 380px;
        bottom: 80px;
    }
}

/* Menu di navigazione */
.gbm-navigation-menu {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.gbm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gbm-nav-item {
    margin: 0;
    padding: 0;
}

.gbm-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
}

.gbm-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gbm-nav-item.gbm-nav-active .gbm-nav-link {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

/* Migliora il contrasto dell'icona quando è attiva - rende bianca e più grande */
.gbm-nav-item.gbm-nav-active .gbm-nav-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.3)) !important;
    transform: scale(1.15);
    display: inline-block;
}

/* Migliora anche il testo quando è attivo */
.gbm-nav-item.gbm-nav-active .gbm-nav-text {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gbm-nav-link-download {
    background: rgba(40, 167, 69, 0.2) !important;
    border-color: rgba(40, 167, 69, 0.4) !important;
}

.gbm-nav-link-download:hover {
    background: rgba(40, 167, 69, 0.3) !important;
    border-color: rgba(40, 167, 69, 0.6) !important;
}

.gbm-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.gbm-nav-text {
    white-space: nowrap;
}

/* Barra di ricerca prodotti - Design migliorato */
.gbm-search-bar-wrapper {
    margin: 25px auto 30px;
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

/* Su desktop, assicura che la barra di ricerca non sia sticky o fixed */
@media (min-width: 769px) {
    .gbm-search-bar-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

.gbm-search-bar {
    position: relative;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

.gbm-search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    font-size: 17px;
    border: 3px solid #e0e7ff;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    color: #2c3e50;
    font-weight: 500;
}

.gbm-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 8px 30px rgba(0, 115, 170, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(-3px);
    background: white;
}

.gbm-search-input::placeholder {
    color: #94a3b8;
    font-style: normal;
    font-weight: 400;
    opacity: 0.8;
}

/* Icona ricerca dentro l'input */
.gbm-search-bar::before {
    content: "🔍";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gbm-search-bar:focus-within::before {
    opacity: 1;
}

/* Risultati ricerca - sempre in primo piano - Design migliorato */
.gbm-search-results {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 950px;
    max-height: 82vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 115, 170, 0.1);
    overflow: hidden;
    z-index: 99999;
    display: none;
    border: none;
    padding: 0;
}

.gbm-search-results.active {
    display: block;
}

/* Overlay completamente invisibile - non mostrare */
.gbm-search-overlay {
    display: none !important;
}

.gbm-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-bottom: none;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.gbm-search-results-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbm-search-results-title::before {
    content: "📱";
    font-size: 28px;
}

.gbm-search-results-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: bold;
}

.gbm-search-results-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.gbm-search-results-close:hover {
    background: #c82333;
    transform: rotate(90deg);
}

.gbm-search-results-list {
    padding: 25px 30px;
    max-height: calc(82vh - 100px);
    overflow-y: auto;
}

/* Scrollbar personalizzata */
.gbm-search-results-list::-webkit-scrollbar {
    width: 8px;
}

.gbm-search-results-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.gbm-search-results-list::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 10px;
}

.gbm-search-results-list::-webkit-scrollbar-thumb:hover {
    background: #005177;
}

.gbm-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    gap: 20px;
}

.gbm-search-result-item:last-child {
    margin-bottom: 0;
}

.gbm-search-result-item:hover {
    background: white;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.gbm-search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gbm-search-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.gbm-search-result-meta {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gbm-search-result-brand {
    font-weight: 600;
    color: #0073aa;
    background: #e3f2fd;
    padding: 4px 12px;
    border-radius: 6px;
}

.gbm-search-result-model {
    color: #495057;
}

.gbm-search-result-price {
    font-size: 22px;
    font-weight: 700;
    color: #28a745;
    margin-top: 5px;
}

.gbm-search-result-quantity-info {
    font-size: 13px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.gbm-search-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 200px;
}

.gbm-search-result-quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbm-search-result-quantity-input label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.gbm-search-result-quantity-input input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.gbm-search-result-quantity-input input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gbm-search-result-add-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.gbm-search-result-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.gbm-search-result-add-btn:active {
    transform: translateY(0);
}

.gbm-search-result-add-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gbm-search-loading,
.gbm-search-no-results,
.gbm-search-error {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 15px;
}

.gbm-search-error {
    color: #dc3545;
}

@media (max-width: 767px) {
    .gbm-navigation-menu {
        padding: 12px 15px;
    }
    
    .gbm-nav-list {
        gap: 8px;
    }
    
    .gbm-nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .gbm-nav-icon {
        font-size: 18px;
    }
    
    .gbm-nav-text {
        display: none;
    }
}

/* Stili pagine profilo e ordini - IMPORTANTE: Stili migliorati */
.gbm-page-container .gbm-user-profile-wrapper,
.gbm-page-container .gbm-user-orders-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-top: 30px !important;
    border: 1px solid #e9ecef !important;
    min-height: 400px;
}

.gbm-user-profile-wrapper,
.gbm-user-orders-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-top: 30px !important;
    border: 1px solid #e9ecef !important;
    min-height: 400px;
}

.gbm-user-profile-wrapper .gbm-section-title,
.gbm-user-orders-wrapper .gbm-section-title,
.gbm-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0073aa !important;
    margin: 0 0 30px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 4px solid #0073aa !important;
    text-align: center !important;
}

.gbm-profile-form {
    margin-top: 30px;
}

.gbm-user-profile-wrapper .gbm-form-section,
.gbm-form-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
}

.gbm-form-section:hover {
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.1);
    border-color: #0073aa;
}

.gbm-form-section:last-child {
    margin-bottom: 0;
}

.gbm-form-section h3 {
    color: #0073aa;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbm-form-section h3::before {
    content: "📋";
    font-size: 28px;
}

.gbm-form-section:first-of-type h3::before {
    content: "👤";
}

.gbm-form-section:nth-of-type(2) h3::before {
    content: "🏪";
}

.gbm-form-section:nth-of-type(3) h3::before {
    content: "📄";
}

.gbm-form-row {
    margin-bottom: 25px;
}

.gbm-form-row:last-child {
    margin-bottom: 0;
}

.gbm-form-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gbm-form-row input[type="text"],
.gbm-form-row input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
}

.gbm-form-row input[type="text"]:focus,
.gbm-form-row input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.gbm-form-row input[disabled] {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #ced4da;
    font-style: italic;
}

.gbm-form-row small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    padding-left: 5px;
}

.gbm-form-row-group {
    display: flex;
    gap: 20px;
}

.gbm-form-row-half {
    flex: 1;
}

.gbm-form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #0073aa;
    text-align: center;
}

.gbm-form-actions .gbm-button {
    min-width: 250px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    transition: all 0.3s ease;
}

.gbm-form-actions .gbm-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

/* Stili ordini */
.gbm-orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.gbm-user-orders-wrapper .gbm-order-card,
.gbm-order-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.gbm-order-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0073aa 0%, #005177 100%);
}

.gbm-order-card:hover {
    box-shadow: 0 6px 25px rgba(0, 115, 170, 0.15);
    transform: translateY(-4px);
    border-color: #0073aa;
}

.gbm-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e9ecef;
}

.gbm-order-header h3 {
    margin: 0;
    color: #0073aa;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbm-order-header h3::before {
    content: "📦";
    font-size: 32px;
}

.gbm-order-date {
    color: #6c757d;
    font-size: 15px;
    font-weight: 600;
    background: #e9ecef;
    padding: 8px 15px;
    border-radius: 8px;
}

.gbm-order-status {
    margin-bottom: 20px;
}

.gbm-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gbm-badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.gbm-badge-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.gbm-badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
}

.gbm-badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.gbm-order-items {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.gbm-order-items h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gbm-order-items h4::before {
    content: "🛍️";
    font-size: 20px;
}

.gbm-order-items ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gbm-order-items li {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.gbm-order-items li:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.gbm-order-items li:last-child {
    border-bottom: none;
}

.gbm-order-items small {
    color: #6c757d;
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
}

.gbm-order-delivery {
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    border-left: 4px solid #0073aa;
}

.gbm-order-delivery p {
    margin: 0;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.gbm-order-delivery strong {
    color: #0073aa;
    font-weight: 700;
    font-size: 16px;
}

.gbm-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-radius: 12px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
}

.gbm-order-total strong {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gbm-order-total-amount {
    color: white;
    font-weight: 800;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .gbm-user-profile-wrapper,
    .gbm-user-orders-wrapper {
        padding: 25px 20px;
    }
    
    .gbm-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .gbm-form-section {
        padding: 20px 15px;
    }
    
    .gbm-form-section h3 {
        font-size: 20px;
    }
    
    .gbm-form-row-group {
        flex-direction: column;
        gap: 0;
    }
    
    .gbm-form-actions .gbm-button {
        min-width: 100%;
        width: 100%;
    }
    
    .gbm-order-card {
        padding: 20px 15px;
    }
    
    .gbm-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gbm-order-header h3 {
        font-size: 22px;
    }
    
    .gbm-order-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .gbm-order-total-amount {
        font-size: 24px;
    }
    
    .gbm-order-items li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ============================================
   HEADER E FOOTER PERSONALIZZATI
   ============================================ */

/* Header personalizzato - Design migliorato */
.gbm-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.gbm-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.gbm-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.gbm-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.gbm-logo-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
}

.gbm-logo-link:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.gbm-logo-img {
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.gbm-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.gbm-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.gbm-nav-menu li {
    margin: 0;
    padding: 0;
}

.gbm-nav-menu a {
    display: block;
    padding: 14px 24px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.gbm-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gbm-nav-menu a:hover::before {
    left: 100%;
}

.gbm-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.gbm-nav-menu a:active {
    transform: translateY(-1px);
}

/* Main content */
.gbm-main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer personalizzato - Design migliorato */
.gbm-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ecf0f1;
    margin-top: 80px;
    border-top: 4px solid #0073aa;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.gbm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.gbm-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 25px;
    position: relative;
    z-index: 1;
}

.gbm-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.gbm-footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gbm-footer-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-bottom: 18px;
    border-bottom: 3px solid #0073aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.gbm-footer-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, transparent);
}

.gbm-footer-tagline {
    font-size: 17px;
    color: #bdc3c7;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.gbm-footer-heading {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 16px;
}

.gbm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gbm-footer-links li {
    margin: 0;
    padding: 0;
}

.gbm-footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0 10px 15px;
    display: block;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
}

.gbm-footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: #0073aa;
}

.gbm-footer-links a:hover {
    color: #ffffff;
    border-left-color: #0073aa;
    padding-left: 20px;
    transform: translateX(5px);
}

.gbm-footer-links a:hover::before {
    opacity: 1;
    left: 5px;
}

.gbm-footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.gbm-footer-copyright {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.gbm-footer-powered {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

/* Responsive header e footer */
@media (max-width: 767px) {
    .gbm-header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .gbm-logo-img {
        max-height: 50px;
    }
    
    .gbm-nav-menu {
        justify-content: center;
        width: 100%;
    }
    
    .gbm-nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .gbm-main-content {
        padding: 20px 15px;
    }
    
    .gbm-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gbm-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

