/* ==========================================================================
   Omni Home – modern storefront homepage design
   Scoped under .omni-home so other pages stay untouched.
   ========================================================================== */

.omni-home {
    --omni-primary: #ff6a00;
    --omni-primary-dark: #e85e00;
    --omni-ink: #1f2733;
    --omni-muted: #8a94a6;
    --omni-line: #ececf1;
    --omni-green: #1faa59;
    --omni-green-soft: #eafaf0;
    --omni-green-line: #cdeeda;
    --omni-card-radius: 16px;
    background: #f6f7fb;
    padding-bottom: 10px;
}

/* ---------- Hero: category sidebar + slider ---------- */
.omni-home .omni-hero {
    margin-top: 20px;
}

.omni-home .omni-hero .hero-slider,
.omni-home .omni-hero-slider {
    height: 100%;
    border-radius: 14px;
}

.omni-home .omni-hero .hero-slider .item {
    height: 420px;
    border-radius: 14px;
}

.omni-home .omni-cat-sidebar {
    height: 420px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--omni-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.omni-home .omni-cat-sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--omni-primary);
    flex-shrink: 0;
}

.omni-home .omni-cat-sidebar-head i {
    font-size: 16px;
}

.omni-home .omni-cat-list {
    list-style: none;
    margin: 0;
    padding: 3px 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.omni-home .omni-cat-list::-webkit-scrollbar {
    width: 6px;
}

.omni-home .omni-cat-list::-webkit-scrollbar-thumb {
    background: #dcdfe6;
    border-radius: 6px;
}

.omni-home .omni-cat-item {
    position: relative;
}

.omni-home .omni-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8.5px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--omni-ink);
    transition: background 0.18s ease, color 0.18s ease;
}

.omni-home .omni-cat-link:hover {
    background: #fff6ef;
    color: var(--omni-primary);
}

.omni-home .omni-cat-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--omni-muted);
    font-size: 16px;
}

.omni-home .omni-cat-link:hover .omni-cat-icon {
    color: var(--omni-primary);
}

.omni-home .omni-cat-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.omni-home .omni-cat-name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.omni-home .omni-cat-arrow {
    font-size: 12px;
    color: var(--omni-muted);
    flex-shrink: 0;
}

.omni-home .omni-cat-item--all .omni-cat-link {
    color: var(--omni-primary);
    font-weight: 700;
}

/* flyout submenu */
.omni-home .omni-cat-flyout {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 30;
    min-width: 440px;
    max-width: 560px;
    min-height: 100%;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    background: #fff;
    border: 1px solid var(--omni-line);
    border-radius: 0 12px 12px 0;
    box-shadow: 16px 10px 34px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: all 0.18s ease;
}

.omni-home .omni-cat-item:hover > .omni-cat-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.omni-home .omni-cat-flyout-col {
    min-width: 150px;
}

.omni-home .omni-cat-flyout-title {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--omni-ink);
}

.omni-home .omni-cat-flyout-title:hover {
    color: var(--omni-primary);
}

.omni-home .omni-cat-flyout-child {
    list-style: none;
    margin: 0;
    padding: 0;
}

.omni-home .omni-cat-flyout-child li a {
    display: block;
    padding: 4px 0;
    font-size: 12.5px;
    color: var(--omni-muted);
}

.omni-home .omni-cat-flyout-child li a:hover {
    color: var(--omni-primary);
}

/* ---------- Section heads ---------- */
.omni-home .omni-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.omni-home .omni-section-head .omni-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.omni-home .omni-section-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--omni-primary);
}

.omni-home .omni-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--omni-ink);
    position: relative;
    padding-left: 14px;
}

.omni-home .omni-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 6px;
    background: var(--omni-primary);
}

.omni-home .omni-link-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--omni-ink);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--omni-line);
    background: #fff;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.omni-home .omni-link-more:hover {
    color: #fff;
    background: var(--omni-primary);
    border-color: var(--omni-primary);
}

/* ---------- Product card ---------- */
.omni-home .product-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--omni-card-radius);
    border: 1px solid var(--omni-line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.omni-home .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, 0.35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.omni-home .product-card .product-thumb {
    position: relative;
    display: block;
    padding: 12px;
    background: #fff;
}

.omni-home .product-card .product-thumb > a,
.omni-home .product-card .product-thumb > .d-block {
    display: block;
}

.omni-home .product-card .product-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
    background: #f6f7fb;
    transition: transform 0.3s ease;
}

.omni-home .product-card:hover .product-thumb img {
    transform: scale(1.04);
}

