/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: #8d6e63;
    font-style: italic;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    font-weight: 500;
    color: #5d4037;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #8d6e63;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8d6e63;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon {
    font-size: 1.2rem;
    color: #5d4037;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #8d6e63;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    background: linear-gradient(135deg, #f5f5dc 0%, #fff8f0 100%);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #5d4037;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background-color: #5d4037;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
}

.btn-primary:hover {
    background-color: #6d4c41;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Featured Products */
.featured {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #5d4037;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8d6e63;
    margin: 15px auto 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #5d4037;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover:not(.active) {
    background-color: #f5f5dc;
    border-color: #8d6e63;
}

.filter-btn.active {
    background-color: #5d4037;
    color: white;
    border-color: #5d4037;
}

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

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 215, 0, 0.9);
    color: #5d4037;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5d4037;
    margin: 12px 0;
}

.product-add-btn {
    background-color: #5d4037;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
}

.product-add-btn:hover {
    background-color: #6d4c41;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: #fdf6f0;
}

.about-content {
    flex: 1;
    padding-right: 50px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #5d4037;
}

.about-content p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #5d4037;
    border: 2px solid #5d4037;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #5d4037;
    color: white;
}

.about-image {
    flex: 1;
    text-align: left;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Store Info */
.store-info {
    padding: 50px 0;
    background-color: #fff;
}

.store-info .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #5d4037;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* Instagram Feed */
.instagram {
    padding: 60px 0;
    text-align: center;
}

.instagram h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #5d4037;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.instagram-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.instagram-grid img:hover {
    transform: scale(1.05);
}

.btn-instagram {
    display: inline-block;
    background-color: #833ab4;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-instagram:hover {
    background-color: #9146c5;
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #f5f5dc 100%);
    text-align: center;
}

.newsletter h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #5d4037;
}

.newsletter p {
    margin-bottom: 30px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #5d4037;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background-color: #6d4c41;
    transform: translateY(-2px);
}

.newsletter-small {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
}

/* Footer */
.footer {
    background-color: #5d4037;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #8d6e63;
    margin-top: 8px;
}

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

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.social-icons a {
    color: #ccc;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #5d4037;
    color: white;
}

.cart-modal-header h2 {
    margin: 0;
}

.close-cart {
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ffcccc;
}

.cart-modal-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
}

.cart-item-details p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

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

.cart-item-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-controls button:hover {
    background-color: #f5f5dc;
}

.cart-item-controls input {
    width: 40px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 600;
    color: #5d4037;
    min-width: 60px;
    text-align: center;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5d4037;
}

#checkout-btn {
    background-color: #5d4037;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#checkout-btn:hover {
    background-color: #6d4c41;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #eee;
        padding: 15px 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .header-icons {
        margin-top: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}