@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-soft: #dbeafe;
    --primary-muted: #eff6ff;
    --accent: #0ea5e9;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(29, 78, 216, 0.1);
    --shadow-lg: 0 20px 50px rgba(29, 78, 216, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Top Bar ── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color var(--transition);
}

.top-bar a:hover { color: #fff; }

.top-bar i { color: var(--accent); }

/* ── Navbar ── */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.navbar-brand img,
.navbar-brand .logo-svg {
    height: 44px;
    width: auto;
}

.brand-text {
    line-height: 1.1;
}

.brand-text .brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.brand-text .brand-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-muted);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-nav-cta {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.5rem 1.4rem !important;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 8px;
}

.dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 14px;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-muted);
    color: var(--primary);
}

/* ── Buttons ── */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 50px;
    padding: 10px 26px;
    font-weight: 600;
    transition: all var(--transition);
}

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

/* ── Hero ── */
.hero-slider { position: relative; }

.hero-slide {
    height: 580px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(29, 78, 216, 0.65) 50%, rgba(14, 165, 233, 0.4) 100%);
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.hero-overlay h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-overlay .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-actions .btn-light {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-actions .btn-outline-light {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    border-width: 2px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0 20px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
}

.carousel-indicators .active {
    background: #fff;
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-item .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-muted);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.stat-item .stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-tag {
    display: inline-block;
    background: var(--primary-muted);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--gray-500);
    max-width: 550px;
    margin: 0.5rem auto 0;
}

/* ── Category Cards ── */
.category-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card .card-img-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.category-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.category-card .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,58,138,0.5), transparent);
}

.category-card .card-body {
    padding: 1.2rem;
    text-align: center;
}

.category-card .card-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
    margin: 0;
}

.category-card .card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-muted);
    color: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.category-card:hover .card-arrow {
    background: var(--primary);
    color: #fff;
}

/* ── Product Cards ── */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.product-card .product-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.product-card .card-body {
    padding: 1.2rem;
}

.product-card .card-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 0.82rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card .product-cta {
    display: inline-block;
    background: var(--primary-muted);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
}

.product-card .card-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 0.6rem;
}

/* ── Features ── */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    height: 100%;
}

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

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-muted), var(--primary-soft));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-banner h3 {
    font-weight: 800;
    font-size: 1.8rem;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ── Page Hero ── */
.page-hero {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(29, 78, 216, 0.7));
}

.page-hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.page-hero .breadcrumb-item.active {
    color: #fff;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ── Sidebar Filter ── */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.filter-sidebar .filter-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 1rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.filter-sidebar .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-sidebar .filter-list li a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}

.filter-sidebar .filter-list li a:hover,
.filter-sidebar .filter-list li.active a {
    background: var(--primary-muted);
    color: var(--primary);
    border-left-color: var(--primary);
}

.filter-sidebar .filter-sub a {
    padding-left: 2rem !important;
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
}

/* ── Search Box ── */
.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 10px 20px 10px 44px;
    font-size: 0.9rem;
    transition: border-color var(--transition);
    width: 100%;
}

.search-box input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-muted);
    outline: none;
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Product Detail ── */
.product-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.product-gallery-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.product-detail-info h1 {
    font-weight: 800;
    color: var(--gray-900);
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.product-detail-info .product-sku {
    color: var(--gray-500);
    font-size: 0.88rem;
}

.product-detail-info .product-price-lg {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.specs-table {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.specs-table th {
    background: var(--primary-muted);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.88rem;
    width: 40%;
    padding: 12px 16px;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* ── About / Vision ── */
.about-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.about-content p { margin-bottom: 1.2rem; }

.about-image-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.vision-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    height: 100%;
}

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

.vision-card .vision-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.vision-card .card-body {
    padding: 2rem;
}

.vision-card .vision-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-muted);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.vision-card h2 {
    font-weight: 800;
    color: var(--gray-900);
    font-size: 1.5rem;
}

.gallery-grid img {
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ── Contact ── */
.contact-info-card {
    background: var(--primary-muted);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon-wrap {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-info-item h6 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
    text-decoration: none;
}

.contact-info-item a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid var(--gray-100);
}

.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.contact-form-card .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color var(--transition);
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-muted);
}

/* ── Footer ── */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.site-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.9rem;
}

.site-footer a:hover { color: #fff; }

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-brand img,
.site-footer .footer-brand .logo-svg {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* ── Pagination ── */
.pagination .page-link {
    border: none;
    color: var(--gray-700);
    font-weight: 600;
    border-radius: 10px !important;
    margin: 0 3px;
    padding: 8px 14px;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--primary-muted);
    color: var(--primary);
}

/* ── Alerts ── */
.alert-flash {
    border: none;
    border-radius: 0;
    font-weight: 500;
    padding: 12px 0;
}

.alert-flash.alert-success {
    background: #ecfdf5;
    color: #065f46;
}

.alert-flash.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-section-light { background: var(--gray-50); }
.bg-section-blue { background: var(--primary-muted); }

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-slide { height: 450px; }
    .hero-overlay h1 { font-size: 2.2rem; }
    .stats-bar { margin-top: -30px; }
    .section-header h2 { font-size: 1.7rem; }
}

@media (max-width: 767px) {
    .hero-slide { height: 380px; }
    .hero-overlay h1 { font-size: 1.8rem; }
    .stats-bar { margin-top: 0; border-radius: 0; }
    .product-gallery-main img { height: 280px; }
    .page-hero { height: 240px; }
    .page-hero h1 { font-size: 1.8rem; }
    .cta-banner { padding: 2rem 1.5rem; }
    .cta-banner h3 { font-size: 1.4rem; }
}
