/* EMAC Technology - Flone UI adaptions (Blue/White/Gray) */

:root {
    --emac-primary: #1e73be;
    --emac-primary-hover: #155a96;
    --emac-secondary: #64748b;
    --emac-green: #1e73be;
    --emac-orange: #1e73be;
}

/* ===== Global white backgrounds ===== */
body,
.header-area,
.header-padding-1,
.footer-area,
.bg-gray,
.section-padding,
.pt-100,
.pb-70,
.pt-95,
.pb-70,
.breadcrumb-area,
.slider-area,
.hero-slider {
    background-color: #fff !important;
}

/* Remove all colored section backgrounds */
.bg-gray,
.bg-light-gray,
.footer-top,
.newsletter-area,
.testimonial-area,
.blog-area,
.service-area,
.product-area,
.brand-area,
.subscribe-area,
.instagram-area,
.cta-area {
    background-color: #fff !important;
}

/* ===== Logo ===== */
.emac-logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.emac-logo-brand {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    color: #333;
}
.emac-logo-brand span { color: var(--emac-primary); }
.emac-logo-sub {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 4px;
    color: #999;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ===== WhatsApp float ===== */
.emac-wa-float {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    line-height: 56px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.emac-wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* ===== Mobile bottom nav ===== */
.emac-mobile-nav {
    display: none;
}
@media (max-width: 767px) {
    .emac-mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }
    .emac-mobile-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 9px 0 7px;
        font-size: 10px;
        font-weight: 500;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .emac-mobile-nav a i { font-size: 18px; margin-bottom: 3px; }
    .emac-mobile-nav a.active { color: var(--emac-primary); }
    body { padding-bottom: 54px; }
}

/* ===== Forms ===== */
.emac-form .contact-form-style label {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.emac-form .contact-form-style input,
.emac-form .contact-form-style textarea,
.emac-form .contact-form-style select {
    border: 1px solid #e5e7eb;
    background: #fff;
    height: 48px;
    width: 100%;
    padding: 0 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.emac-form .contact-form-style textarea { height: 150px; padding: 15px; resize: vertical; }
.emac-form .contact-form-style input:focus,
.emac-form .contact-form-style textarea:focus,
.emac-form .contact-form-style select:focus { border-color: var(--emac-primary); }
.emac-form .submit {
    background: var(--emac-primary);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}
.emac-form .submit:hover { background: var(--emac-primary-hover); }

/* ===== Breadcrumb ===== */
.breadcrumb-content ul li { padding: 0 8px; }
.breadcrumb-area { background-color: #fff !important; }
.breadcrumb-content h1,
.breadcrumb-content h2,
.breadcrumb-content h3 { color: #333; }
.breadcrumb-content ul li a { color: #666; }
.breadcrumb-content ul li a:hover,
.breadcrumb-content ul li.active { color: var(--emac-primary); }

/* ===== Product ===== */
.product-img img.default-img { object-fit: contain; background: #f9f9f9; }
.quickview-big-img img { object-fit: contain; }

/* ===== Section titles ===== */
.emac-section-title { margin-bottom: 40px; }

/* ===== Footer ===== */
.footer-area { background-color: #fff !important; border-top: 1px solid #e5e7eb; }
.footer-widget .footer-title h3 { color: #333; }
.footer-list li a { color: #666; }
.footer-list li a:hover { color: var(--emac-primary); }
.footer-list li a i { margin-right: 8px; color: #999; }
.copyright p { color: #666; }

/* ===== Header ===== */
.header-area { background-color: #fff; border-bottom: 1px solid #e5e7eb; }
.main-menu nav > ul > li > a { color: #333; }
.main-menu nav > ul > li > a:hover,
.main-menu nav > ul > li > a.active,
.main-menu nav > ul > li > a:hover { color: var(--emac-primary); }
.header-right-wrap .same-style a { color: #333; }
.header-right-wrap .same-style a:hover { color: var(--emac-primary); }

/* ===== Buttons ===== */
.default-btn,
.btn-hover a,
button.btn-hover {
    background-color: var(--emac-primary) !important;
    color: #fff !important;
    border-color: var(--emac-primary) !important;
}
.default-btn:hover,
.btn-hover a:hover,
button.btn-hover:hover {
    background-color: var(--emac-primary-hover) !important;
    border-color: var(--emac-primary-hover) !important;
}
.product-action .pro-same-action.pro-cart a {
    background-color: var(--emac-primary) !important;
    color: #fff !important;
}
.product-action .pro-same-action.pro-cart a:hover {
    background-color: var(--emac-primary-hover) !important;
}
.product-action .pro-same-action {
    border-color: var(--emac-primary) !important;
}
.product-action > div {
    background-color: var(--emac-primary) !important;
}
.product-action > div:hover {
    background-color: var(--emac-primary-hover) !important;
}
.product-action .pro-same-action.pro-wishlist a {
    background-color: var(--emac-primary) !important;
    color: #fff !important;
}
.product-action .pro-same-action.pro-wishlist a:hover {
    background-color: var(--emac-primary-hover) !important;
}
.product-action .pro-same-action.pro-quickview a {
    background-color: var(--emac-primary) !important;
    color: #fff !important;
}
.product-action .pro-same-action.pro-quickview a:hover {
    background-color: var(--emac-primary-hover) !important;
}

/* ===== Links ===== */
a { color: var(--emac-primary); }
a:hover { color: var(--emac-primary-hover); }

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 { color: #333; }

/* ===== Text colors ===== */
p { color: #666; }

/* ===== Section backgrounds override (Flone inline) ===== */
.slider-area { background: #fff !important; }
.slider-area .owl-stage-outer { background: #fff !important; }
.shop-top-bar { background: #fff; border-bottom: 1px solid #e5e7eb; }

/* ===== Cart ===== */
.cart-main-area { background: #fff; }
.cart-page-title { font-size: 20px; font-weight: 600; color: #333; margin-bottom: 20px; }
.emac-cart-table { width: 100%; border-collapse: collapse; }
.emac-cart-table thead tr { background: #f9f9f9; }
.emac-cart-table thead th { padding: 14px 16px; font-size: 13px; font-weight: 600; color: #333; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e5e7eb; }
.emac-cart-table tbody td { padding: 16px; vertical-align: middle; border-bottom: 1px solid #f0f0f0; }
.emac-cart-table tbody td.product-thumbnail img { max-width: 100%; height: auto; width: 80px; object-fit: cover; border-radius: 6px; }
@media (max-width: 767px) {
    .emac-cart-table { display: block; width: 100%; }
    .emac-cart-table thead { display: none; }
    .emac-cart-table tbody { display: block; width: 100%; }
    .emac-cart-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
    .emac-cart-table tbody td { border: none; padding: 4px 0; width: auto; }
    .emac-cart-table tbody td.product-thumbnail { flex: 0 0 auto; }
    .emac-cart-table tbody td.product-thumbnail img { width: 60px; height: 60px; }
    .emac-cart-table tbody td.product-name { flex: 1; min-width: 120px; }
    .emac-cart-table tbody td.product-price-cart { flex: 0 0 auto; }
    .emac-cart-table tbody td.product-quantity { flex: 0 0 auto; }
    .emac-cart-table tbody td.product-subtotal { flex: 0 0 auto; font-weight: 600; color: var(--emac-primary); }
    .emac-cart-table tbody td.product-remove { flex: 0 0 auto; }
}
.emac-sku { font-size: 12px; color: #999; margin-top: 4px; }
.emac-cart-row .product-remove a { color: #999; }
.emac-cart-row .product-remove a:hover { color: #e74c3c; }
.cart-shiping-update-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; flex-wrap: wrap; gap: 15px; }
.cart-shiping-update a { color: #666; font-size: 14px; }
.cart-shiping-update a:hover { color: var(--emac-primary); }
.cart-clear { display: flex; gap: 15px; }
.emac-cart-update-all { background: var(--emac-primary); color: #fff; border: none; padding: 10px 24px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.emac-cart-update-all:hover { background: var(--emac-primary-hover); }
.emac-cart-clear { color: #999; font-size: 13px; line-height: 36px; }
.emac-cart-clear:hover { color: #e74c3c; }
.grand-totall { background: #f9f9f9; border-radius: 8px; padding: 30px; border: 1px solid #e5e7eb; }
.grand-totall .title-wrap h4 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e5e7eb; }
.grand-totall h5 { font-size: 14px; color: #666; font-weight: 500; margin-bottom: 10px; }
.grand-totall .total-shipping ul li { display: flex; justify-content: space-between; font-size: 14px; color: #666; margin-bottom: 5px; }
.grand-totall .grand-totall-title { font-size: 18px; font-weight: 600; color: #333; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e5e7eb; }
.grand-totall .grand-totall-title span { color: var(--emac-primary); }
.grand-totall > a { display: block; text-align: center; margin-top: 20px; padding: 14px; background: var(--emac-primary); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.3s; }
.grand-totall > a:hover { background: var(--emac-primary-hover); color: #fff; }
.cart-plus-minus { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; height: 36px; }
.cart-plus-minus input.cart-plus-minus-box { width: 50px; height: 36px; border: none; text-align: center; font-size: 14px; font-weight: 500; color: #333; background: #fff; }
.emac-empty-state { padding: 80px 20px; }
.emac-empty-state i { font-size: 70px; color: #ddd; display: block; margin-bottom: 20px; }
.emac-empty-state h3 { font-size: 22px; font-weight: 600; color: #333; margin-bottom: 8px; }
.emac-empty-state p { color: #888; margin-bottom: 25px; font-size: 15px; }

/* ===== Blog ===== */
.emac-blog-excerpt { color: #666; }

/* ===== Checkout ===== */
.billing-info-wrap .billing-info textarea {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #333;
    font-size: 14px;
    padding: 15px 20px;
    resize: vertical;
    width: 100%;
}
.billing-info-wrap .billing-info textarea:focus { border-color: var(--emac-primary); }
.billing-info-wrap .checkout-account label {
    color: #333;
    font-weight: 400;
    margin: 0 0 0 12px;
    cursor: pointer;
}
.your-order-area .Place-order > button.btn-hover {
    background-color: var(--emac-primary) !important;
    color: #fff !important;
    display: block;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    padding: 18px 20px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 9;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.your-order-area .Place-order > button.btn-hover:hover { background-color: var(--emac-primary-hover) !important; }

/* ===== Alerts ===== */
.emac-form-status { margin-top: 20px; }
.emac-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}
.emac-alert-success { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.emac-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.emac-alert-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    margin-left: 12px;
}

/* ===== Empty state ===== */
.emac-empty-state { padding: 70px 20px; }
.emac-empty-state i { font-size: 70px; color: #ccc; display: block; margin-bottom: 20px; }
.emac-empty-state h3 { font-family: "Poppins", sans-serif; font-weight: 600; margin-bottom: 8px; }
.emac-empty-state p { color: #888; margin-bottom: 25px; }

/* ===== Success box ===== */
.emac-success-box { text-align: center; padding: 40px 20px; }

/* ===== Contact/quote select ===== */
.emac-form .contact-form-style select {
    background: #fff;
    border: 1px solid #e5e7eb;
    height: 45px;
    padding: 2px 20px;
    color: #333;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}

/* ===== Mega menu ===== */
.mega-menu,
.mega-menu-padding { background: #fff; }
.mega-menu-title a { color: var(--emac-primary) !important; }

/* ===== Flone override: all colored backgrounds to white ===== */
.testimonial-area .testimonial-active,
.newsletter-area,
.subscribe-area,
.instagram-bg,
.footer-top,
.cta-bg,
.service-bg {
    background-color: #fff !important;
}

/* ===== Flone override: slider background ===== */
.slider-area .single-slider,
.slider-area .slider-bg,
.slider-area .slider-content {
    background-color: #fff !important;
}

/* ===== Flone override: product hover ===== */
.product-wrapper:hover { border-color: var(--emac-primary); }
.product-content .price span { color: var(--emac-primary); }

/* ===== Flone override: pagination ===== */
.pagination ul li a:hover,
.pagination ul li.active a { background-color: var(--emac-primary); color: #fff; }

/* ===== Header cart dropdown fix ===== */
.header-right-wrap .same-style.cart-wrap {
    position: relative;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 100%;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-top: 12px;
}
.header-right-wrap .same-style.cart-wrap:hover .shopping-cart-content,
.header-right-wrap .same-style.cart-wrap .shopping-cart-content.cart-visible {
    opacity: 1;
    visibility: visible;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .single-shopping-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .single-shopping-cart:last-child {
    border-bottom: none;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-title h4 {
    font-size: 13px;
    margin: 0 0 4px;
    line-height: 1.3;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-title h4 a {
    color: #333;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-title h6 {
    font-size: 12px;
    color: #999;
    margin: 0;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-title span {
    font-size: 13px;
    color: var(--emac-primary);
    font-weight: 600;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-delete a {
    color: #ccc;
    font-size: 16px;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-delete a:hover {
    color: #e74c3c;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-total {
    padding: 12px 0;
    border-top: 1px solid #ebebeb;
    text-align: right;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-total h4 {
    font-size: 14px;
    margin: 0;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-btn {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 10px;
}
.header-right-wrap .same-style.cart-wrap .shopping-cart-content .shopping-cart-btn a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Flone override: scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emac-primary); }
