/* =====================================
   APOTEK KOVA
   MODERN HEALTHCARE DESIGN SYSTEM
===================================== */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #0891b2;
    --accent: #6366f1;

    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;

    --background: #f8fafc;
    --white: #ffffff;

    --gradient-main: linear-gradient(
        120deg,
        #059669,
        #0891b2,
        #6366f1
    );

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.12);

    --radius-card: 20px;
}

/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--dark);
}

a {
    text-decoration: none;
}

/* =====================================
   NAVBAR
===================================== */

.navbar-public {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);

    padding: 18px 0;

    border-bottom: 1px solid #edf2f7;

    box-shadow: 0 5px 25px rgba(15, 23, 42, 0.035);
}

.brand-public {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-size: 22px;
    font-weight: 800;
    color: #0f3554 !important;
}

.brand-symbol {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gradient-main);
    color: white;

    border-radius: 14px;
    font-size: 24px;

    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.18);
}

.brand-green {
    color: var(--primary);
}

.navbar-public .nav-link {
    color: #475569;
    font-size: 13px;
    font-weight: 600;

    transition: color 0.25s ease;
}

.navbar-public .nav-link:hover,
.navbar-public .nav-link.active {
    color: var(--primary);
}

.nav-unavailable {
    opacity: 0.55;
    cursor: default;
}

/* NAV ACTIONS */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;
    border: none;
    border-radius: 13px;

    font-size: 19px;
    color: #334155;
}

.nav-icon-btn:disabled {
    opacity: 0.65;
}

.btn-public-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--gradient-main);
    color: white;

    padding: 11px 22px;

    font-size: 13px;
    font-weight: 700;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.18);

    transition: all 0.3s ease;
}

.btn-public-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 13px 27px rgba(5, 150, 105, 0.25);
}

.btn-public-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    border: 1px solid var(--primary);

    padding: 10px 22px;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.btn-public-outline:hover {
    background: var(--primary);
    color: white;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

/* =====================================
   FOOTER
===================================== */

.footer-public {
    background: #0f172a;
    color: white;

    padding: 65px 0 25px;
    margin-top: 80px;
}

.footer-brand {
    font-weight: 800;
    font-size: 23px;
    margin-bottom: 20px;
}

.footer-brand i {
    color: #34d399;
}

.footer-description {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.9;
    max-width: 380px;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 22px;
}

.footer-link {
    display: block;
    color: #94a3b8;

    font-size: 13px;
    margin-bottom: 14px;
}

a.footer-link:hover {
    color: #34d399;
}

.footer-divider {
    border-color: #334155;
    margin: 35px 0 25px;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 12px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .navbar-public {
        padding: 13px 0;
    }

    .navbar-public .navbar-collapse {
        padding-top: 20px;
    }

    .nav-actions {
        margin-top: 20px;
    }

    .brand-public {
        font-size: 19px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
/* =====================================
   HERO BANNER MODERN
===================================== */

.hero-modern {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    padding: 55px 55px 0;
    border-radius: 30px;

    background: linear-gradient(
        115deg,
        #f0fdfa 0%,
        #e0f2fe 55%,
        #eef2ff 100%
    );

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.hero-modern::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.07);
    top: -160px;
    right: 12%;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 55px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 43px;
    font-weight: 800;
    color: #0f3554;
    line-height: 1.25;
    max-width: 620px;
}

.hero-title span {
    color: #059669;
}

.hero-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.9;
    margin-top: 22px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 24px;
    border-radius: 13px;
    background: linear-gradient(120deg, #059669, #06b6d4);
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(5, 150, 105, 0.2);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(5, 150, 105, 0.3);
}

.hero-info {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.hero-info i {
    color: #059669;
    margin-right: 5px;
}

/* GAMBAR APOTEKER */

.hero-image-wrapper {
    position: relative;
    min-height: 415px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: 330px;
    height: 330px;
    background: linear-gradient(135deg, #a7f3d0, #bae6fd);
    border-radius: 50%;
    bottom: 25px;
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.1);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    max-height: 430px;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 15px 18px rgba(15, 23, 42, 0.1));
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    left: -10px;
    bottom: 95px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-floating-card i {
    color: #10b981;
    font-size: 28px;
}

.hero-floating-card strong,
.hero-floating-card small {
    display: block;
}

.hero-floating-card strong {
    font-size: 12px;
    color: #0f172a;
}

.hero-floating-card small {
    font-size: 10px;
    color: #64748b;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .hero-modern {
        padding: 45px 30px 0;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-image-wrapper {
        min-height: 360px;
    }

    .hero-image {
        max-height: 350px;
    }
}

@media (max-width: 576px) {

    .hero-modern {
        padding: 35px 25px 0;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 29px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-image-wrapper {
        min-height: 300px;
    }

    .hero-circle {
        width: 260px;
        height: 260px;
    }

    .hero-image {
        max-height: 310px;
    }

    .hero-floating-card {
        left: 0;
        bottom: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-floating-card {
        animation: none;
    }
}

/* =====================================
   APOTEK KOVA - KATEGORI MODERN
===================================== */

.kova-category-card {
    background: #ffffff;
    border: 1px solid #e7eef5;
    border-radius: 20px;
    padding: 25px 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kova-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
}

.kova-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.7);
}

.kova-category-icon.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.kova-category-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.kova-category-icon.orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}

.kova-category-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.kova-category-icon.pink {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.kova-category-icon.cyan {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: #0891b2;
}

.kova-category-card h6 {
    font-size: 14px;
    font-weight: 700;
    color: #0f3554;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .kova-category-card {
        padding: 20px 10px;
    }

    .kova-category-icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .kova-category-card h6 {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kova-category-card {
        transition: none;
    }
}
/* =====================================
   APOTEK KOVA
   MODERN PRODUCT CARDS
===================================== */

.kova-section-title {
    font-size: 27px;
    font-weight: 800;
    color: #0f3554;
    margin-bottom: 8px;
}

.kova-section-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 0;
}

.kova-view-all {
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

/* PRODUCT CARD */

.kova-product-card {
    background: #ffffff;
    border: 1px solid #e7eef5;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.04),
        0 3px 10px rgba(15, 23, 42, 0.02);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.kova-product-card:hover {
    transform: translateY(-8px);
    border-color: #a7f3d0;

    box-shadow:
        0 22px 45px rgba(15, 23, 42, 0.10),
        0 8px 20px rgba(5, 150, 105, 0.06);
}

/* PRODUCT IMAGE */

.kova-product-image {
    position: relative;
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #f0fdfa,
        #eff6ff,
        #f5f3ff
    );

    overflow: hidden;
}

.kova-product-image::before {
    content: "";
    position: absolute;

    width: 150px;
    height: 150px;

    background: rgba(16, 185, 129, 0.06);
    border-radius: 50%;
}

/* IMAGE */

.kova-product-img {
    position: relative;
    z-index: 2;

    width: 85%;
    height: 165px;

    object-fit: contain;

    filter: drop-shadow(
        0 12px 12px rgba(15, 23, 42, 0.12)
    );

    transition: transform 0.35s ease;
}

.kova-product-card:hover .kova-product-img {
    transform: scale(1.08) translateY(-5px);
}

/* PLACEHOLDER */

.kova-product-placeholder {
    position: relative;
    z-index: 2;

    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #d1fae5,
        #bae6fd
    );

    border-radius: 28px;

    color: #059669;
    font-size: 55px;

    box-shadow:
        0 15px 30px rgba(5, 150, 105, 0.12),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);

    transition: transform 0.3s ease;
}

.kova-product-card:hover .kova-product-placeholder {
    transform: translateY(-6px) rotate(-4deg);
}

/* BADGE */

.kova-product-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    background: #ffffff;
    color: #059669;

    padding: 6px 11px;
    border-radius: 30px;

    font-size: 10px;
    font-weight: 700;

    z-index: 3;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* WISHLIST */

.kova-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #64748b;

    border-radius: 50%;
    font-size: 16px;

    z-index: 3;
    opacity: 0.65;
}

