/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Astra Child Theme — Electric Store Custom Carousel
Author:       Electric Store
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ===================================================
   CAROUSEL SECTIONS — SHARED STYLES
   =================================================== */

/* --- Section Wrapper --- */
.es-trending-section {
    width: 100%;
    padding: 0 0 50px 0;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

/* ===================================================
   HEADING BARS
   =================================================== */

/* --- Shared heading base --- */
.es-trending-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 30px;
    margin: 0 0 35px 0;
    position: relative;
}

.es-trending-heading::before,
.es-trending-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.55);
    border-radius: 2px;
}

.es-trending-heading h2 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.18);
    line-height: 1.2 !important;
    border: none !important;
}

/* --- TOP SELLING: soft yellow-to-teal light gradient --- */
.es-heading-topselling {
    background: linear-gradient(90deg, #e8f5c8 0%, #a8e6cf 30%, #40c9c6 70%, #a8e6cf 100%);
}

.es-heading-topselling h2 {
    color: #1a5c5a !important;
    text-shadow: 0 1px 3px rgba(255,255,255,0.5) !important;
}

.es-heading-topselling::before,
.es-heading-topselling::after {
    background: rgba(26, 92, 90, 0.25);
}

/* --- SANITARY: same soft light gradient style --- */
.es-heading-sanitary {
    background: linear-gradient(90deg, #e8f5c8 0%, #a8e6cf 30%, #40c9c6 70%, #a8e6cf 100%);
}

.es-heading-sanitary h2 {
    color: #1a5c5a !important;
    text-shadow: 0 1px 3px rgba(255,255,255,0.5) !important;
}

.es-heading-sanitary::before,
.es-heading-sanitary::after {
    background: rgba(26, 92, 90, 0.25);
}

/* --- LIGHTING: same soft light gradient style --- */
.es-heading-lighting {
    background: linear-gradient(90deg, #e8f5c8 0%, #a8e6cf 30%, #40c9c6 70%, #a8e6cf 100%);
}

.es-heading-lighting h2 {
    color: #1a5c5a !important;
    text-shadow: 0 1px 3px rgba(255,255,255,0.5) !important;
}

.es-heading-lighting::before,
.es-heading-lighting::after {
    background: rgba(26, 92, 90, 0.25);
}

/* ===================================================
   CAROUSEL STRUCTURE
   =================================================== */

/* --- Carousel Outer (contains track + arrows) --- */
.es-carousel-outer {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* --- Carousel Track Wrapper (clips overflow) --- */
.es-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 4px;
}

/* --- Carousel Track (slides horizontally) --- */
.es-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* --- Single Product Card (image only) --- */
.es-product-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 0;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    border: 2px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    background: #f8f9fa;
    aspect-ratio: 1 / 1;
    position: relative;
}

.es-product-card:hover {
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.22);
    border-color: #1a73e8;
    transform: translateY(-4px) scale(1.03);
    text-decoration: none !important;
}

/* --- Product Image --- */
.es-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.es-product-card:hover img {
    opacity: 0.92;
}

/* ===================================================
   ARROW BUTTONS
   =================================================== */
.es-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(26,115,232,0.35);
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.es-carousel-btn:hover {
    background: #1558b0;
    transform: translateY(-50%) scale(1.1);
}

.es-carousel-btn.es-prev { left: 0; }
.es-carousel-btn.es-next { right: 0; }

/* ===================================================
   DOTS
   =================================================== */
.es-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.es-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cdd8e6;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.es-carousel-dot.active {
    background: #1a73e8;
    transform: scale(1.3);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .es-product-card {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .es-product-card {
        flex: 0 0 calc(33.33% - 11px);
    }
    .es-trending-heading h2 {
        font-size: 17px !important;
        letter-spacing: 1px !important;
    }
    .es-carousel-outer {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .es-product-card {
        flex: 0 0 calc(50% - 8px);
    }
    .es-trending-heading h2 {
        font-size: 14px !important;
    }
    .es-carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* ===================================================
   ELECTRIC CATEGORY — GRID SECTION
   Mughal Store style: white bg, image + name, no gradient
   =================================================== */

.es-electric-section {
    width: 100%;
    padding: 10px 0 50px 0;
    background: #ffffff;
    box-sizing: border-box;
}

/* --- Plain heading (no gradient bg) --- */
.es-electric-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 30px 20px 30px;
    margin: 0 0 30px 0;
}

/* Decorative lines left & right of heading */
.es-electric-heading::before,
.es-electric-heading::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: #b0b8c1;
    border-radius: 2px;
    max-width: 120px;
}

.es-electric-heading h2 {
    color: #2c3e50 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    line-height: 1.2 !important;
    border: none !important;
    background: none !important;
}

/* --- Product Grid --- */
.es-electric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Single Card --- */
.es-electric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    padding: 14px 10px 12px 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.es-electric-card:hover {
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.15);
    border-color: #1a73e8;
    transform: translateY(-3px);
    text-decoration: none !important;
}

/* --- Image Wrapper --- */
.es-electric-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.es-electric-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.es-electric-card:hover .es-electric-img-wrap img {
    transform: scale(1.06);
}

/* --- Product Name --- */
.es-electric-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    word-break: break-word;
    width: 100%;
}

