/*{{-- ==== RDI PREMIUM HEADER ==== --}}*/

    /* ====== WRAPPER HEADER ====== */
    .rdi-header {
        position: sticky;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.85);
        transition: all .25s ease-in-out;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    .rdi-header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* ====== TOP BAR ====== */
    .rdi-topbar {
        background:#f3f3f3;
        font-size: 13px;
        padding: 4px 0;
    }
    .rdi-topbar ul {
        list-style:none;
        margin:0;
        padding:0;
    }
    .rdi-topbar li {
        display:flex;
        align-items:center;
        gap:6px;
    }

    /* ====== MENU ====== */
    .header__menu > ul > li > a {
        position: relative;
        padding: 0 10px;
        font-weight: 600;
        letter-spacing: .03em;
    }
    .header__menu > ul > li > a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: #7fad39;
        border-radius: 999px;
        transition: all .25s;
        transform: translateX(-50%);
    }
    .header__menu > ul > li:hover > a::after,
    .header__menu > ul > li.active > a::after {
        width: 60%;
    }

    /* ====== ICONS RIGHT ====== */
    .header__cart ul {
        list-style:none;
        margin:0;
        padding:0;
    }
    .header__cart i {
        transition: .2s;
    }
    .header__cart a,
    .header__cart button {
        color: inherit;
    }
    .header__cart i:hover {
        color:#7fad39;
        transform: scale(1.15);
        text-shadow: 0 0 6px rgba(127,173,57,0.4);
    }

    /* ====== USER DROPDOWN ====== */
    .rdi-user-wrapper {
        position: relative;
    }
    .rdi-user-pill {
        display:flex;
        align-items:center;
        gap:6px;
        padding:4px 10px;
        background:#f5f5f5;
        border-radius:999px;
        font-size:12px;
        cursor:pointer;
    }
    .rdi-user-avatar {
        width:22px;
        height:22px;
        border-radius:999px;
        background:#7fad39;
        color:#fff;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:12px;
        font-weight:600;
    }
    .rdi-user-name {
        max-width:100px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .rdi-user-dropdown {
        position:absolute;
        right:0;
        top:120%;
        min-width:160px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 8px 18px rgba(0,0,0,0.12);
        padding:8px 0;
        opacity:0;
        visibility:hidden;
        transform:translateY(-6px);
        transition: all .2s ease;
        z-index:1000;
    }
    .rdi-user-dropdown.show {
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }
    .rdi-user-dropdown a,
    .rdi-user-dropdown button {
        display:block;
        width:100%;
        padding:8px 14px;
        border:none;
        background:none;
        text-align:left;
        font-size:13px;
        color:#333;
    }
    .rdi-user-dropdown a:hover,
    .rdi-user-dropdown button:hover {
        background:#f5f5f5;
    }

    /* MOBILE */
    @media (max-width: 991.98px) {
        .rdi-topbar {
            text-align:center;
        }
        .rdi-user-pill {
            display:none; /* biar simple di mobile, pakai icon saja */
        }
    }

    /*tambahan ogani*/

    .rdi-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
    width: 180px;
    z-index: 99999;
}

.rdi-user-dropdown.show {
    display: block !important;
}

.rdi-user-wrapper {
    position: relative;
    cursor: pointer;
}

.rdi-user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.rdi-user-avatar {
    background: #76b852;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/*tambahan buat total whislist*/

.rdi-badge {
    background: #28a745;
    color: white;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}


/*efek header biar kayak iphone*/

/* === REAL iOS GLASS EFFECT === */
.rdi-user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 220px;

    /* Glassmorphism REAL */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    /* Deep shadow iOS */
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.18),
        0 4px 8px rgba(0,0,0,0.08);

    padding: 10px 0;

    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.95); /* spring-like */
    z-index: 999;
}

/* === ACTIVE MODE === */
.rdi-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px) scale(1);
}

/* === ITEM STYLE === */
.rdi-user-dropdown a,
.rdi-user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;
    width: 100%;
    font-size: 14px;
    color: #ff00c8; /* iPhone white text */

    background: transparent;
    border: none;

    transition: background 0.15s ease;
    cursor: pointer;
}

