/* ==========================================================
   SUNNYBANK — CENTERED EQUAL-HEIGHT GRID WITH BUTTONS
========================================================== */

#sb-bouquets { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 45px 20px; 
    font-family: 'Lato', sans-serif; 
    color: #2C2C2C;
}

#sb-bouquets h1 {
    font-family: 'Playfair Display', serif;
    color: #4A6655;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 700;
}

#sb-bouquets h2 {
    font-family: 'Playfair Display', serif;
    color: #4A6655;
    text-align: center;
    margin: 40px 0 18px;
    font-size: 1.9rem;
    font-weight: 600;
}

#sb-bouquets p {
    line-height: 1.65;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- GRID CONTAINER ---------- */
.sb-collection-grid {
    display: grid;
    /* auto-fit + justify-content centers the cards when there are fewer than a full row */
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); 
    gap: 34px;
    justify-content: center; 
    align-items: stretch;    /* Forces all cards in a row to the same height */
    margin: 30px 0;
}

/* ---------- CARD STRUCTURE ---------- */
.sb-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* The link is the main flex container for internal alignment */
.sb-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; 
    height: 100%;           /* Fills the card */
    padding: 24px 18px;
    text-align: center;
}

/* ---------- IMAGE CIRCLE ---------- */
.sb-img-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f9f7f2;
    position: relative;
    flex-shrink: 0;         /* Prevents circle from squishing */
}

.sb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.sb-card:hover img {
    transform: scale(1.06);
}

/* ---------- TEXT CONTENT ---------- */
.sb-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #4A6655;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.sb-card:hover .sb-title {
    color: #D88A8A;
}

.sb-desc {
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
}

/* ---------- BUTTON ALIGNMENT ---------- */

/* This empty div pushes the button to the bottom of the card */
.sb-spacer {
    flex-grow: 1;
}

.sb-card-btn {
    margin-top: 20px;
    padding: 12px 20px;
    border: 1.5px solid #4A6655;
    color: #4A6655;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover state for the button when the card is hovered */
.sb-card:hover .sb-card-btn {
    background: #4A6655;
    color: #ffffff !important;
}

/* ---------- FOOTER SHOP BUTTON ---------- */
.sb-footer-cta {
    text-align: center;
    margin-top: 30px;
}

.sb-shop-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #4A6655;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background .25s ease;
}

.sb-shop-btn:hover {
    background: #688673;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width: 600px){
    .sb-collection-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .sb-img-wrap {
        width: 150px;
        height: 150px;
    }
}