@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* body */
    --body-font-color: #666;
    --body-font-size: 14px;
    --body-bgcolor: #fff;
    --body-font-family: 'Poppins', sans-serif;
    --body-font-weight: 400;
    --body-font-style: normal;
    --body-font-line-height: normal;
    --body-font-letter-spacing: normal;

    /* heading */
    --heading-font-color: #222;
    --heading-font-family: 'Poppins', sans-serif;
    --heading-font-weight: 600;
    --heading-font-style: normal;
    --heading-font-line-height: normal;

    /* section-heading */
    --section-heading-font-color: #222222;
    --section-heading-font-family: 'Poppins', sans-serif;
    --section-heading-font-text: none;
    --section-heading-font-weight: 700;
    --section-heading-font-style: normal;
    --section-heading-font-line-height: 1;

    /* paragraph */
    --paragraph-font-color: #666;
    --paragraph-font-family: 'Poppins', sans-serif;
    --paragraph-font-line-height: 25px;

    /* general color */
    --primary-font-color: #f96747;
    --secondary-font-color: #222222;  
    --extra-font-color: #fff;
    --extra-bgcolor: #f4f2f0;
    --product-new-sale-label-bgcolor: #ee433f;
    --product-ratting: #ccc;

    /* border */
    --border-color: #e2e2e2;
    --border-radius: 0px;  
    --border-radius2: 50px;  

    /* box-shadow */
    --box-shadow-outer: 0px 0px 10px rgba(51, 51, 51, 0.15);
    --box-shadow-inner: inset 0px 0px 5px rgba(51, 51, 51, 0.15);
}

body {
    color: var(--body-font-color);
    font-size: var(--body-font-size);
    background-color: var(--body-bgcolor);
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    font-style: var(--body-font-style);
    line-height: var(--body-font-line-height);
    letter-spacing: var(--body-font-letter-spacing);
}

/*====================================
    heading css
====================================*/
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-font-color);
    margin: 0;
    padding: 0;
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
    font-style: var(--heading-font-style);
    line-height: var(--heading-font-line-height);
}

/*====================================
    paragraph css
====================================*/
p {
    color: var(--paragraph-font-color);
    margin: 0;
    font-family: var(--paragraph-font-family);
    line-height: var(--paragraph-font-line-height);
}

.hidden {
    display: none;
}

/* Base */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 5px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Top row */
.header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    justify-content: space-between;
}

/* Logo */
.logo img {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

/* Menu toggle */
.menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: #f4f4f4;
}

/* Search */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 50%;
    border: 1px solid #b71c1c;
    overflow: hidden;
    margin: 0 auto;
    background: #fff;
    box-shadow: none;

}

