/* --- BRANDING & VARIABLES --- */
:root {
    /* Emerald & Dark Teal Adobe Palette */
    --brand-navy: #024959;
    --brand-navy-dark: #0b1215;
    --brand-teal-deep: #037F8C;
    --brand-teal-bright: #03A6A6;
    --brand-emerald: #2dae9a;
    --brand-bg: #F2F2F2;

    --brand-deep-blue: var(--brand-navy);
    --brand-gradient: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal-deep) 100%);

    /* UI Accents */
    --accent-red: #ef4444;
    --accent-gold: #fbbf24;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --white: #ffffff;

    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(3, 166, 150, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--brand-bg);
    color: var(--text-main);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--brand-navy);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--brand-teal-deep);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a:hover {
    color: var(--brand-magenta);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* --- HEADER --- */
header {
    background: var(--white);
    color: var(--text-main);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

header.scrolled {
    background: var(--brand-navy);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header.scrolled .logo-tech,
header.scrolled .nav-toggle,
header.scrolled .action-item {
    color: white;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-transform: uppercase;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-tech {
    color: var(--brand-navy);
    transition: color 0.3s ease;
}

.logo-img {
    max-height: 66px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease-in-out;
}

.logo-scrolled {
    display: none;
}

header.scrolled .logo-primary {
    display: none;
}

header.scrolled .logo-scrolled {
    display: block;
}

header.scrolled .logo-img {
    max-height: 66px;
}

.logo-hub {
    color: var(--brand-emerald);
    text-shadow: 0 0 10px rgba(43, 161, 173, 0.4);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.9;
}

/* Search Bar */
.search-box {
    flex: 1;
    position: relative;
    padding: 2px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--brand-emerald), var(--brand-teal-bright), var(--brand-navy), var(--brand-emerald));
    background-size: 300% 100%;
    animation: gradientMove 4s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 15px rgba(3, 166, 150, 0.2);
    transform: translateY(-1px);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.search-box form {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 13px 20px;
    padding-right: 50px;
    border-radius: var(--radius);
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--brand-emerald);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Header Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    cursor: pointer;
    position: relative;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.action-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.action-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    border: 2px solid var(--white);
}

/* --- NAVIGATION BAR --- */
.nav-bar {
    background: var(--brand-gradient);
    border-bottom: 1px solid var(--brand-teal-deep);
    overflow: visible !important;
}

.nav-bar .container {
    overflow: visible !important;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: visible !important;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-list li a i {
    font-size: 14px;
    transition: 0.3s;
}

.nav-list li a:hover {
    color: white;
}

.nav-list li:hover>a i {
    transform: rotate(180deg);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.nav-list li a:hover::after,
.nav-list li:hover>a::after {
    width: 100%;
}

.nav-list li.active a {
    color: white;
}

.nav-list li.active a::after {
    width: 100%;
}

/* Dropdown Menu Desktop */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.nav-list li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested Dropdowns */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    border-radius: 0 8px 8px 8px;
    transform: translateX(10px);
}

.dropdown-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu li {
    position: relative;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px !important;
    color: var(--text-main) !important;
    font-size: 14px;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: 0.2s;
}

.dropdown-menu li a i {
    font-size: 14px;
    transform: rotate(-90deg);
}

.dropdown-menu li a:after {
    display: none;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: var(--brand-emerald) !important;
    padding-left: 25px !important;
}

/* Mobile Sidebar Submenu */
.mobile-nav-list li {
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-item a {
    flex: 1;
    padding: 12px 0;
    border-bottom: none !important;
}

.submenu-toggle {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.submenu-toggle i {
    transition: 0.3s;
}

.submenu-active .submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding-left: 20px;
    background: #f8fafc;
    display: none;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu li a {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* --- OFFCANVAS NAV --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 1050;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.nav-sidebar.open {
    transform: translateX(0);
}

.nav-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.nav-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

.mobile-nav-list li.active a {
    color: var(--brand-emerald);
}


/* --- UTILITIES --- */
.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em;
}

/* --- LAYOUT UTILITIES --- */
.section-wrapper {
    margin: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.sec-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-magenta);
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--brand-deep-blue);
}

/* --- HERO --- */
.hero {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 420px;
}

.hero-banner {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.hero-banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.hero-banner:hover img {
    transform: scale(1.02);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 60%;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin: 15px 0 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-brand {
    background: white;
    color: var(--brand-navy);
}

.btn-brand:hover {
    background: var(--brand-emerald);
    color: white;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.promo-box {
    background: #000;
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.promo-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
    transition: 0.5s;
}

.promo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 100%);
    z-index: 2;
}

.promo-box:hover img {
    transform: scale(1.05);
}

.promo-text {
    position: relative;
    z-index: 3;
    max-width: 80%;
}

.promo-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
    font-weight: 800;
}

.promo-text p {
    font-size: 13px;
    color: var(--brand-emerald);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- NEW SECTION: SERVICE CARDS --- */
.services-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.service-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-teal-muted);
}

.s-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--brand-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.s-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.s-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- NEW SECTION: FEATURED CATEGORY --- */
.section-center-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-center-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.section-center-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cat-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    flex: 0 1 110px;
}

.cat-item i {
    font-size: 32px;
    color: var(--text-main);
    transition: 0.3s;
    stroke-width: 1px;
}

.cat-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

.cat-item:hover {
    border-color: var(--brand-magenta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cat-item:hover i {
    color: var(--brand-magenta);
    transform: scale(1.1);
}

.cat-item:hover span {
    color: var(--brand-deep-blue);
}


/* --- PRODUCT GRID --- */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-emerald);
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-deep-blue);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.p-img {
    height: 200px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.p-img img {
    max-height: 100%;
    width: auto;
    mix-blend-mode: multiply;
    transition: 0.3s;
}

.product-card:hover .p-img img {
    transform: scale(1.08);
}

.p-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.p-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
    color: var(--text-main);
}

.p-rating {
    display: flex;
    gap: 2px;
    color: var(--accent-gold);
    font-size: 12px;
    margin-bottom: 10px;
}

.p-rating span {
    color: #cbd5e1;
    font-size: 10px;
    margin-left: 5px;
    margin-top: 1px;
}

.p-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-deep-blue);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.p-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.add-cart-hover {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid var(--brand-emerald);
    color: var(--brand-emerald);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.product-card:hover .add-cart-hover {
    background: var(--brand-emerald);
    color: white;
    border-color: transparent;
}


/* Product Card Refactor Utilties */
.badge-sold-out {
    background: #64748b;
}

.currency-symbol {
    font-size: 0.7em;
    margin-right: 2px;
}

.btn-disabled {
    background: #e2e8f0 !important;
    /* Force override hover styles */
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

.btn-block-link {
    text-align: center;
    display: block;
    text-decoration: none;
}

/* --- PAGINATION --- */
.shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Target Bootstrap 5 Internal Structure - Force Clean Layout */

/* 1. Hide the mobile-only simple pagination (Previous/Next buttons) */
.shop-pagination nav>div.d-sm-none {
    display: none !important;
}

/* 2. Target the main desktop wrapper */
.shop-pagination nav>div.d-none.d-sm-flex {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
}

/* 3. Hide the "Showing results" text container (Key fix) */
.shop-pagination nav>div.d-none.d-sm-flex>div:first-child {
    display: none !important;
}

/* 4. Ensure the pagination list container is visible and flexible */
.shop-pagination nav>div.d-none.d-sm-flex>div:last-child {
    display: block;
}

.shop-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-pagination .page-item {
    margin: 0;
    padding: 0;
}

/* Double check to hide text just in case structure differs slightly */
.shop-pagination p.small.text-muted {
    display: none !important;
}

/* General Link Styling (Bootstrap uses .page-link) */
.shop-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
}

/* Active Page */
.shop-pagination .page-item.active .page-link,
.shop-pagination .page-link.active {
    background: var(--brand-deep-blue);
    color: white;
    border-color: var(--brand-deep-blue);
    z-index: 2;
}

/* --- MINI CART --- */
.mini-total {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 10px;
}

.mini-empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.mini-empty-icon {
    background: #f8fafc;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.mini-empty-icon i {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.mini-empty-text {
    font-weight: 500;
    color: var(--text-main);
}

.btn-continue-shopping {
    margin-top: 15px;
    color: var(--brand-magenta);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Hover Effects */
.shop-pagination .page-link:hover {
    border-color: var(--brand-magenta);
    color: var(--brand-magenta);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

/* Disabled Arrows */
.shop-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    color: #cbd5e1;
}

/* Fix for icons if fontawesome is used in prev/next */
.shop-pagination .page-link svg,
.shop-pagination .page-link i {
    width: 14px;
    height: 14px;
}


/* --- EXTRAS --- */
.deal-header {
    background: #ecfeff;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-teal-deep);
    font-weight: 600;
    font-size: 13px;
    margin-left: 15px;
}

.timer-box {
    display: flex;
    gap: 5px;
}

.time-block {
    background: var(--brand-teal-deep);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.mid-banner {
    background: var(--brand-gradient);
    border-radius: var(--radius);
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.mid-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
    pointer-events: none;
}

.mb-text h3 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 800;
}

.mb-btn {
    background: white;
    color: var(--brand-navy);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: 0.3s;
}

.mb-btn:hover {
    background: var(--brand-emerald);
    color: white;
    transform: scale(1.05);
}

footer {
    background: var(--brand-navy-dark);
    color: #e2e8f0;
    padding: 60px 0 20px;
    border-top: 4px solid var(--brand-emerald);
}

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

.f-col h4 {
    font-size: 15px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.f-col ul li {
    margin-bottom: 12px;
}

.f-col a {
    color: #94a3b8;
    font-size: 13px;
    transition: 0.2s;
}

.f-col a:hover {
    color: var(--brand-emerald);
    padding-left: 5px;
}

.social-icons i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.social-icons i:hover {
    color: var(--brand-emerald);
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 24px;
    color: #cbd5e1;
    margin-top: 15px;
}

/* --- SOLUTIONS GRID --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.sol-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow);
}

.sol-icon {
    width: 50px;
    height: 50px;
    background: rgba(3, 166, 150, 0.1);
    color: var(--brand-emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.sol-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.sol-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.learn-more {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.learn-more i {
    margin-left: 8px;
}

.sol-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-emerald);
}

/* --- RESPONSIVE --- */

/* Large Laptops & Small Desktops */
@media(max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
}

/* Tablets Landscape & Small Laptops */
@media(max-width: 1024px) {
    .container {
        max-width: 950px;
    }

    .hero {
        grid-template-columns: 1fr 280px;
    }

    .nav-list {
        gap: 20px;
    }
}

/* Tablets Portrait & Large Phones */
@media(max-width: 768px) {
    header {
        background: var(--brand-gradient);
        padding: 15px 0;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-tech {
        color: white;
    }

    .logo-hub {
        text-shadow: none;
        /* Cleaner on brand background */
    }

    .nav-toggle {
        display: block;
        color: white;
    }

    .nav-bar {
        display: none;
    }

    .search-box {
        order: 3;
        min-width: 100%;
        margin-top: 5px;
    }

    .user-actions {
        gap: 15px;
        margin-left: auto;
    }

    .action-item {
        color: white;
    }

    .logo-img {
        max-height: 50px;
        filter: brightness(0) invert(1);
        /* Ensure logos are visible on brand bg */
    }

    .logo-primary {
        display: none;
    }

    .logo-scrolled {
        display: block;
    }

    header.scrolled .logo-img {
        max-height: 47px;
    }

    .action-item span {
        display: none;
    }

    .hero {
        height: auto;
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .hero-banner {
        min-height: 300px;
    }

    .mid-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .services-row {
        grid-template-columns: 1fr 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .deal-header {
        margin-left: 0;
        margin-top: 5px;
    }

    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sol-card {
        padding: 20px;
    }
}

/* Mobile Phones */
@media(max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        max-height: 50px;
    }

    header.scrolled .logo-img {
        max-height: 50px;
    }

    .services-row {
        grid-template-columns: 1fr;
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .cat-item {
        padding: 10px 5px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}