/* PRODUCT BODY */

.kova-product-body {
    padding: 19px;
}

.kova-product-category {
    color: #059669;
    font-size: 11px;
    font-weight: 700;

    margin-bottom: 7px;
}

.kova-product-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f3554;

    margin-bottom: 7px;
    line-height: 1.5;

    min-height: 45px;
}

.kova-product-package {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 13px;
}

.kova-product-availability {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #64748b;
    font-size: 11px;
    font-weight: 600;

    margin-bottom: 17px;
}

.kova-dot {
    width: 8px;
    height: 8px;

    background: #94a3b8;
    border-radius: 50%;
}

/* PRICE */

.kova-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kova-product-price {
    font-size: 17px;
    font-weight: 800;
    color: #0f3554;
}

/* CART BUTTON */

.kova-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: #ffffff;
    color: #059669;

    border: 1px solid #10b981;
    border-radius: 10px;

    padding: 9px 12px;

    font-size: 11px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.kova-btn-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 576px) {

    .kova-section-title {
        font-size: 22px;
    }

    .kova-product-image {
        height: 160px;
    }

    .kova-product-img {
        height: 125px;
    }

    .kova-product-placeholder {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .kova-product-body {
        padding: 13px;
    }

    .kova-product-name {
        font-size: 13px;
        min-height: 40px;
    }

    .kova-product-price {
        font-size: 14px;
    }

    .kova-product-bottom {
        flex-wrap: wrap;
    }

    .kova-btn-cart {
        padding: 8px 10px;
        font-size: 10px;
    }

    .kova-product-badge {
        font-size: 9px;
        padding: 5px 8px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .kova-product-card,
    .kova-product-img,
    .kova-product-placeholder,
    .kova-btn-cart {
        transition: none;
    }

}
/* =====================================
   APOTEK KOVA - DYNAMIC DATABASE STATES
===================================== */

.kova-product-badge.featured {
    background: #fff7ed;
    color: #c2410c;
}

.kova-product-badge.prescription {
    background: #fef2f2;
    color: #b91c1c;
}

.kova-empty-state {
    width: 100%;
    padding: 48px 25px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    color: #64748b;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035);
}

.kova-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #d1fae5, #bae6fd);
    color: #059669;
    font-size: 34px;
}

.kova-empty-state h5 {
    margin-bottom: 8px;
    color: #0f3554;
    font-weight: 800;
}

.kova-empty-state p {
    max-width: 580px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.8;
}

.kova-empty-state.product-empty {
    padding-top: 55px;
    padding-bottom: 55px;
}
