/* ========================================
   Màu sắc chủ đạo
   ======================================== */
:root {
    --coffee-brown: #6F4E37;
    --coffee-dark: #4B3621;
    --cream: #F5E6D3;
    --forest-green: #3A5A40;
    --light-yellow: #F4E4BC;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-light: #5A4A42;
    --accent-gold: #C8A165;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-block;
    background: var(--coffee-brown);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: var(--forest-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2d4732;
    transform: translateY(-2px);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--coffee-dark), var(--coffee-brown));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--cream);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: rgba(245, 230, 211, 0.2);
    color: var(--light-yellow);
}

.cart-icon {
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(245, 230, 211, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('assets/images/banner-doi-ca-phe.png') center/cover no-repeat;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--cream);
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--coffee-brown);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 80px 0;
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Products Section
   ======================================== */
.products {
    padding: 80px 0;
    background: var(--white);
}

.product-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px 20px;
    width: 300px;
    border: 2px solid var(--cream);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--coffee-brown);
}

.filter-box select {
    padding: 12px 20px;
    border: 2px solid var(--cream);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    color: var(--coffee-brown);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-brown);
}

.product-weight {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--coffee-brown);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: var(--coffee-dark);
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: 80px 0;
    background: var(--forest-green);
    color: var(--white);
}

.process .section-title {
    color: var(--white);
}

.process .section-title::after {
    background: var(--light-yellow);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-yellow);
}

.process-step p {
    font-size: 1rem;
    line-height: 1.6;
}

.process-step img {
    margin-top: 15px;
    border-radius: 8px;
    max-height: 150px;
    object-fit: cover;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    padding: 80px 0;
    background: var(--cream);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.review-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.reviewer {
    font-weight: 600;
    color: var(--coffee-brown);
}

/* ========================================
   Policies Section
   ======================================== */
.policies {
    padding: 60px 0;
    background: var(--white);
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.policy-item {
    text-align: center;
    padding: 30px;
    background: var(--cream);
    border-radius: 12px;
}

.policy-item h3 {
    font-size: 1.3rem;
    color: var(--coffee-brown);
    margin-bottom: 15px;
}

.policy-item p {
    color: var(--text-light);
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-dark));
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--cream);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 12px 20px;
    width: 300px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--coffee-dark);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--light-yellow);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--cream);
}

.footer-section a:hover {
    color: var(--light-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(244, 228, 188, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(244, 228, 188, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 230, 211, 0.2);
}

/* ========================================
   Cart Modal
   ======================================== */
.cart-modal,
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-content,
.checkout-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header,
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-cart,
.close-checkout {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    min-height: 200px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--cream);
}

.cart-item-info h4 {
    color: var(--coffee-brown);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--coffee-brown);
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
}

.cart-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--coffee-brown);
}

.cart-total {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   Checkout Form
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.checkout-summary {
    background: var(--cream);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.checkout-summary h4 {
    color: var(--coffee-brown);
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

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

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--coffee-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .product-controls {
        flex-direction: column;
        align-items: center;
    }

    .search-box input,
    .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }

    .cart-actions,
    .checkout-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cart-content,
    .checkout-content {
        padding: 20px;
    }
}