/* Hover soft white */
.rdi-user-dropdown a:hover,
.rdi-user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Icon styling */
.rdi-user-dropdown i {
    font-size: 16px;
    opacity: 0.85;
}

/* === Pill (avatar bar) === */
.rdi-user-pill {
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 30px;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    user-select: none;

    transition: all 0.15s ease;
}

.rdi-user-pill:hover {
    transform: scale(1.03);
}

.rdi-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;

    background: linear-gradient(135deg, #76c66e, #51a84d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 14px;
}

/* ukuran default */
.rdi-logo-img {
    width: 75px;
    transition: all 0.3s ease;
}

/* saat scroll */
.rdi-header.scrolled .rdi-logo-img {
    width: 45px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* header mengecil */
.rdi-header {
    padding: 18px 0;
    transition: all 0.3s ease;
}

.rdi-header.scrolled {
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


/* ===== RDI NAVBAR HIJAU ===== */
.rdi-header {
    background: #7aad7b !important;
}

/* Biar teks menu tetap terlihat jelas */
.rdi-header .header__menu ul li a {
    color: white !important;
}

.rdi-topbar {
    background: #999999 !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.rdi-logo-img img {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

/* User pill tetap clean */
.rdi-user-pill {
    background: white !important;
    color: #333 !important;
}


/* ===== RDI PRODUCT SECTION BACKGROUND ===== */
.product-rdi {
    background: linear-gradient(180deg, #f5faf6 0%, #ffffff 40%);
}

/* ===== GRID LAYOUT ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    justify-items: center;
    margin-top: 32px;
}

@media (max-width: 991.98px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARD STYLE ===== */
.category-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eeeeee;
    padding: 20px 18px;
    width: 100%;
    max-width: 230px;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(76,175,80,0.08), transparent 55%);
    opacity: 0;
    transition: 0.25s ease;
}

/* ICON */
.category-icon-wrap {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 16px;
    background: #f3faf5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: 0.25s ease;
}

/* TEXT */
.category-text {
    flex: 1;
}

.category-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333333;
}

.category-sub {
    font-size: 12px;
    color: #888888;
    margin-bottom: 0;
}

/* ARROW */
.category-arrow {
    flex: 0 0 auto;
    color: #cccccc;
    font-size: 12px;
    transition: 0.25s ease;
}

/* HOVER EFFECT PREMIUM */
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #4CAF50;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .category-name {
    color: #4CAF50;
}

.category-card:hover .category-icon-wrap img {
    transform: scale(1.08) translateY(-2px);
}

.category-card:hover .category-arrow {
    color: #4CAF50;
    transform: translateX(3px);
}

/* BADGE & SUBTITLE TITLE SECTION */
.badge-rdi {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: #e8f6ec;
    color: #2f6b35;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 10px;
}

.title-sub {
    font-size: 14px;
    color: #777777;
    max-width: 460px;
    margin: 6px auto 0;
}


/*banner*/

.rdi-banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 15px;
}

.banner-right {
    display: flex;
    flex-direction: column;
}

.banner-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}



/* TOP BAR */
.rdi-topbar {
    background: #8a8a8a;
    color: #fff;
    padding: 6px 0;
    font-size: 14px;
}
.topbar-left i { margin-right: 6px; }

/* MAIN HEADER */
.rdi-header {
    background: #74a878;
    color: #fff;
}
.rdi-nav {
    padding: 12px 0;
}

/* LOGO */
.rdi-logo img {
    height: 60px;
}

/* MENU LINKS */
.menu-link {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
}
.menu-link:hover,
.menu-link.active {
    background: rgba(255,255,255,0.75);
    color: #2c4a2c;
}

