:root {
    --green: #127947;
    --green-dark: #0c5732;
    --green-light: #e0f5e9;
    --green-subtle: #d2edd9;
    --text: #132e20;
    --muted: #4e6e5d;
    --background: #edf5f0;
    --border: var(--line);
    --card-shadow: 0 4px 20px rgba(18, 60, 36, 0.06);
    --card-shadow-hover: 0 12px 30px rgba(18, 60, 36, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#katalog {
    scroll-margin-top: 85px;
}

#lokasi {
    scroll-margin-top: 85px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Navbar */
.navbar-main {
    background: #123f2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand img {
    height: 48px !important;
    width: auto;
    max-width: 240px !important;
    object-fit: contain;
}

.navbar-toggler {
    filter: invert(1);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 650;
    font-size: 14px;
    padding: 0.5rem 0.95rem !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 15px !important;
    border-radius: 4px;
    font-weight: 700;
}

.cart-pill:hover {
    background-color: rgba(255, 255, 255, 0.32);
    color: #ffffff !important;
}

.btn-green {
    background: #123f2b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 750;
    padding: 10px 20px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-green:hover {
    background: #123f2b;
    color: #ffffff;

    box-shadow: none;
}

.navbar-main .btn-outline-green {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.navbar-main .btn-outline-green:hover {
    background-color: #ffffff;
    color: #0e522f;
}

.btn-outline-green {
    border: 1.5px solid var(--green);
    color: var(--green);
    background: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-outline-green:hover {
    background-color: var(--green);
    color: #ffffff;
}

/* Hero Split Showcase */
.hero-split {
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: none;
    margin-bottom: 36px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d6f2e2;
    color: #0d5f34;
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: #113824;
    margin-top: 14px;
    margin-bottom: 14px;
}

.hero-title .highlight {
    color: var(--green);
    position: relative;
}

.hero-title .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: #88d2a6;
    border-radius: 4px;
    opacity: 0.7;
}

.hero-desc {
    color: #4e6b5b;
    font-size: 15px;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 22px;
}

/* Search Box */
.hero-search-box {
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    padding: 6px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.catalog-search-wrapper .hero-search-box {
    background: #ffffff;
    border: 1.5px solid var(--line);
    box-shadow: none;
}

.catalog-search-wrapper .hero-search-box:focus-within {
    border-color: var(--green);
    box-shadow: none;
}

.hero-search-box:focus-within {
    background: #ffffff;
    border-color: var(--green);
    box-shadow: none;
}

.hero-search-box .form-control {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    padding: 10px 14px;
}

.hero-search-box .form-control:focus {
    box-shadow: none;
    outline: none;
}

/* Pharmacy Photo Frame */
.pharmacy-photo-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 4px solid var(--line);
    box-shadow: none;
    aspect-ratio: 4 / 3;
    background: #eef5f1;
}

.pharmacy-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pharmacy-photo-frame:hover img {

}

.photo-vignette {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.photo-floating-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.photo-top-tag {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 4px;
    border: 2.5px solid var(--line);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

/* Benefit Cards */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 18px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.benefit-card:hover {

    box-shadow: none;
    border-color: var(--line);
}

.benefit-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--green-light);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.benefit-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #153825;
    margin-bottom: 2px;
}

.benefit-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* Services Grid (Layanan Kami) */
.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 22px;
    height: 100%;
    box-shadow: none;
    transition: all 0.25s ease;
}

.service-card:hover {

    box-shadow: none;
    border-color: var(--line);
}

/* Catalog & Product Grid */
.catalog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {

    border-color: var(--line);
    box-shadow: none;
}

.product-visual-wrapper {
    height: 180px;
    background: #ffffff;
    border-bottom: 1.5px solid var(--line);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-visual-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-visual-wrapper img {

}

.product-badge-cat {
    background-color: #d6f2e2;
    color: #0d5f34;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.product-title {
    font-size: 16px;
    font-weight: 800;
    color: #153825;
    margin: 10px 0 6px;
    line-height: 1.35;
}

.product-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-price-tag {
    font-size: 19px;
    font-weight: 850;
    color: #0e6e39;
}

.stock-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 750;
}

.stock-pill-ready {
    background-color: #d6f2e2;
    color: #0c6134;
    border: 1px solid var(--line);
}

.stock-pill-low {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid var(--line);
}

.stock-pill-empty {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--line);
}

/* Footer */
.site-footer {
    background: #123f2b;
    color: #ffffff;
    border-top: 3px solid #1a824e;
    margin-top: 60px;
    padding: 55px 0 35px;
}

.site-footer .text-muted {
    color: #c7e5d3 !important;
}

.site-footer h6 {
    color: #ffffff !important;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 38px;
        max-width: 160px;
    }
    .hero-split {
        padding: 20px 16px;
        border-radius: 4px;
    }
    .hero-title {
        font-size: 24px;
    }
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .benefit-card {
        padding: 12px 10px;
        gap: 8px;
    }
    .benefit-icon-box {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .benefit-title {
        font-size: 13px;
    }
    .benefit-sub {
        font-size: 13px;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-visual-wrapper {
        height: 135px;
        padding: 10px;
    }
    .product-title {
        font-size: 13.5px;
    }
    .product-price-tag {
        font-size: 16px;
    }
}

/* Kartu layanan muncul bertahap saat digulir */
.service-reveal.is-ready .service-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-reveal.is-ready .service-card.is-visible {
    opacity: 1;
    transform: none;
}

/* Langkah pemesanan muncul berurutan saat digulir */
.order-steps.is-ready li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.order-steps.is-ready li::before {
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: inherit;
}

.order-steps.is-ready li.is-visible {
    opacity: 1;
    transform: none;
}

.order-steps.is-ready li.is-visible::before {
    transform: none;
}
