/* Yasta Fashion V4.17.0.6 — extracted cacheable page CSS from pages/catalog.php */

/* ======================================================
       ALL PRODUCTS PAGE
    ====================================================== */

    .yf-products-page {
        --yf-primary: #ff642f;
        --yf-primary-dark: #e84e1d;
        --yf-primary-soft: #fff3ee;
        --yf-ink: #172033;
        --yf-muted: #748096;
        --yf-border: #e7ebf1;
        --yf-surface: #fff;
        padding: 28px 0 60px;
        color: var(--yf-ink);
    }

    .yf-products-container {
        width: min(
            1420px,
            calc(100% - 32px)
        );
        margin-inline: auto;
    }

    /* ======================================================
       BREADCRUMB
    ====================================================== */

    .yf-products-breadcrumb {
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--yf-muted);
        font-size: 10px;
    }

    .yf-products-breadcrumb a {
        color: var(--yf-muted);
        text-decoration: none;
    }

    .yf-products-breadcrumb a:hover {
        color: var(--yf-primary);
    }

    .yf-products-breadcrumb i {
        font-size: 8px;
    }

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

    .yf-products-hero {
        position: relative;
        margin-bottom: 22px;
        padding: 30px 34px;
        overflow: hidden;
        color: #fff;
        background:
            radial-gradient(
                circle at 88% 16%,
                rgba(255, 100, 47, .34),
                transparent 27%
            ),
            linear-gradient(
                140deg,
                #172033,
                #293954
            );
        border-radius: 22px;
        box-shadow:
            0 17px 42px rgba(27, 39, 65, .12);
    }

    .yf-products-hero::after {
        content: "";
        position: absolute;
        top: -70px;
        right: -50px;
        width: 210px;
        height: 210px;
        border: 38px solid rgba(255, 255, 255, .045);
        border-radius: 50%;
    }

    .yf-products-hero-content {
        position: relative;
        z-index: 1;
    }

    .yf-products-hero small {
        display: block;
        margin-bottom: 7px;
        color: #ff9a72;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .yf-products-hero h1 {
        margin: 0;
        color: #fff;
        font-size: clamp(
            25px,
            4vw,
            38px
        );
        font-weight: 850;
        letter-spacing: -1px;
    }

    .yf-products-hero p {
        max-width: 580px;
        margin: 9px 0 0;
        color: rgba(255, 255, 255, .68);
        font-size: 11px;
        line-height: 1.7;
    }

    /* ======================================================
       TOOLBAR
    ====================================================== */

    .yf-products-toolbar {
        margin-bottom: 22px;
        padding: 14px;
        display: grid;
        grid-template-columns:
            minmax(230px, 1fr)
            auto;
        gap: 13px;
        align-items: center;
        background: #fff;
        border: 1px solid var(--yf-border);
        border-radius: 16px;
        box-shadow:
            0 8px 28px rgba(29, 42, 68, .045);
    }

    .yf-products-search-form {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            45px;
        gap: 8px;
    }

    .yf-products-search {
        position: relative;
    }

    .yf-products-search i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: #96a0b1;
        font-size: 13px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .yf-products-search input,
    .yf-products-sort {
        width: 100%;
        min-height: 43px;
        color: var(--yf-ink);
        background: #f8f9fb;
        border: 1px solid #e3e7ed;
        border-radius: 11px;
        font-size: 10px;
        outline: 0;
        transition:
            border-color .2s ease,
            box-shadow .2s ease,
            background .2s ease;
    }

    .yf-products-search input {
        padding: 10px 13px 10px 39px;
    }

    .yf-products-sort {
        min-width: 190px;
        padding: 10px 35px 10px 12px;
    }

    .yf-products-search input:focus,
    .yf-products-sort:focus {
        background: #fff;
        border-color: var(--yf-primary);
        box-shadow:
            0 0 0 3px rgba(255, 100, 47, .11);
    }

    .yf-products-search-button {
        min-height: 43px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: var(--yf-primary);
        border: 0;
        border-radius: 11px;
        cursor: pointer;
        transition:
            background .2s ease,
            transform .2s ease;
    }

    .yf-products-search-button:hover {
        background: var(--yf-primary-dark);
        transform: translateY(-1px);
    }

    .yf-products-toolbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .yf-products-count {
        color: var(--yf-muted);
        font-size: 9px;
        white-space: nowrap;
    }

    .yf-products-count strong {
        color: var(--yf-ink);
    }

    /* ======================================================
       SEARCH INFORMATION
    ====================================================== */

    .yf-products-result-info {
        margin: -7px 0 20px;
        padding: 11px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        color: var(--yf-muted);
        background: var(--yf-primary-soft);
        border: 1px solid #ffe0d3;
        border-radius: 12px;
        font-size: 10px;
    }

    .yf-products-result-info strong {
        color: var(--yf-primary);
    }

    .yf-products-clear {
        color: var(--yf-primary);
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    /* ======================================================
       GRID
    ====================================================== */

    .yf-all-products-grid {
        display: grid;
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
        gap: 17px;
    }

    .yf-all-product-link {
        height: 100%;
        min-width: 0;
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .yf-all-product-link:hover {
        color: inherit;
    }

    .yf-all-product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--yf-border);
        border-radius: 18px;
        box-shadow:
            0 7px 24px rgba(29, 42, 68, .05);
        transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;
    }

    .yf-all-product-card:hover {
        border-color: #ffd5c5;
        box-shadow:
            0 18px 42px rgba(29, 42, 68, .12);
        transform: translateY(-5px);
    }

    .yf-all-product-image-wrap {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background:
            linear-gradient(
                145deg,
                #fafbfc,
                #f1f3f7
            );
    }

    .yf-all-product-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        padding: 5px;
        transition: transform .4s ease;
    }

    .yf-all-product-card:hover
    .yf-all-product-image {
        transform: scale(1.035);
    }

    .yf-all-product-image-wrap.image-error::after {
        content: "Yasta Fashion";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #9ca5b4;
        font-size: 10px;
        font-weight: 850;
    }

    .yf-all-product-stock {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        padding: 6px 9px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #159455;
        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(21, 148, 85, .14);
        border-radius: 999px;
        font-size: 8px;
        font-weight: 850;
        box-shadow:
            0 5px 16px rgba(29, 42, 68, .08);
    }

    .yf-all-product-stock.out {
        color: #dc3545;
        border-color: rgba(220, 53, 69, .15);
    }

    .yf-all-product-stock i {
        font-size: 7px;
    }

    .yf-all-product-body {
        flex: 1;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    .yf-all-product-official {
        margin-bottom: 7px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--yf-primary);
        font-size: 8px;
        font-weight: 850;
        letter-spacing: .2px;
        text-transform: uppercase;
    }

    .yf-all-product-title {
        min-height: 75px;
        margin: 0 0 4px;
        display: -webkit-box;
        overflow: hidden;
        color: var(--yf-ink);
        font-size: 12px;
        font-weight: 650;
        line-height: 1.55;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        transition: color .2s ease;
    }

    .yf-all-product-card:hover
    .yf-all-product-title {
        color: var(--yf-primary);
    }

    .yf-all-product-meta {
        width: fit-content;
        min-height: 28px;
        margin-top: 7px;
        padding: 5px 9px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #5d6678;
        background: #f6f7f9;
        border: 1px solid #eaedf2;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 750;
        line-height: 1;
    }

    .yf-all-product-meta i {
        color: #f4a100;
        font-size: 11px;
    }

    .yf-all-product-commerce-row {
        margin-top: auto;
        padding-top: 11px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .yf-all-product-price {
        min-width: 0;
        margin: 0;
        color: var(--yf-primary);
        font-size: 21px;
        font-weight: 900;
        letter-spacing: -.5px;
        line-height: 1.15;
    }

    .yf-all-product-action {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0;
        display: grid;
        place-items: center;
        color: #fff;
        background: linear-gradient(135deg,#f4512c,#ff7547);
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(238,77,45,.2);
        font-size: 15px;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .yf-all-product-card:hover
    .yf-all-product-action {
        transform: translateY(-2px);
        box-shadow: 0 11px 24px rgba(238,77,45,.28);
    }

    .yf-all-product-action.disabled {
        color: #8d96a6;
        background: #edf0f4;
        box-shadow: none;
    }

    /* ======================================================
       EMPTY
    ====================================================== */

    .yf-products-empty {
        grid-column: 1 / -1;
        padding: 75px 20px;
        color: var(--yf-muted);
        background: #fff;
        border: 1px dashed #d9dfe8;
        border-radius: 20px;
        text-align: center;
    }

    .yf-products-empty-icon {
        width: 65px;
        height: 65px;
        margin: 0 auto 16px;
        display: grid;
        place-items: center;
        color: #aab3c2;
        background: #f2f4f7;
        border-radius: 20px;
        font-size: 27px;
    }

    .yf-products-empty h2 {
        margin: 0;
        color: var(--yf-ink);
        font-size: 18px;
        font-weight: 850;
    }

    .yf-products-empty p {
        margin: 7px 0 18px;
        font-size: 10px;
    }

    .yf-products-empty a {
        padding: 10px 15px;
        display: inline-flex;
        color: #fff;
        background: var(--yf-primary);
        border-radius: 10px;
        font-size: 9px;
        font-weight: 850;
        text-decoration: none;
    }

    /* ======================================================
       PAGINATION
    ====================================================== */

    .yf-products-pagination {
        margin-top: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .yf-page-link {
        min-width: 39px;
        height: 39px;
        padding: 0 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--yf-muted);
        background: #fff;
        border: 1px solid var(--yf-border);
        border-radius: 10px;
        font-size: 10px;
        font-weight: 750;
        text-decoration: none;
        transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease;
    }

    .yf-page-link:hover,
    .yf-page-link.active {
        color: #fff;
        background: var(--yf-primary);
        border-color: var(--yf-primary);
    }

    .yf-page-link.disabled {
        color: #b8bfca;
        background: #f2f4f7;
        pointer-events: none;
    }

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

    @media (max-width: 1199px) {
        .yf-all-products-grid {
            grid-template-columns:
                repeat(
                    3,
                    minmax(0, 1fr)
                );
        }
    }

    @media (max-width: 767px) {
        .yf-products-page {
            padding-top: 14px;
        }

        .yf-products-container {
            width: calc(100% - 20px);
        }

        .yf-products-breadcrumb {
            margin-bottom: 10px;
        }

        .yf-products-hero {
            margin-bottom: 12px;
            padding: 21px 20px;
            border-radius: 16px;
        }

        .yf-products-hero h1 {
            font-size: 25px;
        }

        .yf-products-hero p {
            margin-top: 6px;
            font-size: 9px;
        }

        .yf-products-toolbar {
            padding: 10px;
            grid-template-columns: 1fr;
            gap: 9px;
            border-radius: 13px;
        }

        .yf-products-toolbar-right {
            width: 100%;
            display: grid;
            grid-template-columns:
                1fr auto;
        }

        .yf-products-sort {
            min-width: 0;
        }

        .yf-products-count {
            text-align: right;
        }

        .yf-all-products-grid {
            grid-template-columns:
                repeat(
                    2,
                    minmax(0, 1fr)
                );
            gap: 10px;
        }

        .yf-all-product-card {
            border-radius: 13px;
        }

        .yf-all-product-body {
            padding: 10px;
        }

        .yf-all-product-title {
            min-height: 65px;
            font-size: 10.5px;
        }

        .yf-all-product-meta {
            min-height: 25px;
            margin-top: 5px;
            padding: 4px 7px;
            font-size: 8px;
        }

        .yf-all-product-meta i {
            font-size: 9px;
        }

        .yf-all-product-commerce-row {
            padding-top: 9px;
            gap: 7px;
        }

        .yf-all-product-price {
            font-size: 16px;
        }

        .yf-all-product-action {
            width: 32px;
            min-width: 32px;
            height: 32px;
            min-height: 32px;
            border-radius: 10px;
            font-size: 13px;
        }

        .yf-all-product-stock {
            top: 7px;
            left: 7px;
            padding: 5px 7px;
            font-size: 7px;
        }

        .yf-products-result-info {
            align-items: flex-start;
            flex-direction: column;
            gap: 7px;
        }

        .yf-products-pagination {
            margin-top: 25px;
        }

        .yf-page-link {
            min-width: 35px;
            height: 35px;
            padding: 0 9px;
        }
    }

    @media (max-width: 430px) {
        .yf-all-product-title {
            min-height: 62px;
            font-size: 10px;
        }

        .yf-all-product-price {
            font-size: 15px;
        }

        .yf-products-count {
            font-size: 8px;
        }
    }
