/* =========================================================
   Tuliba Bouquet Builder — Design Tokens
   ========================================================= */

:root{
    --tbb-ink:        #20302B;
    --tbb-pine:       #0E3B3B;
    --tbb-pine-dark:  #092626;
    --tbb-rose:       #B76E79;
    --tbb-rose-soft:  #F4E6E4;
    --tbb-cream:      #FBF7F1;
    --tbb-card:       #FFFFFF;
    --tbb-line:       #E7E0D3;
    --tbb-gold:       #B08D4F;

    --tbb-font-display: 'Cormorant Garamond', Georgia, serif;
    --tbb-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --tbb-radius-lg: 20px;
    --tbb-radius-md: 14px;
    --tbb-shadow-soft: 0 18px 40px rgba(14,59,59,.08);
    --tbb-shadow-rose: 0 14px 30px rgba(183,110,121,.22);
}

/* =========================================================
   Base
   ========================================================= */

.tbb-wrap{
    font-family: var(--tbb-font-body);
    color: var(--tbb-ink);
    background: var(--tbb-cream);
    padding: 60px 24px 90px;
}

.tbb-wrap *{
    box-sizing: border-box;
}

.tbb-eyebrow{
    font-family: var(--tbb-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tbb-rose);
    margin: 0 0 8px;
}

/* =========================================================
   Hero
   ========================================================= */

.tbb-hero{
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.tbb-hero h1{
    font-family: var(--tbb-font-display);
    font-weight: 600;
    font-size: 52px;
    line-height: 1.1;
    color: var(--tbb-pine);
    margin: 0 0 18px;
}

.tbb-hero-sub{
    font-size: 16px;
    line-height: 1.7;
    color: #5C6B65;
    margin: 0;
}

/* =========================================================
   Layout
   ========================================================= */

.tbb-builder{
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}

.tbb-left{
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =========================================================
   Signature element — the connecting "stem line" garland
   that threads each step together, like flowers being
   gathered one by one into a single bouquet.
   ========================================================= */

.tbb-garland{
    position: relative;
}

.tbb-step{
    position: relative;
    display: flex;
    gap: 28px;
    padding-bottom: 52px;
}

.tbb-step:last-child{
    padding-bottom: 0;
}

.tbb-step-marker{
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tbb-pine);
    color: #F6EFE6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tbb-font-display);
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--tbb-cream);
}

.tbb-step:not(:last-child) .tbb-step-marker::after{
    content: "";
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 8px);
    background: repeating-linear-gradient(
        to bottom,
        var(--tbb-line) 0,
        var(--tbb-line) 6px,
        transparent 6px,
        transparent 12px
    );
}

.tbb-step-body{
    flex: 1;
    min-width: 0;
}

.tbb-step-header{
    margin-bottom: 26px;
}

.tbb-step-header h2{
    font-family: var(--tbb-font-display);
    font-weight: 600;
    font-size: 32px;
    color: var(--tbb-pine);
    margin: 0 0 8px;
}

.tbb-step-hint{
    font-size: 14.5px;
    color: #6B7A74;
    margin: 0;
}

.tbb-empty-category{
    font-size: 14px;
    color: #94A29C;
    font-style: italic;
}

/* =========================================================
   Product grid & cards
   ========================================================= */

.tbb-products-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 16px;
}

.tbb-product-card{
    background: var(--tbb-card);
    border: 1px solid var(--tbb-line);
    border-radius: var(--tbb-radius-lg);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.tbb-product-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--tbb-shadow-soft);
}

.tbb-product-card:has(.tbb-select.selected){
    border-color: var(--tbb-rose);
    box-shadow: var(--tbb-shadow-rose);
}

.tbb-product-image{
    height: 130px;
    overflow: hidden;
    background: var(--tbb-rose-soft);
}

.tbb-product-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbb-product-content{
    padding: 12px 14px 14px;
}

.tbb-product-content h3{
    margin: 0 0 6px;
    color: var(--tbb-pine);
    font-family: var(--tbb-font-body);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
}

.tbb-price{
    margin: 0 0 10px;
    color: var(--tbb-rose);
    font-family: var(--tbb-font-display);
    font-size: 17px;
    font-weight: 600;
}

