/* 
   Energy Trade International - Component Stylesheet
   Contains styling for Header, Footer, Cards, Modals, Forms, and Admin Panels.
*/

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(4px);        /* Reduced from 12px — heavy blur triggers repaint on every scroll pixel */
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease; /* Only animate cheap props */
    transform: translateZ(0);          /* Own GPU compositor layer */
    -webkit-transform: translateZ(0);
    will-change: background;           /* Hint browser about upcoming change */
}

.site-header.scrolled {
    background: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Desktop Call Button inside Navigation */
.desktop-call-btn {
    display: block;
}

/* Header Actions (Call button + Hamburger on mobile) */
.header-actions {
    display: none; /* Hidden on desktop so it doesn't affect flex layout */
}

@media (max-width: 768px) {
    .desktop-call-btn {
        display: none; /* Hide desktop version inside mobile nav dropdown */
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-call-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .mobile-call-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 55px;
    align-self: flex-start;
}

.footer-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-color-muted);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--text-color-muted);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-muted);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- PRODUCT CARD --- */
.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    /* Fast and premium transition curve */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Soft premium base shadow */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    /* Own GPU compositor layer */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-card:hover {
    /* Lift card up and add a glowing gold shadow (matching brand section physics) */
    transform: translateY(-5px) translateZ(0);
    border-color: rgba(253, 184, 19, 0.45);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22), 0 0 15px rgba(253, 184, 19, 0.1);
}

.product-image-container {
    background: var(--product-img-bg);
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 180px; /* Increased from 150px to make the card size slightly larger and more proportional */
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    /* Contain the gradient background — prevents layout recalc on scroll */
    contain: layout style;
    /* Own compositor layer so image scale doesn't affect parent */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius-md) - 4px);
    /* Snappy transition matching hover behavior */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Prevent sub-pixel rendering flicker on scale */
    transform: scale(1) translateZ(0);
    -webkit-transform: scale(1) translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-card:hover .product-image {
    /* Subtle premium scale zoom-in */
    transform: scale(1.06) translateZ(0);
    -webkit-transform: scale(1.06) translateZ(0);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-specs-brief {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 12px 0;
    text-align: center;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-color-muted);
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.product-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}

.product-price-action > div {
    min-width: 0;       /* allow text to wrap/truncate instead of pushing button */
    flex: 1;
}

.product-price-action .btn {
    flex-shrink: 0;     /* button never shrinks regardless of sibling text length */
    white-space: nowrap;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- STATS CARD --- */
.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-color);
}

/* --- SPECIFICATIONS TABLE --- */
.tech-table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tech-table th, .tech-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.tech-table th {
    background-color: var(--surface-color);
    font-weight: 600;
    color: var(--primary);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* --- MODAL DIALOG --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay-bg);
    backdrop-filter: var(--glass-blur);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- WHATSAPP FLOATING WIDGET --- */
/* GPU-composited ripple: pseudo-element uses only transform+opacity
   so the ripple runs entirely on the compositor — zero paint cost. */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Static shadow — NOT animated, so no repaint */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    z-index: 999;
    font-size: 1.8rem;
    transform: translateZ(0);      /* own GPU layer */
    -webkit-transform: translateZ(0);
    isolation: isolate;
}

/* Ripple ring — opacity+transform only = compositor thread */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.55);
    animation: whatsappRipple 2s ease-out infinite;
    transform-origin: center;
    will-change: transform, opacity;
    z-index: -1;
}

@keyframes whatsappRipple {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0;   }
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.08) translateZ(0);
}

/* --- ADMIN PANEL SPECIFIC --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.admin-logo-section {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-color-muted);
    font-weight: 500;
}

.admin-menu-item.active a, .admin-menu-item a:hover {
    color: var(--primary);
    background-color: rgba(253, 184, 19, 0.05);
    border-left: 3px solid var(--primary);
}

.admin-content-area {
    margin-left: 260px;
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 70px;
    }
    .admin-logo-section h3, .admin-menu-item span {
        display: none;
    }
    .admin-content-area {
        margin-left: 70px;
        padding: 20px;
    }
}

/* Admin Dashboard Stat Box Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(253, 184, 19, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-data h4 {
    font-size: 1.8rem;
    color: var(--text-color);
}

.admin-stat-data p {
    font-size: 0.85rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Table design */
