:root {
    --primary: #1a7bbf;
    --primary-dark: #135d93;
    --primary-light: #e8f4fd;
    --accent: #f0a500;
    --text-dark: #1e2a35;
    --text-mid: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-section: #eef6fb;
    --border: #d9e8f5;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(26, 123, 191, .10);
    --shadow-md: 0 6px 24px rgba(26, 123, 191, .15);
    --transition: .25s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    font-size: 15px;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── TOP BAR ─── */
.topbar {
    background: var(--primary-dark);
    color: #cde8f8;
    font-size: 13px;
    padding: 6px 0;
}

.topbar a {
    color: #cde8f8;
}

.topbar a:hover {
    color: #fff;
}

.topbar .sep {
    margin: 0 10px;
    opacity: .4;
}

/* ─── NAVBAR ─── */
.main-nav {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 52px;
}

.brand-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.btn-cart {
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-md);
    padding: 8px 20px !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cart-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    left: -5px;
}

.phone-badge {
    background: var(--primary-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
    direction: ltr;
}

/* ─── HERO SLIDER ─── */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    opacity: .88;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, .3);
    transition: var(--transition);
}

.hero-slider .carousel-control-prev {
    right: auto;
    left: 16px;
}

.hero-slider .carousel-control-next {
    left: auto;
    right: 16px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: var(--primary);
}

.hero-slider .carousel-indicators {
    bottom: 16px;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: .6;
    transition: var(--transition);
}

.hero-slider .carousel-indicators .active {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item img {
        height: 220px;
    }
}

/* ─── SECTION TITLE ─── */
.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, var(--border), transparent);
    border-radius: 2px;
}

.section-title::after {
    background: linear-gradient(to right, var(--border), transparent);
}

/* ─── PRODUCT CATEGORIES ─── */
.products-section {
    background: var(--bg-light);
    padding: 52px 0;
}

.cat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform .35s ease;
}

.cat-card:hover img {
    transform: scale(1.05);
}

.cat-card-body {
    padding: 12px 10px;
    background: linear-gradient(to bottom, var(--white), var(--primary-light));
}

.cat-card-body span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
}

.cat-card-body small {
    font-size: 12px;
    color: var(--text-light);
}

/* ─── USE CASES ─── */
.uses-section {
    background: var(--bg-section);
    padding: 52px 0;
}

.use-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

.use-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.use-card:hover img {
    transform: scale(1.07);
}

.use-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 50, 80, .8));
    color: #fff;
    text-align: center;
    padding: 28px 8px 10px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── FOOTER ─── */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, .8);
    padding: 52px 0 0;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 18px;
}

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

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a:hover {
    color: #fff;
    padding-right: 4px;
}

footer ul li a i {
    color: var(--primary);
    font-size: 12px;
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 2;
    color: rgba(255, 255, 255, .65);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item i {
    color: var(--accent);
    font-size: 16px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    margin-left: 8px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 40px;
    padding: 18px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    text-align: center;
}

.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Additional UI components */
.product-item,
.article-item {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.btn-custom {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    transition: var(--transition);
}

.btn-custom:hover {
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .topbar .d-none-sm {
        display: none !important;
    }
}