/* Quantity stepper */

.tbb-qty{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tbb-cream);
    border-radius: 999px;
    padding: 4px;
}

.tbb-plus,
.tbb-minus{
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--tbb-pine);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: background .25s ease, transform .15s ease;
}

.tbb-plus:hover,
.tbb-minus:hover{
    background: var(--tbb-rose);
}

.tbb-plus:active,
.tbb-minus:active{
    transform: scale(.92);
}

.tbb-quantity{
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--tbb-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--tbb-ink);
}

/* Select button (wrapping / ribbon / add-ons) */

.tbb-select{
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--tbb-pine);
    background: transparent;
    color: var(--tbb-pine);
    border-radius: 999px;
    font-family: var(--tbb-font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.tbb-select:hover{
    border-color: var(--tbb-rose);
    color: var(--tbb-rose);
}

.tbb-select.selected{
    background: var(--tbb-rose);
    border-color: var(--tbb-rose);
    color: #fff;
}

/* =========================================================
   Sidebar summary — "order ticket"
   ========================================================= */

.tbb-right{
    position: sticky;
    top: 40px;
}

.tbb-summary{
    background: var(--tbb-card);
    border-radius: var(--tbb-radius-lg);
    border: 1px solid var(--tbb-line);
    padding: 32px 28px;
    box-shadow: var(--tbb-shadow-soft);
}

.tbb-summary h2{
    font-family: var(--tbb-font-display);
    font-weight: 600;
    font-size: 26px;
    color: var(--tbb-pine);
    margin: 0 0 22px;
}

.tbb-summary-preview{
    margin-bottom: 24px;
    border-radius: var(--tbb-radius-md);
    overflow: hidden;
    background: var(--tbb-rose-soft);
}

.tbb-summary-preview img{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: opacity .25s ease;
}

#tbb-summary-products{
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 24px;
}

.tbb-empty{
    font-size: 14px;
    color: #94A29C;
    font-style: italic;
    margin: 0;
}

.tbb-summary-item{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dashed var(--tbb-line);
    padding-bottom: 12px;
    font-size: 14px;
}

.tbb-summary-item strong{
    color: var(--tbb-pine);
    font-weight: 700;
}

.tbb-summary-divider{
    height: 1px;
    background: var(--tbb-line);
    margin: 22px 0;
}

.tbb-summary-total{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--tbb-font-body);
}

.tbb-summary-total span{
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6B7A74;
    font-weight: 700;
}

#tbb-total-price{
    font-family: var(--tbb-font-display);
    color: var(--tbb-rose);
    font-size: 28px;
    font-weight: 600;
}

.tbb-cart-button{
    margin-top: 26px;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: var(--tbb-pine);
    color: #fff;
    font-family: var(--tbb-font-body);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .25s ease, transform .15s ease;
}

.tbb-cart-button:hover{
    background: var(--tbb-rose);
}

.tbb-cart-button:active{
    transform: scale(.98);
}

.tbb-cart-button:disabled{
    opacity: .6;
    cursor: not-allowed;
}

.tbb-error{
    max-width: 600px;
    margin: 60px auto;
    padding: 24px 28px;
    background: #FDECEC;
    border: 1px solid #F3C6C6;
    border-radius: var(--tbb-radius-md);
    color: #8A2E2E;
    font-family: var(--tbb-font-body);
    text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px){

    .tbb-builder{
        grid-template-columns: 1fr;
    }

    .tbb-right{
        position: relative;
        top: 0;
    }

    .tbb-hero h1{
        font-size: 40px;
    }

}

@media (max-width: 768px){

    .tbb-products-grid{
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .tbb-step{
        gap: 18px;
    }

}

@media (max-width: 560px){

    .tbb-wrap{
        padding: 40px 16px 60px;
    }

    .tbb-products-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .tbb-step-marker{
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .tbb-step:not(:last-child) .tbb-step-marker::after{
        top: 36px;
    }

    .tbb-step-header h2{
        font-size: 26px;
    }

    .tbb-hero h1{
        font-size: 32px;
    }

}
