/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    color: #111;
    overflow-x: hidden;
}

.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}


.navbar-inner {
    display: grid;
    grid-template-columns:
        250px 420px 220px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* LEFT */
.nav-left {
    width: 320px;
    min-width: 320px;
}


.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-decoration: none;
}


.navbar-brand img {
    width: 62px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-center {
    width: 100%;
}

.search-box {
    width: 100%;
    max-width: 420px;
}


.search-box .input-group {
    width: 100%;
}


.search-input {
    height: 42px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    box-shadow: none;
}


.search-input:focus {
    border-color: #0d6efd;
    box-shadow: none;
}


.search-btn {
    width: 52px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: #0d6efd;
    color: #fff;
}


.search-btn:hover {
    background: #0b5ed7;
}


.nav-right {
    width: 220px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}


.cart-btn {
    position: relative;
    font-size: 22px;
    color: #222;
    text-decoration: none;
}


.cart-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.account-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 25px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}


.account-btn:hover {
    background: #e9ecef;
    color: #000;
}


.category-item {
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.category-item:hover {
    border-color: #16a34a;
    transform: translateX(5px);
}

.arrow {
    transition: 0.3s;
}

.category-item:hover .arrow {
    transform: translateX(5px);
    color: #16a34a;
}

/* mobile offcanvas */
.offcanvas-body a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.offcanvas-body a:hover {
    color: #16a34a;
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-item {
    position: relative;
    overflow: hidden;
}

.hero-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-image {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform .8s ease;
}


.heroCarousel .owl-nav {
    margin: 0;
}

.heroCarousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .35) !important;
    color: #fff !important;
    font-size: 22px !important;
    transition: .3s;
}

.heroCarousel .owl-nav .owl-prev {
    left: 20px;
}

.heroCarousel .owl-nav .owl-next {
    right: 20px;
}

.heroCarousel .owl-nav button:hover {
    background: #16a34a !important;
}

/* Dots */
.heroCarousel .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.heroCarousel .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, .7) !important;
}

.heroCarousel .owl-dot.active span {
    width: 35px;
    border-radius: 20px;
    background: #16a34a !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        height: 220px;
    }

    .heroCarousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px !important;
    }
}

/* ===== CATEGORY ===== */
.category-section {
    max-width: 1200px;
    margin: auto;
    padding: 45px 20px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
}

.section-title p {
    color: #16a34a;
    letter-spacing: 2px;
    font-weight: 600;
}

/* CARD */
.category-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a {
    position: relative;
    z-index: 10;
}

.category-card:hover .category-title {
    color: #206230;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.4s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* image */
.image-box {
    overflow: hidden;
    border-radius: 18px;
}

.image-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.6s;
}

.category-card:hover img {
    transform: scale(1.08);
}

/* title */
.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    transition: 0.3s ease;
}


/* badge */
.badge-number {
    background: #111;
    color: #fff;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
}

/* arrow */
.arrow {
    transition: 0.3s;
}

.category-card:hover .arrow {
    transform: translateX(8px);
    color: #16a34a;
}



.cart-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    color: #111;
    font-size: 18px;
    position: relative;
    transition: 0.3s;
    border: 1px solid #eee;
}

.cart-btn:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid #fff;
}

/* ===== SIDEBAR ===== */
.filter-box {
    position: sticky;
    top: 110px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eee;
}

.filter-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7280;
}

/* category button */
.cat-btn {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #111;
    transition: 0.3s;
    margin-top: 8px;
}

.cat-btn.active,
.cat-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}