.admin-table-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.admin-table th {
    background-color: var(--bg-color);
    color: var(--text-color-muted);
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.action-btn-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.action-btn-edit { background-color: var(--primary); color: #000; }
.action-btn-delete { background-color: var(--error); color: #fff; }
.action-btn-view { background-color: rgba(255, 255, 255, 0.1); color: #fff; }

/* Admin login page styling */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

/* --- WIDE HOME SLIDER --- */
.wide-slider-section {
    padding: 20px 0;
    position: relative;
}

.slider-grid-wrapper {
    display: grid;
    grid-template-columns: 1920fr 500fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .slider-grid-wrapper {
        grid-template-columns: 1920fr 500fr;
        gap: 16px;
        align-items: stretch;
    }
}

.wide-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 980;
    height: auto; /* Allow fluid scaling based on aspect-ratio */
    border-radius: var(--border-radius-md); /* Reduced rounded corners from lg (24px) to md (14px) */
    overflow: hidden;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.vertical-promo-banner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    box-shadow: var(--box-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Own compositor layer — prevents repaint on scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.vertical-promo-banner:hover {
    border-color: rgba(253, 184, 19, 0.25);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

.vertical-promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;          /* remove inline gap */
    /* No transition on img — prevents repaint on hover scroll */
}

.vertical-promo-banner:hover img {
    transform: scale(1.03);
}

/* --- BRAND SHOWCASE GRID & SQUARE CARDS --- */
.brand-showcase-section {
    padding: 20px 0;
    position: relative;
}

.brand-title-text {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    background: var(--heading-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.brand-title-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.brand-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
}

.brand-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--glass-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    aspect-ratio: 1 / 1;
    padding: 8px;           /* small padding = visible border ring around image */
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-logo-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-radius: calc(var(--border-radius-sm) - 4px);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fill entire box */
    transition: var(--transition);
    border-radius: calc(var(--border-radius-sm) - 4px);
}

.brand-name-label {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.45) 60%, rgba(13, 15, 18, 0) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 25px 8px 12px 8px; /* deep padding for strong text contrast */
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 3;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover States */
.brand-photo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(253, 184, 19, 0.45);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.brand-photo-card:hover .brand-logo {
    transform: scale(1.06);
}

.brand-photo-card:hover .brand-name-label {
    color: var(--primary);
}

/* Subtle radial gold glow inside the card on hover */
.brand-photo-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(253, 184, 19, 0.12) 0%, rgba(253, 184, 19, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.brand-photo-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .brand-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .brand-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .brand-photo-card {
        padding: 4px;
    }
    .brand-name-label {
        font-size: 0.72rem;
        padding: 16px 4px 6px 4px;
    }
}

/* Hero Title 1-Line Styling */
.hero-title {
    font-size: clamp(2.15rem, 4.4vw, 3.35rem);
    line-height: 1.25;
    font-weight: 800;
    background: var(--heading-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 576px) {
    .hero-title {
        white-space: nowrap;
    }
}

.wide-slider-container:hover {
    border-color: rgba(253, 184, 19, 0.25);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

.wide-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
    text-decoration: none;
}

.wide-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-media-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Semi-transparent dark overlay - disabled for maximum image clarity */
.slide-media-wrap::after {
    display: none;
}

body.light-theme .slide-media-wrap::after {
    display: none;
}

.slide-media-wrap video,
.slide-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content-wrap {
    position: absolute;
    right: 75px;
    bottom: 25px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    width: auto;
    padding: 0;
}

@media (max-width: 768px) {
    .slide-content-wrap {
        right: 60px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .slide-content-wrap {
        right: 20px;
        bottom: 15px;
    }
}

.slide-caption-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    background: var(--heading-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.wide-slide.active .slide-caption-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-caption-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-color-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.4s;
}

.wide-slide.active .slide-caption-desc {
    opacity: 1;
    transform: translateY(0);
}

.slide-caption-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.6s;
}

.wide-slide.active .slide-caption-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.wide-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(23, 27, 34, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.wide-slider-arrow:hover {
    background: var(--primary);
    color: #0D0F12;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.wide-slider-prev {
    left: 20px;
}

.wide-slider-next {
    right: 20px;
}

.wide-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.wide-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

body.light-theme .wide-slider-dot {
    background: rgba(0, 0, 0, 0.15);
}

.wide-slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-grid-wrapper {
        grid-template-columns: 1920fr 500fr !important;
        gap: 12px !important;
        align-items: stretch;
    }
    .vertical-promo-banner {
        height: 100% !important;  /* keep equal to slider height */
    }
    .wide-slider-container {
        height: auto !important;
    }
    .slide-content-wrap {
        padding: 0 40px;
    }
    .wide-slider-arrow {
        width: 36px;
        height: 36px;
    }
    .wide-slider-prev { left: 10px; }
    .wide-slider-next { right: 10px; }
}

@media (max-width: 480px) {
    .wide-slider-container {
        height: auto !important;
    }
    .vertical-promo-banner {
        height: 100% !important;  /* keep equal to slider height */
    }
    .slide-content-wrap {
        padding: 0 25px;
    }
    .wide-slider-arrow {
        display: none; /* Hide arrows on tiny screens */
    }
}
/* --- SUBPAGE HEADER RESPONSIVENESS --- */
.subpage-header {
    background: radial-gradient(circle at 10% 20%, rgba(253, 184, 19, 0.05) 0%, var(--bg-color) 70%);
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .subpage-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .subpage-header h1 {
        font-size: 1.8rem !important;
    }
}

/* --- HERO SECTION LAYOUT OVERRIDE --- */
.hero-section {
    background: radial-gradient(circle at 70% 30%, rgba(253, 184, 19, 0.08) 0%, var(--bg-color) 70%);
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 75px; /* Reduced and made equal on top and bottom */
    padding-bottom: 75px;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* --- RESPONSIVE HELPERS FOR ALIGNMENTS --- */
.hero-card-wrapper {
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 100%;
}

.hero-card-desc {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .hero-card-desc {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .hero-card-wrapper {
        justify-content: center;
        margin-top: 25px;
    }
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 576px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- MOBILE RESPONSIVE LAYOUT OVERRIDES --- */

/* 1. Hero / Importer & Prostutkaron Section Centering on Mobile */
@media (max-width: 576px) {
    .hero-section {
        text-align: center !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .hero-text-content {
        align-items: center !important;
    }
    .hero-text-content .badge {
        align-self: center !important;
    }
    .hero-buttons-wrap {
        justify-content: center !important;
        width: 100%;
        gap: 10px !important;
    }
    .hero-buttons-wrap .btn {
        flex: 1 1 auto;
        min-width: 140px;
        text-align: center;
        justify-content: center;
    }
}

/* 2. Onumodito Dealer Section (3 Cards Side-by-Side) */
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .stats-counter-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    .stat-card {
        padding: 15px 8px !important;
        border-radius: var(--border-radius-sm) !important;
    }
    .stat-number {
        font-size: 1.7rem !important;
        margin-bottom: 4px !important;
    }
    .stat-label {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 480px) {
    .stats-counter-grid {
        gap: 8px !important;
    }
    .stat-card {
        padding: 10px 4px !important;
    }
    .stat-number {
        font-size: 1.25rem !important;
    }
    .stat-label {
        font-size: 0.62rem !important;
    }
}

/* 3. Factory Direct Branding (USP Card) & Why Our Battery is Best Heading */
.brand-usp-card {
    transition: var(--transition);
}
.usp-heading {
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .brand-usp-card {
        height: 320px !important;
    }
    .brand-usp-card > div {
        padding: 25px !important;
    }
}

@media (max-width: 576px) {
    .usp-heading {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .brand-usp-card {
        height: 270px !important;
    }
    .brand-usp-card > div {
        padding: 20px 12px !important;
    }
    .brand-usp-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 8px !important;
    }
    .brand-usp-card p {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
}

/* 4. Amader Ponno Shomuho (Featured Products: 2 Cards Side-by-Side) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .products-grid .product-image-container {
        height: 135px !important; /* Increased from 120px to make cards look larger on mobile */
        padding: 6px !important;    /* keep small border ring on mobile */
    }
    .products-grid .product-content {
        padding: 10px 8px !important;
    }
    .products-grid .product-title {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        min-height: 2.6em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .products-grid .product-desc {
        display: none !important;
    }
    .products-grid .product-specs-brief {
        gap: 4px !important;
        margin-bottom: 8px !important;
        padding: 6px 0 !important;
    }
    .products-grid .spec-label {
        font-size: 0.58rem !important;
    }
    .products-grid .spec-value {
        font-size: 0.7rem !important;
    }
    .products-grid .product-price-action {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .products-grid .product-price {
        font-size: 1.05rem !important;
        text-align: center !important;
        margin-bottom: 2px;
    }
    .products-grid .product-price-action .btn {
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* 5. Footer Centering & Column Spacing on Mobile */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 16px !important;
        text-align: center !important;
    }
    .footer-info {
        grid-column: span 2 !important;
        align-items: center !important;
    }
    .footer-facebook-follow {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-logo {
        align-self: center !important;
    }
    .footer-info .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer-nav-col {
        text-align: left !important;
        padding-left: 10px;
    }
    .footer-nav-col .footer-title::after {
        left: 0 !important;
        transform: none !important;
    }
    .footer-contact-col {
        grid-column: span 2 !important;
        text-align: left !important;
        padding-left: 10px;
    }
    .footer-contact-col .footer-title::after {
        left: 0 !important;
        transform: none !important;
    }
    .footer-contact-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px 15px !important;
        margin-top: 10px;
        width: 100%;
    }
    .footer-contact-list li {
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 0.8rem !important;
        align-items: center !important;
    }
    .footer-contact-list li:first-child {
        width: 100% !important;
        align-items: flex-start !important;
    }
}

/* 6. USP Section Text Justification (Why Our Battery is Best) */
.usp-grid-container p,
.usp-grid-container span {
    text-align: justify !important;
    text-justify: inter-word !important;
}

@media (max-width: 768px) {
    .usp-grid-container {
        gap: 28px !important;
    }
}

/* 7. Global Mobile Page Padding Optimizations */
@media (max-width: 576px) {
    /* Reduce container margins to give more width to content */
    .container {
        padding: 0 16px !important;
    }
    
    /* Optimize vertical spacing between sections to reduce scrolling */
    .section {
        padding: 40px 0 !important;
    }
    
    /* Stats counter needs extra tight padding to fit cards comfortably */
    .stats-section {
        padding: 24px 0 !important;
    }
}

/* 8. Footer Social Links Styling */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-color-muted);
    transition: var(--transition);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: rgba(253, 184, 19, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 184, 19, 0.15);
}
