/* Spezieria – Il Laboratorio dello Speziale – Frontend CSS v1.3.7 */

.spz-lab {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 50px 40px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #e0e0e0;
    background: #121212;
    box-sizing: border-box;
}

.spz-lab strong {
    font-weight: 700;
    color: #ffffff;
}

.spz-lab-header,
.spz-lab-steps,
.spz-lab-screen {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.spz-lab-header {
    text-align: center;
    margin-bottom: 40px;
}

.spz-lab-title {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding: 0;
}

.spz-lab-subtitle {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #e0e0e0;
    max-width: 650px;
    margin: 0 auto;
}

.spz-lab-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.spz-lab-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #555;
}

.spz-lab-step.active { color: #daa520; }
.spz-lab-step.completed { color: #6a9a3a; }

.spz-lab-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.spz-lab-step.active .spz-lab-step-num {
    border-color: #daa520;
    background: rgba(218,165,32,0.1);
    color: #daa520;
}

.spz-lab-step.completed .spz-lab-step-num {
    border-color: #6a9a3a;
    background: #6a9a3a;
    color: #fff;
}

.spz-lab-step-line {
    width: 50px;
    height: 2px;
    background: #333333;
    margin: 0 6px;
    align-self: center;
}

.spz-lab-step-line.done {
    background: #6a9a3a;
}

.spz-lab-section-title {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    color: #daa520;
    margin-bottom: 8px;
}

.spz-lab-section-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #e0e0e0;
    margin-bottom: 28px;
    opacity: 0.8;
}

.spz-lab-intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.spz-lab-intent-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.spz-lab-intent-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.spz-lab-intent-card:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.spz-lab-intent-card:hover::before { opacity: 1; }

.spz-lab-intent-card.selected {
    border-color: #daa520;
    box-shadow: 0 0 0 1px #daa520, 0 6px 20px rgba(218,165,32,0.1);
}

.spz-lab-intent-card.selected::before { opacity: 1; }

.spz-lab-intent-emoji {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.spz-lab-intent-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.spz-lab-intent-card.selected .spz-lab-intent-name {
    color: #daa520;
}

.spz-lab-intent-count {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.spz-lab-recipe-head {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 30px 32px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.spz-lab-recipe-head::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    opacity: 0.5;
}

.spz-lab-recipe-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.spz-lab-recipe-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.spz-lab-recipe-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.spz-lab-recipe-meta span {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spz-lab-recipe-meta strong {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #e0e0e0;
}

.spz-lab-recipe-counter {
    margin-top: 14px;
    font-size: 14px;
    color: #daa520;
    opacity: 0.8;
}

.spz-lab-recipe-note {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.spz-lab-recipe-note-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.spz-lab-recipe-note-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    color: #e0e0e0;
}

.spz-lab-recipe-note-text strong {
    color: #daa520;
    font-weight: 700;
}

.spz-lab-reminder {
    background: #1a1a1a;
    border: 1px solid #daa520;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.spz-lab-reminder strong {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #daa520;
}

.spz-lab-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.spz-lab-slot {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.spz-lab-slot-head {
    padding: 14px 18px 12px;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spz-lab-slot-type {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.spz-lab-slot-proportion {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.spz-lab-slot-product {
    padding: 18px;
}

.spz-lab-slot-product-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.spz-lab-slot-img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    background: #121212;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333333;
    overflow: hidden;
}

.spz-lab-slot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spz-lab-slot-info {
    flex: 1;
    min-width: 0;
}

.spz-lab-slot-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.spz-lab-slot-price {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    color: #daa520;
    font-weight: 700;
}

.spz-lab-slot-reason {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #e0e0e0;
    line-height: 23px;
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333333;
}

.spz-lab-slot-reason strong {
    color: #daa520;
    font-style: normal;
    font-weight: 700;
}

.spz-lab-slot-swap {
    padding: 14px 18px;
    border-top: 1px solid #333333;
}

.spz-lab-slot-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: 1px dashed #333333;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.spz-lab-slot-swap-btn:hover {
    border-color: #daa520;
    color: #daa520;
}

.spz-lab-slot-swap-btn.open {
    border-color: #daa520;
    color: #daa520;
}

.spz-lab-slot-alts {
    display: none;
    margin-top: 10px;
}

.spz-lab-slot-alts.visible {
    display: block;
}

.spz-lab-slot-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.spz-lab-slot-alt:hover {
    background: rgba(218,165,32,0.06);
}

.spz-lab-slot-alt-icon {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.spz-lab-slot-alt-icon img {
    border-radius: 4px;
}

.spz-lab-slot-alt-info {
    flex: 1;
    min-width: 0;
}

.spz-lab-slot-alt-name {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 400;
}

.spz-lab-slot-alt-price {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #daa520;
}

.spz-lab-slot-alt-badge {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #121212;
    background-color: #daa520;
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    white-space: nowrap;
}

.spz-lab-summary {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.spz-lab-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    opacity: 0.4;
}

.spz-lab-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.spz-lab-summary-label {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #e0e0e0;
}

.spz-lab-summary-total {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #daa520;
}

.spz-lab-summary-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.spz-lab-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #121212;
    border: 1px solid #333333;
    border-radius: 3px;
    padding: 7px 14px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 400;
}

.spz-lab-summary-chip-emoji {
    font-size: 16px;
}

.spz-lab-summary-chip-price {
    color: #daa520;
    font-weight: 600;
}

.spz-lab-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.spz-lab-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #daa520;
    color: #121212;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 34px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.spz-lab-cta:hover {
    background: #f0c040;
    box-shadow: 0 4px 15px rgba(218,165,32,0.25);
}

.spz-lab-cta.spz-lab-cta-done,
.spz-lab-cta.spz-lab-cta-done:hover,
.spz-lab-cta.spz-lab-cta-done:focus,
.spz-lab-cta.spz-lab-cta-done:active,
.spz-lab-cta[disabled].spz-lab-cta-done {
    background: #2d6b2d !important;
    background-image: none !important;
    color: #fff !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

.spz-lab-back {
    background: transparent;
    border: 1px solid #333333;
    color: #e0e0e0;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 14px 26px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.spz-lab-back:hover {
    border-color: #daa520;
    color: #daa520;
}

@media (max-width: 768px) {
    .spz-lab {
        padding: 30px 20px;
        font-size: 15px;
        line-height: 22px;
    }

    .spz-lab-title {
        font-size: 24px;
        line-height: 30px;
    }

    .spz-lab-subtitle { font-size: 15px; line-height: 22px; }
    .spz-lab-section-title { font-size: 19px; line-height: 25px; }
    .spz-lab-section-desc { font-size: 15px; line-height: 22px; }

    .spz-lab-intent-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .spz-lab-intent-card { padding: 18px 10px; }
    .spz-lab-intent-emoji { font-size: 28px; margin-bottom: 6px; }
    .spz-lab-intent-name { font-size: 14px; }

    .spz-lab-slot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .spz-lab-recipe-name { font-size: 24px; line-height: 30px; }
    .spz-lab-recipe-head { padding: 22px; }
    .spz-lab-summary { padding: 22px; }
    .spz-lab-summary-total { font-size: 24px; line-height: 30px; }

    .spz-lab-cta-row { flex-direction: column; }
    .spz-lab-cta { width: 100%; justify-content: center; padding: 16px; }
    .spz-lab-back { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .spz-lab { padding: 25px 14px; }
    .spz-lab-title { font-size: 22px; }

    .spz-lab-intent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .spz-lab-intent-card { padding: 14px 8px; }
    .spz-lab-intent-emoji { font-size: 24px; margin-bottom: 4px; }
    .spz-lab-intent-name { font-size: 13px; }

    .spz-lab-slot-grid { grid-template-columns: 1fr; gap: 10px; }
    .spz-lab-slot-product { padding: 14px; }
    .spz-lab-slot-img { width: 56px; height: 56px; }
    .spz-lab-slot-name { font-size: 16px; }

    .spz-lab-recipe-head { padding: 18px; }
    .spz-lab-recipe-name { font-size: 20px; }
    .spz-lab-recipe-desc { font-size: 15px; }

    .spz-lab-summary { padding: 18px; }
    .spz-lab-summary-total { font-size: 22px; }
    .spz-lab-summary-chip { padding: 5px 10px; font-size: 12px; }

    .spz-lab-steps { margin-bottom: 28px; }
    .spz-lab-step { padding: 8px 12px; font-size: 12px; }
    .spz-lab-step-num { width: 28px; height: 28px; font-size: 12px; }
    .spz-lab-step-line { width: 30px; }
}

@media (max-width: 360px) {
    .spz-lab { padding: 20px 10px; }
    .spz-lab-title { font-size: 20px; }
    .spz-lab-intent-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .spz-lab-intent-card { padding: 12px 6px; }
    .spz-lab-intent-emoji { font-size: 22px; }
    .spz-lab-intent-name { font-size: 12px; }
    .spz-lab-step span { display: none; }
}
