﻿
:root {
    --maxw: 1200px;
    --primary: #16306b; /* deep navy */
    --accent: #f59e0b; /* gold */
    --muted: #6b7280;
    --radius: 12px;
    --card-bg: #ffffff;
    --glass: rgba(22,48,107,0.04);
    --shadow-lg: 0 30px 80px rgba(14,30,37,0.06);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
    color: #071129;
    background: #ffffff;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.container-xl {
    max-width: var(--maxw);
}

/* ========== Sticky Header ========== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #f1f5f9;
}

.brand {
    font-family: 'Poppins',sans-serif;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.3px;
    font-size: 1.15rem;
}

.nav-main {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav-link {
    color: #334155;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

    .nav-link:hover {
        background: var(--glass);
        color: var(--primary);
        text-decoration: none;
    }

/* Dropdown */
.dropdown-menu-custom {
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-lg);
    padding: 12px;
    background: #fff;
}

.dropdown-item-custom {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #111827;
}

/* Mobile */
.hamburger {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
}

@media (max-width:991px) {
    .nav-main {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* ========== Hero Slider ========== */
.hero-wrap {
    margin-top: 8px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 540px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 48px;
    transition: opacity .8s ease, transform .8s ease;
    opacity: 0;
    transform: scale(.995);
    background-size: cover;
    background-position: center;
    color: #fff;
}

    .slide.in {
        opacity: 1;
        transform: scale(1);
    }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,17,41,0.55) 0%, rgba(7,17,41,0.2) 60%);
}

.slide-content {
    width: 60%;
    z-index: 2;
}

.slide h2 {
    font-family: 'Poppins',sans-serif;
    font-size: 2.1rem;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.04;
}

.slide p.lead {
    color: rgba(255,255,255,0.92);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.slide .btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 3;
}

.btn-hero {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg,var(--primary), #0b5bf0);
    color: #fff;
    box-shadow: 0 12px 36px rgba(11,91,240,0.12);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 40;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}

    .dot.active {
        background: #fff;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

/* ========== Trending ticker (unique scrolling bar) ========== */
.ticker {
    margin-top: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg,#fff,#fff);
    border: 1px solid #f1f5f9;
    padding: 10px 14px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

    .ticker .label {
        background: var(--primary);
        color: #fff;
        padding: 6px 10px;
        border-radius: 8px;
        font-weight: 700;
        font-size: .85rem;
    }

    .ticker .track {
        white-space: nowrap;
        display: inline-block;
        animation: ticker 20s linear infinite;
        color: var(--muted);
        font-weight: 600;
    }

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== Featured products (3 cards) ========== */
.featured-products {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 20px;
}

.prod-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-lg);
    transition: transform .18s ease;
    overflow: hidden;
}

    .prod-card:hover {
        transform: translateY(-8px);
    }

.prod-thumb {
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

    .prod-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .6s cubic-bezier(.2,.9,.3,1);
    }

.prod-card:hover .prod-thumb img {
    transform: scale(1.06);
}

.prod-info {
    padding-top: 10px;
}

.rating {
    color: #f59e0b;
    font-weight: 800;
}

.price {
    font-weight: 800;
    color: #071129;
    font-size: 1.05rem;
}

/* ========== Blog highlight grid (4 items) ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-top: 28px;
}

.post-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef2f6;
    box-shadow: 0 18px 40px rgba(2,6,23,0.04);
    cursor: pointer;
    transition: transform .16s ease;
}

    .post-card:hover {
        transform: translateY(-6px);
    }

    .post-card img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        display: block;
    }

.post-meta {
    padding: 12px;
}

/* ========== Footer professional ========= */
footer {
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid #f1f5f9;
    color: var(--muted);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: all .7s cubic-bezier(.2,.9,.3,1);
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width:1199px) {
    .hero-slider {
        height: 520px;
    }

    .hero .slide-content {
        width: 62%;
    }
}

@media (max-width:991px) {
    .hero-slider {
        height: 480px;
        padding: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .featured-products {
        grid-template-columns: repeat(1,1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(1,1fr);
    }

    .slide h2 {
        font-size: 1.35rem;
    }

    .slide p.lead {
        font-size: .98rem;
    }

    .nav-main {
        display: none;
    }
}