/* ===================================================
   ELECTRIC GRID RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .es-electric-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .es-electric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .es-electric-heading h2 {
        font-size: 17px !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 480px) {
    .es-electric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    .es-electric-heading h2 {
        font-size: 14px !important;
    }
}

/* ===================================================
   FEATURES / TRUST STRIP  +  CONTACT BAR
   Unified pre-footer section — same light background
   White bg se footer tak smooth transition
   =================================================== */

/* --- Outer wrapper — same white bg as page --- */
.es-features-strip {
    width: 100%;
    background: #f4faf9;
    padding: 45px 20px 0 20px;
    box-sizing: border-box;
    margin-top: 0;
    border-top: 1px solid #d4ece8;
}

/* Remove the old ::after blue line — we handle it separately */
.es-features-strip::after {
    display: none;
}

.es-features-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding-bottom: 40px;
}

/* --- Each feature block --- */
.es-feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    padding: 0 30px;
}

/* --- Icon circle --- */
.es-feature-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.es-feature-item:hover .es-feature-icon-wrap {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.es-icon-whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.es-icon-delivery { background: linear-gradient(135deg, #1a73e8 0%, #00c6ff 100%); }
.es-icon-store    { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); color: #4a3000; }

/* --- Feature Text --- */
.es-feature-text h3 {
    color: #1a3c3a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.es-feature-text p {
    color: #4a7c78 !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* --- Vertical divider between features --- */
.es-feature-divider {
    width: 1px;
    height: 56px;
    background: #c0deda;
    flex-shrink: 0;
}

/* ===================================================
   CONTACT BAR — same background, sits below features
   =================================================== */
.es-footer-contact-bar {
    width: 100%;
    background: #e6f4f1;
    padding: 22px 20px;
    box-sizing: border-box;
    border-top: 1px solid #c0deda;
    /* Blue line at very bottom — right above footer */
    border-bottom: 3px solid #0274be;
}

.es-footer-contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

/* --- Contact Item --- */
.es-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 36px;
}

/* --- Icon --- */
.es-footer-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #a8d8d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.es-footer-contact-item:hover .es-footer-contact-icon {
    background: #d4ece8;
    border-color: #40c9c6;
}

/* --- Text --- */
.es-footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.es-fct-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #1a73e8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    line-height: 1 !important;
}

.es-fct-value {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a3c3a !important;
    line-height: 1.3 !important;
}

/* --- Dividers --- */
.es-fct-divider {
    width: 1px;
    height: 36px;
    background: #c0deda;
    flex-shrink: 0;
}

/* ===================================================
   RESPONSIVE — Features + Contact
   =================================================== */
@media (max-width: 768px) {
    .es-features-inner {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 30px;
    }

    .es-feature-item {
        padding: 0 10px;
        width: 100%;
        max-width: 340px;
        justify-content: flex-start;
    }

    .es-feature-divider {
        width: 80%;
        height: 1px;
        background: #c0deda;
    }

    .es-footer-contact-inner {
        flex-direction: column;
        gap: 18px;
    }

    .es-footer-contact-item {
        padding: 0 10px;
        width: 100%;
        max-width: 300px;
    }

    .es-fct-divider {
        width: 70%;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .es-features-strip {
        padding: 32px 16px 0 16px;
    }

    .es-feature-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .es-feature-text h3 {
        font-size: 14px !important;
    }

    .es-footer-contact-bar {
        padding: 18px 16px;
    }
}
