/* 
 * DFIT Eco Theme Main Stylesheet
 * Part 1: Base, Layout & Header
 */

:root {
    --eco-primary: #1b4d31;
    --eco-primary-dark: #143a25;
    --eco-secondary: #c04a2d;
    --eco-accent: #e74c3c;
    --eco-text: #666666;
    --eco-heading: #1b4d31;
    --eco-white: #ffffff;
    --eco-light: #f4f4f4;
    --eco-border: #eeeeee;
    --eco-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --eco-container: 1300px;
    --eco-transition: all 0.3s ease;
    --eco-font-heading: 'Lora', serif;
    --eco-font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--eco-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--eco-text);
    background-color: var(--eco-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--eco-font-heading);
    color: var(--eco-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--eco-transition);
}

ul {
    list-style: none;
}

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

.eco-container {
    max-width: var(--eco-container);
    margin: 0 auto;
    padding: 0 15px;
}

.eco-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--eco-transition);
    text-align: center;
}

.eco-btn-primary {
    background-color: var(--eco-primary);
    color: var(--eco-white);
}

.eco-btn-primary:hover {
    background-color: var(--eco-primary-dark);
}

/* ===== TOP BAR ===== */
.eco-topbar {
    background-color: var(--eco-primary);
    color: var(--eco-white);
    padding: 10px 0;
    font-size: 14px;
}

.eco-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eco-topbar-left {
    display: flex;
    gap: 20px;
}

/* ===== HEADER ===== */
.eco-header {
    background-color: var(--eco-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--eco-border);
    position: relative;
    z-index: 100;
}

.eco-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.eco-logo img {
    max-height: 50px;
}

.eco-header-search {
    flex: 1;
    max-width: 600px;
}

.eco-search-form {
    display: flex;
    border: 2px solid var(--eco-primary);
    border-radius: 50px;
    overflow: hidden;
}

.eco-search-input-wrap {
    flex: 1;
    display: flex;
}

.eco-search-form input {
    width: 100%;
    padding: 10px 20px;
    border: none;
    outline: none;
}

.eco-search-btn {
    background-color: var(--eco-primary);
    color: var(--eco-white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
}

.eco-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.eco-action-btn {
    position: relative;
    font-size: 24px;
    color: var(--eco-heading);
}

.eco-action-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--eco-primary);
    color: var(--eco-white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAVIGATION ===== */
.eco-navbar {
    background-color: var(--eco-white);
    border-bottom: 1px solid var(--eco-border);
}

.eco-navbar-inner {
    display: flex;
    align-items: center;
}

.eco-departments-wrap {
    position: relative;
    width: 270px;
}

.eco-departments-btn {
    width: 100%;
    background-color: var(--eco-secondary);
    color: var(--eco-white);
    border: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.eco-departments-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--eco-white);
    box-shadow: var(--eco-shadow);
    border: 1px solid var(--eco-border);
    display: none;
    z-index: 99;
}

.eco-departments-menu.active {
    display: block;
}

.eco-dept-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--eco-border);
}

.eco-dept-item:hover {
    background-color: var(--eco-light);
    color: var(--eco-primary);
}

.eco-main-nav {
    flex: 1;
    padding: 0 30px;
}

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

.eco-main-nav ul li a {
    font-weight: 600;
    color: var(--eco-heading);
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px 0;
    display: block;
}

.eco-main-nav ul li a:hover {
    color: var(--eco-primary);
}

/* Part 2: Hero, Products & Promo */

.eco-hero-slider {
    background-color: #f3f6f1;
    overflow: hidden;
    position: relative;
}

.eco-slider-wrapper {
    position: relative;
    height: 500px;
}

.eco-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.eco-slide-active {
    opacity: 1;
}

.eco-slide-content {
    max-width: 500px;
}

.eco-slide-sub {
    color: var(--eco-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.eco-slide-content h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--eco-heading);
}

/* ===== PRODUCT CARDS ===== */
.eco-section {
    padding: 80px 0;
}

.eco-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.eco-section-title {
    font-size: 32px;
    color: var(--eco-heading);
}

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

