/* --- CUSTOM TEMPLATE SCOPED STYLE RULES --- */
.site-home-recharged {
    --primary-recharged: #004B87;
    --primary-hover-recharged: #003662;
    --secondary-recharged: #7AC943;
    --secondary-hover-recharged: #65b032;
    --light-bg-recharged: #F8FAFC;
    --card-border-recharged: #E2E8F0;
    --muted-txt-recharged: #64748B;
    
    background-color: var(--light-bg-recharged);
}

.container-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-home {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-recharged);
    margin-bottom: 40px;
}

.section-title-white {
    color: #FFFFFF;
}

/* --- BUTTON FACTORY --- */
.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary-home { background: var(--primary-recharged); color: #fff; }
.btn-primary-home:hover { background: var(--primary-hover-recharged); color: #fff; }
.btn-secondary-home { background: var(--secondary-recharged); color: #fff; }
.btn-secondary-home:hover { background: var(--secondary-hover-recharged); color: #fff; }
.btn-outline-home { border: 2px solid var(--primary-recharged); color: var(--primary-recharged); background: transparent; }
.btn-outline-home:hover { background: var(--primary-recharged); color: #fff; }
.small-btn { padding: 8px 16px; font-size: 0.85rem; }

/* --- HERO BANNER LAYOUT --- */
.hero-banner {
    background: linear-gradient(135deg, #EDF4FA 0%, #F4F9F0 100%);
    padding: 20px 0;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.hero-content h1 { font-size: 3rem; font-weight: 800; color: var(--primary-recharged); line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: var(--muted-txt-recharged); margin-bottom: 30px; }
.hero-btn-group { display: flex; gap: 15px; }
.hero-image { position: relative; display: flex; justify-content: center; }
.hero-main-img { filter: drop-shadow(0 20px 35px rgba(0, 75, 135, 0.15)); z-index: 2; max-width: 85%; }
.floating-accent { position: absolute; background: rgba(122, 201, 67, 0.08); border-radius: 50%; filter: blur(40px); width: 300px; height: 300px; top: 10%; z-index: 1; }

/* --- SECTIONS SPACING & CARDS --- */
.shop-categories, .featured-products, .why-choose-us { padding: 80px 0; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.category-card { background: #fff; border: 1px solid var(--card-border-recharged); border-radius: 8px; padding: 25px 15px; text-align: center; transition: all 0.25s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); text-decoration: none; display: block; color: inherit; }
.category-card:hover { transform: translateY(-4px); border-color: var(--secondary-recharged); }
.category-card .dashicons { font-size: 2.5rem; width: auto; height: auto; color: var(--primary-recharged); margin-bottom: 10px; }
.category-card h3 { font-size: 1rem; font-weight: 600; margin: 0; }
/* Swaps out .dashicons targets for your new .fa-solid items */
.category-card i {
    font-size: 2.5rem; /* Large clean styling sizing anchor */
    color: var(--primary-recharged); /* Brand deep blue */
    margin-bottom: 15px;
    display: inline-block;
}

.category-card:hover i {
    color: var(--secondary-recharged); /* Switches to eco-green on card hover */
    transition: color 0.2s ease;
}

/* --- PRODUCT CARD STYLING --- */
.product-grid-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.product-card-home { background: #fff; border: 1px solid var(--card-border-recharged); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; position: relative; transition: all 0.25s ease; }
.product-card-home:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.04); }
.product-badge-home { position: absolute; top: 15px; left: 15px; background: var(--primary-recharged); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; z-index: 3; }

.product-img-wrapper-home {
    width: 100%;
    height: 220px; /* Forces a consistent bounding height across all 8 deal cards */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hard safety gate to stop physical asset overflows */
    margin-bottom: 15px;
    background-color: #f8fafc; /* Optional neutral backdrop for transparent product images */
    border-radius: 4px;
}

.product-img-wrapper-home a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hard target for the native img element generated by WooCommerce */
.product-img-wrapper-home img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    
    /* Crucial line: clips the hardware image inside the box nicely without squishing or skewing dimensions */
    object-fit: contain; 
    
    display: block;
}
.product-title-home { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; height: 48px; overflow: hidden; line-height: 1.4; }
.product-title-home a { color: inherit; text-decoration: none; }
.product-specs-home { font-size: 0.85rem; color: var(--muted-txt-recharged); margin-bottom: 15px; flex-grow: 1; }
.product-meta-home { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--card-border-recharged); }
.product-price-home { font-size: 1.25rem; font-weight: 700; color: var(--primary-recharged); }
.product-price-home del { font-size: 0.9rem; color: var(--muted-txt-recharged); font-weight: 400; margin-right: 5px; }

/* --- WHY CHOOSE US GRID --- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.value-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); border-top: 4px solid var(--secondary-recharged); text-align: center; }
.value-icon { width: 50px; height: 50px; background: rgba(122, 201, 67, 0.1); color: var(--secondary-recharged); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.value-icon .dashicons { font-size: 1.5rem; width: auto; height: auto; }
.value-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-recharged); }
.value-card p { color: var(--muted-txt-recharged); font-size: 0.9rem; margin: 0; }

/* --- BRANDS LOGO BAR --- */
.brands-bar { background-color: #fff; border-top: 1px solid var(--card-border-recharged); border-bottom: 1px solid var(--card-border-recharged); padding: 40px 0; }
.brand-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; opacity: 0.5; }
.brand-flex span { font-size: 1.4rem; font-weight: 800; color: #94A3B8; letter-spacing: 1.5px; }

/* --- TRUST CONVERSION BANNER --- */
.trust-banner { background: var(--primary-recharged); color: #fff; text-align: center; padding: 60px 0; }
.trust-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.trust-content p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto 25px; }

/* --- CENTERED HERO MODIFICATIONS --- */
.centered-hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.centered-hero h1 {
    font-size: 3.5rem; /* Slightly larger to anchor the space */
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.centered-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 40px; /* Centers the description text paragraph block */
}

.centered-hero .hero-btn-group {
    justify-content: center;
    gap: 20px;
}

/* Color pop highlight for conversions */
.accent-text {
    color: var(--secondary-recharged);
    position: relative;
    display: inline-block;
}

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .centered-hero h1 {
        font-size: 2.5rem;
    }
    .centered-hero p {
        font-size: 1.1rem;
    }
}

/* --- RESPONSIVE LAYOUT OVERRIDES --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-btn-group { justify-content: center; }
    .brand-flex { justify-content: center; gap: 40px; }
}
@media (max-width: 480px) {
    .hero-btn-group { flex-direction: column; }
    .section-title-home { font-size: 1.5rem; }
}