
    
    .feature-icon i {
    font-size: 30px;
    color: color-mix(in srgb, var(--color-primary) 90%, white);
    background: color-mix(in srgb, var(--color-primary) 20%, white);
    margin: 10px auto 15px auto;
    height: 65px;
    width: 65px;
    line-height: 65px;
    border-radius: 100%;
}

   .home_pagination {
        display: flex;
        justify-content: center;
        /* يوسّط الأزرار أفقياً */
        align-items: center;
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .home_pagination a {
        color: #000;
        border-radius: 10px;
        padding: 7px 13px;
        margin: 0 3px;
        background-color: #ddd;
        border: 2px solid #ddd;
        background: color-mix(in srgb, var(--btn-bg) 10%, white);
        border: 2px solid color-mix(in srgb, var(--btn-bg) 10%, white);
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        text-decoration: none;
    }

    .home_pagination .page-before-after {
        vertical-align: bottom;
        font-size: 14px;
        margin: 5px 2px 0
    }

    .home_pagination a.active {
        border: 2px solid color-mix(in srgb, var(--btn-bg) 70%, white);
            background: color-mix(in srgb, var(--btn-bg) 30%, white);
    }

    .home_pagination a i {
        font-size: 12px
    }

    .home_pagination a:hover {
        background-color: #bbb;
        border: 2px solid #bbb;
            
            
        background: color-mix(in srgb, var(--btn-bg) 30%, white);
        border: 2px solid color-mix(in srgb, var(--btn-bg) 30%, white);
    }


   

    /* =============================================== */
/* ================= Theme Reviews =============== */
/* =============================================== */

.theme-reviews-section {
    margin-top: 48px;
}

.theme-reviews {
    width: 100%;
    margin: 0;
    padding: 8px 0 28px;
    overflow: hidden;
}

.theme-review-slide {
    padding: 10px;
}

.theme-review-card {
    position: relative;
    min-height: 220px;
    height: 100%;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    text-align: right;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.theme-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--color-primary) 22%, var(--border-color));
}

.theme-review-card::before {
    content: "”";
    position: absolute;
    top: 10px;
    inset-inline-start: 20px;
    font-size: 62px;
    line-height: 1;
    color: color-mix(in srgb, var(--color-primary) 10%, transparent);
    pointer-events: none;
}

.theme-review-head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
}

