/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --danger: #e74c3c;
    --warning: #f39c12;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 8px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-top {
    background-color: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact i {
    margin-right: 5px;
}

.header-contact span {
    margin-right: 20px;
}

.header-auth a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.header-auth a:hover {
    text-decoration: underline;
}

.main-header {
    padding: 15px 0;
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-info {
    display: flex;
    align-items: center;
    background-color: var(--light);
    padding: 8px 15px;
    border-radius: var(--radius);
}

.delivery-info i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

.delivery-text h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.delivery-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Navigation */
nav {
    background-color: var(--dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-links .active {
    background-color: var(--primary);
}

.dropdown {
    position: absolute;
    background-color: white;
    box-shadow: var(--shadow);
    min-width: 200px;
    display: none;
    z-index: 100;
}

.dropdown a {
    color: var(--dark);
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background-color: var(--light);
}

.nav-links li:hover .dropdown {
    display: block;
}

.promo-banner {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Utility Classes */
.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0;
    }
    
    .nav-links {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        margin-bottom: 10px;
    }
    
    .delivery-info {
        display: none;
    }
}