:root {
    --primary: #8dc63f;
    --primary-dark: #5f9d23;
    --surface: #f5f8ef;
    --ink: #1f2a18;
    --muted: #62715a;
    --card-radius: 1.2rem;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, #d9f2a9 0%, transparent 35%),
        radial-gradient(circle at 100% 10%, #c7e97f 0%, transparent 30%),
        #eef5df;
    color: var(--ink);
}

.app-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #d8e6bc;
}

.navbar-brand,
.nav-link {
    color: var(--ink);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-dark);
}

.hero-wrap {
    background: linear-gradient(140deg, #8dc63f, #6faa2f);
    color: #fff;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero-wrap::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -80px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.hero-owner-card {
    position: relative;
    max-width: 340px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 0;
    box-shadow: 0 16px 28px rgba(23, 49, 4, 0.2);
    background: transparent;
}

.hero-owner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.3),
        inset 0 0 62px 18px rgba(111, 170, 47, 0.62);
}

.hero-owner-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.soft-card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 20px rgba(63, 88, 29, 0.12);
}

.soft-pill {
    border-radius: 999px;
    background: #ecf6da;
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary);
    border-radius: 999px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.price-tag {
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title {
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 0.8rem;
}

.site-footer {
    background: #f7fbef;
    border-top: 1px solid #d7e7bc;
}

.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1060;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(37, 211, 102, 0.28);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #fff;
    background: #17b556;
}

.order-table th {
    white-space: nowrap;
}

.cake-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #f4f8eb;
    padding: 3px;
    border-radius: 0.7rem;
}

.cake-card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    background: #f4f8eb;
    padding: 0;
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
}

.cake-description-wrap {
    min-height: 6.25rem;
    margin-bottom: 0.75rem;
}

.cake-description {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    max-height: 4.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
}

.cake-description.expanded {
    max-height: none;
    -webkit-line-clamp: unset;
    display: block;
    overflow-y: auto;
}

.cake-read-toggle {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.82rem;
}

.cake-read-toggle:hover,
.cake-read-toggle:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-wrap {
        border-radius: 0 0 24px 24px;
    }

    .hero-owner-card {
        margin: 0 auto;
        max-width: 270px;
    }

    .hero-owner-image {
        height: 300px;
    }

    .cake-description-wrap {
        min-height: 5.9rem;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}
