/* Minimal E-Commerce Theme CSS - Premium Comparison Chart */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
}

.minimal-home-wrapper {
    background: radial-gradient(circle at top right, #f0f9ff 0%, #e0f2fe 30%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}
.minimal-home-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.minimal-home-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #475569;
    letter-spacing: -0.01em;
}
.minimal-search-form-large {
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.minimal-search-form-large:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}
.eco-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
    display: inline-block;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.eco-tag:hover {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

/* Premium Sticky Header */
.minimal-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.minimal-logo h2 {
    margin: 0;
    color: #1e40af;
    font-weight: 800;
    letter-spacing: -1.5px;
    font-size: 1.8rem;
}
.minimal-search-form {
    display: flex;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    transition: border-color 0.2s;
}
.minimal-search-form:focus-within {
    border-color: #3b82f6;
}
.minimal-search-form input,
.minimal-search-form .awesomplete {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    display: flex;
}
.minimal-search-form input {
    padding: 10px 16px;
    width: 100%;
    font-size: 0.95rem;
}
.minimal-search-form button {
    background: #1e40af;
    color: #fff;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}
.minimal-search-form button:hover {
    background: #1d4ed8;
}

/* Banner Styling */
.deals-banner {
    background: linear-gradient(90deg, #fff 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
}
.time-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* --- HORIZONTAL COMPARISON CHART --- */
.eco-product-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 40px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 320px; 
    cursor: pointer;
    overflow: hidden;
}
.eco-product-row:hover {
    border-color: #3b82f6;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.1);
    transform: translateY(-3px);
}

/* Full Row Clickability - 100% Coverage */
.eco-full-row-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    cursor: pointer;
    display: block;
    background: rgba(255,255,255,0); /* Crucial for some browsers to detect clicks */
}

.eco-rank-col, 
.eco-rating-area,
.eco-img-col {
    pointer-events: none; /* Let clicks pass through to the full-row link */
    position: relative;
    z-index: 1;
}

.eco-details-col h3 a,
.eco-btn-premium {
    position: relative;
    z-index: 10; /* Keep these interactive on top */
    pointer-events: auto;
}

/* Ribbon - Improved Positioning */
.eco-ribbon {
    position: absolute;
    top: 15px;
    left: -10px;
    z-index: 20;
    background: #1e40af;
    color: #fff;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
}
.eco-ribbon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    border-left: 6px solid transparent;
    border-top: 6px solid #111827;
}
.eco-ribbon.badge-2 { background: #d97706; }
.eco-ribbon.badge-3 { background: #059669; }

/* Rank Circle */
.eco-rank-col {
    flex: 0 0 80px;
}
.eco-rank-circle {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #64748b;
}
.rank-1 .eco-rank-circle { background: #1e40af; border-color: #1e40af; color: #fff; }
.rank-2 .eco-rank-circle { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.rank-3 .eco-rank-circle { background: #60a5fa; border-color: #60a5fa; color: #fff; }

/* Image Column - Maximum Filling */
.eco-img-col {
    flex: 0 0 350px;
    text-align: center;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border-radius: 8px;
}
.eco-img-col img {
    max-width: 100%;
    max-height: 290px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}
.eco-product-row:hover .eco-img-col img {
    transform: scale(1.15);
}

/* Details Column */
.eco-details-col {
    flex: 1;
    padding: 0 35px;
}
.eco-details-col h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}
.eco-details-col h3 a { color: #0f172a; text-decoration: none; position: relative; z-index: 10; }

.eco-snippet {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Rating Area */
.eco-rating-area {
    text-align: center;
    margin-bottom: 20px;
}
.eco-rating-score {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1e40af;
    line-height: 1;
}
.eco-rating-count {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}
.eco-rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* CTA & Rating Column */
.eco-cta-col {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid #f1f5f9;
    padding-left: 20px;
}

.eco-rating-area {
    text-align: center;
    padding-right: 15px;
}
.eco-rating-score {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
}
.eco-rating-stars {
    color: #fbbf24;
    font-size: 0.8rem;
    margin-top: 4px;
}

.eco-btn-premium {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 2px 0 #0f172a;
    transition: transform 0.1s;
}
.eco-btn-premium:hover {
    color: #fff;
    transform: translateY(1px);
    box-shadow: 0 1px 0 #0f172a;
}

/* Badges */
.eco-ribbon {
    position: absolute;
    top: 10px;
    left: 70px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-2 { background: #8b5cf6; }
.badge-3 { background: #10b981; }

/* Grid for "More Products" */
.more-products-wrapper {
    margin-top: 50px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 40px;
}
.eco-grid-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    height: 100%;
    transition: border-color 0.2s;
}
.eco-grid-item:hover { border-color: #3b82f6; }
.eco-grid-img { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.eco-grid-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.eco-grid-title { font-size: 0.85rem; font-weight: 600; color: #1e293b; height: 40px; overflow: hidden; margin-bottom: 10px; }
.eco-grid-btn { background: #f1f5f9; color: #475569; padding: 6px; border-radius: 4px; display: block; font-size: 0.75rem; font-weight: 700; text-decoration: none; }

/* SEO Fix & Pagination */
.gcse-searchresults-only .gsc-expansionArea, 
.gcse-searchresults-only .gsc-webResult .gsc-result { display: none !important; }
.gsc-cursor-box { margin-top: 30px !important; text-align: center !important; }
.gsc-cursor-page { display: inline-block !important; padding: 8px 14px !important; margin: 0 2px !important; background: #fff !important; color: #1e40af !important; border: 1px solid #e2e8f0 !important; border-radius: 4px !important; text-decoration: none !important; font-weight: 700 !important; }
.gsc-cursor-page.gsc-cursor-current-page { background: #1e40af !important; color: #fff !important; }

/* Awesomplete UI Styles */
.awesomplete {
    display: inline-block;
    position: relative;
    width: 100%;
}
.awesomplete > input {
    display: block;
}
.awesomplete > ul {
    position: absolute;
    left: 0;
    z-index: 9999;
    min-width: 100%;
    box-sizing: border-box;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 350px;
    overflow-y: auto;
}
.awesomplete > ul[hidden], .awesomplete > ul:empty {
    display: none;
}
.awesomplete > ul > li {
    position: relative;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}
.awesomplete > ul > li:last-child { border-bottom: none; }
.awesomplete > ul > li:hover, .awesomplete > ul > li[aria-selected="true"] {
    background-color: #f8fafc;
    color: #1e40af;
}
.awesomplete mark { background: transparent; font-weight: 800; color: #1e40af; }
.awesomplete li:hover mark { background: transparent; }

.gsc-cursor-box { margin-top: 30px !important; text-align: center !important; }
.gsc-cursor-page { display: inline-block !important; padding: 8px 14px !important; margin: 0 2px !important; background: #fff !important; color: #1e40af !important; border: 1px solid #e2e8f0 !important; border-radius: 4px !important; text-decoration: none !important; font-weight: 700 !important; }
.gsc-cursor-page.gsc-cursor-current-page { background: #1e40af !important; color: #fff !important; }

/* Responsive Chart */
/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .eco-product-row {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .eco-img-col {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 15px auto;
        padding: 0;
    }
    .eco-img-col img {
        max-height: 260px;
        width: auto;
        margin: 0 auto;
    }
    .eco-details-col {
        padding: 0 10px;
    }
    .eco-details-col h3 {
        font-size: 1.25rem;
    }
    .eco-snippet {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .eco-rank-col {
        margin-bottom: 15px;
        justify-content: center;
    }
    .eco-rank-circle {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
        margin-bottom: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .eco-cta-col {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 10px;
        width: 100%;
        flex: 1;
        flex-direction: column;
    }
    .eco-rating-area {
        margin-bottom: 15px;
        padding-right: 0;
    }
    .eco-btn-premium {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    .eco-ribbon { 
        left: 50%; 
        top: -15px; 
        transform: translateX(-50%); 
        font-size: 0.75rem; 
        padding: 4px 12px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    /* Header adjustments for mobile */
    .minimal-nav {
        padding: 10px 0;
    }
    .minimal-logo h2 {
        font-size: 1.4rem;
    }
    .minimal-search-form {
        max-width: 100%;
        margin-top: 10px;
    }
    .minimal-nav .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    .minimal-nav .d-flex a {
        text-align: center;
        margin-bottom: 10px;
    }
}

/* --- GOOGLE GCSE WHITELABEL CLEANUP --- */
.gsc-result-info, 
.gcsc-find-more-on-google-branding, 
.gcsc-find-more-on-google,
.gsc-branding, 
.gsc-results-header,
.gcsc-more-maybe-branding,
.gsc-adBlock,
.gsc-context-box {
    display: none !important;
}

.gsc-control-cse {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.gsc-adBlockVertical {
    display: none !important;
}

/* --- AUTOCOMPLETE (AWESOMPLETE) STYLING --- */
.awesomplete {
    display: inline-block;
    position: relative;
    width: 100%;
}
.awesomplete > ul {
    position: absolute;
    left: 0;
    z-index: 9999;
    min-width: 100%;
    box-sizing: border-box;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 5px;
}
.awesomplete > ul[hidden], .awesomplete > ul:empty {
    display: none;
}
.awesomplete li {
    padding: 12px 20px;
    cursor: pointer;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.awesomplete li:last-child { border-bottom: none; }
.awesomplete li:hover, .awesomplete li[aria-selected="true"] {
    background: #f1f5f9;
    color: #1e40af;
}
.awesomplete mark {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    padding: 0 2px;
}
