:root {
    --primary-color: #2D7D32;
    /* Deep Green */
    --secondary-color: #FFC107;
    /* Bright Yellow */
    --accent-color: #FFD54F;
    --text-color: #333;
    --light-bg: #FFFFFF;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: #fcfcfc;
    color: var(--text-color);
    padding-bottom: 0;
}

/* Header */
header {
    background-color: var(--secondary-color);
    position: relative;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.logo-wrapper {
    background: white;
    padding: 20px 60px;
    border-radius: 0 80px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    margin-left: 0;
}

.logo-wrapper img {
    height: 85px;
}

.header-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px 0px 30px;
    gap: 15px;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.search-bar {
    flex-grow: 1;
    display: flex;
    background: var(--white);
    border-radius: 50px;
    padding: 2px 5px;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px;
}

.search-bar button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Ensure circle on mobile */
    flex-shrink: 0;
}

#send-chat {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .search-bar button {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--primary-color);
    }


    #send-chat {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--primary-color);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}

.login-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #1B5E20;
    transform: scale(1.05);
}

.user-icon {
    color: var(--primary-color);
    font-size: 38px;
    display: flex;
    align-items: center;
}

/* Promo Bar */
.promo-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .promo-bar {
        padding: 8px 0 !important;
        font-size: 16px !important;
    }

    .promo-bar-content {
        font-size: 14px !important;
        display: inline-block;
        white-space: nowrap;
        animation: marquee 30s linear infinite;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.header-nav-row {
    width: 100%;
}

.header-nav-row ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
    flex-wrap: wrap;
}

.header-nav-row a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    animation: fadeInDown 0.3s ease;
}

/* Invisible bridge to prevent hover loss */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-transform: none;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #1B5E20;
}

/* Promo Banner */
.promo-bar {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Hero Banner Section */
.hero-banner-section {
    width: 100%;
    background: #fff;
    overflow: hidden;
}

.hero-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Promo Slider Section */
.promo-slider-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.slider-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}

.slider-track-container {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-item {
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: white;
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-5px);
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
    left: 0;
}

.slider-arrow-right {
    right: 0;
}