/* filter section */
.filter-section {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.filter-btn {
    width: 100%;
    background: none;
    border: 0;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* price slider */
.range {
    height: 4px;
    background: #ddd;
    border-radius: 50px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img {
    overflow: hidden;
}

.product-img img {
    width: 100%;
    transition: 0.5s;
}

.product-card:hover img {
    transform: scale(1.08);
}

.price {
    font-weight: 700;
    font-size: 18px;
}

.btn-buy {
    background: #16a34a;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
    flex: 1;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #12833a;
}

.btn-cart {
    background: #e5e7eb;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    flex: 1;
    font-weight: 600;
    transition: 0.3s;
}

.btn-cart:hover {
    background: #d1d5db;
}

/* header bar */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: 500;
}


.breadcrumb-section {
    background: #f8faf8;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.breadcrumb-wrapper {
    min-height: 40px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.breadcrumb-nav {
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: .3s;
}

.breadcrumb-nav a:hover {
    color: #198754;
}

.breadcrumb-nav span {
    color: #b5b5b5;
    font-size: 12px;
}

.breadcrumb-nav strong {
    color: #198754;
    font-weight: 600;
}

@media(max-width:768px) {
    .page-title {
        font-size: 18px;
    }
    .breadcrumb-section {
        padding: 16px 0;
    }
}

.product-title {
    font-family: "Ciutadella", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.1;
    color: #212529;
    /* Bootstrap text color equivalent */
    transition: color 0.2s ease;
    cursor: pointer;
    min-height: 45px;
}

.product-title:hover {
    color: #198754;
    /* Bootstrap primary color */
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.sort-label {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.sort-select {
    min-width: 220px;
    border: none;
    box-shadow: none !important;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.sort-select:focus {
    border: none;
    box-shadow: none !important;
}



.sort-box {
    position: relative;
    display: inline-block;
}

.sort-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #198754;
    z-index: 2;
}

.sort-select:hover {
    border-color: #198754;
}

.sort-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, .15);
    outline: none;
}

.sort-select option {
    padding: 10px;
    font-weight: 500;
}

.company-name {
    font-size: 20px;
    font-weight: 700 !important;
    color: #000;
    padding-left: 15px;
    transition: color 0.3s ease;
}

.typed-cursor {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000;
    transition: color 0.3s ease;
}

.navbar-brand:hover .company-name,
.navbar-brand:hover .typed-cursor {
    color: #20BE5A;
}


.cart-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    transition: .3s;
    border: none;
}



.cart-divider {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 20px 0;
}


.summary-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    position: sticky;
    top: 120px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    transition: .3s;
}

.qty-btn:hover {
    background: #198754;
    color: #fff;
}

.qty-box input {
    width: 60px;
    border: none;
    outline: none;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

.delete-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    /* background: #fff0f0; */
    color: #dc3545;
    transition: .3s;
}

.delete-btn:hover {
    background: #dc3545;
    color: #fff;
}

.checkout-btn {
    height: 58px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 18px;
}



/* FOOTER */
footer {
    background: #0b0f14;
    color: #aaa;
    padding: 60px 0;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer {
    background: #111;
    color: #fff;
    padding: 60px 0 20px;
}

footer h5 {
    margin-top: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    line-height: 30px;
}

footer a:hover {
    color: #fff;
}

footer hr {
    border-color: rgba(255, 255, 255, .15);
}

footer .text-center {
    font-size: 14px;
    color: #bbb;
}

@media (max-width:991px) {

    .navbar-inner {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "left right"
            "search search";
        align-items: center;
        gap: 12px;
    }

    .nav-left {
        grid-area: left;
        width: auto !important;
        min-width: 0 !important;
    }


    .nav-right {
        grid-area: right;
        width: auto !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-center {
        grid-area: search;
        width: 100%;
        max-width: 100%;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .search-input {
        height: 40px;
    }

    .navbar-brand img {
        width: 42px;
        height: 34px;
    }

    .company-name {
        font-size: 17px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-left: 10px;

    }

    .account-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }

    .account-btn span {
        display: none;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }

    #typingText {
        width: auto;
        overflow: visible;
        white-space: nowrap;
    }

    .filter-box {
        display: none;
    }

    .sort-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        width: 100%;
        min-width: 100%;
    }

    .cart-card {
        padding: 20px;
    }

    .summary-card {
        position: static;
    }

    .product-img {
        height: 90px;
    }
}


.section-title h2{
    position: relative;
    display: inline-block;
    font-size: 32px;
    color: #222;
    margin: 0;
    padding-bottom: 12px;
    letter-spacing: -.5px;
}

.section-title h2::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg,#22c55e,#16a34a);
    border-radius: 20px;
}

.section-title h2::after{
    content: "";
    position: absolute;
    left: 78px;
    bottom: 0;
    width: 18px;
    height: 4px;
    background: #d1d5db;
    border-radius: 20px;
}

.see-all-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg,#22c55e,#16a34a);
    box-shadow: 0 10px 25px rgba(34,197,94,.25);
    transition: .35s ease;
}

.see-all-btn i{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s;
}

.see-all-btn:hover{
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(34,197,94,.35);
}

.see-all-btn:hover i{
    background: #fff;
    color: #16a34a;
    transform: translateX(3px);
}

.section-title h2{
    margin: 0;
    font-size: 34px;
    font-weight: 800;

    background: linear-gradient(135deg,#000,#584943);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    display: inline-block;
}

@media (max-width:576px){
    .section-title h2{
        font-size: 22px;
    }

    .see-all-btn {
        padding: 8px 12px;
        font-size: 14px;
        gap: 5px;
    }

    .see-all-btn i {
        width: 28px;
        height: 28px;
    }
    
}