/* ══════════════════════════════════════════
   RAJA CYLINDER — MARKETPLACE CSS  v4
   Font : Glacial Indifference (brand font)
   Palette: #0D0F5B navy · #7ED321 green
   Tone : Clean-premium industrial
══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #0D0F5B;
    --navy-lt:    #1a237e;
    --navy-xl:    #e8eaf6;
    --green:      #7ED321;
    --green-dk:   #6ac11c;
    --green-xl:   #f2fbe0;
    --bg:         #f3f5fa;
    --white:      #ffffff;
    --text:       #1a1c2e;
    --text-md:    #3d3f52;
    --muted:      #7c7f96;
    --border:     #e4e6f0;
    --border-lt:  #f0f1f8;
    --sh-xs:  0 1px 4px rgba(13,15,91,.05);
    --sh-sm:  0 2px 10px rgba(13,15,91,.07);
    --sh-md:  0 8px 28px rgba(13,15,91,.10);
    --sh-lg:  0 18px 52px rgba(13,15,91,.13);
    --sh-xl:  0 28px 72px rgba(13,15,91,.16);
    --r-xs:  6px;  --r-sm:  10px;  --r:  14px;  --r-lg:  20px;  --r-xl:  28px;
    --t:   .22s ease;
    --t-md:.35s ease;
    --header-h:  68px;
    --topbar-h:  40px;
    --catnav-h:  46px;
}

html, body { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Glacial Indifference', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; }

.mh-inner, .tb-inner, .footer-inner {
    width: 100%; max-width: 1260px;
    margin: 0 auto; padding: 0 28px;
}

.page-wrap {
    max-width: 1260px; margin: 0 auto; padding: 0 28px 80px;
}


/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.top-bar {
    background: var(--navy);
    position: relative; z-index: 300;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.tb-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: var(--topbar-h); gap: 16px;
}

.tb-promo {
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; position: relative; user-select: none;
    animation: tbSlideIn .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes tbSlideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.tb-badge {
    background: var(--green); color: var(--navy);
    font-size: 9.5px; font-weight: 800;
    padding: 2px 9px; border-radius: 20px;
    letter-spacing: .07em; flex-shrink: 0; text-transform: uppercase;
}

.tb-text {
    font-size: 12.5px; color: rgba(255,255,255,.75);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
}

.tb-text strong { color: var(--green); }

.tb-caret {
    font-size: 9px; color: rgba(255,255,255,.4);
    transition: transform var(--t); flex-shrink: 0;
}

.tb-promo:hover .tb-caret { transform: rotate(180deg); }

.qr-popup {
    position: absolute; top: calc(100% + 12px); left: 0;
    width: 262px; background: var(--white);
    border-radius: var(--r); box-shadow: var(--sh-xl);
    border: 1px solid var(--border); padding: 22px; text-align: center;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px) scale(.97);
    transition: all .22s cubic-bezier(.22,1,.36,1);
    z-index: 400; pointer-events: none;
}

.qr-popup-arrow {
    position: absolute; top: -6px; left: 26px;
    width: 12px; height: 12px; background: var(--white);
    transform: rotate(45deg);
    border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}

.tb-promo:hover .qr-popup {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: all;
}

.qr-title  { font-size: 13px; color: var(--text-md); margin-bottom: 14px; line-height: 1.5; }
.qr-img    { width: 148px; margin: 0 auto 10px; border-radius: var(--r-sm); }
.qr-sub    { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.qr-playstore img { width: 138px; margin: 0 auto; transition: transform var(--t); }
.qr-playstore:hover img { transform: scale(1.04); }

.tb-right {
    display: flex; align-items: center;
    gap: 20px; flex-shrink: 0; white-space: nowrap;
}

.tb-hotline {
    background: var(--green); color: var(--navy);
    font-weight: 700; font-size: 11.5px;
    padding: 4px 13px; border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
    transition: all var(--t); letter-spacing: .01em;
}

.tb-hotline:hover { background: var(--green-dk); color: white; }

.tb-right a { color: rgba(255,255,255,.7); font-size: 12.5px; transition: color var(--t); }
.tb-right a:hover { color: rgba(255,255,255,.95); }
.tb-track { display: flex; align-items: center; gap: 5px; }


/* ══════════════════════════════════════════
   MAIN HEADER
══════════════════════════════════════════ */
.main-header {
    background: var(--white); position: sticky; top: 0; z-index: 200;
    box-shadow: var(--sh-sm); transition: box-shadow var(--t-md), background var(--t-md);
}