/* SEARCH BAR DESKTOP */
.rdi-searchbar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 6px 14px;
    width: 270px;
}
.rdi-searchbar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}
.rdi-searchbar button {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* USER PILL */
.rdi-user-pill {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 6px 14px;
    border-radius: 25px;
    cursor: pointer;
    gap: 10px;
}
.rdi-user-pill .avatar {
    width: 28px;
    height: 28px;
    background: #4a8b4a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* DROPDOWN */
.rdi-user-dropdown {
    position: absolute;
    background: #fff;
    top: 110px;
    right: 20px;
    padding: 16px;
    border-radius: 12px;
    display: none;
    width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.rdi-user-dropdown a,
.rdi-user-dropdown button {
    display: block;
    color: #333;
    font-size: 14px;
    padding: 8px 0;
}
.rdi-user-dropdown a:hover,
.rdi-user-dropdown button:hover {
    background: #f3f3f3;
}

/* MOBILE MENU */
.rdi-mobile-menu {
    background: #4f7e52;
    padding: 20px;
    display: none;
}
.mobile-link {
    display: block;
    padding: 10px 0;
    color: #fff;
    font-size: 15px;
}

/* MOBILE SEARCH */
.mobile-search {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 6px 10px;
    border-radius: 25px;
    margin-top: 12px;
}
.mobile-search input {
    flex: 1;
    border: none;
    outline: none;
}

/* HAMBURGER BUTTON */
.hamburger {
    font-size: 24px;
    color: #fff;
}


/* QUICK ICONS (DESKTOP) */
.rdi-quick-icons {
    gap: 10px;
}

.rdi-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: all .2s ease;
    font-size: 16px;
}

.rdi-icon-btn .icon {
    line-height: 1;
}

.rdi-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}


.rdi-icon-btn.cart-has-items::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* mobile menu sudah ada .mobile-link / .mobile-search dari sebelumnya */


.rdi-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s ease;
}

.rdi-user-pill .avatar {
    width: 32px;
    height: 32px;
    background: #4b8a4c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
}

/* Animasi navbar */
.rdi-user-pill.show-name .name {
    display: inline !important;
}

.rdi-user-area .rdi-user-pill {
    margin-left: 20px; 
}

.hero-icon-kelapa {
    width: 48px;
    height: auto;
    margin-left: 10px;
    vertical-align: middle;
    animation: floatKelapa 3s ease-in-out infinite;
}

@keyframes floatKelapa {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}


.hero-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-icon-kelapa {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}

.hero-title-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-sub {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
}


/* Hero title center layout */
.hero-title-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;                 /* jarak antar icon ke teks */
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* text wrap */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.hero-sub {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

/* ICON STYLE */
.hero-icon {
    width: 75px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

/* icon kanan sedikit lebih kecil biar balance */
.hero-icon-right {
    width: 70px;
    animation-delay: 0.3s; /* biar goyangnya gak bareng */
}

/* Floating animation */
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* Hero title center layout */
.hero-title-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;           
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* text block */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.hero-sub {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

/* ICON STYLE */
.hero-icon {
    width: 75px;
    height: auto;
    animation: floatAnim 3s ease-in-out infinite;
}

/* kanan sedikit lebih kecil */
.hero-icon-right {
    width: 70px;
    animation-delay: 0.3s;
}

/* Floating animation */
@keyframes floatAnim {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}


.hero-title-text {
    background: linear-gradient(90deg, #2E7D32 0%, #3FA34D 80%);
    
    /* Compatibility */
    background-clip: text;               /* standard */
    -webkit-background-clip: text;       /* chrome / safari */

    color: transparent;                  /* standard for FF */
    -webkit-text-fill-color: transparent; /* chrome / safari */

    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}



.hero-sub {
    font-size: 1rem;
    color: #4CAF50; /* Emerald soft biar enak dibaca */
    margin-top: 8px;
}

.hero-icon-right {
    margin-left: -10px;
}


.hero-icon-left {
    animation-delay: 0.1s;
}

.hero-icon-right {
    animation-delay: 0.4s;
}

.rdi-hero {
    padding-top: 0px;
}

.hero-sub {
    color: #4A7A4F;
    font-size: 1.1rem;
    margin-top: 10px;
}

.hero-title-center {
    gap: 18px; /* turun sedikit */
}
