:root {
    --enerva-dark-blue: #0b2545;
    --enerva-green: #1f9d55;
    --enerva-white: #ffffff;
    --enerva-light: #f5f7fa;
}

body {
    color: #1c2530;
}

.navbar-enerva {
    background-color: var(--enerva-dark-blue);
}

.navbar-enerva .nav-link {
    color: rgba(255,255,255,.85);
}

.navbar-enerva .nav-link:hover,
.navbar-enerva .nav-link.active {
    color: var(--enerva-white);
}

.btn-enerva {
    background-color: var(--enerva-green);
    border-color: var(--enerva-green);
    color: #fff;
}

.btn-enerva:hover {
    background-color: #17843f;
    border-color: #17843f;
    color: #fff;
}

.btn-outline-enerva {
    border-color: var(--enerva-green);
    color: var(--enerva-green);
}

.btn-outline-enerva:hover {
    background-color: var(--enerva-green);
    color: #fff;
}

.hero-banner {
    background:
        linear-gradient(90deg, rgba(67, 67, 183, 0.92) 0%, rgba(29, 42, 59, 0.88) 100%),
        url('../images/bat4.jpg') center center / cover no-repeat;
    color: #fff;
}

.section-light {
    background-color: var(--enerva-light);
}

/* Icon accents */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(31,157,85,.12);
    color: var(--enerva-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.category-icon-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(11,37,69,.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
}

.category-card { position: relative; }

.industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--enerva-dark-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease;
}

.social-icon:hover {
    background-color: var(--enerva-green);
    color: #fff;
}

.category-card, .product-card, .article-card {
    border: 1px solid #e7eaf0;
    border-radius: .5rem;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
    height: 100%;
}

.category-card:hover, .product-card:hover, .article-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(11,37,69,.12);
    transform: translateY(-2px);
}

.product-card img, .category-card img, .article-card > a > img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    display: block;
}

.price-strike {
    text-decoration: line-through;
    color: #8a94a3;
    font-size: .9rem;
}

.badge-stock-in { background-color: var(--enerva-green); }
.badge-stock-out { background-color: #b3261e; }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.25);
    z-index: 1040;
    font-size: 1.5rem;
    text-decoration: none;
}

.whatsapp-float:hover { color: #fff; }

.footer-enerva {
    background-color: var(--enerva-dark-blue);
    color: rgba(255,255,255,.8);
}

.footer-enerva a {
    color: rgba(255,255,255,.8);
}

.footer-enerva a:hover {
    color: #fff;
}

.spec-table th {
    width: 40%;
    background-color: var(--enerva-light);
}

/* ---------------------------------------------------------------
   Product image gallery (Amazon / Alibaba style)
   --------------------------------------------------------------- */
.product-gallery__main-wrap {
    display: block;
    width: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: .5rem;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.product-gallery__main-wrap::after {
    content: "\F52E"; /* bootstrap-icons zoom-in glyph */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,37,69,.7);
    color: #fff;
    border-radius: 50%;
    font-size: 1.05rem;
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}

.product-gallery__main-wrap:hover::after {
    opacity: 1;
}

.product-gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.product-gallery__thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.product-gallery__thumb {
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid #e7eaf0;
    border-radius: .4rem;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__thumb.is-active {
    border-color: var(--enerva-blue, #0b2545);
}

/* ---------------------------------------------------------------
   Lightbox / zoom viewer
   --------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1.5rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__stage {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .1s ease-out;
    will-change: transform;
}

.lightbox__img.is-zoomed {
    cursor: grab;
    transform: scale(var(--lightbox-zoom, 2));
}

.lightbox__img.is-zoomed:active {
    cursor: grabbing;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255,255,255,.3);
}

.lightbox__close {
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: .25rem .75rem;
    border-radius: 1rem;
    font-size: .85rem;
}

.btn-enerva-zoom {
    border: none;
}

/* ---------------------------------------------------------------
   Admin image gallery – sortable items
   --------------------------------------------------------------- */
#imageSortable .image-item {
    cursor: default;
}

#imageSortable .image-item.dragging {
    opacity: .5;
}

#imageSortable .drag-handle {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    cursor: grab;
}

#imageSortable .drag-handle:active {
    cursor: grabbing;
}