.main-header.scrolled {
    box-shadow: var(--sh-md);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mh-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; letter-spacing: -.01em; }
.logo-text em { font-style: normal; color: var(--green); }

.search-wrap { flex: 1; min-width: 0; }

.search-box {
    display: flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: 40px;
    background: var(--bg); overflow: hidden; height: 46px;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.search-box:focus-within {
    border-color: var(--navy); background: var(--white);
    box-shadow: 0 0 0 4px rgba(13,15,91,.06);
}

.search-cat {
    border: none; border-right: 1px solid var(--border);
    padding: 0 30px 0 16px; height: 100%;
    font-size: 13px; font-weight: 700;
    font-family: 'Glacial Indifference', sans-serif;
    color: var(--navy); background: var(--white); outline: none; cursor: pointer; appearance: none;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='none' stroke='%230D0F5B' stroke-width='2'%3E%3Cpath d='M1.5 3.5l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; min-width: 112px;
}

.search-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }

.search-box input {
    flex: 1; border: none; padding: 0 14px;
    font-size: 13.5px; font-family: 'Glacial Indifference', sans-serif;
    outline: none; background: transparent; min-width: 0; color: var(--text);
}

.search-box input::placeholder { color: var(--muted); }

.search-btn {
    width: 50px; height: 100%; border: none;
    background: var(--navy); color: white; font-size: 15px;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t);
}

.search-btn:hover { background: var(--navy-lt); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.auth-btns { display: flex; align-items: center; gap: 7px; }

.btn-login {
    color: var(--navy); font-size: 13px; font-weight: 700;
    padding: 8px 16px; border-radius: var(--r-sm);
    border: 1.5px solid var(--border); transition: all var(--t); white-space: nowrap;
}

.btn-login:hover { border-color: var(--navy); background: var(--navy-xl); }

.btn-register {
    background: var(--navy); color: white;
    font-size: 13px; font-weight: 700;
    padding: 8px 18px; border-radius: var(--r-sm);
    transition: all var(--t); white-space: nowrap;
}

.btn-register:hover { background: var(--navy-lt); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,15,91,.22); }

.user-menu { position: relative; }

.user-trigger {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 1.5px solid var(--border);
    border-radius: 40px; padding: 5px 12px 5px 5px;
    cursor: pointer; transition: all var(--t);
    font-family: 'Glacial Indifference', sans-serif;
}

.user-trigger:hover { border-color: var(--navy); background: var(--navy-xl); }

.user-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.user-avatar-initial {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: white;
}

.user-name-short {
    font-size: 13px; font-weight: 700; color: var(--navy);
    max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.user-caret { font-size: 9px; color: var(--muted); transition: transform var(--t); }

.user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 228px; background: var(--white);
    border-radius: var(--r); box-shadow: var(--sh-lg);
    border: 1px solid var(--border); padding: 6px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px) scale(.97);
    transition: all .2s cubic-bezier(.22,1,.36,1);
    z-index: 300; transform-origin: top right;
}

.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ud-header { display: flex; align-items: center; gap: 11px; padding: 13px 16px 12px; }

.ud-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.ud-initial {
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: white;
}

.ud-name  { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.ud-email { font-size: 11px; color: var(--muted); margin-top: 1px; }
.ud-divider { height: 1px; background: var(--border-lt); margin: 4px 0; }

.ud-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 16px; font-size: 13px; color: var(--text-md);
    transition: all var(--t); cursor: pointer;
}