.search-form select {
    border: none;
    border-right: 1px solid #b71c1c;
    background: #f7f7f7;
    padding: 0 10px;
    height: 44px;
    font-size: 0.95rem;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-form input {
    border: none;
    padding: 0 12px;
    background: transparent;
    line-height: 44px;
}

.search-form select {
    max-width: 160px;
    width: 100px;
}

.search-form input {
    flex: 1;
    height: 44px;
    font-size: 0.95rem;
    outline: none;
}

.search-form button {
    background: #b71c1c;
    color: #fff;
    border: none;
    width: 52px;
    height: 44px;
    border-radius: 0;
    transition: background 0.2s ease;
    line-height: 44px;
}

.search-form:focus-within {
    border-color: #b71c1c;
    box-shadow: none;
}

.search-form button:hover {
    background: #9b1616;
}

/* Search suggestions */

.searchSuggestions {
    width: 50%;
    padding: 10px;
    background-color: #FFF;
    border-radius: 2px;
    position: absolute;
    top: 70px;
    z-index: 1030;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow: auto;
}

.searchSuggestions ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.searchSuggestions li {
    font-size: 12px;
    padding: 10px;
    margin: 0;
    border-bottom: 0.1px solid rgba(0, 0, 0, 0.1);
}

.searchSuggestions li a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.searchSuggestions .pimg {
    width: 30px;
    height: 30px;
    overflow: hidden;
    flex: 0 0 30px;
    margin-right: 0;
}

.searchSuggestions span {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
    max-height: 2.4em;
}

.searchSuggestions .container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.searchSuggestions .pimg img {
    width: 30px;
    height: 30px;
}

.searchSuggestions p {
    text-align: center;
    font-size: 12px;
    padding: 0 10px;
    color: rgba(0, 0, 0, 0.8);
}

.searchSuggestions .more {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header-actions .btn {
    display: inline-flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    margin-top: 3px;
}

.cart-icon {
    color: #333;
}

.cart-icon:hover {
    color: #b71c1c;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #b71c1c;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Nav */
.header-nav {
    border-top: 1px solid #eee;
}

.nav-list {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    list-style: none;
}

.nav-list a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 2px;
    position: relative;
}

.nav-list a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: #b71c1c;
    transition: width 0.2s ease;
}

.nav-list a:hover:after {
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .search-form {
        display: none;
    }

    .search-form select {
        display: none;
    }

    .header-row {
        flex-wrap: wrap;
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        height: 44px;
    }

    .mobile-search-bar {
        display: block;
        padding: 10px;
        background-color: #020D26;
    }

    .mobile-search-bar .search-form {
        display: flex;
        width: 100%;
        max-width: 100%;
    }

    .mobile-search-bar .search-form select {
        display: block;
        max-width: 140px;
        width: 60px;
        padding: 5px;
    }
}

/* Category Section Card */

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title h2 {
    color: #222;
    font-size: 30px;
    position: relative;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    line-height: 1.2;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 30px;
    bottom: 50%;
    transform: translateY(50%);
    background-color: #b71c1c;
}

.section-title h2::before {
    right: -40px;
}

.section-title h2::after {
    left: -40px;
}

@media (max-width: 479px) {
    .section-title h2 {
        font-size: 24px;
    }
}

.cat-section-card {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 145, 143, 0.25);
    background: rgba(11, 145, 143, 0.06);
    color: #0b918f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.view-all-link:hover {
    color: #087d7b;
    background: rgba(11, 145, 143, 0.12);
    border-color: rgba(11, 145, 143, 0.45);
    text-decoration: none;
}

/* Card base */
.cat-card {
    border-radius: 14px;
    min-height: 260px;

    /* EXACT default shadow from inline style */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect (exact match) */
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Image wrapper */
.cat-card-img-wrap {
    height: 170px;
    background-color: #f8f9fa;
    /* bg-light */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image */
.catimg {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Category name clamp */
.cat-card-title {
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Product Tile Card */
.product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Image container */
.product-img-wrap {
    min-height: 220px;
    background-color: #f8f9fa;
    /* bg-light */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Product image */
.product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 200px;
    object-fit: contain;
}

/* Discount badge */
.product-off-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product name clamp */
.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.topmenu {
    select#catselect {
        background-color: #f7f7f7;
        border: 1px;
        padding-left: 10px;
        border-width: 1px 1px 1px 0;
        border-style: solid;
        border-color: red;
        text-overflow: ellipsis
    }

    select#catselect:focus {
        box-shadow: none;
        outline: none;
    }

    .parent {
        display: block;
        position: relative;
        float: left;
        line-height: 40px;
        font-size: 16px;
        font-weight: normal;
        padding: 10px, 5px, 10px, 5px;
        z-index: 1030;
    }

    .parent a {
        margin-left: 10px;
        margin-right: 10px;
        color: #000000;
        text-decoration: none;
    }

    .parent:hover>ul {
        display: block;
        position: absolute;
    }

    .child {
        display: none;
        border: #CCC 1px solid;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s;
        color: #000000;
    }

    .child li {
        background-color: #FFF;
        line-height: 1.25;
        width: 280px;
        padding: 10px;
        cursor: pointer;
        z-index: 1;
    }

    ul {
        margin: 0;
        padding: 0px;
        min-width: 10em;
    }

    ul ul ul {
        left: 100%;
        top: 0;
        margin-left: 1px;
    }

    .child li:hover {
        background-color: #af270c;
        color: white;
    }

    .expand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 5px;
        font-size: 16px;
        border-radius: 50%;
        background: #f1f1f1;
        color: #6b6b6b;
    }

    .cartnumber {
        width: 15px;
        height: 15px;
    }
}