/* Main Title Banner */
.main-title-banner {
    width: 100%;
    height: 180px;
    background-image: url('../images/beras.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.title-yellow-overlay {
    background: var(--secondary-color);
    padding: 10px 50px 10px 80px;
    position: relative;
    z-index: 2;
    min-width: 40%;
    transform: skewX(-15deg);
    margin-right: -30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
}

.title-yellow-overlay h2 {
    color: var(--primary-color);
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: skewX(15deg);
    /* Counter-skew to keep text straight */
    font-family: 'Outfit', sans-serif;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .main-title-banner {
        height: 120px;
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .title-yellow-overlay {
        padding: 5px 30px 5px 40px;
        min-width: 60%;
    }

    .title-yellow-overlay h2 {
        font-size: 24px;
    }
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
}

.product-label {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 15px 15px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-top: -20px;
}

.product-price-large {
    font-size: 32px;
    font-weight: 900;
    margin: 15px 0;
}

.product-stock-label {
    color: #888;
    font-size: 13px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.chat-btn-small {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.order-btn-large {
    flex-grow: 1;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 18px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Bottom Bar */
.bottom-nav {
    position: fixed;
    bottom: 0px;
    right: 0;
    background: var(--secondary-color);
    width: auto;
    height: 70px;
    border-radius: 50px 0 0 50px;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 40px 0 30px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s;
}

.nav-link:hover {
    transform: translateY(-3px);
}

.nav-link i {
    font-size: 32px;
}

.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
}

/* Product Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.modal-product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

.modal-product-name {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.modal-product-price {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.modal-product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 50px;
    width: fit-content;
}

.qty-btn {
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    width: 100px;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
}

/* Remove arrows for number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-modal-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-modal-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* Offcanvas Cart */
.offcanvas-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.offcanvas-cart.active {
    right: 0;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(5px);
}

.offcanvas-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-header h2 {
    color: var(--primary-color);
    font-weight: 900;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-item-modern {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.cart-item-modern img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.cart-item-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.cart-item-info p {
    margin: 5px 0 0;
    color: var(--primary-color);
    font-weight: bold;
}

.offcanvas-footer {
    padding: 30px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
}

.btn-checkout-cart {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Checkout Page */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto 120px;
    background: white;
    padding: 40px;
    border-radius: 30px;
}

.checkout-header {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 30px;
}

.checkout-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.checkout-product-info {
    flex: 0 0 280px;
}

.checkout-product-info img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.address-box {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.address-box strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.ganti-alamat {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 14px;
}

.checkout-form {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 12px 50px 12px 25px;
    border: 2px solid #C8E6C9;
    border-radius: 50px;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 800;
    outline: none;
    background: white;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
}

.input-with-icon .check-icon {
    position: absolute;
    right: 15px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-btn {
    background: #e0e0e0;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.payment-btn.active {
    background: var(--primary-color);
}

.upload-btn {
    background: white;
    border: 1px solid #ddd;
    color: #aaa;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    font-size: 16px;
}

.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 20px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    z-index: 1001;
}

.footer-total-box {
    background: var(--secondary-color);
    border: 2px solid #D4A017;
    padding: 10px 50px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
}

.btn-buat-pesanan {
    background: #1B5E20;
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buat-pesanan:hover {
    background: #0D3B10;
    transform: scale(1.05);
}

.total-label {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

/* Empty State */
.empty-products-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 0 0 60px;
}

.empty-products-card {
    background: white;
    padding: 50px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    margin-top: -60px;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f1f8f1;
    color: var(--primary-color);
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.empty-products-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
}

.empty-products-card p {
    color: #777;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-back-home {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
}

.btn-back-home:hover {
    background: #1B5E20;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    margin-left: 15px;
    align-items: center;
}

/* Modern Offcanvas Menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 260px;
    height: 100vh;
    background: #f8fafc;
    z-index: 2500;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-header-modern {
    background: var(--primary-color);
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo-wrapper {
    background: white;
    padding: 5px 15px;
    border-radius: 12px;
}

.menu-logo-wrapper img {
    height: 60px;
    width: auto;
}

.close-menu {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0px 25px;
    background: #f8fafc;
}

.menu-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin: 20px 0 15px;
}

.mobile-nav-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s;
}

.menu-item-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.menu-item-link:hover,
.menu-item-link.active {
    background: var(--primary-color);
    color: white;
}

.menu-item-link:hover i,
.menu-item-link.active i {
    color: var(--secondary-color);
}

.menu-item-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.toggle-sub-modern {
    padding: 10px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-sub-menu-modern {
    list-style: none;
    padding: 5px 0 10px 45px;
    margin: 0;
    display: none;
}

.mobile-sub-menu-modern a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s;
}

.mobile-sub-menu-modern a:hover {
    color: var(--primary-color);
}

.offcanvas-footer-modern {
    padding: 10px 25px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
}

.user-info-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 14px;
}

.user-status {
    font-size: 11px;
    color: #64748b;
}

.footer-btns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-footer-primary,
.btn-footer-danger,
.btn-footer-primary-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-footer-primary {
    background: var(--primary-color);
    color: white;
}

.btn-footer-primary-full {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-footer-danger {
    background: #fff1f2;
    color: #e11d48;
}

.btn-footer-danger:hover {
    background: #e11d48;
    color: white;
}

/* Responsive Styles */

/* Medium Desktops & Laptops (1400px and below) */
@media (max-width: 1400px) {
    .logo-wrapper {
        min-width: 220px;
        padding: 20px 35px;
    }
    
    .logo-wrapper img {
        height: 70px;
    }

    .header-content-wrapper {
        padding: 15px 25px 0px 20px;
        gap: 10px;
    }

    .header-top-row {
        gap: 15px;
    }

    .header-actions {
        gap: 10px;
        padding-right: 10px;
    }

    .login-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .user-icon {
        font-size: 32px;
    }

    .header-nav-row ul {
        gap: 15px;
    }

    .header-nav-row a {
        font-size: 14px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .logo-wrapper {
        min-width: 200px;
        padding: 15px 30px;
    }

    .logo-wrapper img {
        height: 60px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-text {
        margin-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: -20px;
    }

    .hero-images {
        margin-top: 40px;
        width: 100%;
    }

    .hero-character {
        margin-left: 0;
        height: 350px;
    }

    .checkout-flex {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 0px 15px;
        background: var(--secondary-color);
        gap: 0px;
    }
	
	.empty-products-card {
		margin-top:0px!important;
	}
    .logo-wrapper {
        background: white;
        padding: 5px 20px;
        border-radius: 0 20px 0 0;
        position: relative;
        left: -20px;
        width: auto;
        min-width: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .logo-wrapper img {
        height: 65px !important;
    }

    .header-content-wrapper {
        padding: 0;
        flex: 1;
    }

    .header-top-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .search-bar {
        flex: 1;
        margin: 0;
    }

    .search-bar input {
        padding: 8px 15px;
        font-size: 14px;
    }

    .search-bar button {
        width: 35px;
        height: 35px;
    }

    .menu-toggle {
        display: flex;
        text-decoration: none;
        margin-left: 0;
        font-size: 24px;
    }

    .header-nav-row {
        display: none;
    }

    .header-actions .login-btn,
    .header-actions .user-icon {
        display: none;
    }

    .header-actions {
        width: auto;
        padding: 0;
    }

    .header-nav-row ul {
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .header-nav-row a {
        white-space: nowrap;
        font-size: 14px;
    }

    .promo-slider-section {
        padding: 40px 10px;
    }

    .slider-container {
        padding: 0 35px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
        display: none;
    }


    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 20px 15px;
    }

    .product-card {
        padding: 15px;
        border-radius: 20px;
    }

    .product-img-wrapper {
        height: 140px;
    }

    .product-price-large {
        font-size: 20px;
    }

    .order-btn-large {
        font-size: 14px;
        padding: 10px;
    }

    .bottom-nav {
        height: 60px;
        padding: 0 20px;
        gap: 20px;
    }

    .nav-link i {
        font-size: 24px;
    }

    .offcanvas-cart {
        width: 100%;
        right: -100%;
    }

    .checkout-container {
        padding: 20px;
        margin: 20px 15px 100px;
    }

    .checkout-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .footer-total-box {
        width: 100%;
        text-align: center;
        font-size: 20px;
        padding: 8px;
    }

    .btn-buat-pesanan {
        width: 100%;
        font-size: 18px;
        padding: 12px;
    }

    .total-label {
        font-size: 18px;
    }

    .leaf-top {
        display: none;
    }

    /* Mobile Modal Optimizations */
    .modal-content {
        padding: 25px;
        border-radius: 20px;
    }

    .modal-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .modal-product-img {
        height: 180px;
        margin-bottom: 15px;
    }

    .modal-product-name {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .modal-product-price {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .qty-selector {
        gap: 10px;
        margin-bottom: 20px;
        padding: 5px 12px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .qty-input {
        font-size: 16px;
        width: 60px;
    }

    .btn-modal-primary,
    .btn-modal-secondary {
        padding: 12px;
        font-size: 14px;
        border-radius: 40px;
    }

    .modal-actions {
        gap: 10px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .promo-slider-section {
        padding: 10px 5px;
    }

    .slider-container {
        padding: 20px 0px;
    }

    .slider-track {
        gap: 10px;
    }

    /* Account Page Mobile Fixes */
    .checkout-flex {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .checkout-flex>div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .address-box {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .checkout-header {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }

    /* Order Card Mobile Optimization */
    .order-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .order-actions-wrapper {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .order-status-info {
        width: 100% !important;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-buttons-group {
        width: 100% !important;
        flex-direction: column !important;
    }

    .order-buttons-group>* {
        width: 100% !important;
        text-align: center;
    }

    .order-actions {
        width: 100% !important;
        text-align: left !important;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    /* Courier Tools Mobile */
    .courier-tools-search {
        padding: 20px !important;
    }

    .courier-tools-search form {
        flex-direction: column !important;
    }

    .courier-tools-search button {
        width: 100% !important;
    }
}

@media (max-width: 768px) {

    .slider-track-container {
        overflow: hidden;
        width: 100%;
    }

    .slider-track {
        display: flex;
        gap: 10px;
    }

    .slider-item {
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    .slider-item img {
        width: 100%;
        display: block;
    }

    .slider-arrow {
        display: none !important;
    }
}

/* ==========================================
   SITE FOOTER (SALASA NUSANTARA)
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, #1B5E20 0%, #2D7D32 100%);
    color: #E8F5E9;
    padding: 60px 20px 40px 20px;
    font-size: 15px;
    border-top: 5px solid var(--secondary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Brand Section */
.footer-section.brand-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-wrapper {
    background: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-logo-wrapper img {
    height: 55px;
    display: block;
}

.footer-tagline {
    line-height: 1.6;
    color: #C8E6C9;
}

/* Contact Section */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover .contact-icon {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    color: #FFFFFF;
    font-size: 14px;
}

.contact-text span, .contact-text a {
    color: #E8F5E9;
    line-height: 1.5;
}

.wa-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wa-link:hover {
    color: #FFF;
    text-decoration: underline;
}

/* Certification Section */
.cert-info {
    display: flex;
    flex-direction: column;
}

.cert-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #C8E6C9;
}

.cert-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-logo-item {
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-width: 80px;
    transition: transform 0.3s ease;
}

.cert-logo-item:hover {
    transform: translateY(-5px);
}

.cert-logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 120px;
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 25px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #C8E6C9;
    margin: 0;
}

.footer-bottom strong {
    color: #FFFFFF;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #E8F5E9;
    background: rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .site-footer {
        padding: 50px 20px 110px 20px; /* Pad bottom for mobile float nav */
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}