/* badges */
.omni-home .product-card .product-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 30px;
}

.omni-home .product-card .product-badge2 {
    right: 14px;
    left: auto;
    background: var(--omni-primary) !important;
    color: #fff !important;
}

.omni-home .product-card .product-badge.bg-secondary {
    left: 14px;
    background: #222 !important;
    color: #fff !important;
}

/* floating action buttons */
.omni-home .product-card .product-button-group {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.25s ease;
}

.omni-home .product-card:hover .product-button-group {
    opacity: 1;
    transform: translateX(0);
}

.omni-home .product-card .product-button-group .product-badge2 ~ * {
    /* keep spacing when discount badge present */
}

.omni-home .product-card .product-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--omni-ink);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-size: 15px;
    transition: all 0.2s ease;
}

.omni-home .product-card .product-button:hover {
    background: var(--omni-primary);
    color: #fff;
}

/* when a discount badge is on the right, push action buttons down */
.omni-home .product-card .product-thumb .product-badge2 + img + .product-button-group,
.omni-home .product-card .product-thumb .product-badge2 ~ .product-button-group {
    top: 52px;
}

.omni-home .product-card .product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 16px 16px;
}

.omni-home .product-card .product-category {
    margin-bottom: 4px;
}

.omni-home .product-card .product-category a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--omni-muted);
}

.omni-home .product-card .product-title {
    margin: 0 0 6px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.omni-home .product-card .product-title a {
    color: var(--omni-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.omni-home .product-card .product-title a:hover {
    color: var(--omni-primary);
}

.omni-home .product-card .rating-stars {
    margin-bottom: 8px;
    font-size: 12px;
    color: #f5a623;
}

.omni-home .product-card .product-price {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--omni-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.omni-home .product-card .product-price del {
    font-size: 13px;
    font-weight: 500;
    color: var(--omni-muted);
}

/* visible add to cart button */
.omni-home .product-card .product-card-body {
    position: relative;
}

.omni-home .omni-add-cart {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: var(--omni-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.omni-home .omni-add-cart:hover {
    background: var(--omni-primary-dark);
}

.omni-home .omni-add-cart:active {
    transform: scale(0.98);
}

.omni-home .omni-add-cart i {
    font-size: 15px;
}

.omni-home .omni-add-cart.omni-add-cart--out {
    background: #eef0f5;
    color: var(--omni-muted) !important;
}

/* ---------- Grid ---------- */
.omni-home .omni-product-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.omni-home .omni-grid-col {
    width: 50%;
}

@media (min-width: 768px) {
    .omni-home .omni-grid-col { width: 33.3333%; }
}
@media (min-width: 992px) {
    .omni-home .omni-grid-col { width: 25%; }
}
@media (min-width: 1200px) {
    .omni-home .omni-grid-col { width: 20%; }
}

/* ---------- Generic home section spacing ---------- */
.omni-home section,
.omni-home .deal-of-day-section,
.omni-home .bannner-section,
.omni-home .flash-sell-new-section,
.omni-home .flash-sell-area,
.omni-home .blog-section-h {
    padding-top: 26px;
    padding-bottom: 26px;
}

/* normalize legacy section-title to new look */
.omni-home .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    border: 0;
}

.omni-home .section-title h2,
.omni-home .section-title .h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--omni-ink);
    position: relative;
    padding-left: 14px;
}

.omni-home .section-title h2::before,
.omni-home .section-title .h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 6px;
    background: var(--omni-primary);
}

.omni-home .section-title .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.omni-home .section-title .links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--omni-muted);
    padding: 7px 16px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--omni-line);
    transition: all 0.2s ease;
}

.omni-home .section-title .links a.active,
.omni-home .section-title .links a:hover {
    color: #fff;
    background: var(--omni-primary);
    border-color: var(--omni-primary);
}

.omni-home .section-title .right-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.omni-home .section-title .right_link {
    font-size: 13px;
    font-weight: 700;
    color: var(--omni-ink);
}

/* ---------- Featured (green) panel ---------- */
.omni-home .omni-featured {
    margin-top: 26px;
}

.omni-home .omni-featured-inner {
    background: var(--omni-green-soft);
    border: 1px solid var(--omni-green-line);
    border-radius: 20px;
    padding: 24px;
}

.omni-home .omni-featured .omni-section-title::before {
    background: var(--omni-green);
}

.omni-home .omni-featured .omni-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--omni-green);
    padding: 6px 14px;
    border-radius: 30px;
}

.omni-home .omni-featured .omni-link-more:hover {
    background: var(--omni-green);
    border-color: var(--omni-green);
}