.theme-review-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background:
        linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)),
        var(--color-primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-family: var(--font-bold);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.theme-review-person {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    text-align: right;
}

.theme-review-name {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-color);
    font-family: var(--font-bold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-review-text {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.9;
    text-align: right;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stars */
.theme-review-stars {
    display: block;
    direction: ltr;
    text-align: left;
    line-height: 1;
}

.theme-review-stars [data-star] {
    position: relative;
    display: inline-block;
    width: 92px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    direction: ltr;
    overflow: hidden;
}

.theme-review-stars [data-star]::before {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    color: #d1d5db;
}

.theme-review-stars [data-star]::after {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #facc15;
}

.theme-review-stars [data-star^="0"]::after { width: 0%; }
.theme-review-stars [data-star^="1"]::after { width: 20%; }
.theme-review-stars [data-star^="1.1"]::after { width: 22%; }
.theme-review-stars [data-star^="1.2"]::after { width: 24%; }
.theme-review-stars [data-star^="1.3"]::after { width: 26%; }
.theme-review-stars [data-star^="1.4"]::after { width: 28%; }
.theme-review-stars [data-star^="1.5"]::after { width: 30%; }
.theme-review-stars [data-star^="1.6"]::after { width: 32%; }
.theme-review-stars [data-star^="1.7"]::after { width: 34%; }
.theme-review-stars [data-star^="1.8"]::after { width: 36%; }
.theme-review-stars [data-star^="1.9"]::after { width: 38%; }
.theme-review-stars [data-star^="2"]::after { width: 40%; }
.theme-review-stars [data-star^="2.1"]::after { width: 42%; }
.theme-review-stars [data-star^="2.2"]::after { width: 44%; }
.theme-review-stars [data-star^="2.3"]::after { width: 46%; }
.theme-review-stars [data-star^="2.4"]::after { width: 48%; }
.theme-review-stars [data-star^="2.5"]::after { width: 50%; }
.theme-review-stars [data-star^="2.6"]::after { width: 52%; }
.theme-review-stars [data-star^="2.7"]::after { width: 54%; }
.theme-review-stars [data-star^="2.8"]::after { width: 56%; }
.theme-review-stars [data-star^="2.9"]::after { width: 58%; }
.theme-review-stars [data-star^="3"]::after { width: 60%; }
.theme-review-stars [data-star^="3.1"]::after { width: 62%; }
.theme-review-stars [data-star^="3.2"]::after { width: 64%; }
.theme-review-stars [data-star^="3.3"]::after { width: 66%; }
.theme-review-stars [data-star^="3.4"]::after { width: 68%; }
.theme-review-stars [data-star^="3.5"]::after { width: 70%; }
.theme-review-stars [data-star^="3.6"]::after { width: 72%; }
.theme-review-stars [data-star^="3.7"]::after { width: 74%; }
.theme-review-stars [data-star^="3.8"]::after { width: 76%; }
.theme-review-stars [data-star^="3.9"]::after { width: 78%; }
.theme-review-stars [data-star^="4"]::after { width: 80%; }
.theme-review-stars [data-star^="4.1"]::after { width: 82%; }
.theme-review-stars [data-star^="4.2"]::after { width: 84%; }
.theme-review-stars [data-star^="4.3"]::after { width: 86%; }
.theme-review-stars [data-star^="4.4"]::after { width: 88%; }
.theme-review-stars [data-star^="4.5"]::after { width: 90%; }
.theme-review-stars [data-star^="4.6"]::after { width: 92%; }
.theme-review-stars [data-star^="4.7"]::after { width: 94%; }
.theme-review-stars [data-star^="4.8"]::after { width: 96%; }
.theme-review-stars [data-star^="4.9"]::after { width: 98%; }
.theme-review-stars [data-star^="5"]::after { width: 100%; }

/* Owl dots */
.theme-reviews .owl-dots {
    margin-top: 16px;
}

.theme-reviews .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 4px;
    background: color-mix(in srgb, var(--text-color) 22%, transparent);
}

.theme-reviews .owl-dot.active span {
    width: 22px;
    border-radius: 999px;
    background: var(--color-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .theme-review-slide {
        padding: 8px;
    }

    .theme-review-card {
        min-height: 190px;
        padding: 18px;
        gap: 14px;
    }

    .theme-review-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 19px;
    }

    .theme-review-name {
        font-size: 14px;
    }

    .theme-review-text {
        font-size: 13px;
        line-height: 1.8;
        -webkit-line-clamp: 4;
    }

    .theme-review-stars [data-star] {
        width: 84px;
        font-size: 14px;
    }
}


/* =============================================== */
/* ============= Products Slider ================= */
/* =============================================== */

.theme-products-section .theme-container {
    overflow: hidden;
}

.theme-products-slider-header {
    gap: 16px;
}

.theme-products-slider-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-products-slider-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.theme-products-slider-btn:hover {
    background: var(--color-primary);
    color: var(--text-white);
    border-color: var(--color-primary);
}

.theme-products-slider-wrap {
    position: relative;
    width: 100%;
}

.theme-products-slider {
    width: 100%;
}

.theme-products-slide {
    height: 100%;
}

.theme-products-slide .products-grid {
    display: block !important;
}

.theme-products-slide .product-card {
    height: 100%;
}

.theme-products-slider .owl-stage {
    display: flex;
}

.theme-products-slider .owl-item {
    display: flex;
    flex-direction: column;
}

.theme-products-slider .owl-item > .theme-products-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.theme-products-slider .owl-item > .theme-products-slide > .product-card {
    width: 100%;
}

@media (max-width: 640px) {
    .theme-products-slider-actions {
        gap: 6px;
    }

    .theme-products-slider-btn {
        width: 34px;
        height: 34px;
    }
}


        .theme-empty-state {
            max-width: 500px;
            margin: 0 auto;
            text-align: center;
            padding: 40px 20px;
        }

        .theme-empty-state-icon {
            width: 88px;
            height: 88px;
            margin: 0 auto 18px;
            border-radius: 50%;
            background: #f7f7f8;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-empty-state-icon i {
            font-size: 36px;
        }

        .theme-empty-state h3 {
            margin: 0 0 8px;
            font-size: 22px;
            font-weight: 700;
            color: #1f1f1f;
        }

        .theme-empty-state p {
            margin: 0;
            font-size: 15px;
            color: #777;
            line-height: 1.8;
        }
        


/* =============================================== */
/* ============== Products Slider ================= */
/* =============================================== */

.theme-products-section .theme-container {
    overflow: hidden;
}

.theme-products-slider-header {
    gap: 16px;
}

.theme-products-slider-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-products-slider-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.theme-products-slider-btn:hover {
    background: var(--color-primary);
    color: var(--text-white);
    border-color: var(--color-primary);
}

.theme-products-slider-wrap {
    position: relative;
    width: 100%;
}

.theme-products-slider {
    width: 100%;
}

.theme-products-slide {
    height: 100%;
}

.theme-products-slide .products-grid {
    display: block !important;
}

.theme-products-slide .product-card {
    height: 100%;
}

.theme-products-slider .owl-stage {
    display: flex;
}

.theme-products-slider .owl-item {
    display: flex;
    flex-direction: column;
}

.theme-products-slider .owl-item > .theme-products-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.theme-products-slider .owl-item > .theme-products-slide > .product-card {
    width: 100%;
}

@media (max-width: 640px) {
    .theme-products-slider-actions {
        gap: 6px;
    }

    .theme-products-slider-btn {
        width: 34px;
        height: 34px;
    }
}

/* Review stars own their geometry; product-detail globals use RTL/right alignment.
   Size from the five glyphs so partial fills measure the actual star row. */
.theme-review-stars [data-star] {
    width: max-content;
    height: auto;
    margin-top: 0;
    font-style: normal;
    text-align: left;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.theme-review-stars [data-star]::before {
    position: relative;
    display: block;
    right: auto;
    white-space: nowrap;
}
.theme-review-stars [data-star]::after {
    right: auto;
    text-align: left;
    height: 100%;
}


/* Schema-driven homepage sections. Override these selectors in the child theme's sections.css. */
.tby-home-extra {
    padding: clamp(14px, 3vw, 32px);
    color: var(--gv-text, var(--text-color, inherit));
}
.tby-home-extra h2 { margin: 0 0 16px; }
.tby-home-extra p { line-height: 1.7; }
.tby-home-link-cards ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tby-home-link-cards a, .tby-home-faq__item {
    border: 1px solid var(--tby-home-border, var(--border-color, #ddd));
    background: var(--tby-home-surface, var(--bg-card, transparent));
    color: inherit;
    border-radius: var(--border-radius, 8px);
}
.tby-home-link-cards a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    height: 100%;
    padding: 12px;
    text-align: center;
}
.tby-home-link-cards img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    margin-block-end: 8px;
}
.tby-home-catalog-cards ul {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tby-category-card-min, 140px)), 1fr));
    gap: var(--tby-category-card-gap, 10px);
}
.tby-home-catalog-cards a {
    max-inline-size: var(--tby-category-card-max, 160px);
    min-block-size: 92px;
    margin-inline: auto;
    padding: 10px 8px;
    gap: 6px;
    font-size: .875rem;
    overflow-wrap: anywhere;
}
.tby-home-category-cards img {
    inline-size: 52px;
    aspect-ratio: 1;
    margin: 0;
}
.tby-home-brand_grid.tby-home-catalog-cards img {
    inline-size: min(100%, 72px);
    block-size: 48px;
    margin: 0;
}
.tby-home-category-cards i {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: var(--border-radius, 8px);
    background: color-mix(in srgb, var(--color-primary, currentColor) 9%, transparent);
    color: var(--color-primary, currentColor);
    font-size: 20px;
}
.tby-home-catalog-plain a,
.tby-home-catalog-plain i {
    border-color: transparent;
    background: transparent;
}
.tby-home-catalog-names a {
    min-block-size: 48px;
}
@media (max-width: 640px) {
    .tby-home-catalog-cards ul {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tby-category-card-min, 100px)), 1fr));
    }
}
.tby-home-blog_posts img { object-fit: cover; }
.tby-home-story--image {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 3vw, 32px);
    align-items: center;
}
.tby-home-story--left > div { grid-row: 1; grid-column: 1; }
.tby-home-story--left > img { grid-row: 1; grid-column: 2; }
.tby-home-story img { width: 100%; border-radius: var(--border-radius, 8px); }
.tby-home-background {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background-color: #202025;
    background-image: linear-gradient(#0009,#0009), var(--tby-home-background, none);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
.tby-home-background a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
    .tby-home-story--image { grid-template-columns: 1fr; }
    .tby-home-story--left > div, .tby-home-story--left > img { grid-area: auto; }
    .tby-home-background { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
    .tby-home-background { background-attachment: scroll; }
}
