/* /public_html/dev/web/assets/home.css */

/* ===============================
   BASE
================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #222222;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

/* ===============================
   HEADER
================================ */

.op-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 34px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.op-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.op-mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    color: #16823e;
    font-size: 26px;
    line-height: 1;
}

.op-logo {
    display: flex;
    align-items: center;
    min-width: 118px;
}

.op-logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.op-search {
    flex: 1;
    display: flex;
    height: 44px;
    max-width: 740px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #16823e;
    border-radius: 8px;
}

.op-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.op-search button {
    width: 58px;
    border: 0;
    background: #16823e;
    color: #ffffff;
    font-size: 18px;
}

.op-header__links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    white-space: nowrap;
}

.op-header__links a {
    color: #333333;
}

.op-header__links a:hover {
    color: #16823e;
}

.op-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: #ff8a00;
    color: #ffffff;
    font-weight: 800;
}

.op-cart-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    color: #ff8a00;
    font-size: 12px;
}

/* ===============================
   GREEN MENU BAR
================================ */

.op-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 34px;
    background: #16823e;
    color: #ffffff;
    font-size: 14px;
}

.op-menu__left {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.op-menu__left::-webkit-scrollbar {
    display: none;
}

.op-menu__left a {
    white-space: nowrap;
}

.op-menu__right {
    white-space: nowrap;
    font-weight: 700;
}

/* ===============================
   HERO - GENERATED GREEN LAYOUT
================================ */

.op-hero {
    position: relative;
    max-width: 1220px;
    min-height: 360px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #10813d 0%, #20b55b 55%, #ff9f1c 100%);
    box-shadow: 0 14px 28px rgba(15, 90, 45, 0.18);
}

.op-hero__track {
    width: 100%;
    height: 100%;
}

.op-hero__slide {
    display: none;
    min-height: 330px;
    padding: 38px 58px;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
    align-items: center;
}

.op-hero__slide.active {
    display: grid;
}

.op-hero__content {
    color: #ffffff;
}

.op-hero__content h1 {
    margin: 0 0 10px;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.op-hero__content h1 span {
    display: block;
    color: #fff3cf;
}

.op-hero__content h2 {
    max-width: 580px;
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 600;
}

.op-hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.op-hero__benefits div {
    min-height: 82px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.op-hero__benefits b {
    display: block;
    margin: 7px 0 3px;
}

.op-hero__benefits small {
    display: block;
    opacity: 0.9;
}

.op-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.op-hero__buttons button {
    padding: 13px 24px;
    border: 0;
    border-radius: 10px;
    background: #ff8a00;
    color: #ffffff;
    font-weight: 800;
}

.op-hero__buttons button.outline {
    border: 2px solid #ffffff;
    background: transparent;
}

.op-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.op-hero__image img {
    width: 100%;
    max-width: none;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.op-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 230px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.op-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #16823e;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
}

.op-hero__arrow--left {
    left: 14px;
}

.op-hero__arrow--right {
    right: 14px;
}

.op-hero__dots {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.op-hero__dots span,
.op-hero__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
}

.op-hero__dots span.active,
.op-hero__dots button.active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

/* ===============================
   QUICK ICONS - i have made this invisible
================================ */

.op-quick {
    display: none;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    max-width: 1220px;
    margin: 18px auto;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.op-quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    border-radius: 12px;
    background: #f7faf8;
    text-align: center;
    font-size: 24px;
}

.op-quick span {
    color: #333333;
    font-size: 12px;
    line-height: 1.25;
}

/* ===============================
   COMMON SECTIONS
================================ */

.op-section,
.op-lower {
    max-width: 1220px;
    margin: 18px auto;
}

.op-section,
.op-live,
.op-local {
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

.op-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f2;
}

.op-section__head h3 {
    margin: 0;
    color: #16823e;
    font-size: 20px;
    letter-spacing: 0.3px;
}

.op-section__head a {
    color: #16823e;
    font-size: 14px;
    font-weight: 700;
}

.op-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.op-title-row span {
    color: #777777;
    font-size: 14px;
}

.op-timer {
    padding: 5px 8px;
    border-radius: 6px;
    background: #222222;
    color: #ffffff;
    font-size: 13px;
}

/* ===============================
   CATEGORIES
================================ */

.op-category-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.op-category-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 108px;
    border-right: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
    text-align: center;
    font-size: 26px;
}

.op-category-grid span {
    color: #333333;
    font-size: 13px;
}

/* ===============================
   PRODUCTS
================================ */

.op-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 16px;
}

.op-loading,
.op-empty,
.op-error {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #777777;
}

.op-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    background: #ffffff;
}

.op-product-card__image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    background: #f7f7f7;
}

.op-product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.op-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.op-product-card__body {
    padding: 10px;
}

