/* -----------------------------------------------------------------
   LAYOUT 2 COLONNE CON WRAPPER DEDICATO
   ----------------------------------------------------------------- */

.lbd-single-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0.9rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
}

@media (max-width: 900px) {
    .lbd-single-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Annulliamo float e larghezze del tema dentro il nostro wrapper */
.lbd-single-wrapper .woocommerce-product-gallery,
.lbd-single-wrapper .woocommerce-product-gallery.images,
.lbd-single-wrapper .summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Card SOLO sul blocco summary, non su tutta la colonna */
.lbd-single-col--summary .summary {
    background: #fffdf8;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.9rem 1.1rem;
}

.lbd-single-col--summary .product_title {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

/* -----------------------------------------------------------------
   META PRODUTTORE + BADGES
   ----------------------------------------------------------------- */

.lbd-product-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0.3rem 0 0.9rem;
}

@media (max-width: 600px) {
    .lbd-product-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

.lbd-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 0.1rem;
}

.lbd-meta-vendor-name {
    font-weight: 600;
}

/* Badges */
.lbd-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lbd-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

/* Fresco / Secco */
.lbd-badge--shipping.lbd-badge--fresh {
    border-color: rgba(42, 157, 143, 0.5);
    background: rgba(42, 157, 143, 0.06);
}

.lbd-badge--shipping.lbd-badge--dry {
    border-color: rgba(244, 162, 97, 0.5);
    background: rgba(244, 162, 97, 0.06);
}

.lbd-badge--shipping.lbd-badge--mixed {
    border-color: rgba(231, 111, 81, 0.5);
    background: rgba(231, 111, 81, 0.06);
}

/* Regione / tipo */
.lbd-badge--region {
    border-style: dashed;
}

.lbd-badge--type {
    font-weight: 600;
}

/* -----------------------------------------------------------------
   BOX SPEDIZIONE & RESI (PRODOTTO / CARRELLO / CHECKOUT)
   ----------------------------------------------------------------- */

.lbd-shipping-box {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fffdf8;
    font-size: 0.88rem;
    color: #3a2a1a;
}

.lbd-shipping-box__title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.lbd-shipping-box__list {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
}

.lbd-shipping-box__list li {
    margin: 0.1rem 0;
}

.lbd-shipping-box__link {
    font-size: 0.8rem;
    text-decoration: underline;
}

/* Varianti colore per tipo spedizione */
.lbd-shipping-box--fresh {
    border-color: rgba(42, 157, 143, 0.35);
}

.lbd-shipping-box--dry {
    border-color: rgba(244, 162, 97, 0.35);
}

.lbd-shipping-box--mixed {
    border-color: rgba(231, 111, 81, 0.35);
}

/* -----------------------------------------------------------------
   TAB ingredienti/conservazione/produttore
   ----------------------------------------------------------------- */

.lbd-ingredients-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.lbd-ingredients-table th,
.lbd-ingredients-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    vertical-align: top;
    color: #3a2a1a;
}

.lbd-ingredients-table th {
    width: 30%;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lbd-conservation-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3a2a1a;
}

/* Tab produttore */
.lbd-vendor-tab-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.lbd-vendor-tab-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a2a1a;
}

.lbd-vendor-tab-link {
    font-size: 0.86rem;
    text-decoration: underline;
    color: #3a2a1a;
}

.lbd-vendor-tab-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3a2a1a;
}
