:root {
    --akb-dark: #0f172a;
    --akb-darker: #020617;
    --akb-card: #ffffff;
    --akb-soft: #f8fafc;
    --akb-border: rgba(15, 23, 42, 0.10);
    --akb-muted: #64748b;
    --akb-gold: #f59e0b;
    --akb-gold-soft: #fff7ed;
    --akb-green: #16a34a;
    --akb-red: #dc2626;
    --akb-blue: #2563eb;
}

* {
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

.akb-premium-body,
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eef2ff 100%);
    color: #111827;
}

main {
    min-height: 68vh;
}

img {
    max-width: 100%;
}

.akb-announcement-bar {
    background: linear-gradient(90deg, #111827, #334155, #111827);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.premium-header {
    backdrop-filter: blur(18px);
}

.header-brand .brand-text,
.brand-text {
    font-weight: 900;
    letter-spacing: -0.04em;
}

.header-search-input {
    border: 0 !important;
    min-height: 45px;
    box-shadow: none !important;
}

.header-search-group {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.header-search-btn {
    background: var(--akb-gold) !important;
    color: #111827 !important;
    font-weight: 800 !important;
    border: 0 !important;
    padding-left: 22px;
    padding-right: 22px;
}

.header-mini-btn,
.header-user-btn,
.menu-nav-link {
    font-weight: 750;
    opacity: 0.92;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.header-mini-btn:hover,
.header-user-btn:hover,
.menu-nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.flash-sale-nav-link {
    color: #111827 !important;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 999px;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.dropdown-item {
    font-weight: 650;
}

.hero-section {
    position: relative;
    isolation: isolate;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 110px;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.95));
    pointer-events: none;
    z-index: -1;
}

.hero-badge,
.badge.hero-badge {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 800;
}

.hero-title {
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero-subtitle {
    max-width: 620px;
}

.card,
.product-card,
.category-card,
.checkout-card,
.cart-card {
    border: 1px solid var(--akb-border) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.product-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
}

.product-card .card-img-top,
.card-img-top {
    transition: transform 0.35s ease;
    background: #f1f5f9;
}

.product-card:hover .card-img-top {
    transform: scale(1.045);
}

.product-card .position-relative {
    overflow: hidden;
}

.btn {
    font-weight: 800;
}

.btn-dark,
.btn-primary {
    background: linear-gradient(135deg, #111827, #334155) !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f97316) !important;
    border: 0 !important;
    color: #111827 !important;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.20);
}

.btn-outline-dark,
.btn-outline-danger,
.btn-outline-primary {
    border-width: 1.5px;
}

.btn:hover {
    transform: translateY(-1px);
}

input.form-control,
select.form-select,
textarea.form-control {
    border-radius: 16px;
    border-color: rgba(15, 23, 42, 0.12);
    padding: 12px 14px;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.12);
}

.section-title,
.display-5,
.display-6,
h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

.text-primary {
    color: var(--akb-blue) !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.shadow-sm {
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.08) !important;
}

.table {
    overflow: hidden;
    border-radius: 18px;
}

footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    color: #fbbf24 !important;
}

.floating-whatsapp,
.whatsapp-float {
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.25) !important;
}

@media (max-width: 991.98px) {
    .header-top-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        text-align: center;
    }

    .header-brand,
    .header-action-buttons {
        justify-content: center;
    }

    .header-action-buttons {
        flex-wrap: wrap;
    }

    .second-navbar .navbar-nav {
        padding-top: 14px;
        padding-bottom: 14px;
        align-items: stretch !important;
    }

    .menu-nav-link {
        padding: 10px 14px !important;
        border-radius: 14px;
    }

    .flash-sale-nav-link {
        display: inline-block;
    }

    .hero-title {
        font-size: clamp(2.3rem, 11vw, 4rem) !important;
    }
}

@media (max-width: 575.98px) {
    .akb-announcement-bar {
        font-size: 12px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card-body {
        padding: 18px !important;
    }

    .btn-lg {
        width: 100%;
    }

    .product-card .card-img-top,
    .card-img-top {
        height: 230px !important;
    }
}
