:root {
    --primary: #1463ff;
    --primary-dark: #0b4bd4;
    --dark: #111827;
    --muted: #6b7280;
    --light: #f6f8fb;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: #fff;
}

a {
    text-decoration: none;
}

.navbar {
    min-height: 78px;
}

.navbar-brand {
    font-size: 24px;
}

.brand-main {
    color: #111827;
}

.brand-sub {
    color: var(--primary);
}

.nav-link {
    color: #222 !important;
    font-weight: 500;
    margin: 0 8px;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* HERO BANNER */

.hero-banner-section {
    background: url('../images/banners/hero-printer1.png') no-repeat center center;
    background-size: cover;
    padding: 110px 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-card {
    background: rgba(250, 250, 248, 0.94);
    padding: 44px 48px;
    border-radius: 32px;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.hero-card .hero-welcome {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-card .hero-brand {
    font-size: 40px;
    font-weight: 900;
    color: #5544f5;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.hero-card .hero-subtext {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.5;
}


/* COMMON */

.section-padding {
    padding: 90px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 38px;
    font-weight: 800;
    margin-top: 10px;
}


/* CATEGORY */

.category-card {
    display: block;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    color: white;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.category-card:hover img {
    transform: scale(1.07);
}

.category-overlay {
    position: absolute;
    inset: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: end;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,.75)
    );
}

.category-overlay h4 {
    font-weight: 700;
}

.category-overlay span {
    font-size: 14px;
}


/* PRODUCT */

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.product-image {
    height: 220px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 16px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #6366f1;
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
}

.product-title a {
    color: var(--dark);
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    margin-top: 12px;
}

.current-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.product-price del {
    color: #999;
    margin-left: 8px;
    font-size: 14px;
}


/* BUTTON */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* FEATURES */

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    height: 100%;
}

.feature-box i {
    color: var(--primary);
    font-size: 38px;
}

.feature-box h5 {
    margin-top: 18px;
}

.feature-box p {
    color: var(--muted);
    margin-bottom: 0;
}


/* PAGE HEADER */

.page-header {
    background: var(--light);
    padding: 70px 0;
}

.page-header h1 {
    font-weight: 800;
    font-size: 42px;
}

.page-header p {
    color: var(--muted);
}


/* FILTER */

.filter-box {
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
}

.filter-list {
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list a {
    color: #555;
}

.filter-list a:hover {
    color: var(--primary);
}


/* PRODUCT DETAIL */

.product-detail-image {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

.product-detail-image img {
    max-height: 500px;
    object-fit: contain;
}

.product-detail-title {
    font-size: 38px;
    font-weight: 800;
}

.product-price.large {
    font-size: 30px;
    font-weight: 700;
}

.quantity-input {
    width: 90px;
}


/* CART */

.cart-thumb {
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cart-summary,
.checkout-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}

.empty-cart {
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 70px;
    color: var(--primary);
}


/* CONTACT */

.contact-info p {
    margin: 20px 0;
}

.contact-info i {
    color: var(--primary);
    margin-right: 10px;
}


/* FOOTER */

.footer {
    background: #111827;
    color: #9ca3af;
    padding-top: 65px;
}

.footer h5,
.footer h6 {
    color: white;
}

.footer p {
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: white;
}

.footer-line {
    border-color: #374151;
}

/* Additional homepage styles: hero banner, small category cards, featured tweaks, advantage boxes */
.hero-banner {
    background: white;
    padding: 28px 30px;
    border-radius: 18px;
    max-width: 520px;
    box-shadow: 0 12px 30px rgba(16,24,40,.06);
}

.hero-title {
    font-size: 42px;
    margin: 6px 0 10px;
    font-weight: 900;
}

.brand-accent { color: var(--primary); }

.lead { color: var(--muted); font-size: 16px; margin-bottom: 14px; }

.category-card-small {
    display:flex;
    gap:16px;
    align-items:center;
    padding:18px;
    background:white;
    border:1px solid var(--border);
    border-radius:12px;
    text-decoration:none;
    color:inherit;
}

.category-card-small .cat-icon{
    width:72px; height:72px; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#f8fafc; border:1px solid var(--border);
}

.category-card-small .cat-icon img{ width:100%; height:100%; object-fit:cover; }

.category-card-small .cat-body h5{ margin:0; font-weight:700; }

.categories-grid .col-lg-3{ display:flex; }

.small-link{ color:var(--muted); font-weight:600; }

.small-link:hover{ color:var(--primary); }

.featured-section .section-heading span{ color:var(--muted); font-weight:700; }

.product-card .sale-badge{ background:#6d28d9; color:white; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }

.product-content .small{ font-size:12px; }

.btn-outline-primary{ border:1px solid var(--primary); color:var(--primary); background:transparent; padding:8px 18px; border-radius:8px; }

.btn-outline-primary:hover{ background:var(--primary); color:white; }

.adv-box{ background:white; padding:28px; border-radius:12px; text-align:center; border:1px solid var(--border); height:100%; }
.adv-box i{ font-size:32px; color:var(--primary); display:block; margin-bottom:12px; }
.adv-box h5{ margin-bottom:8px; }

/* Checkout styles */
.checkout-box { background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.06); }
.checkout-box .step-circle{ width:36px; height:36px; border-radius:50%; background:var(--primary); color:white; display:flex; align-items:center; justify-content:center; font-weight:700; }
.checkout-box h4{ font-size:18px; font-weight:700; }
.checkout-box .form-control, .checkout-box .form-select, .checkout-box textarea { border-radius:10px; }
.checkout-box .btn-primary{ background: linear-gradient(90deg,var(--primary),var(--primary-dark)); border:none; }

.order-summary{ background:#fff; box-shadow:0 10px 30px rgba(16,24,40,.04); }
.order-summary h5{ font-weight:800; margin-bottom:18px; }
.order-summary .cart-thumb{ border-radius:8px; }
.order-summary .text-primary{ color:var(--primary); font-weight:800; }


/* Shop filter styles */
.product-filters .form-label{ font-weight:700; font-size:13px; color:var(--muted); }
.product-filters .form-control, .product-filters .form-select{ border-radius:10px; }
.product-filters .btn{ border-radius:10px; }
.pagination .page-item.active .page-link{ background:var(--primary); border-color:var(--primary); color:#fff; }


/* MOBILE */

@media (max-width: 991px) {

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 42px;
    }

    .hero-image {
        margin-top: 40px;
    }

}

@media (max-width: 575px) {

    .section-padding {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .product-image {
        height: 220px;
    }

}