.eco-product-card {
    background: var(--eco-white);
    border: 1px solid var(--eco-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: var(--eco-transition);
}

.eco-product-card:hover {
    box-shadow: var(--eco-shadow);
    border-color: var(--eco-primary);
}

.eco-product-img-wrap {
    margin-bottom: 15px;
}

.eco-product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.eco-product-price {
    color: var(--eco-primary);
    font-weight: 700;
    font-size: 18px;
}

.eco-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--eco-secondary);
    color: var(--eco-white);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== PROMO BANNER ===== */
.eco-promo-banner {
    background-color: #ebf3e6;
    padding: 60px 0;
    border-radius: 20px;
    margin: 40px 0;
}

.eco-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eco-promo-text h2 {
    font-size: 42px;
    margin: 15px 0;
}

.eco-highlight {
    color: var(--eco-primary);
}


/* Part 3: Footer & Mobile */

.eco-footer {
    background-color: #222222;
    color: #999999;
    padding: 80px 0 0;
}

.eco-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.eco-footer-col h3 {
    color: var(--eco-white);
    margin-bottom: 25px;
    font-size: 18px;
}

.eco-footer-col ul li {
    margin-bottom: 12px;
}

.eco-footer-col ul li a:hover {
    color: var(--eco-primary);
    padding-left: 5px;
}

.eco-footer-bottom {
    border-top: 1px solid #333333;
    padding: 30px 0;
    text-align: center;
}

/* ===== MOBILE MENU ===== */
.eco-mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--eco-white);
    z-index: 1000;
    transition: var(--eco-transition);
    padding: 30px;
}

.eco-mobile-drawer.active {
    left: 0;
}

.eco-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.eco-overlay.active {
    display: block;
}

@media (max-width: 991px) {
    .eco-header-search, .eco-navbar {
        display: none;
    }
    
    .eco-header-inner {
        gap: 15px;
    }
}


/* Part 4: Features, Categories, Tabs & Blog */

/* Features Bar */
.eco-features-bar {
    padding: 40px 0;
    background: var(--eco-white);
    border-bottom: 1px solid var(--eco-border);
}

.eco-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eco-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eco-feature-icon {
    font-size: 30px;
    color: var(--eco-primary);
}

.eco-feature-content h4 {
    font-size: 16px;
    color: var(--eco-heading);
    margin-bottom: 3px;
}

.eco-feature-content p {
    font-size: 13px;
    margin: 0;
}

/* Categories Grid */
.eco-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.eco-cat-card {
    background: var(--eco-light);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: var(--eco-transition);
}

.eco-cat-card:hover {
    background: var(--eco-white);
    box-shadow: var(--eco-shadow);
    transform: translateY(-5px);
}

.eco-cat-img {
    font-size: 40px;
    margin-bottom: 15px;
}

.eco-cat-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.eco-cat-count {
    font-size: 12px;
    color: #999;
}

/* Tabs */
.eco-products-tabs {
    display: flex;
    gap: 20px;
}

.eco-tab-btn {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 0;
    cursor: pointer;
    color: #999;
    border-bottom: 3px solid transparent;
}

.eco-tab-btn.eco-tab-active {
    color: var(--eco-primary);
    border-bottom-color: var(--eco-primary);
}

.eco-tab-pane {
    display: none;
}

.eco-tab-pane.eco-tab-pane-active {
    display: block;
}

/* Blog */
.eco-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eco-blog-card {
    background: var(--eco-white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--eco-border);
}

.eco-blog-img-placeholder {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.eco-blog-content {
    padding: 25px;
}

.eco-blog-title {
    font-size: 20px;
    margin: 10px 0;
}


/* Product Card Refinement */
.eco-product-img-wrap {
    position: relative;
    overflow: hidden;
}

.eco-product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    transition: var(--eco-transition);
}

.eco-product-card:hover .eco-product-actions {
    bottom: 0;
}

.eco-action-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--eco-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.eco-action-icon:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}

.eco-product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.eco-add-to-cart-btn {
    background: var(--eco-light);
    color: var(--eco-heading);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.eco-add-to-cart-btn:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}


/* ===== REFINED HOME PAGE STYLES (MATCHING IMAGE) ===== */

/* Typography & Titles */
.eco-section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--eco-heading);
    letter-spacing: 1px;
}