.ud-item i { width: 15px; font-size: 13px; color: var(--muted); transition: color var(--t); text-align: center; }
.ud-item:hover { background: var(--navy-xl); color: var(--navy); }
.ud-item:hover i { color: var(--green-dk); }
.ud-logout { color: #d32f2f; }
.ud-logout i { color: #ef9a9a !important; }
.ud-logout:hover { background: #fff5f5; color: #b71c1c; }

.icon-btn {
    width: 42px; height: 42px; border-radius: var(--r-sm);
    border: 1.5px solid var(--border); background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: var(--navy);
    cursor: pointer; transition: all var(--t); position: relative;
}

.icon-btn:hover { border-color: var(--navy); background: var(--navy-xl); transform: translateY(-1px); }

.cart-badge {
    position: absolute; top: -7px; right: -7px;
    min-width: 19px; height: 19px;
    background: var(--green); color: var(--navy);
    font-size: 10px; font-weight: 800; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px; border: 2px solid var(--white);
    font-family: 'Glacial Indifference', sans-serif;
}

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 7px; margin-left: auto;
}

.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--t); }

.cat-nav { border-top: 1px solid var(--border); background: var(--white); }

.cat-nav .mh-inner {
    display: flex; align-items: center; gap: 2px;
    height: var(--catnav-h); overflow-x: auto; scrollbar-width: none;
}

.cat-nav .mh-inner::-webkit-scrollbar { display: none; }

.cn-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 15px; border-radius: var(--r-xs);
    font-size: 13px; font-weight: 600; color: var(--muted);
    white-space: nowrap; transition: all var(--t); cursor: pointer;
}

.cn-item:hover  { color: var(--navy); background: var(--navy-xl); }
.cn-item i      { font-size: 11px; }
.cn-active      { color: var(--navy); background: var(--navy-xl); }
.cn-promo       { color: #e65100; margin-left: auto; }
.cn-promo:hover { background: #fff3e0; color: #bf360c; }

.mobile-nav {
    position: fixed; top: 0; left: -290px; width: 290px; height: 100vh;
    background: var(--white); z-index: 500; padding: 24px 20px;
    transition: left .3s cubic-bezier(.22,1,.36,1);
    overflow-y: auto; box-shadow: var(--sh-xl);
}

.mobile-nav.open { left: 0; }

.mn-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); transition: color var(--t); }
.mn-close:hover { color: var(--navy); }
.mn-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding-top: 4px; }
.mn-logo img { height: 36px; }
.mn-logo span { font-size: 18px; font-weight: 700; color: var(--navy); }
.mn-logo em   { font-style: normal; color: var(--green); }
.mn-links { display: flex; flex-direction: column; gap: 2px; }
.mn-links a { display: block; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--text); transition: all var(--t); }
.mn-links a:hover { background: var(--navy-xl); color: var(--navy); }
.mn-promo { color: #e65100 !important; }
.mn-auth { margin-top: 28px; display: flex; flex-direction: column; gap: 9px; }
.mn-login { display: block; text-align: center; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: var(--navy); transition: all var(--t); }
.mn-login:hover { border-color: var(--navy); background: var(--navy-xl); }
.mn-register { display: block; text-align: center; padding: 12px; background: var(--navy); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: white; transition: all var(--t); }
.mn-register:hover { background: var(--navy-lt); }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(13,15,91,.45); z-index: 499; backdrop-filter: blur(3px); }
.mobile-overlay.show { display: block; }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section { margin: 26px 0 0; }

.hero-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 16px; }

.hero-main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/7; background: var(--navy-xl); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-main:hover img { transform: scale(1.03); }

.hero-main-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(13,15,91,.78) 0%, rgba(13,15,91,.2) 55%, transparent 75%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px 36px;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--green); color: var(--navy);
    font-size: 10px; font-weight: 800; padding: 4px 12px;
    border-radius: 20px; letter-spacing: .08em; text-transform: uppercase;
    width: fit-content; margin-bottom: 12px;
}

