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

:root {
    --primary-navy: #3772da;
    --navy-dark: #0a192f;
    --navy-light: #1e3a8a;
    --accent-cyan: #00b4d8;
    --accent-hover: #0096c7;
    --accent-glow: rgba(0, 180, 216, 0.25);
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(15, 43, 92, 0.07);
    --card-hover-shadow: 0 12px 30px -4px rgba(15, 43, 92, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-navy);
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-hover);
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--navy-dark);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-bar a {
    color: #cbd5e1;
}

.top-bar a:hover {
    color: var(--accent-cyan);
}

/* Main Navigation */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-navy) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-cyan));
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-navy) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-hover) !important;
    background-color: rgba(0, 180, 216, 0.08);
}

/* Cart Button with Count Badge */
.cart-btn {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cart-btn:hover {
    background: var(--primary-navy);
    color: #ffffff !important;
}

.cart-badge {
    background: var(--accent-cyan);
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Primary and Cyan Buttons */
.btn-navy {
    background-color: var(--primary-navy);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    border: none;
    transition: all 0.25s ease;
}

.btn-navy:hover {
    background-color: var(--navy-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.25);
}

.btn-cyan {
    background-color: var(--accent-cyan);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    border: none;
    transition: all 0.25s ease;
}

.btn-cyan:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-outline-navy {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 7px 18px;
    background: transparent;
    transition: all 0.2s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 60%, #1e3a8a 100%);
    color: #ffffff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.8rem;
    line-height: 1.25;
}

.hero-section p {
    color: #e2e8f0;
    font-size: 1.15rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Feature Boxes */
.feature-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-cyan);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 180, 216, 0.12);
    color: var(--primary-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

.product-img-wrapper {
    height: 220px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-badge-float {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-hover);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-specs-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
}

.product-price-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.price-tax-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Category Navigation Cards */
.cat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-cyan);
    background-color: #f0f9ff;
}

.cat-icon {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.cat-card:hover .cat-icon {
    color: var(--accent-cyan);
}

/* ERP Software & Plan Pricing Cards */
.erp-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.erp-card.popular {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.18);
    position: relative;
}

.popular-banner {
    background: var(--accent-cyan);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 4px;
    letter-spacing: 0.5px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.erp-card-header {
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.erp-card-body {
    padding: 24px;
    flex-grow: 1;
}

.feature-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-check-list li {
    padding: 7px 0;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-check-list li i.bi-check-circle-fill {
    color: #10b981;
}

.feature-check-list li i.bi-x-circle {
    color: #cbd5e1;
}

/* Checkout Progress Stepper */
.checkout-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 14px;
    text-align: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-item.active .step-circle {
    background: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.step-item.completed .step-circle {
    background: #10b981;
    color: #ffffff;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--navy-dark);
    color: #cbd5e1;
    min-height: calc(100vh - 60px);
}

.admin-sidebar a {
    color: #cbd5e1;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Footer */
.footer-custom {
    background-color: var(--navy-dark);
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-custom h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-cyan);
}

.footer-custom a {
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.footer-custom a:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.82rem;
    color: #64748b;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .product-img-wrapper {
        height: 180px;
    }
}