.xrl-products * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

.xrl-products {
    direction: rtl;
    background: #eeeff0;
    padding: 32px 16px;
    min-height: 500px;
}

.xrl-products .container {
    max-width: 1100px;
    margin: 0 auto;
}

.xrl-products .ps-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.xrl-products .search-bar {
    margin-bottom: 20px;
}

.xrl-products .search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.xrl-products .search-wrap i {
    position: absolute;
    right: 12px;
    font-size: 17px;
    color: #cfd2da;
    pointer-events: none;
}

.xrl-products .search-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 0.5px solid #cfd2da;
    background: #fff;
    font-size: 13px;
    padding: 0 40px 0 14px;
    outline: none;
    color: #202020;
    direction: rtl;
    transition: border-color 0.15s;
}

.xrl-products .search-wrap input:focus {
    border-color: #303a5e;
}

.xrl-products .search-wrap input::placeholder {
    color: #cfd2da;
}

.xrl-products .cats-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #cfd2da;
    overflow: hidden;
    position: sticky;
    top: 16px;
}

body.nav-fixed .xrl-products .cats-sidebar {
    top: 140px;
}

.xrl-products .cats-sidebar h3 {
    font-size: 12px;
    font-weight: 500;
    color: #555964;
    padding: 12px 14px;
    border-bottom: 0.5px solid #eeeff0;
    background: #f5f4f7;
}

.xrl-products .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 12px;
    color: #333533;
    cursor: pointer;
    border-bottom: 0.5px solid #eeeff0;
    transition: background 0.15s;
}

.xrl-products .cat-item:last-child {
    border-bottom: none;
}

.xrl-products .cat-item:hover {
    background: #f5f4f7;
}

.xrl-products .cat-item.active {
    background: #303a5e;
    color: #fff;
}

.xrl-products .cat-item.active .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.xrl-products .cat-count {
    font-size: 10px;
    background: #eeeff0;
    color: #555964;
    border-radius: 10px;
    padding: 2px 7px;
}

.xrl-products .products-main {
    flex: 1;
    min-width: 0;
}

.xrl-products .active-cat-title {
    font-size: 15px;
    font-weight: 500;
    color: #0a0f1c;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #303a5e;
    display: inline-block;
}

.xrl-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 14px;
}

.xrl-products .pcard {
    background: #fff;
    border: 0.5px solid #cfd2da;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    cursor: pointer;
}

.xrl-products .pcard:hover {
    border-color: #303a5e;
}

.xrl-products .pcard-img {
    width: 100%;
    height: 130px;
    background: #f5f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.xrl-products .pcard-img i {
    font-size: 38px;
    color: #cfd2da;
}

.xrl-products .pcard-body {
    padding: 10px 12px 12px;
}

.xrl-products .pcard-name {
    font-size: 12px;
    font-weight: 500;
    color: #202020;
    line-height: 1.5;
    min-height: 36px;
}

.xrl-products .pcard-btn {
    margin-top: 10px;
    width: 100%;
    font-size: 11px;
    color: #303a5e;
    border: 0.5px solid #303a5e;
    background: transparent;
    border-radius: 6px;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.15s;
    display: block;
    text-align: center;
}

.xrl-products .pcard-btn:hover {
    background: #303a5e;
    color: #fff;
}

.xrl-products .no-result {
    text-align: center;
    padding: 48px 0;
    color: #555964;
    font-size: 13px;
}

.xrl-products .no-result i {
    font-size: 36px;
    color: #cfd2da;
    display: block;
    margin-bottom: 10px;
}

.xrl-products .cats-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.xrl-products .cats-mobile-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 0.5px solid #cfd2da;
    background: #fff;
    color: #333533;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.xrl-products .cats-mobile-btn.active {
    background: #303a5e;
    color: #fff;
    border-color: #303a5e;
}

@media (max-width: 768px) {
    .xrl-products .cats-sidebar {
        display: none;
    }

    .xrl-products .cats-mobile {
        display: flex;
    }

    .xrl-products .ps-inner {
        flex-direction: column;
    }

    .xrl-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 10px;
    }

    .xrl-products .pcard-img {
        height: 110px;
    }
    .products-main{
        width: 100%;
    }
}

@media (max-width: 420px) {
    .xrl-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .xrl-products .pcard-img {
        height: 95px;
    }

    .xrl-products .pcard-name {
        font-size: 11px;
    }
}

.xrl-product-page {
    --purple: #754498;
    --darkPurple: #303a5e;
    position: relative;
    overflow: hidden;
}

.xrl-product-page::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 68, 152, 0.1), transparent 70%);
    pointer-events: none;
}

.xrl-product-page::after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48, 58, 94, 0.08), transparent 70%);
    pointer-events: none;
}

.xrl-product-page .container {
    position: relative;
    z-index: 1;
}

.xrl-product-page .product-top {
    display: flex;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 0.5px solid #cfd2da;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(48, 58, 94, 0.06);
    position: relative;
    overflow: hidden;
}

.xrl-product-page .product-top::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--darkPurple));
}

.xrl-product-page .product-image {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, #fdfdfe, #f0eff5 70%);
    border-radius: 20px;
    border: 1px dashed rgba(117, 68, 152, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.xrl-product-page .product-image img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(48, 58, 94, 0.18));
    transition: transform 0.25s;
}

.xrl-product-page .product-image:hover img {
    transform: scale(1.06) rotate(-1deg);
}

.xrl-product-page .product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--darkPurple));
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.xrl-product-page .product-info h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--darkPurple), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.xrl-product-page .product-prop {
    font-size: 13px;
    color: #555964;
    line-height: 2;
    border-right: 3px solid var(--purple);
    padding-right: 10px;
}

.xrl-product-page .product-section {
    background: #fff;
    border: 0.5px solid #cfd2da;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    position: relative;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}

.xrl-product-page .product-section:hover {
    border-color: var(--purple);
    box-shadow: 0 8px 22px rgba(117, 68, 152, 0.08);
}

.xrl-product-page .product-section h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--darkPurple);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #eeeff0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xrl-product-page .product-section h2 i {
    color: var(--purple);
    font-size: 16px;
}

.xrl-product-page .product-section p {
    font-size: 13px;
    color: #333533;
    line-height: 2.1;
}

.xrl-product-page .product-section-fea {
    background: linear-gradient(135deg, #faf8fc, #fff);
}

.xrl-related h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0a0f1c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xrl-related h3 i {
    color: var(--purple);
}

.xrl-related a.pcard {
    display: block;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.xrl-related a.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(48, 58, 94, 0.12);
}

.xrl-not-found .container {
    text-align: center;
    padding: 70px 0;
    position: relative;
}

.xrl-not-found i {
    font-size: 54px;
    background: linear-gradient(135deg, var(--purple), var(--darkPurple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 16px;
}

.xrl-not-found h2 {
    font-size: 16px;
    font-weight: 500;
    color: #555964;
    margin-bottom: 22px;
}

.xrl-not-found .back-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--darkPurple), var(--purple));
    border-radius: 24px;
    padding: 10px 26px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(117, 68, 152, 0.25);
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.xrl-not-found .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(117, 68, 152, 0.32);
}

@media (max-width: 768px) {
    .xrl-product-page .product-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .xrl-product-page .product-prop {
        border-right: none;
        border-top: 3px solid var(--purple);
        padding-right: 0;
        padding-top: 10px;
    }

    .xrl-product-page .product-image {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 420px) {
    .xrl-product-page .product-image {
        height: 180px;
    }

    .xrl-product-page .product-info h1 {
        font-size: 18px;
    }
}
