
/*
 * ONMART - 2026 UI Modernization
 * Purpose:
 *   - Keep existing Bootstrap/theme/Blade/DB structure.
 *   - Preserve ONMART's existing visual language and colors.
 *   - Load AFTER reset.css / shortcodes.css / mystyle.css.
 */

:root {
    --onmart-accent: #fec76f;
    --onmart-accent-dark: #e0b15a;
    --onmart-dark: #313137;
    --onmart-text: #333;
    --onmart-muted: #777;
    --onmart-border: #ececec;
    --onmart-bg: #f8f8f8;
    --onmart-white: #fff;
}

body {
    color: var(--onmart-text);
    background: #fff;
}

/* =========================
   HEADER
========================= */

.top_nav {
    background: #fafafa;
    border-bottom: 1px solid #ededed;
    font-size: 12px;
}

.top_nav .left,
.top_nav .right {
    line-height: 20px;
}

.header {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #ededed;
    position: relative;
    z-index: 9998;
}

.logo img {
    max-height: 62px;
    width: auto;
    display: block;
}

.header .logo {
    padding: 10px 0;
}

.menu_main {
    min-height: 82px;
}

.menu_main .nav > li > a {
    position: relative;
    padding: 31px 9px 27px;
    color: #555;
    font-weight: 500;
    transition: color .25s ease, background .25s ease;
}

.menu_main .nav > li > a:hover,
.menu_main .nav > li > a:focus,
.menu_main .nav > li > a.active {
    color: #222;
    background: transparent;
}

.menu_main .nav > li > a::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 18px;
    height: 2px;
    background: var(--onmart-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.menu_main .nav > li > a:hover::after,
.menu_main .nav > li > a.active::after {
    transform: scaleX(1);
}

.menu_main .dropdown-menu {
    border: 1px solid #e8e8e8;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    padding: 7px 0;
}

.menu_main .dropdown-menu > li > a {
    padding: 10px 18px;
    color: #555;
    transition: all .2s ease;
}

.menu_main .dropdown-menu > li > a:hover {
    color: #222;
    background: rgba(254,199,111,.14);
}

/* Sticky header supplied by the existing theme/plugin */
.header.sticky,
.header.fixed,
.menu_main.sticky {
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}


/* =========================
   SECTION HEADINGS
========================= */



.featured_section13 + .featured_section13 {
    padding-top: 22px;
}

.featured_section13 .container > h1,
.featured_section13 .product-slider > h1 {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 14px;
    text-align: center;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 500;
    color: #333;
}

.featured_section13 .container > h1::after,
.featured_section13 .product-slider > h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--onmart-accent);
}

/* =========================
   CATEGORY CARDS
========================= */