.text-center { text-align: center; }

/* Hero Slider V2 */
.eco-slide-content-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 600px;
}

.eco-slide-text { flex: 1; }
.eco-slide-img { flex: 1; position: relative; text-align: right; }

.eco-slide-title {
    font-size: 60px;
    line-height: 1;
    font-weight: 900;
    margin: 20px 0;
    color: var(--eco-heading);
}

.eco-badge-red {
    position: absolute;
    top: 50%;
    right: 50px;
    background: #e74c3c;
    color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transform: rotate(-15deg);
}

/* Shop Markets */
.eco-market-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.eco-market-item { text-align: center; }
.eco-market-circle {
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--eco-transition);
}
.eco-market-circle:hover { background: #e8f5e9; transform: scale(1.05); }

/* Product Card V2 */
.eco-product-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.eco-product-card-v2 {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    position: relative;
    transition: var(--eco-transition);
}

.eco-p-img { position: relative; margin-bottom: 15px; text-align: center; }
.eco-badge-new {
    position: absolute;
    top: 0;
    left: 0;
    background: #78a206;
    color: #fff;
    padding: 2px 10px;
    font-size: 10px;
    text-transform: uppercase;
}

.eco-p-info h3 { font-size: 15px; margin-bottom: 10px; }
.eco-p-price { color: #e74c3c; font-weight: 800; font-size: 18px; }
.eco-add-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #78a206;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
}

/* Featured List */
.eco-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eco-featured-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border: 1px solid #f9f9f9;
}

