:root {
    --primary: #0b5ed7;
    --primary-dark: #084298;
    --secondary: #ff7a00;
    --dark: #161a20;
    --light-bg: #f5f7fa;
    --border: #e5e7eb;
    --text: #20242a;
    --text-light: #6b7280;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #fff;
    color: var(--text);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ============================================
   TOP BAR
============================================ */

.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar i {
    color: var(--secondary);
    margin-right: 5px;
}

.top-bar a {
    color: #fff;
}

/* ============================================
   HEADER
============================================ */

.main-header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo:hover {
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    height: 48px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0 58px 0 18px;
    outline: none;
    box-shadow: none !important;
}

.search-wrapper input:focus {
    border-color: var(--primary-dark);
}

.search-wrapper button {
    position: absolute;
    right: 0;
    top: 0;
    width: 52px;
    height: 48px;
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 0 7px 7px 0;
    font-size: 18px;
}

.search-wrapper button:hover {
    background: var(--primary-dark);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    position: relative;
}

.header-action:hover {
    color: var(--primary);
}

.header-action i {
    font-size: 23px;
    color: var(--primary);
}

.header-action small {
    display: block;
    color: #777;
    font-size: 11px;
    line-height: 1.1;
}

.header-action strong {
    font-size: 13px;
}

.cart-count {
    position: absolute;
    top: -7px;
    left: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    text-align: center;
    line-height: 18px;
    font-size: 10px;
}

/* ============================================
   NAVBAR
============================================ */

.main-nav {
    background: var(--primary);
    padding: 0;
}

.main-nav .navbar-nav .nav-link {
    color: #fff;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 500;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================
   HERO
============================================ */

.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    position: relative;
}

.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slider img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.hero-slider .carousel-caption {
    z-index: 3;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    max-width: 650px;
}

.hero-slider .carousel-caption h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
}

.hero-slider .carousel-caption p {
    font-size: 17px;
    margin: 15px 0 25px;
}

.shop-btn {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    border-radius: 7px;
    padding: 13px 26px;
    font-weight: 600;
    transition: .3s;
}

.shop-btn:hover {
    background: #e66e00;
    color: #fff;
}

/* ============================================
   COMMON SECTION
============================================ */

.section {
    padding: 65px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    margin-bottom: 35px;
}

.section-title h1,
.section-title h2 {
    font-weight: 800;
    margin-bottom: 7px;
}

.section-title h1 {
    font-size: 34px;
}

.section-title h2 {
    font-size: 30px;
}

.section-title p {
    margin: 0;
    color: var(--text-light);
}

/* ============================================
   CATEGORY CARD
============================================ */

.category-card,
.subcategory-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all .3s ease;
}

.category-card:hover,
.subcategory-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .10);
    border-color: transparent;
}

.category-image,
.subcategory-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f3f5;
}

.category-image img,
.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.category-card:hover img,
.subcategory-card:hover img {
    transform: scale(1.07);
}

.category-content {
    text-align: center;
    padding: 18px 12px;
}

.category-content h5 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.category-content span {
    font-size: 12px;
    color: var(--text-light);
}

.subcategory-content {
    padding: 20px;
}

.subcategory-content h4 {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subcategory-content p {
    color: var(--text-light);
    font-size: 13px;
    min-height: 42px;
}

.explore-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

/* ============================================
   BREADCRUMB
============================================ */

.breadcrumb-section,
.breadcrumb-area {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 15px 0;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
}

/* ============================================
   CATEGORY BANNER
============================================ */

.category-banner {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    color: #fff;
    padding: 60px 0;
}

.category-banner h1 {
    font-size: 40px;
    font-weight: 800;
}

.category-banner p {
    margin-bottom: 0;
    max-width: 650px;
    opacity: .9;
}

/* ============================================
   PRODUCT PAGE
============================================ */

.products-header {
    padding: 45px 0 28px;
}

.products-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.products-header p {
    color: var(--text-light);
    margin: 0;
}

.filter-box {
    background: #fff;
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.filter-group {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: 0;
}

.filter-group h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}

.product-toolbar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 24px;
}

.result-count {
    color: #666;
    font-size: 13px;
}

.sort-select {
    width: auto;
    min-width: 190px;
    font-size: 13px;
}

/* ============================================
   PRODUCT CARD
============================================ */

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: .3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
    border-color: transparent;
}

.product-img-box,
.product-img {
    height: 245px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.product-img-box img,
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.product-card:hover .product-img-box img,
.product-card:hover .product-img img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc3545;
    color: #fff;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 10px;
    z-index: 2;
}

.wishlist-btn,
.wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 2;
}

.product-info {
    padding: 17px;
}

