/* Blumen Südfels — modern responsive storefront styling on top of Bootstrap 5 */

:root {
    --bso-green: #1f6a3d;
    --bso-green-dark: #123a24;
    --bso-green-light: #2f9c58;
    --bso-cream: #f7f5ef;
    --bs-font-sans-serif: 'Cairo', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #23291f;
    background-color: var(--bso-cream);
}

a { color: var(--bso-green); }
a:hover { color: var(--bso-green-dark); }

.btn-success, .btn-primary {
    background-color: var(--bso-green);
    border-color: var(--bso-green);
}
.btn-success:hover, .btn-success:focus, .btn-primary:hover, .btn-primary:focus {
    background-color: var(--bso-green-dark);
    border-color: var(--bso-green-dark);
}
.btn-outline-success {
    color: var(--bso-green);
    border-color: var(--bso-green);
}
.btn-outline-success:hover {
    background-color: var(--bso-green);
    border-color: var(--bso-green);
}
.text-success { color: var(--bso-green) !important; }
.bg-success { background-color: var(--bso-green) !important; }

/* Header */
.site-header .topbar {
    background-color: var(--bso-green-dark);
    padding: 6px 0;
}
.footer-link { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bso-green-dark) 0%, var(--bso-green) 100%);
    color: #fff;
    padding: 64px 0;
}
.hero h1 {
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
}
.hero .lead { color: rgba(255,255,255,.85); }
.hero-small {
    background: linear-gradient(135deg, var(--bso-green-dark) 0%, var(--bso-green) 100%);
    color: #fff;
    padding: 40px 0;
}

/* Category pills */
.category-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe6de;
    color: #23291f;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}
.category-pill.active, .category-pill:hover {
    background: var(--bso-green);
    border-color: var(--bso-green);
    color: #fff;
}
.category-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

/* Product cards */
.product-card {
    background: #fff;
    border: 1px solid #eceee9;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(18, 58, 36, .12);
}
.product-card__img-wrap {
    aspect-ratio: 4 / 3;
    background: #f1f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #23291f;
    text-decoration: none;
}
.product-card__price {
    color: var(--bso-green);
    font-weight: 800;
    font-size: 17px;
    margin-top: auto;
}

/* Product detail */
.product-gallery-main {
    aspect-ratio: 1 / 1;
    background: #f1f3ef;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery-thumbs img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 2px solid transparent;
}
.product-gallery-thumbs img.active { border-color: var(--bso-green); }

/* Cart / checkout */
.cart-line-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "info qty remove" "subtotal subtotal subtotal";
    gap: 8px 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #eceee9;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.cart-line__info { grid-area: info; min-width: 0; }
.cart-line__qty { grid-area: qty; }
.cart-line__qty input { width: 72px; }
.cart-line__remove { grid-area: remove; }
.cart-line__subtotal {
    grid-area: subtotal;
    font-weight: 700;
    color: var(--bso-green);
    text-align: right;
}
@media (min-width: 576px) {
    .cart-line {
        grid-template-columns: 1fr auto auto auto;
        grid-template-areas: "info qty subtotal remove";
    }
    .cart-line__subtotal { text-align: right; min-width: 90px; }
}
.checkout-step-card {
    background: #fff;
    border: 1px solid #eceee9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.order-summary {
    background: #fff;
    border: 1px solid #eceee9;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 90px;
}
.order-summary ul { list-style: none; padding: 0; margin: 0 0 12px; }
.order-summary li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f3ef; font-size: 14px; }
.option-tile {
    display: block;
    border: 2px solid #dfe6de;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #23291f;
    background: #fff;
    height: 100%;
}
.option-tile:hover { border-color: var(--bso-green-light); }
.option-tile.selected { border-color: var(--bso-green); background: rgba(31,106,61,.06); }

/* Footer */
.site-footer {
    background-color: var(--bso-green-dark);
    color: #fff;
    padding: 48px 0 24px;
    margin-top: 48px;
}

/* Legal pages */
.legal-content h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.legal-content { max-width: 860px; }

@media (max-width: 767.98px) {
    .hero { padding: 40px 0; }
    .order-summary { position: static; }
}