.eco-f-img img { width: 80px; height: 80px; object-fit: cover; }
.eco-f-stars { color: #f1c40f; font-size: 12px; margin: 5px 0; }
.eco-f-price { font-weight: 800; color: #e74c3c; }

/* Deal of Day */
.eco-deal-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.eco-deal-card { border: 1px solid #eee; padding: 15px; }
.eco-stock-bar {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    margin: 15px 0 5px;
    overflow: hidden;
}

.eco-stock-progress {
    height: 100%;
    background: #78a206;
}

.eco-stock-text { font-size: 11px; color: #999; }

/* Full Promo */
.eco-full-promo {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.eco-full-promo-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
}

/* Quotes & Brands */
.eco-quotes { padding: 80px 0; }
.eco-quote-avatar img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 20px; }
.eco-quote-title { font-weight: 900; margin-bottom: 20px; }
.eco-quote-text { max-width: 800px; margin: 0 auto 30px; font-style: italic; color: #666; }

.eco-brand-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    opacity: 0.6;
}

/* Recent Blog */
.eco-blog-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eco-blog-card-v2 { border: 1px solid #eee; }
.eco-b-img { position: relative; }
.eco-b-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #78a206;
    color: #fff;
    padding: 5px 10px;
    text-align: center;
}
.eco-b-info { padding: 15px; }
.eco-b-meta { font-size: 12px; color: #999; margin-bottom: 10px; }

/* Subscribe */
.eco-subscribe {
    background: #f1f8e9;
    padding: 80px 0;
}

.eco-sub-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
}

.eco-sub-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px 0 0 50px;
}

.eco-sub-form button {
    background: #78a206;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 800;
}


/* Additional Spacing and Polish */
.eco-section { padding: 80px 0; }
.eco-container { max-width: 1300px; }

/* Market Item Hover Effect */
.eco-market-item h4 { font-weight: 700; color: #333; margin-top: 10px; }
.eco-market-item:hover h4 { color: var(--eco-primary); }

/* Banner Styles */
.eco-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.eco-banner-item { height: 250px; background-size: cover; background-position: center; border-radius: 10px; padding: 40px; display: flex; align-items: center; }
.eco-banner-content h3 { font-size: 30px; line-height: 1.2; margin: 10px 0; font-weight: 800; }
.eco-banner-btn { display: inline-block; padding: 10px 25px; background: #e74c3c; color: #fff; border-radius: 5px; font-weight: 700; margin-top: 15px; }

/* Featured List Grid */
.eco-featured-grid { grid-template-columns: repeat(4, 1fr); }
.eco-featured-item { border: 1px solid #eee; transition: all 0.3s; }
.eco-featured-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--eco-primary); }

/* Badge Colors */
.eco-badge-sale { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: #fff; padding: 2px 8px; font-size: 11px; font-weight: 700; border-radius: 3px; }

/* Newsletter Polish */
.eco-subscribe h2 { font-weight: 900; line-height: 1.2; }


/* ===== HEADER REFINEMENTS ===== */
.eco-header {
    border-bottom: 1px solid #f0f0f0;
}

.eco-search-form {
    border: 2px solid var(--eco-primary);
    background: #fff;
}

.eco-search-btn {
    background: var(--eco-primary);
    color: #fff;
    font-size: 20px;
}

.eco-action-item {
    font-size: 22px;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eco-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--eco-secondary);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.eco-cart-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-left: 5px;
}

/* Navbar */
.eco-navbar {
    border-bottom: 1px solid #eee;
}

.eco-main-nav ul li a {
    font-family: var(--eco-font-body);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* All Departments Button */
.eco-departments-btn {
    background-color: var(--eco-secondary);
    border-radius: 5px 5px 0 0;
}

.eco-dept-bars span {
    background-color: #fff;
}

/* Footer Refinements */
.eco-footer-widget h3 {
    font-family: var(--eco-font-heading);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.eco-footer-widget h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--eco-primary);
}

.eco-footer-links li a {
    color: #666;
    font-size: 14px;
}

.eco-footer-links li a:hover {
    color: var(--eco-primary);
    padding-left: 5px;
}


/* ===== SCREENSHOT ACCURACY POLISH ===== */

/* Header */
.eco-topbar { background-color: #1b4d31; }
.eco-search-form { border-radius: 5px; border: 1px solid #ddd; }
.eco-search-btn { border-radius: 0 5px 5px 0; background: #78a206; }
.eco-departments-btn { background-color: #c04a2d; border-radius: 0; }
.eco-main-nav ul li a { color: #333; font-size: 14px; text-transform: uppercase; font-weight: 700; }

/* Hero Slider */
.eco-hero-slider { background-color: #f0f8e8; }
.eco-slide-title { font-family: "Lora", serif; color: #1b4d31; font-size: 70px; line-height: 1.1; }
.eco-badge-red { background: #c04a2d; top: 30%; right: 10%; width: 120px; height: 120px; box-shadow: 0 10px 20px rgba(192, 74, 45, 0.3); }

/* Market Circles */
.eco-market-circle { background-color: #fff; border: 1px solid #f0f0f0; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.eco-market-item h4 { font-family: "Lora", serif; font-size: 18px; color: #1b4d31; }

/* Product Cards */
.eco-product-card-v2 { border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.02); border-radius: 10px; }
.eco-p-info h3 { font-family: "Lora", serif; font-size: 17px; }
.eco-add-cart-btn { background: #1b4d31; border-radius: 50%; }

/* Featured List */
.eco-featured-item { border-radius: 10px; border: 1px solid #f5f5f5; }
.eco-f-info h4 { font-family: "Lora", serif; font-size: 16px; }

/* Deal of Day */
.eco-deal-card { border-radius: 10px; border: 1px solid #eee; }
.eco-stock-progress { background: #c04a2d; }

/* Blog */
.eco-blog-card-v2 { border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.02); border-radius: 15px; overflow: hidden; }
.eco-b-date { background: #c04a2d; border-radius: 5px; }

/* Subscribe */
.eco-subscribe { background-color: #f9fbf7; }
.eco-sub-form input { border: 1px solid #eee; }
.eco-sub-form button { background: #c04a2d; }

/* Footer */
.eco-footer { background-color: #fff; border-top: 1px solid #f0f0f0; }
.eco-footer-widget h3 { color: #1b4d31; }


/* ===== SHOP PAGE STYLES ===== */
.eco-widget {
    margin-bottom: 40px;
}

.eco-widget-title {
    font-family: "Lora", serif;
    font-size: 20px;
    font-weight: 800;
    color: #1b4d31;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.eco-cat-list {
    list-style: none;
    padding: 0;
}

.eco-cat-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}

.eco-cat-list li a {
    display: flex;
    justify-content: space-between;
    color: #666;
    transition: var(--eco-transition);
}

.eco-cat-list li a span {
    color: #999;
}

.eco-cat-list li a:hover {
    color: var(--eco-primary);
    padding-left: 5px;
}

/* Product Card in Loop */
.eco-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none;
    padding: 0;
}

.eco-shop-content li.product {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    text-align: left;
    width: 100% !important;
    margin: 0 !important;
}

.eco-shop-content li.product .woocommerce-loop-product__title {
    font-family: "Lora", serif;
    font-size: 16px;
    color: #1b4d31;
    margin: 15px 0 10px;
}

.eco-shop-content li.product .price {
    font-size: 18px;
    font-weight: 800;
    color: #c04a2d;
    display: block;
    margin-bottom: 15px;
}

.eco-shop-content li.product .eco-add-cart-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #1b4d31;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.eco-shop-content li.product .eco-add-cart-btn:hover {
    background: #c04a2d;
    transform: scale(1.1);
}


/* ===== WOOCOMMERCE DEFAULT OVERRIDES ===== */
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    transition: var(--eco-transition);
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--eco-primary);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Lora", serif;
    font-size: 18px !important;
    color: #1b4d31 !important;
    padding: 10px 0 !important;
}

.woocommerce ul.products li.product .price {
    color: #c04a2d !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.woocommerce .button.product_type_simple.add_to_cart_button {
    background: #1b4d31 !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.woocommerce-pagination ul {
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 5px;
}

.woocommerce-pagination ul li a, 
.woocommerce-pagination ul li span {
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
}

.woocommerce-pagination ul li span.current {
    background: #1b4d31 !important;
    color: #fff !important;
}


/* Force 4 Columns on Shop */
.eco-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1200px) {
    .eco-shop-content ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 991px) {
    .eco-shop-layout { grid-template-columns: 1fr; }
    .eco-shop-content ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ===== SINGLE PRODUCT PAGE STYLES ===== */
.woocommerce div.product {
    margin-top: 40px;
}

.woocommerce div.product div.images {
    width: 50% !important;
}

.woocommerce div.product div.summary {
    width: 45% !important;
    float: right !important;
}

.woocommerce div.product p.price {
    color: #c04a2d !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 20px 0 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 30px;
}

.woocommerce div.product .stock {
    color: #78a206 !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.woocommerce div.product form.cart div.quantity {
    margin-right: 15px !important;
}

.woocommerce div.product form.cart .qty {
    width: 60px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #eee !important;
    border-radius: 5px !important;
    text-align: center;
}

.woocommerce div.product form.cart .button {
    background: #1b4d31 !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 25px !important;
    font-weight: 700 !important;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.woocommerce div.product .product_meta {
    font-size: 13px;
    color: #666;
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 10px;
}

.woocommerce div.product .product_meta > span span,
.woocommerce div.product .product_meta > span a {
    color: #999;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
    border: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 20px !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: "Lora", serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1b4d31 !important;
    text-transform: uppercase !important;
    padding: 10px 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #c04a2d !important;
    border-bottom: 2px solid #c04a2d;
}

.woocommerce div.product .woocommerce-Tabs-panel {
    max-width: 1000px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
}

/* Related Products */
.woocommerce .related.products {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.woocommerce .related.products h2 {
    font-family: "Lora", serif;
    font-size: 24px;
    font-weight: 800;
    color: #1b4d31;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Fix single product gallery layout if theme supports flexslider */
.woocommerce-product-gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.woocommerce-product-gallery__wrapper {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.flex-control-nav.flex-control-thumbs {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flex-control-nav.flex-control-thumbs li {
    width: 100%;
    float: none !important;
}

.flex-control-nav.flex-control-thumbs img {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 5px;
}

.flex-control-nav.flex-control-thumbs img.flex-active {
    border-color: #c04a2d;
}


/* Meta refinements */
.woocommerce div.product .product_meta > span {
    font-weight: 700;
    color: #1b4d31;
    text-transform: uppercase;
    font-size: 12px;
}
.woocommerce div.product .product_meta > span span,
.woocommerce div.product .product_meta > span a {
    font-weight: 400;
    color: #666;
    text-transform: none;
    margin-left: 10px;
}


/* Force 4 columns for related products */
.woocommerce .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after {
    display: none !important;
}
.woocommerce .related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}


/* ===== OFF-CANVAS CART DRAWER ===== */
.eco-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.eco-cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.eco-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.eco-cart-drawer.active {
    right: 0;
}
.eco-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fdfaf3;
    border-bottom: 1px solid #eee;
}
.eco-cart-drawer-header h3 {
    margin: 0;
    font-family: "Lora", serif;
    color: #1b4d31;
    font-weight: 800;
}
.eco-cart-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #c04a2d;
}
.eco-cart-drawer-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}
.eco-cart-drawer-content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.eco-cart-drawer-content .woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    border-radius: 5px;
    padding: 12px;
    font-weight: 700;
}
.eco-cart-drawer-content .woocommerce-mini-cart__buttons .checkout {
    background: #c04a2d !important;
}

/* Make sure header cart link prevents default */


/* ===== SHOP SIDEBAR FILTERS ===== */
.eco-shop-sidebar .eco-widget {
    background: #fdfaf3;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}
.eco-shop-sidebar .eco-widget-title {
    font-family: "Lora", serif;
    color: #1b4d31;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.eco-shop-sidebar .eco-widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c04a2d;
}

/* Category List */
.eco-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.eco-cat-list li {
    margin-bottom: 15px;
}
.eco-cat-list li a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}
.eco-cat-list li a:hover {
    color: #c04a2d;
}
.eco-cat-list li a span {
    background: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #1b4d31;
    border: 1px solid #eee;
}

/* Price Filter */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: #eee;
    height: 6px;
    border-radius: 3px;
    border: none;
    margin-bottom: 20px;
}
.widget_price_filter .price_slider_wrapper .ui-slider-range {
    background: #c04a2d;
}
.widget_price_filter .price_slider_wrapper .ui-slider-handle {
    background: #fff;
    border: 2px solid #c04a2d;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: -5px;
    cursor: pointer;
}
.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.widget_price_filter .price_slider_amount .button {
    background: #1b4d31 !important;
    color: #fff !important;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
.widget_price_filter .price_slider_amount .button:hover {
    background: #c04a2d !important;
}

/* ===== PREMIUM CART PAGE STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

.woocommerce-cart .entry-content {
    background: #fdfdfd;
    padding: 40px 0;
    font-family: 'Outfit', sans-serif !important;
}

.woocommerce-cart table.shop_table {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
}

.woocommerce-cart table.shop_table thead {
    background: #f8fcf9 !important;
}

.woocommerce-cart table.shop_table th {
    padding: 20px !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    color: #1b4d31 !important;
    font-weight: 900 !important;
    border: none !important;
}

.woocommerce-cart table.shop_table td {
    padding: 25px 20px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
}

.woocommerce-cart .product-name a {
    font-weight: 700 !important;
    color: #1b4d31 !important;
    font-size: 16px !important;
}

.woocommerce-cart .product-thumbnail img {
    width: 80px !important;
    border-radius: 12px !important;
    background: #f8fcf9 !important;
}

.woocommerce-cart .product-remove a.remove {
    background: #f5f5f5 !important;
    color: #c04a2d !important;
    height: 30px !important;
    width: 30px !important;
    line-height: 28px !important;
    border-radius: 50% !important;
    font-weight: 300 !important;
}

.woocommerce-cart .product-remove a.remove:hover {
    background: #c04a2d !important;
    color: #fff !important;
}

/* Quantity Field */
.woocommerce-cart .quantity input.qty {
    width: 50px !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 2px solid #f0f0f0 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Cart Totals Sidebar */
.woocommerce-cart .cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 50px !important;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 450px !important;
    background: #fff !important;
    padding: 40px !important;
    border-radius: 25px !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(27,77,49,0.05) !important;
}

.woocommerce-cart .cart_totals h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 20px !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #1b4d31 !important;
    display: inline-block !important;
    padding-bottom: 5px !important;
}

.woocommerce-cart .cart_totals table.shop_table {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.woocommerce-cart .cart_totals tr th {
    background: transparent !important;
    padding-left: 0 !important;
    color: #999 !important;
}

.woocommerce-cart .cart_totals tr td {
    text-align: right !important;
    font-weight: 800 !important;
    color: #1b4d31 !important;
}

.woocommerce-cart .cart_totals .order-total td {
    font-size: 24px !important;
    color: #c04a2d !important;
}

/* Buttons */
.woocommerce-cart .button, 
.woocommerce-cart .checkout-button {
    border-radius: 999px !important;
    padding: 18px 40px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    font-size: 14px !important;
}

.woocommerce-cart .actions .button {
    background: #f5f5f5 !important;
    color: #666 !important;
}

.woocommerce-cart .checkout-button {
    background: #1b4d31 !important;
    color: #fff !important;
    margin-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 15px 30px rgba(27,77,49,0.2) !important;
}

.woocommerce-cart .checkout-button:hover {
    transform: translateY(-5px) !important;
    background: #c04a2d !important;
    box-shadow: 0 20px 40px rgba(192,74,45,0.3) !important;
}

/* Responsive Cart */
@media (max-width: 767px) {
    .woocommerce-cart table.shop_table_responsive tr td::before {
        font-weight: 900 !important;
        text-transform: uppercase !important;
        font-size: 10px !important;
        color: #999 !important;
    }
    .woocommerce-cart .cart_totals {
        padding: 25px !important;
    }
}

/* Part 5: Mobile & Responsive Fixes - ULTIMATE PREMIUM FINISH V2 */
@media (max-width: 767px) {
    /* Issue 4: Single Product Buttons - STUNNING & FULL WIDTH */
    .single-product .cart, 
    form.cart {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin: 25px 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .single-product .cart .quantity,
    form.cart .quantity {
        margin: 0 auto 10px !important;
        width: 140px !important;
        height: 48px !important;
        display: flex !important;
        border: 2.5px solid #1b4d31 !important;
        border-radius: 50px !important;
        overflow: hidden !important;
    }
    
    /* Force BEAUTIFUL ROUNDED BUTTONS */
    .single_add_to_cart_button, 
    .eco-buy-now-btn,
    .woocommerce button.button.alt.single_add_to_cart_button,
    /* Single Product Button Overrides Removed - Managed in template */

    /* Checkout - SHIFT FULLY LEFT */
    .dfit-co-layout { 
        padding: 10px 0 !important; 
        width: 100% !important;
        margin-left: 0 !important;
    }
    .dfit-co-section { 
        padding: 20px 10px !important; 
        margin-bottom: 20px !important;
        border-radius: 0 !important; /* Move to edge */
        border-left: none !important;
        border-right: none !important;
        width: 100vw !important;
        margin-left: -10px !important; /* Counteract layout padding if any */
    }
    .woocommerce-checkout-review-order-table td {
        padding: 15px 10px !important;
    }

    /* Footer Payment Methods Alignment */
    .eco-payment-methods {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-top: 20px !important;
    }
    .eco-payment-methods img {
        margin-left: 0 !important;
    }
}

/* ===== FOOTER MOBILE IMPROVEMENTS ===== */
@media (max-width: 639px) {
    /* Stack footer fully on mobile */
    footer .grid-cols-1 { grid-template-columns: 1fr !important; }

    /* Brand / logo col takes full row */
    footer .col-span-1.sm\:col-span-2 {
        grid-column: 1 / -1 !important;
    }

    /* Payment image: full width, centered */
    .eco-payment-methods {
        margin-top: 16px !important;
        display: flex !important;
        justify-content: flex-start !important;
    }
    .eco-payment-methods img {
        width: 100% !important;
        max-width: 260px !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Tighten newsletter on mobile */
    footer form.flex {
        flex-direction: column !important;
        border-radius: 16px !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    footer form.flex input[type="email"] {
        width: 100% !important;
        padding: 10px 16px !important;
    }
    footer form.flex button[type="submit"] {
        width: 100% !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    /* Copyright row: stack */
    footer .border-t .flex-wrap {
        flex-direction: column !important;
        text-align: center !important;
        gap: 4px !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* 2-col tablet: payment image fits nicely */
    .eco-payment-methods img {
        max-width: 220px !important;
        width: 100% !important;
    }
    /* Brand col spans full width on tablet */
    footer .col-span-1.sm\:col-span-2 {
        grid-column: span 2 !important;
    }
}
