/*
Theme Name: EcoWell
Theme URI: https://ecowell.com/
Author: ITI Mitra
Author URI: https://itimitra.com/
Description: A WooCommerce compatible theme based on EcoWell design with responsive layout and mobile app-like experience on smaller screens.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecowell
Tags: e-commerce, woocommerce, responsive-layout, custom-colors, custom-logo, custom-menu, featured-images, flexible-header, theme-options
WooCommerce Compatible: Yes
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 40px;
    margin-right: 10px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

/* Navigation */
.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #4CAF50;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

/* EcoWell Colors */
.eco-primary {
    color: #4CAF50;
}

.eco-secondary {
    color: #FFC107;
}

.eco-text-dark {
    color: #333;
}

.eco-text-light {
    color: #fff;
}

.eco-bg-primary {
    background-color: #4CAF50;
}

.eco-bg-secondary {
    background-color: #FFC107;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

.btn-primary:hover {
    background-color: #388E3C;
}

.btn-secondary {
    background-color: #FFC107;
    color: #333;
}

.btn-secondary:hover {
    background-color: #FFA000;
}

/* Product Cards */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FFC107;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #FFC107;
    color: #333;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-info {
    font-size: 14px;
    color: #666;
}

.add-to-cart {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #388E3C;
}

/* Cart Page */
.cart-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 80px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 0 5px;
}

.cart-item-remove {
    color: #F44336;
    font-size: 14px;
    cursor: pointer;
    margin-left: 20px;
}

/* Order Summary */
.order-summary {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-header {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.free-delivery-msg {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 10px;
}

/* Coupon */
.coupon-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.coupon-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.coupon-form {
    display: flex;
    margin-bottom: 15px;
}

.coupon-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.coupon-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.available-coupons {
    margin-top: 15px;
}

.coupon-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.coupon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-item {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.coupon-code {
    font-weight: 700;
}

.coupon-desc {
    font-size: 12px;
    color: #666;
}

/* Checkout Button */
.checkout-btn {
    display: block;
    width: 100%;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #388E3C;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.secure-icon {
    margin-right: 5px;
}

/* Hero Section */
.hero-section {
    background-color: #4CAF50;
    color: #fff;
    padding: 40px 0;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-features {
    margin-bottom: 20px;
}

.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    color: #FFC107;
    margin-right: 10px;
}

.hero-cta {
    margin-top: 20px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background-size: cover;
    background-position: center;
}

/* Why Choose Section */
.why-choose-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #4CAF50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
}

.feature-icon-large {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
}

/* Traditional Process Section */
.process-section {
    padding: 60px 0;
    background-color: #fff;
}

.process-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-content {
    flex: 1;
    padding-right: 40px;
}

.process-title {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 15px;
}

.process-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.process-image {
    flex: 1;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-link a:hover {
    color: #4CAF50;
}

.footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-icon {
    margin-right: 10px;
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.payment-icon {
    height: 24px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 0;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-image {
        display: none;
    }
    
    .process-container {
        flex-direction: column;
    }
    
    .process-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    body {
        padding-bottom: 60px; /* Space for mobile navigation */
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
    }
    
    .cart-item-remove {
        margin-left: 0;
        margin-top: 10px;
    }
}