.omni-home .omni-featured .product-card {
    border-color: #dcefe3;
}

/* ---------- Owl sliders inside home ---------- */
.omni-home .owl-carousel .slider-item {
    padding: 4px;
}

.omni-home .owl-carousel .owl-nav button.owl-prev,
.omni-home .owl-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12) !important;
    color: var(--omni-ink) !important;
}

.omni-home .owl-carousel .owl-nav button:hover {
    background: var(--omni-primary) !important;
    color: #fff !important;
}

/* ---------- Banner tiles ---------- */
.omni-home .genius-banner,
.omni-home .sright-image {
    border-radius: 16px;
    overflow: hidden;
}

.omni-home .genius-banner img {
    border-radius: 16px;
}

/* ---------- Feature / service strip ---------- */
.omni-home .service-section {
    background: #fff;
    border-top: 1px solid var(--omni-line);
    margin-top: 20px;
}

.omni-home .service-section .single-service,
.omni-home .service-section .single-service2 {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left !important;
    padding: 18px;
    height: 100%;
    background: #fafbfd;
    border: 1px solid var(--omni-line);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.omni-home .service-section .single-service:hover {
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.omni-home .service-section .single-service img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.omni-home .service-section .single-service .content {
    text-align: left;
}

.omni-home .service-section .single-service h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--omni-ink);
}

/* ---------- Deal countdown ---------- */
.omni-home .countdown {
    display: inline-flex;
    gap: 6px;
}

/* ---------- Responsive tweaks ---------- */

/* tablet & down */
@media (max-width: 991px) {
    .omni-home {
        padding-bottom: 0;
    }
    .omni-home .omni-hero {
        margin-top: 12px;
    }
    .omni-home .omni-hero .hero-slider .item {
        height: 300px;
        padding: 0 30px;
        border-radius: 12px;
    }
    .omni-home section,
    .omni-home .deal-of-day-section,
    .omni-home .bannner-section,
    .omni-home .flash-sell-new-section,
    .omni-home .flash-sell-area,
    .omni-home .blog-section-h {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .omni-home .mt-40 {
        margin-top: 22px !important;
    }
}

/* phones */
@media (max-width: 767px) {
    .omni-home .omni-hero .hero-slider .item {
        height: 190px;
        padding: 0 18px;
        background-size: cover !important;
    }

    .omni-home .omni-section-head {
        margin-bottom: 16px;
    }

    .omni-home .omni-section-title,
    .omni-home .section-title h2,
    .omni-home .section-title .h3 {
        font-size: 17px;
        padding-left: 11px;
    }

    .omni-home .omni-section-title::before,
    .omni-home .section-title h2::before,
    .omni-home .section-title .h3::before {
        width: 4px;
        height: 18px;
    }

    .omni-home .omni-link-more {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* compact product card */
    .omni-home .product-card .product-thumb {
        padding: 8px;
    }

    .omni-home .product-card .product-card-body {
        padding: 2px 10px 12px;
    }

    .omni-home .product-card .product-title {
        min-height: 36px;
        font-size: 13px;
    }

    .omni-home .product-card .product-category a {
        font-size: 10px;
    }

    .omni-home .product-card .product-price {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .omni-home .product-card .product-price del {
        font-size: 12px;
    }

    .omni-home .omni-add-cart {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 9px;
    }

    /* keep action buttons visible (no hover on touch) */
    .omni-home .product-card .product-button-group {
        opacity: 1;
        transform: none;
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .omni-home .product-card .product-button {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .omni-home .product-card .product-badge {
        top: 10px;
        font-size: 10px;
        padding: 5px 8px;
    }

    .omni-home .product-card .product-badge2 {
        right: 10px;
    }

    .omni-home .product-card .product-badge.bg-secondary {
        left: 10px;
    }

    /* featured panel */
    .omni-home .omni-featured-inner {
        padding: 14px;
        border-radius: 14px;
    }

    .omni-home .section-title .links {
        gap: 6px;
    }

    .omni-home .section-title .links a {
        padding: 5px 11px;
        font-size: 12px;
    }

    /* service strip single column feel */
    .omni-home .service-section .single-service {
        padding: 14px;
    }

    .omni-home .service-section .single-service img {
        width: 40px;
        height: 40px;
    }

    .omni-home .service-section .single-service h6 {
        font-size: 14px;
    }
}

/* very small phones */
@media (max-width: 360px) {
    .omni-home .product-card .product-title {
        font-size: 12.5px;
    }
    .omni-home .omni-add-cart span {
        font-size: 11px;
    }
}
