: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: 90px;
}

/* 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;
}

.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;
}

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

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

.header-nav-row a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 16px;
    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 Section */
.hero-section {
    background: #ffffff;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png'), linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    background-size: auto, cover;
}

.hero-bg-curve {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-text {
    flex: 0 0 auto;
    z-index: 10;
    position: relative;
    margin-right: -200px;
}

.special-price-badge {
    display: inline-block;
    position: relative;
}

.special-price-text {
    line-height: 0.8;
    letter-spacing: -2px;
    z-index: 10;
    position: relative;
}

.text-harga {
    font-size: 80px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 4px 4px 0px var(--secondary-color);
}

.text-spesial {
    font-size: 160px;
    font-weight: 900;
    color: var(--secondary-color);
    -webkit-text-stroke: 12px var(--primary-color);
    paint-order: stroke fill;
    filter: drop-shadow(10px 10px 0px rgba(0, 0, 0, 0.1));
    margin-top: -30px;
    display: inline-block;
}

.hero-leaf {
    position: absolute;
    color: var(--secondary-color);
    font-size: 30px;
    display: flex;
    gap: 10px;
    z-index: 1;
}

.leaf-top {
    top: -20px;
    right: 50px;
    transform: rotate(30deg);
}

.leaf-bottom {
    bottom: -20px;
    left: -20px;
    transform: rotate(-30deg);
}

.hero-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    font-size: 50px;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.2);
    color: var(--primary-color);
}

.hero-arrow-left {
    left: -120px;
}

.hero-arrow-right {
    right: -120px;
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hero-character {
    height: 450px;
    filter: drop-shadow(15px 15px 25px rgba(0, 0, 0, 0.15));
    z-index: 5;
    position: relative;
    margin-left: -180px;
}

.hero-product-slider {
    position: relative;
    width: 320px;
    height: 400px;
    z-index: 6;
}

.hero-product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    text-align: center;
}

.hero-product-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-product-slide:not(.active) {
    transform: scale(0.9);
}

.hero-product-info {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 18px;
    margin-top: -30px;
    position: relative;
    display: inline-block;
    z-index: 10;
}

.price-tag-container {
    background: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.price-tag-main {
    font-weight: 900;
    font-size: 38px;
    color: #333;
    line-height: 1;
}

.price-tag-unit {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    align-self: flex-end;
}

/* 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;
    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: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
}

.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: 30px;
}

.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;
    transform: scale(1.05);
}