.hero-main-overlay h2 {
    font-size: clamp(19px, 2.6vw, 30px); color: white; font-weight: 700;
    line-height: 1.25; margin-bottom: 18px; letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: var(--navy);
    font-size: 13px; font-weight: 700;
    padding: 11px 22px; border-radius: var(--r-sm);
    width: fit-content; transition: all var(--t);
}

.hero-cta:hover { background: white; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.hero-sub { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }

.hero-sub-item { position: relative; border-radius: var(--r); overflow: hidden; background: var(--border); }
.hero-sub-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-sub-item:hover img { transform: scale(1.05); }

.hero-sub-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,15,91,.72) 0%, transparent 52%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 18px;
}

.hero-sub-overlay span { color: white; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.hero-sub-overlay a    { color: var(--green); font-size: 12px; font-weight: 600; transition: color var(--t); }
.hero-sub-overlay a:hover { color: white; }

/* H1 hero — visible tapi menyatu dengan desain */
.hero-headline {
    font-size: 1.5rem;          /* sesuaikan dengan desain */
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    padding: 0 1rem;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* ══════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════ */
.trust-bar {
    background: var(--white); border-radius: var(--r);
    padding: 0; margin: 22px 0 36px;
    box-shadow: var(--sh-sm); border: 1px solid var(--border); overflow: hidden;
}

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.trust-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--border-lt);
    transition: background var(--t); cursor: default;
}

.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--green-xl); }

.trust-item i { font-size: 22px; color: var(--green); flex-shrink: 0; width: 28px; text-align: center; }
.trust-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.trust-item span { font-size: 11.5px; color: var(--muted); }


/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px; flex-wrap: wrap; gap: 10px;
}

.section-header h2 {
    font-size: clamp(18px, 2.4vw, 23px); font-weight: 700;
    color: var(--navy); position: relative; padding-left: 14px; letter-spacing: -.01em;
}

.section-header h2::before {
    content: ''; position: absolute; left: 0; top: 15%; height: 70%;
    width: 3.5px; background: var(--green); border-radius: 4px;
}

.section-header p { font-size: 13px; color: var(--muted); padding-left: 14px; margin-top: 3px; }

.see-all {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--navy);
    border: 1.5px solid var(--border); padding: 7px 15px;
    border-radius: var(--r-sm); transition: all var(--t); white-space: nowrap;
}

.see-all:hover { border-color: var(--green); color: var(--green-dk); background: var(--green-xl); }


/* ══════════════════════════════════════════
   BRAND CAROUSEL
══════════════════════════════════════════ */
.brand-section {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 0 28px;
    margin-bottom: 44px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

/* Garis gradient animasi di atas */
.brand-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--navy) 0%, var(--green) 35%,
        var(--navy) 65%, var(--green) 100%);
    background-size: 200% 100%;
    animation: shimmerTop 3s linear infinite;
}
@keyframes shimmerTop {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Header */
.brand-header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 28px;
}
.brand-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.brand-header p {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.brand-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.bdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--navy);
    opacity: .15;
    animation: dotPulse 2s ease-in-out infinite;
}
.bdot-active {
    width: 24px; border-radius: 3px;
    opacity: 1;
    background: linear-gradient(90deg, var(--navy), var(--green));
    animation: none;
}
.bdot:nth-child(2) { animation-delay: 0s; }
.bdot:nth-child(3) { animation-delay: .3s; }
.bdot:nth-child(4) { animation-delay: .6s; }
@keyframes dotPulse {
    0%,100% { opacity: .15; }
    50%      { opacity: .5; }
}

/* Mask fade */
.brand-track-wrap {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right,
        transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Track scroll */
.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: brandScroll 28s linear infinite;
    will-change: transform;
}
.brand-track:hover { animation-play-state: paused; }
@keyframes brandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Item */
.brand-item { flex-shrink: 0; padding: 0 10px; }