.op-product-card__name {
    height: 36px;
    overflow: hidden;
    color: #222222;
    font-size: 14px;
    line-height: 18px;
}

.op-product-card__seller {
    margin-top: 5px;
    overflow: hidden;
    color: #777777;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.op-product-card__price {
    margin-top: 8px;
    color: #e53935;
    font-size: 18px;
    font-weight: 800;
}

.op-product-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: #777777;
    font-size: 12px;
}

.op-product-card__actions {
    margin-top: 10px;
}

.op-product-card__actions button {
    width: 100%;
    padding: 9px 8px;
    border: 0;
    border-radius: 8px;
    background: #16823e;
    color: #ffffff;
    font-weight: 800;
}

/* ===============================
   LIVE + LOCAL
================================ */

.op-lower {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
}

.op-live-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
}

.op-live-card {
    min-height: 142px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #202020, #3b3b3b);
    color: #ffffff;
    font-size: 14px;
}

.op-live-card b {
    display: block;
    margin: 18px 0 6px;
    font-size: 16px;
}

.op-live-card small {
    display: block;
    color: #dddddd;
}

.op-local-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.op-local-grid a {
    min-height: 106px;
    padding: 14px;
    border-radius: 14px;
    background: #f7faf8;
    font-size: 24px;
}

.op-local-grid b,
.op-local-grid small {
    display: block;
}

.op-local-grid b {
    margin-top: 8px;
    color: #16823e;
    font-size: 15px;
}

.op-local-grid small {
    margin-top: 4px;
    color: #666666;
    font-size: 12px;
    line-height: 1.35;
}

/* ===============================
   TRUST BAR
================================ */

.op-trust {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 1220px;
    margin: 18px auto 34px;
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
}

.op-trust div {
    min-height: 72px;
    padding: 12px;
    border-radius: 12px;
    background: #f7faf8;
    font-size: 22px;
}

.op-trust b,
.op-trust span {
    display: block;
}

.op-trust b {
    margin: 6px 0 3px;
    color: #16823e;
    font-size: 14px;
}

.op-trust span {
    color: #666666;
    font-size: 12px;
}

/* ===============================
   MOBILE APP BLOCK
================================ */

.op-app-block {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.op-app-block.show {
    display: flex;
}

.op-app-block b {
    color: #16823e;
}

.op-app-block p {
    margin: 4px 0 0;
    color: #555555;
    font-size: 13px;
}

#downloadAppBtn {
    padding: 11px 14px;
    border: 0;
    border-radius: 9px;
    background: #16823e;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

#closeAppBlock {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 18px;
}

/* ===============================
   TABLET
================================ */

@media screen and (max-width: 1100px) {
    .op-header {
        padding: 12px 18px;
    }

    .op-header__links a {
        display: none;
    }

    .op-menu {
        padding: 10px 18px;
    }

    .op-hero,
    .op-section,
    .op-lower,
    .op-quick,
    .op-trust {
        margin-right: 12px;
        margin-left: 12px;
    }

    .op-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .op-category-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .op-quick {
        grid-template-columns: repeat(5, 1fr);
    }

    .op-lower {
        grid-template-columns: 1fr;
    }

    .op-trust {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===============================
   MOBILE
================================ */

@media screen and (max-width: 768px) {
    .op-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .op-mobile-menu {
        display: block;
    }

    .op-logo {
        min-width: auto;
    }

    .op-logo img {
        height: 42px;
    }

    .op-header__links {
        margin-left: auto;
    }

    .op-header__links a {
        display: none;
    }

    .op-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        height: 42px;
    }

    .op-menu {
        padding: 9px 12px;
        font-size: 13px;
    }

    .op-menu__right {
        display: none;
    }

    .op-menu__left {
        gap: 18px;
    }

 .op-hero {
    min-height: auto;
    margin: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.op-hero__slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
}

.op-hero__content {
    display: none;
}

.op-hero__image {
    display: flex;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.op-hero__image img {
    width: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
}

.op-hero__arrow {
    display: none;
}

.op-hero__dots {
    bottom: 8px;
}
   .op-quick {
    display: none;
}
    .op-section,
    .op-lower,
    .op-trust {
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
    }

    .op-section__head {
        padding: 14px 12px;
    }

    .op-section__head h3 {
        font-size: 17px;
    }

    .op-section__head a {
        font-size: 12px;
    }
.op-quick + .op-section {
    display: none;
}
    .op-category-grid a {
        min-height: 82px;
        font-size: 22px;
    }

    .op-category-grid span {
        font-size: 11px;
    }

    .op-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 5px;
    }

    .op-product-card {
        border-radius: 6px;
    }

    .op-product-card__badge {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .op-product-card__body {
        padding: 4px;
    }

    .op-product-card__name {
        height: 26px;
        font-size: 10px;
        line-height: 13px;
    }

    .op-product-card__seller {
        display: none;
    }

    .op-product-card__price {
        margin-top: 3px;
        font-size: 12px;
    }

    .op-product-card__meta {
        margin-top: 2px;
        font-size: 9px;
    }

    .op-product-card__actions {
        margin-top: 4px;
    }

    .op-product-card__actions button {
        padding: 5px 2px;
        border-radius: 5px;
        font-size: 10px;
    }

    .op-live-row {
        display: flex;
        overflow-x: auto;
        padding: 12px;
        scrollbar-width: none;
    }

    .op-live-row::-webkit-scrollbar {
        display: none;
    }

    .op-live-card {
        min-width: 190px;
    }

    .op-local-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .op-trust {
        grid-template-columns: 1fr;
        margin-bottom: 90px;
        padding: 12px;
    }

    .op-app-block {
        right: 10px;
        bottom: 10px;
        left: 10px;
        align-items: flex-start;
    }
}

/* ===============================
   SMALL MOBILE
================================ */

@media screen and (max-width: 420px) {
    .op-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px;
    }

    .op-product-card__name {
        height: 24px;
        font-size: 9px;
        line-height: 12px;
    }

    .op-product-card__price {
        font-size: 11px;
    }

    .op-product-card__meta {
        font-size: 8px;
    }

    .op-product-card__actions button {
        padding: 4px 2px;
        font-size: 9px;
    }

    .op-local-grid {
        grid-template-columns: 1fr;
    }

    .op-app-block {
        flex-wrap: wrap;
    }

    #downloadAppBtn {
        width: calc(100% - 44px);
    }
}

