/* ============================================
   ELECTRO - CLEAN MODERN DESIGN OVERHAUL
   Keeps original colors, modernizes layout
   ============================================ */

/* ===== CRITICAL IMAGE FIX - DO NOT REMOVE ===== */
.product-item-inner-item img,
.product-item img,
img[src*="product-"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ===== GLOBAL IMPROVEMENTS ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION CLEANUP ===== */
.nav-bar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px !important;
    transition: all 0.2s ease;
}

/* ===== HERO/CAROUSEL SECTION ===== */
.header-carousel {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%) !important;
}

.carousel-content h1 {
    font-weight: 700;
    line-height: 1.2;
}

/* ===== SERVICES BAR CLEANUP ===== */
.container-fluid>.row>[class*="col-"]>.p-4 {
    padding: 20px 15px !important;
}

.container-fluid>.row>[class*="col-"]>.p-4 h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.container-fluid>.row>[class*="col-"]>.p-4 p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* ===== PRODUCT CARDS - CLEAN MODERN LOOK ===== */
.product-item {
    margin-bottom: 30px;
}

.product-item-inner {
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-item:hover .product-item-inner {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #ddd !important;
}

.product-item-inner-item {
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

/* CRITICAL: Force images to be visible with modern styling */
.product-item-inner-item img,
.product-item img,
img[src*="product-"] {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    padding: 20px !important;
    background: #fafafa !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    transition: transform 0.4s ease !important;
}

.product-item:hover .product-item-inner-item img {
    transform: scale(1.05);
}

/* Product badges */
.product-new,
.product-sale {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-new {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.product-sale {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

/* Product info section */
.product-item .text-center {
    padding: 20px !important;
    background: #fff;
}

.product-item .text-center a.d-block:first-of-type {
    color: #999 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.product-item .h4,
.product-item .text-center a.h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

/* Price styling */
.product-item del {
    color: #aaa !important;
    font-size: 14px !important;
}

.product-item .text-primary.fs-5 {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Product details overlay */
.product-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-item:hover .product-details {
    opacity: 1;
}

.product-details a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.product-details a:hover {
    background: var(--bs-primary);
    color: white;
    transform: scale(1.1);
}

/* Add to cart section */
.product-item-add {
    background: #fff;
    padding: 15px 20px !important;
    border-top: 1px solid #f0f0f0;
}

.product-item-add .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.product-item-add .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

/* Star ratings */
.product-item-add .fa-star {
    font-size: 12px;
    margin-right: 2px;
}

/* ===== PROMO BANNERS ===== */
.bg-light a.d-flex {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.bg-light a.d-flex:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ===== SECTION TITLES ===== */
.product h1,
h1:contains("Our Products"),
.tab-class h1 {
    font-weight: 700;
    font-size: 32px;
    color: #222;
}

/* Tab pills */
.nav-pills .nav-link,
.nav-pills a {
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active,
.nav-pills a.active {
    background: var(--bs-primary) !important;
    color: white !important;
}

/* ===== BESTSELLER/PRODUCT LIST SECTION ===== */
.productList-carousel,
.products-mini {
    background: #fff;
}

.products-mini-item {
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
}

.products-mini-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.products-mini-img img {
    object-fit: contain;
    padding: 10px;
    background: #fafafa;
}

/* ===== FOOTER CLEANUP ===== */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
}

.footer h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    transition: all 0.2s ease;
    font-size: 14px;
}

.footer a:hover {
    color: var(--bs-primary) !important;
    padding-left: 5px;
}

.footer .form-control {
    border-radius: 25px;
    padding: 12px 20px;
    border: none;
}

.footer .btn {
    border-radius: 20px;
}

/* Footer contact icons */
.footer .rounded-circle {
    width: 60px !important;
    height: 60px !important;
    transition: all 0.3s ease;
}

.footer .rounded-circle:hover {
    transform: scale(1.1);
}

/* ===== COPYRIGHT BAR ===== */
.copyright {
    background: #0d1117 !important;
    padding: 20px 0;
    font-size: 14px;
}

/* ===== CAROUSEL ARROWS ===== */
.owl-nav button,
.owl-carousel .owl-nav button {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: var(--bs-primary) !important;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.owl-nav button:hover {
    background: var(--bs-secondary) !important;
    transform: scale(1.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
    .product-item-inner-item img {
        height: 180px !important;
    }

    .product-item:hover .product-item-inner {
        transform: none;
    }
}

@media (max-width: 767px) {
    .product-item-inner-item img {
        height: 160px !important;
    }

    .product-item .h4 {
        font-size: 14px !important;
    }

    .nav-pills a {
        padding: 8px 15px !important;
        font-size: 12px;
    }
}


/* ===== ALL PRODUCT ITEMS SECTION ===== */
.productList h1,
h1:contains("All Product") {
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* Product list items */
.productImg-item,
.productList-item {
    background: #fff;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #eee !important;
    margin: 10px 5px;
}

.productImg-item img {
    object-fit: contain;
    padding: 15px;
    background: #fafafa;
    height: 120px !important;
}

/* ===== BESTSELLER PRODUCTS SECTION ===== */
.products h4.text-primary {
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
}

.products p.text-muted {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 14px;
    line-height: 1.6;
}

/* Mini product cards */
.products-mini .products-mini-item {
    background: #fff;
    border-radius: 12px !important;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.products-mini .products-mini-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.products-mini .products-mini-img {
    background: #fafafa;
    border-radius: 12px 0 0 12px;
}

.products-mini .products-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.products-mini .products-mini-content {
    padding: 15px 20px;
}

.products-mini .products-mini-content a:first-child {
    color: #999 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-mini .products-mini-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
}

/* ===== PROMO BANNER CARDS ===== */
.bg-light .border.bg-white {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bg-light .border.bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ===== SALE BANNER ===== */
.position-relative .bg-secondary,
[class*="bg-secondary"] {
    border-radius: 16px;
    overflow: hidden;
}

/* ===== SEARCH BAR ===== */
.rounded-pill.border {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee !important;
}

.rounded-pill.border:focus-within {
    box-shadow: 0 5px 25px rgba(0, 123, 255, 0.15);
    border-color: var(--bs-primary) !important;
}

/* ===== CATEGORY SIDEBAR ===== */
.categories-bars {
    padding: 0;
    margin: 0;
}

.categories-bars li {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.categories-bars li:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.categories-bars-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-bars-item a {
    color: #fff;
    font-size: 14px;
}

.categories-bars-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ===== BUTTONS GLOBAL ===== */
.btn-primary {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    border-radius: 25px;
    font-weight: 600;
}

/* ===== SMOOTH ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item,
.products-mini-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== HIDE MESSY ELEMENTS ===== */
/* Clean up any overflow issues */
.wow {
    visibility: visible !important;
}

/* Ensure consistent spacing */
section,
.container-fluid.py-5 {
    overflow: hidden;
}

/* ===== LOADING SPINNER ===== */
#spinner {
    background: #fff !important;
}

#spinner .spinner-border {
    width: 50px;
    height: 50px;
}