/* Card */
.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 158px;
    height: 80px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--white);
    padding: 12px 20px;
    gap: 4px;
    overflow: hidden;
    cursor: default;
    transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
}
.brand-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(13,15,91,.22);
    box-shadow:
        0 16px 40px rgba(13,15,91,.12),
        0 4px 12px rgba(13,15,91,.06);
    background: #fafbff;
}

/* Efek kilap saat hover */
.brand-shine {
    position: absolute;
    top: -40px; left: -60px;
    width: 70px; height: 160px;
    background: rgba(255,255,255,.65);
    transform: rotate(28deg);
    opacity: 0;
    pointer-events: none;
    transition: left .5s ease, opacity .4s ease;
}
.brand-card:hover .brand-shine {
    left: 150%;
    opacity: 1;
}

/* Logo */
.brand-card img {
    max-width: 110px;
    max-height: 42px;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.brand-card:hover img { transform: scale(1.08); }

/* Label muncul saat hover */
.brand-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .25s ease;
    line-height: 1;
}
.brand-card:hover .brand-label { opacity: 1; }

/* Separator */
.brand-sep {
    flex-shrink: 0;
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    margin: 0 2px;
}

/* Footer tag */
.brand-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding: 0 24px;
    flex-wrap: wrap;
}
.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .04em;
    background: #fafafa;
}
.brand-tag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .25; }
}


/* ══════════════════════════════════════════
   KATEGORI
══════════════════════════════════════════ */
.cat-section { margin-bottom: 48px; }
.cat-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }

.cat-card {
    display:flex; flex-direction:column; align-items:center;
    justify-content:flex-end; padding:0 8px 14px;
    border-radius:16px; border:none;
    cursor:pointer; text-align:center;
    position:relative; overflow:hidden;
    height:128px; text-decoration:none;
    transition:transform .22s ease, box-shadow .22s ease;
}
.cat-card:hover { transform:translateY(-5px); box-shadow:0 12px 28px rgba(0,0,0,.13); }
.cat-card:hover .cat-icon-wrap svg { transform:scale(1.08); }

.cat-icon-wrap {
    position:absolute; top:0; left:0; right:0;
    height:78px; display:flex; align-items:center;
    justify-content:center; background:none;
}
.cat-icon-wrap svg { transition:transform .22s ease; overflow:visible; }

.cat-name {
    font-size:11.5px; font-weight:700;
    color:var(--ic); display:block;
    margin-bottom:4px; position:relative; line-height:1.3;
}
.cat-count {
    display:inline-block; position:relative;
    font-size:10px; font-weight:700;
    color:var(--ic); background:rgba(255,255,255,.6);
    padding:2px 9px; border-radius:20px;
}

.cat-card-more { background:#0D0F5B !important; }
.cat-card-more .cat-name  { color:rgba(255,255,255,.92); }
.cat-card-more .cat-count { color:rgba(255,255,255,.8); background:rgba(255,255,255,.15); }

/* Animasi SVG */
@keyframes piston   { 0%,100%{transform:translateX(0)}  50%{transform:translateX(5px)} }
@keyframes pulse    { 0%,100%{opacity:.7} 50%{opacity:1} }
@keyframes flow     { 0%{stroke-dashoffset:20} 100%{stroke-dashoffset:0} }
@keyframes bounce   { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-3px)} }
@keyframes sealSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes trickle  { 0%{transform:translateY(-2px);opacity:0} 50%{opacity:1} 100%{transform:translateY(4px);opacity:0} }
@keyframes pressNeedle { 0%,100%{transform:rotate(-30deg)} 50%{transform:rotate(30deg)} }
@keyframes slideIn  { 0%,100%{transform:translateX(0)} 40%{transform:translateX(3px)} }
@keyframes waveA    { 0%,100%{transform:scaleY(1)}   50%{transform:scaleY(1.5)} }
@keyframes waveB    { 0%,100%{transform:scaleY(1.5)} 50%{transform:scaleY(.7)}  }
@keyframes waveC    { 0%,100%{transform:scaleY(.8)}  50%{transform:scaleY(1.4)} }
@keyframes gripL { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-3px)} }
@keyframes gripR { 0%,100%{transform:translateX(0)} 50%{transform:translateX(3px)}  }
@keyframes flicker { 0%,100%{opacity:1} 60%{opacity:.3} }

