:root {
    --primary: #04439b;
    --primary-dark: #073371;
    --primary-soft: #eef5ff;
    --secondary: #0a7fbc;
    --dark: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --body: #f7f9fc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #15803d;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--body);
    color: var(--dark);
    text-align: right;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container-fluid,
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Utilities */

.font-white {
    color: white;
}

.font-grey {
    color: grey;
}

.font-bold,
.f-bold {
    font-weight: 700;
}

.font-bolder {
    font-weight: 900;
}

.font-red {
    color: tomato;
}

.font-blue {
    color: var(--primary);
}

.font-blue2 {
    color: var(--secondary);
}

.font-black {
    color: #242424;
}

.bg-blue {
    background-color: var(--primary);
}

.bg-green {
    background-color: rgb(37, 155, 37);
}

.bg-grey {
    background-color: rgb(245, 245, 245);
}

.bg-grey2 {
    background-color: rgb(199, 199, 199);
}

.bg-white {
    background-color: white;
}

.bg-second {
    background-color: #f1f4f7;
}

.anchor-c {
    text-decoration: none;
}

.anchor-c:hover {
    text-decoration: none;
}

.strong-text {
    font-weight: 900;
}

.mont-font {
    font-family: 'Montserrat', sans-serif;
}

.raduis-50 {
    border-radius: 50px;
}

/* Navbar */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.site-navbar-inner {
    min-height: 82px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.site-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    align-items: center;
    gap: 8px;
}

.site-menu a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-menu a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-actions a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #f3f6fb;
    transition: 0.2s ease;
    position: relative;
}

.site-actions a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 800;
}

/* Offcanvas */

.offcanvas {
    --bs-offcanvas-width: 430px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: flex;
    padding: 15px 20px;
    color: var(--dark);
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-list li a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.soft-modal {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
}

/* Search result */

.search-result {
    margin-block: 10px;
    border-radius: 16px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: 0.2s ease;
}

.search-result:hover {
    background: var(--primary-soft);
}

.search-result a {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.search-result a img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.search-result a .caption {
    flex: 1;
    margin-inline-start: 14px;
}

.search-result .caption h5 {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 3px;
}

.search-result .caption p {
    font-size: 0.78rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* Hero */

.home-hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(10, 127, 188, 0.55), transparent 34%),
        linear-gradient(110deg, rgba(4, 67, 155, 0.92), rgba(7, 51, 113, 0.72), rgba(15, 23, 42, 0.54));
    z-index: -1;
}

.home-hero-content {
    max-width: 760px;
    padding: 90px 0;
    color: white;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.2;
    font-weight: 900;
    max-width: 680px;
    margin-bottom: 18px;
}

.home-hero p {
    max-width: 610px;
    font-size: 1.12rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-hero-primary,
.btn-hero-light {
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
}

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

.btn-hero-primary:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.btn-hero-light {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
}

.btn-hero-light:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.hero-cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0 6px;
    scrollbar-width: none;
}

.hero-cats::-webkit-scrollbar {
    display: none;
}

.hero-cats a {
    white-space: nowrap;
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.hero-cats a:hover {
    background: white;
    color: var(--primary);
}

/* Sections */

.home-main {
    background:
        radial-gradient(circle at 90% 8%, rgba(4, 67, 155, 0.08), transparent 28%),
        var(--body);
}

.brands-section,
.products-section,
.price-types-section,
.map-section {
    padding: 70px 0;
}

.brands-section {
    background: white;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading span {
    display: block;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    margin: 0;
}

.section-heading.with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-link {
    color: var(--primary);
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    transition: 0.2s ease;
}

.section-link:hover {
    background: var(--primary);
    color: white;
}

/* Brands */

.brand-card {
    height: 108px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.brand-card img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

/* Product card */

.product-swiper {
    padding: 8px 4px 28px;
}

.product-card {
    position: relative;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    background: white;
    padding: 24px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.25s ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.product-title {
    min-height: 52px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 800;
}

.product-title a {
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.product-price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}

.product-old-price {
    color: var(--danger);
    font-size: 0.92rem;
    text-decoration: line-through;
    font-family: 'Montserrat', sans-serif;
}

.product-cart-btn,
.soft-btn-primary {
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-cart-btn:hover,
.soft-btn-primary:hover {
    color: white;
    filter: brightness(1.06);
}

.product-badge {
    position: absolute;
    top: 14px;
    z-index: 5;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.product-badge-new {
    right: 14px;
    background: #dcfce7;
    color: var(--success);
}

.product-badge-sale {
    left: 14px;
    background: #fee2e2;
    color: #b91c1c;
}

/* Price types */

.price-type-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    box-shadow: var(--shadow);
}

.price-type-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.price-type-card h3 a {
    color: var(--primary);
}

.price-type-card>span {
    color: var(--muted);
    font-weight: 700;
}

.price-type-card ul {
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
}

.price-type-card li {
    border-top: 1px solid var(--border);
}

.price-type-card li a {
    display: block;
    padding: 11px 0;
    color: #374151;
    font-weight: 600;
    line-height: 1.7;
}

.price-type-card li a:hover {
    color: var(--primary);
}

/* Map */

.map-box {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Cart */

.cart-line-item {
    padding: 14px 16px;
}

.cart-item-thumb {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 14px;
    background: #f3f6fb;
    border: 1px solid var(--border);
}

.cart-item-title {
    color: var(--dark);
    line-height: 1.6;
}

.cart-summary {
    background: #ffffff;
}

/* Footer */

.site-footer {
    background: linear-gradient(135deg, #073371, #04439b);
    color: white;
    padding: 55px 0 18px;
}

.footer-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.footer-top h5 {
    font-weight: 900;
    margin-bottom: 8px;
}

.footer-top p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.16);
    margin: 30px 0;
}

.site-footer h6 {
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-inline-start: 4px;
}

.footer-links address {
    margin: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a {
    color: white;
}

/* Social */

.social-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.social-list a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    transition: 0.2s ease;
}

.social-list a:hover {
    transform: translateY(-2px);
    background: white;
    color: var(--primary);
}

/* Legacy compatibility */

.card {
    position: relative;
    border: 0;
    border-radius: var(--radius);
}

.card-title {
    color: var(--primary);
    font-weight: 800;
}

.card-text {
    color: grey;
}

.card-img-top {
    object-fit: contain;
    height: 200px;
}

.type-col {
    background-color: var(--primary);
    color: white;
    padding: 10px;
}

.type-row {
    background-color: #eeeeee;
    color: var(--primary);
    padding: 10px 0;
    margin-top: 2px;
}

.spec-detail {
    padding: 10px;
    background: linear-gradient(270deg, rgba(4, 67, 155, 1) 0%, rgba(132, 180, 255, 0.72) 84%, rgba(132, 180, 255, 0) 100%);
    color: white;
}

/* Responsive */

@media (max-width: 991px) {
    .site-navbar-inner {
        min-height: 74px;
        padding: 0 16px;
    }

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

    .home-hero {
        min-height: auto;
    }

    .home-hero-content {
        padding: 70px 0;
    }

    .brands-section,
    .products-section,
    .price-types-section,
    .map-section {
        padding: 46px 0;
    }

    .section-heading.with-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-image-wrap {
        height: 235px;
    }
}

@media (max-width: 575px) {
    .site-actions a {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .home-hero h1 {
        font-size: 2.1rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .product-image-wrap {
        height: 220px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}