/* Base Styles */
:root {
    --primary-color: #6b4c3c;
    --secondary-color: #c9a27c;
    --accent-color: #d4af37;
    --light-color: #f3c989;
    --dark-color: #3d2c23;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #333333;
    --font-primary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 span {
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-order {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px;
}

.btn-order:hover {
    background-color: var(--dark-color);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons a {
    margin-left: 20px;
    color: var(--dark-color);
    text-decoration: none;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    width: 50%;
    padding-right: 30px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    width: 45%;
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Roast Types Section */
.roast-types {
    padding: 30px 0;
    background-color: var(--white);
}

.roast-types .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.roast-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.roast-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.roast-option span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
}

/* Products Section */
.products {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.product-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quantity-control button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark-color);
}

.quantity {
    font-weight: 600;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-main {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-main:hover {
    background-color: var(--dark-color);
}

.product-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.product-showcase .product-image {
    width: 30%;
    max-width: 300px;
}

.product-showcase .product-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.coffee-beans-left, .coffee-cup-right {
    width: 15%;
    max-width: 150px;
    opacity: 0.7;
}

.coffee-beans-left img, .coffee-cup-right img {
    width: 100%;
    filter: sepia(20%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.rating {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.price {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-content {
    width: 50%;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    width: 45%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact button {
    display: block;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    text-align: left;
}

.footer-logo span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        width: 100%;
        padding-right: 0;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .product-showcase {
        flex-direction: column;
    }

    .product-showcase .product-image {
        width: 60%;
    }

    .coffee-beans-left, .coffee-cup-right {
        display: none;
    }

    .about .container {
        flex-direction: column;
    }

    .about-content, .about-image {
        width: 100%;
    }

    .about-content {
        margin-bottom: 40px;
    }

    .about-content h2 {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .roast-types .container {
        gap: 30px;
    }

    .product-controls {
        flex-direction: column;
        gap: 15px;
    }

    .add-to-cart-main {
        width: 100%;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .roast-types .container {
        gap: 15px;
        flex-wrap: wrap;
    }

    .product-showcase .product-image {
        width: 80%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