.op-live-card--player {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    height: 190px;
    background: #000 !important;
}

.op-live-card--player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.op-live-card__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0));
    color: #fff;
    cursor: pointer;
    text-align: left;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: auto;
}

.op-live-card__overlay span {
    background: rgba(0,0,0,.55);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.op-live-card__overlay b,
.op-live-card__overlay small {
    display: none !important;
}ont-size: 12px;
}

/* ======================================================
   ONPAL HOME — Compact Marketplace Product Cards
   Scope:
   - Product section/product cards only
   - CSS only
   - No PHP/API/JS change
====================================================== */

.op-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    align-items: stretch;
}

.op-product-card {
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e5ece7;
    border-radius: 10px;
    background: #ffffff;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.op-product-card:hover {
    transform: translateY(-1px);
    border-color: #16a34a;
    box-shadow: 0 8px 18px rgba(0, 80, 35, 0.10);
}

.op-product-card__image {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f7f6;
    border-bottom: 1px solid #edf2ee;
}

.op-product-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.16s ease;
}

.op-product-card:hover .op-product-card__image img {
    transform: scale(1.025);
}

.op-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(255, 59, 48, 0.20);
}

.op-product-card__body {
    padding: 8px 9px 9px;
    display: flex;
    flex-direction: column;
    min-height: 126px;
}

.op-product-card__name {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 17px;
    min-height: 34px;
    max-height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.op-product-card__name:hover {
    color: #07883f;
}

.op-product-card__seller {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    line-height: 14px;
    min-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-product-card__price {
    margin-top: 5px;
    color: #f0441f;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    min-height: 21px;
}

.op-product-card__meta {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #6b7280;
    font-size: 11px;
    line-height: 14px;
}

.op-product-card__meta span:first-child {
    color: #6b7280;
}

.op-product-card__actions {
    margin-top: auto;
    padding-top: 7px;
}

.op-product-card__actions button {
    width: 100%;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: #13843a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.14s ease, transform 0.14s ease;
}

.op-product-card__actions button:hover {
    background: #0f6f31;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .op-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
        padding: 10px;
    }
}

@media (max-width: 760px) {
    .op-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
    }

    .op-product-card {
        border-radius: 6px;
    }

    .op-product-card__badge {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .op-product-card__body {
        min-height: 108px;
        padding: 5px;
    }

    .op-product-card__name {
        font-size: 10px;
        line-height: 13px;
        min-height: 26px;
        max-height: 26px;
    }

    .op-product-card__seller {
        display: none;
    }

    .op-product-card__price {
        margin-top: 3px;
        font-size: 12px;
    }

    .op-product-card__meta {
        margin-top: 2px;
        font-size: 9px;
        line-height: 12px;
    }

    .op-product-card__actions {
        padding-top: 4px;
    }

    .op-product-card__actions button {
        height: 28px;
        border-radius: 5px;
        font-size: 10px;
    }
}

/* ======================================================
   ONPAL HOME — Mobile Homepage Cleanup
   Scope:
   - Homepage mobile only
   - Hide lower support-local block and universal footer
   - Keep product grid visible
====================================================== */

@media screen and (max-width: 768px) {
    body[data-api-home] .op-local,
    body[data-api-home] .op-site-footer {
        display: none !important;
    }
}