/* css/style.css */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #e94560;
    --background-color: #f4f4f8;
    --text-color: #333333;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.navbar .nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--secondary-color);
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Product Grid */
.container {
    padding: 50px 5%;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 250px;
    background-color: #eaeaea;
    border-radius: var(--radius);
    margin-bottom: 15px;
    object-fit: cover;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.btn-add-cart {
    margin-top: auto;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-add-cart:hover {
    background-color: var(--secondary-color);
}

/* Slide-out Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

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

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

.cart-header h2 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-cart:hover {
    color: var(--secondary-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Overlay for Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .hero h1 {
        font-size: 32px;
    }
}

/* Footer Baru */
.main-footer { background: #111827; color: #fff; padding: 80px 0 0; margin-top: 100px; font-family: 'Inter', sans-serif; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 { font-size: 18px; margin-bottom: 25px; color: #fff; font-weight: 700; position: relative; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--secondary-color); }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.footer-about { color: #9ca3af; line-height: 1.6; font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #9ca3af; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }
.footer-col p { color: #9ca3af; font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
.footer-bottom { margin-top: 60px; padding: 30px 5%; border-top: 1px solid #1f2937; text-align: center; color: #6b7280; font-size: 13px; }

/* Floating WA */
.wa-float { position: fixed; z-index: 9999; bottom: 30px; background: #25D366; color: white; border-radius: 50px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; text-decoration: none;}
.wa-float:hover { transform: scale(1.1); }
.wa-small { width: 45px; height: 45px; font-size: 24px; }
.wa-medium { width: 60px; height: 60px; font-size: 34px; }
.wa-large { width: 75px; height: 75px; font-size: 44px; }
.wa-left { left: 30px; }
.wa-right { right: 30px; }

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
}

/* Warna Hijau Tosca Dark untuk Tombol Checkout */
.btn-checkout-drawer {
    background-color: #0f766e !important;
    color: #ffffff !important;
    transition: 0.3s;
}

.btn-checkout-drawer:hover {
    background-color: #0d9488 !important;
    transform: translateY(-2px);
}

/* Memastikan overlay menutup saat diklik */
#cartOverlay.active {
    display: block;
    cursor: pointer;
}