.product-category {
    color: #8b929a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-title,
.product-name {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    margin: 6px 0;
    min-height: 42px;
}

.product-title:hover,
.product-name:hover {
    color: var(--primary);
}

.rating {
    color: #ffb100;
    font-size: 12px;
}

.rating span {
    color: #8b929a;
}

.product-price,
.price {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.add-cart-btn,
.cart-btn {
    width: 100%;
    margin-top: 14px;
    height: 42px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    transition: .3s;
}

.add-cart-btn:hover,
.cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   PRODUCT DETAILS
============================================ */

.product-details-section {
    padding: 55px 0;
}

.product-main-image {
    background: #f5f6f8;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    padding: 20px;
}

.product-main-image img {
    width: 100%;
    height: 480px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-thumbnail {
    width: 82px;
    height: 82px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
}

.product-thumbnail.active {
    border: 2px solid var(--primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.details-category {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 12px;
    font-weight: 700;
}

.details-title {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0 12px;
}

.details-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.details-price .current-price {
    font-size: 27px;
}

.details-description {
    color: var(--text-light);
    line-height: 1.8;
}

.stock-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #198754;
    background: #eaf8f0;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-wrapper button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
}

.quantity-wrapper input {
    width: 55px;
    height: 38px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.buy-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.btn-cart-large {
    flex: 1;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
}

.btn-cart-large:hover {
    background: var(--primary-dark);
}

.btn-buy-now {
    flex: 1;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
}

.btn-buy-now:hover {
    background: #e66e00;
}

.product-meta {
    border-top: 1px solid var(--border);
    margin-top: 25px;
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.product-meta strong {
    color: var(--text);
}

.product-tabs {
    margin-top: 55px;
}

.product-tabs .nav-tabs .nav-link {
    color: var(--text);
    font-weight: 600;
}

.product-tabs .nav-tabs .nav-link.active {
    color: var(--primary);
}

.tab-content-box {
    border: 1px solid var(--border);
    border-top: 0;
    padding: 30px;
    background: #fff;
    line-height: 1.8;
    color: var(--text-light);
}

/* ============================================
   FOOTER
============================================ */

footer {
    background: #15191f;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-logo {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--secondary);
}

footer h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #aaa;
    font-size: 13px;
}

footer ul li a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 13px;
}

.footer-contact i {
    color: var(--secondary);
    margin-right: 8px;
}

.copyright {
    border-top: 1px solid #30363d;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 991px) {

    .desktop-actions {
        display: none !important;
    }

    .hero-slider img {
        height: 400px;
    }

    .hero-slider .carousel-caption h1 {
        font-size: 36px;
    }

    .filter-box {
        position: static;
    }

    .product-main-image img {
        height: 400px;
    }
}

@media (max-width: 767px) {

    .top-bar {
        text-align: center;
    }

    .top-right {
        display: none;
    }

    .hero-slider img {
        height: 370px;
    }

    .hero-slider .carousel-caption {
        left: 7%;
        right: 7%;
    }

    .hero-slider .carousel-caption h1 {
        font-size: 30px;
    }

    .hero-slider .carousel-caption p {
        font-size: 14px;
    }

    .section {
        padding: 45px 0;
    }

    .category-image,
    .subcategory-image {
        height: 170px;
    }

    .product-img-box,
    .product-img {
        height: 210px;
    }

    .details-title {
        font-size: 26px;
    }

    .product-main-image img {
        height: 350px;
    }
}

@media (max-width: 575px) {

    .category-image,
    .subcategory-image {
        height: 145px;
    }

    .category-content {
        padding: 13px 7px;
    }

    .category-content h5 {
        font-size: 13px;
    }

    .subcategory-content {
        padding: 13px;
    }

    .subcategory-content h4 {
        font-size: 14px;
    }

    .subcategory-content p {
        font-size: 11px;
    }

    .product-img-box,
    .product-img {
        height: 170px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name,
    .product-title {
        font-size: 13px;
    }

    .current-price {
        font-size: 15px;
    }

    .old-price {
        display: none;
    }

    .buy-actions {
        flex-direction: column;
    }

    .product-main-image img {
        height: 300px;
    }
}




/* features img */
.feature-image-section {
    padding: 65px 0;
}

.feature-banner-link {
    display: block;
    text-decoration: none;
}

.feature-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f5f7;
}

.feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.feature-banner:hover img {
    transform: scale(1.05);
}

.feature-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .65),
        rgba(0, 0, 0, .10)
    );
    pointer-events: none;
}

.feature-banner-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.feature-banner-overlay h3 {
    margin: 0 0 5px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.feature-banner-overlay p {
    margin: 0;
    font-size: 15px;
    color: #fff;
}

@media (max-width: 991px) {
    .feature-banner {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .feature-banner {
        height: 220px;
    }

    .feature-banner-overlay {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .feature-banner-overlay h3 {
        font-size: 21px;
    }
}