.product-gallery {
    max-width: 1170px;
    padding: 10px 0 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-gallery .product {
    min-height: 100%;
    border: 1px solid var(--onmart-border);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
    background: #fff;
    padding-bottom: 14px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    pointer-events: auto;
}

.product-gallery .product:hover {
    transform: translateY(-6px);
    border-color: rgba(254,199,111,.75);
    box-shadow: 0 14px 30px rgba(0,0,0,.09);
}

.product-gallery .product img {
    height: 225px;
    object-fit: cover;
    border-bottom: 1px solid var(--onmart-border);
    border-radius: 0;
    transition: transform .45s ease;
    pointer-events: auto;
}

.product-gallery .product:hover img {
    transform: scale(1.035);
}

.product-gallery .product h4 {
    min-height: 48px;
    margin: 18px 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1.35;
    color: #333;
    font-weight: 500;
}

.product-gallery .product .btn {
    margin: 6px 0 8px;
    padding: 9px 18px;
    font-size: 12px;
    letter-spacing: .2px;
    background: var(--onmart-accent);
    border-radius: 4px;
    transition: transform .2s ease, background .2s ease;
}

.product-gallery .product .btn:hover {
    background: var(--onmart-accent-dark);
    transform: translateY(-1px);
}

/* =========================
   REFERENCES
========================= */

.product-slider {
    max-width: 1170px;
    margin: 18px auto 0;
    padding: 0 48px 8px;
}

.product-slider-track {
    align-items: stretch;
    margin: 0 -8px;
}

.product-slider .product-slide {
    padding: 10px;
}

.product-slider .product {
    height: 180px;
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-slider .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: rgba(254,199,111,.8);
}

.product-slider .product-image {
    max-width: 90%;
    max-height: 105px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.product-slider .product-name {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #555;
}

.product-slider-arrow {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    color: #555;
    transition: all .2s ease;
}

.product-slider-arrow:hover {
    background: var(--onmart-accent);
    border-color: var(--onmart-accent);
    color: #fff;
}

.product-prev { left: 8px; }
.product-next { right: 8px; }

.product-slider-dot {
    width: 7px;
    height: 7px;
    background: #d8d8d8;
}

.product-slider-dot.active {
    width: 20px;
    border-radius: 10px;
    background: var(--onmart-accent);
}

/* =========================
   OFFER MODAL
========================= */

.modal-overlay {
    background: rgba(20,20,20,.65);
    backdrop-filter: blur(2px);
}

.modal {
    width: min(760px, calc(100% - 30px));
    max-height: 88vh;
    padding: 28px 30px 24px;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    top: 52%;
}

.modal .close {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    color: #666;
    background: #f5f5f5;
    line-height: 30px;
    transition: all .2s ease;
}

.modal .close:hover {
    color: #222;
    background: rgba(254,199,111,.25);
}

.modal .title {
    margin-bottom: 22px;
    padding-right: 30px;
}

.modal .title h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 25px;
    font-weight: 500;
}

.modal .title p {
    margin-bottom: 0;
    color: #777;
}

.modal input,
.modal textarea,
.modal select {
    border: 1px solid #dedede;
    border-radius: 5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    border-color: var(--onmart-accent);
    box-shadow: 0 0 0 3px rgba(254,199,111,.18);
    outline: 0;
}

.modal .fbut {
    background: var(--onmart-accent);
    border: 0;
    border-radius: 4px;
    color: #fff;
    padding: 11px 20px;
    transition: background .2s ease, transform .2s ease;
}

.modal .fbut:hover {
    background: var(--onmart-accent-dark);
    transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #313137;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 9px;
    background: var(--onmart-accent);
}

.footer .qlinks li {
    padding: 5px 0;
}

.footer .qlinks li a:hover {
    color: var(--onmart-accent);
}

.copyright_info {
    margin-top: 45px;
}

/* =========================
   WHATSAPP
========================= */

.floating_btn {
    width: auto;
    height: auto;
    right: 22px;
    bottom: 22px;
}

.contact_icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .menu_main .nav > li > a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }

    .product-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .header .logo {
        padding: 9px 0;
    }

    .logo img {
        max-height: 54px;
    }

    .menu_main {
        min-height: 70px;
    }

    .menu_main .nav > li > a {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .slider {
        height: 58vh;
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .top_nav .left,
    .top_nav .right {
        width: 100%;
        float: none;
        text-align: center;
    }

    .header .logo {
        text-align: center;
    }

    .menu_main .nav > li > a::after {
        display: none;
    }

    .slider {
        height: 58vh;
        min-height: 360px;
    }

    .slide-content {
        left: 28px;
        right: 28px;
        max-width: none;
    }

    .featured_section13 {
        padding: 48px 0 55px;
    }

    .featured_section13 .container > h1,
    .featured_section13 .product-slider > h1 {
        font-size: 25px;
    }

    .product-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-gallery .product img {
        height: 190px;
    }

    .product-slider {
        padding-left: 34px;
        padding-right: 34px;
    }

    .product-slider .product {
        height: 155px;
    }

    .modal {
        padding: 22px 18px 18px;
    }

    .modal .one_half,
    .modal .one_half.last {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-gallery .product img {
        height: 210px;
    }

    .product-slider .product {
        height: 145px;
    }

    .contact_icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .floating_btn {
        right: 14px;
        bottom: 14px;
    }
}