.anim-gripL  { animation:gripL 1.4s ease-in-out infinite; }
.anim-gripR  { animation:gripR 1.4s ease-in-out infinite; }
.anim-flicker{ animation:flicker 2s ease-in-out infinite; }
.anim-piston  { animation:piston 1.4s ease-in-out infinite; }
.anim-pulse   { animation:pulse 1.6s ease-in-out infinite; }
.anim-flow    { stroke-dasharray:6 4; animation:flow .8s linear infinite; }
.anim-bounce  { animation:bounce 1.3s ease-in-out infinite; }
.anim-seal    { animation:sealSpin 4s linear infinite; transform-origin:22px 22px; }
.anim-trickle { animation:trickle 1.4s ease-in-out infinite; }
.anim-needle  { animation:pressNeedle 2s ease-in-out infinite; transform-origin:22px 26px; }
.anim-slide   { animation:slideIn 1.6s ease-in-out infinite; }
.anim-wA      { animation:waveA 1s ease-in-out infinite;      transform-origin:50% 100%; }
.anim-wB      { animation:waveB 1s ease-in-out infinite .15s; transform-origin:50% 100%; }
.anim-wC      { animation:waveC 1s ease-in-out infinite .3s;  transform-origin:50% 100%; }

/* Responsive */
@media (max-width:1024px) { .cat-grid { grid-template-columns:repeat(4,1fr); } }
@media (max-width:640px)  { .cat-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
                             .cat-card { height:110px; border-radius:14px; } }
@media (max-width:400px)  { .cat-grid { grid-template-columns:repeat(2,1fr); } }


/* ══════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════ */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.ft-btn {
    padding: 7px 17px; border-radius: var(--r-sm);
    border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted);
    background: var(--white); cursor: pointer;
    font-family: 'Glacial Indifference', sans-serif; transition: all var(--t);
}

.ft-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-xl); }
.ft-active { background: var(--navy); color: white; border-color: var(--navy); }


/* ══════════════════════════════════════════
   PROMO STRIP
══════════════════════════════════════════ */
.promo-strip {
    background: linear-gradient(135deg, var(--navy) 0%, #1a237e 60%, #283593 100%);
    border-radius: var(--r-lg); padding: 40px 48px;
    margin-bottom: 48px; position: relative; overflow: hidden;
}

.promo-strip::before {
    content: ''; position: absolute; top: -70px; right: -70px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(126,211,33,.1); pointer-events: none;
}

.promo-strip::after {
    content: ''; position: absolute; bottom: -90px; left: 28%;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}

.ps-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

.ps-tag { display: inline-block; background: var(--green); color: var(--navy); font-size: 9.5px; font-weight: 800; padding: 3px 11px; border-radius: 20px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }

.ps-text h3 { font-size: clamp(17px, 2.5vw, 23px); font-weight: 700; color: white; margin-bottom: 6px; line-height: 1.3; }
.ps-text p  { font-size: 13px; color: rgba(255,255,255,.7); }
.ps-text strong { color: var(--green); }

.ps-btn {
    background: var(--green); color: var(--navy);
    font-size: 14px; font-weight: 800; padding: 14px 30px;
    border-radius: var(--r-sm); white-space: nowrap; flex-shrink: 0;
    transition: all var(--t); letter-spacing: .02em;
}

.ps-btn:hover { background: white; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.22); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.8);
    padding-top: 60px;
    border-top: 3px solid var(--green);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 44px;
    padding-bottom: 44px;
    max-width: 1260px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

/* Brand */
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 38px; }
.footer-logo span { font-size: 20px; font-weight: 700; color: white; }
.footer-logo em   { font-style: normal; color: var(--green); }

.footer-brand p {
    font-size: 13px; line-height: 1.75;
    color: rgba(255,255,255,.55); margin-bottom: 20px; max-width: 280px;
}

/* Social icons */
.footer-socials { display: flex; gap: 9px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: var(--r-xs);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); font-size: 15px; transition: all .2s ease;
}
.footer-socials a:hover { background: var(--green); color: var(--navy); border-color: var(--green); transform: translateY(-2px); }

/* Columns */
.footer-col h4 {
    font-size: 11px; font-weight: 800; color: white;
    margin-bottom: 16px; letter-spacing: .1em; text-transform: uppercase;
}
.footer-col a {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.55);
    margin-bottom: 10px; transition: color .2s ease;
    text-decoration: none;
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-col a i { font-size: 12px; width: 15px; flex-shrink: 0; }

/* Payment badges */
.footer-payment { margin-top: 20px; }
.fp-label {
    display: block; font-size: 10px; color: rgba(255,255,255,.4);
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
    font-weight: 700;
}
.fp-badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.fp-badge {
    display: inline-flex; align-items: center; gap: 5px;
    height: 28px; padding: 0 11px; border-radius: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: .05em;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.6);
    transition: all .2s ease; cursor: default; white-space: nowrap;
}
.fp-badge i { font-size: 9px; }

/* BCA */
.fp-bca { border-color: rgba(0,91,170,.4); color: #5ab0f5; }
.fp-bca:hover { background: #005baa; color: #fff; border-color: #005baa; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,91,170,.4); }

/* BNI */
.fp-bni { border-color: rgba(247,127,0,.35); color: #f79a40; }
.fp-bni:hover { background: #f77f00; color: #fff; border-color: #f77f00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(247,127,0,.4); }

/* Mandiri */
.fp-mandiri { border-color: rgba(0,61,122,.4); color: #7ab0e8; }
.fp-mandiri:hover { background: #003d7a; color: #f5c518; border-color: #003d7a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,61,122,.4); }

/* Permata */
.fp-permata { border-color: rgba(139,0,0,.4); color: #e88888; }
.fp-permata:hover { background: #8b0000; color: #fff; border-color: #8b0000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,0,0,.35); }

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1260px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255,255,255,.35);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .2s ease;
    font-size: 12px;
}
.footer-bottom-links a:hover { color: var(--green); }
.footer-bottom-links span { color: rgba(255,255,255,.2); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .cat-grid     { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .search-cat, .search-divider { display: none; }
    .hero-grid    { grid-template-columns: 1fr; }
    .hero-sub     { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
    .trust-grid   { grid-template-columns: repeat(2, 1fr); }
    .trust-item   { border-right: none; border-bottom: 1px solid var(--border-lt); }
    .cat-grid     { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --topbar-h: 36px; --header-h: 60px; }
    .tb-text { display: none; }
    .tb-right a:not(.tb-hotline) { display: none; }
    .logo-text { display: none; }
    .header-actions .auth-btns { display: none; }
    .header-actions .icon-btn:not(.cart-btn) { display: none; }
    .header-actions .user-menu { display: none; }
    .hamburger { display: flex; }
    .hero-main-overlay { padding: 18px 22px; }
    .hero-main-overlay h2 { font-size: 16px; }
    .hero-cta { font-size: 12px; padding: 9px 16px; }
    .cat-grid  { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card  { padding: 16px 8px 12px; }
    .cat-icon-wrap { width: 50px; height: 50px; }
    .cat-name  { font-size: 12px; }
    .cat-count { display: none; }
    .promo-strip  { padding: 26px 22px; }
    .ps-btn       { width: 100%; text-align: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-col   { display: none; }
    .footer-brand { display: block; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
    .mh-inner, .tb-inner, .footer-inner { padding: 0 18px; }
    .page-wrap { padding: 0 18px 60px; }
}

@media (max-width: 480px) {
    .page-wrap  { padding: 0 12px 44px; }
    .hero-sub   { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item span { display: none; }
    .cat-grid   { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .section-header { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-track { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

