/*
Theme Name: Plugin Shop
Text Domain: plugin-shop
*/

:root, [data-bs-theme=light] {
    --bs-secondary-color: rgb(20 20 20);
    --bs-purple-color: #6a4ee9;
    --bs-border-color: #E9E8FF;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-4: 4px;
    --bs-nav-link-font-size: 14px;
    --bs-success-rgb: 57, 224, 121;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

body {
    background-color: #f9f8fe;
    font-size: 15px;
}

table {
    border-color: var(--bs-border-color);
}

*,
body {
    font-family: IRANSans;
}

img {
    height: auto;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 1em;
    /*margin-bottom: 1em;*/
}

ul li {
    line-height: 2;
}

ul li:not(:last-child) {
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
}

a {
    text-decoration: none;
    /*color: rgb(17 20 24);*/
}

p {
    line-height: 2.5;
}

.offcanvas {
    --bs-offcanvas-width: 300px;
}

.navbar-nav {
    --bs-nav-link-color: rgb(20 20 20);
}

.nav {
    --bs-nav-link-color: rgb(20 20 20);
}

.navbar-brand svg {
    width: 1rem;
}

.rounded-4px {
    border-radius: var(--bs-border-radius-4);
}

.bg-purple {
    background-color: #6a4ee9;
}

.btn {
    border: none;
    display: inline-block;
    color: #fff;
    font-size: 13px;
    padding: 5px 22px;
    position: relative;
    z-index: 2;
    font-weight: 500;
    border-radius: var(--bs-border-radius-4);
    letter-spacing: 0.1px;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.btn-light {
    background-color: rgb(244 244 244) !important;
    color: rgb(20 20 20) !important;
    font-weight: 700;
}

.btn-purple {
    background-color: #6a4ee9;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #6a4ee9;
}

.btn-purple:hover {
    color: #fff;
    background-color: #282424;
}

.btn-large {
    padding: 10px 25px;
}

.navbar-toggler:focus {
    box-shadow: unset;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.bg-center {
    background-position: center;
}

.bg-cover {
    background-size: cover;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: rgb(115 115 115) !important;
}

.grid-5 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    background-origin: border-box;
    -webkit-user-select: none;
    user-select: none;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 100%;
    border: 2px solid rgb(220 224 229);
    background-color: transparent;
    color: transparent;
}

[type="radio"]:checked {
    border-color: rgb(17 20 24);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}


input:not([type="radio"]):not([type="checkbox"]),
select {
    padding: 15px;
    background-color: rgb(255 255 255);
    border: 1px solid rgb(220 224 229);
    border-radius: 0.75rem;
}

.form-select {
    padding: 15px 15px 15px 40px;
    width: auto;
}

.form-select:focus {
    box-shadow: none;
    border-color: rgb(244 244 244);
}

/*digits*/
.digit_cs-list {
    display: none !important;
}

.digits_secure_phone_otp {
    direction: ltr;
}

.digits_secure_phone_otp::placeholder {
    text-align: right;
}

/*checkout*/
.woocommerce-checkout .woocommerce {
    padding: 1rem;
}

.woocommerce-checkout-review-order-table tfoot {
    display: none;
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: transparent;
}

#add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    border: 0;
}

li.wc_payment_method {
    border: 1px solid rgb(220 224 229);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
    cursor: pointer;
}

li.wc_payment_method label {
    width: 100%;
    height: 100%;
    padding: 1rem !important;
    cursor: pointer;
}

#add_payment_method #payment ul.payment_methods li input, .woocommerce-cart #payment ul.payment_methods li input, .woocommerce-checkout #payment ul.payment_methods li input {
    margin: 0;
}

.woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
    width: 47%;
    overflow: visible
}

.woocommerce form .form-row-first, .woocommerce-page form .form-row-first {
    float: right;
}

.woocommerce form .form-row-last, .woocommerce-page form .form-row-last {
    float: left
}

.woocommerce form .form-row-wide, .woocommerce-page form .form-row-wide {
    clear: both
}

.woocommerce form .form-row {
    padding: 3px;
    margin: 0 0 6px
}

/*checkout*/

/*woocommerce*/
.woocommerce-notices-wrapper > * {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
}

.woocommerce-notices-wrapper p {
    margin: 0;
}

.woocommerce-error,
.woocommerce-info {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
}

.woocommerce-error {
    color: rgb(155 28 28);
    background-color: rgb(253 242 242);
}

.woocommerce-info {
    color: rgb(30 66 159);
    background-color: rgb(235 245 255);
}

.woocommerce-message {
    color: rgb(31 41 55);
    background-color: rgb(249 250 251);
}

.woocommerce form .form-row .required {
    color: red;
    font-weight: 700;
    border: 0 !important;
    text-decoration: none;
    visibility: hidden;
}

.woocommerce form .form-row .required {
    visibility: visible;
}

.woocommerce table.shop_table {
    border: 1px solid rgba(0, 0, 0, .1);
    margin: 0 0 24px -1px;
    text-align: right;
    width: 100%;
    border-collapse: separate;
    border-radius: 5px
}

.woocommerce table.shop_table th {
    font-weight: 700;
    padding: 9px 12px;
    line-height: 1.5em
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding: 9px 12px;
    vertical-align: middle;
    line-height: 1.5em
}

.woocommerce form .form-row label {
    line-height: 2;
}

/*comment*/
.star {
    color: rgb(196 196 196);
}

.filled-star path {
    fill: #39E079;
}

.point-list {
    display: grid;
    grid-template-columns: 20px 1fr;
    row-gap: 0.75rem;
    align-items: center;
    column-gap: 0.5rem;
}

.point-list .point-line {
    height: 0.5rem;
}

.point-list .point-line > div {
    background-color: #39E079;
}

.woocommerce-review__published-date {
    display: block;
    font-size: 13px;
    color: rgb(115 115 115);
}

.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.commentlist > li {
    margin-bottom: 1rem;
}

.comment-text .description {
    margin-top: 0.5rem;
}

.children .comment-text {
    margin-top: 1rem;
}

#review_form_wrapper {
    margin-top: 4rem;
}


/*loop*/
ul.products {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding:0;
}

ul.products.columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

ul.products.columns-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

ul.products.columns-5 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.products img {
    max-width: 100%;
    width: 100%;
}

.woocommerce-loop-product__title {
    font-size: 1rem;
    padding: 5px 10px 15px;
    color: rgb(17 20 24);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

ul.page-numbers span,
ul.page-numbers a {
    font-size: 0.875rem;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-numbers .current,
ul.page-numbers span:hover,
ul.page-numbers a:hover {
    font-weight: 700;
    background-color: rgb(240 242 244);
}

.woocommerce-ordering {
    margin-top: 0.5rem;
}

.woocommerce-products-header__title.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2rem;
}

/*media*/
@media (max-width: 1199px) {
    .grid-5 {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .grid-5 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .grid-5 {
        grid-template-columns: 1fr 1fr 1fr
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .grid-5 {
        grid-template-columns: 1fr 1fr;
    }
}

/* تبلت (عرض زیر 1024px) */
@media (max-width: 1024px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    ul.products.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* موبایل بزرگ (عرض زیر 768px) */
@media (max-width: 768px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل کوچک (عرض زیر 480px) */
@media (max-width: 480px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    ul.products.columns-3 {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* myaccount */
.woocommerce-account.logged-in .woocommerce {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: unset;
    width: 100%;
    padding: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: rgb(17 20 24);
    text-decoration: none;
}

.woocommerce-MyAccount-navigation-link.is-active {
    background-color: var(--bs-purple-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0;
    padding: 0 1rem;
}

.woocommerce-error{
    list-style: none;
}

.body > .woocommerce {
    margin-right: auto;
    margin-left: auto;
    margin-top: 2rem;
}

.comment-text .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-reply-title{
    display: flex;
    justify-content: space-between;
}

.comment-reply-title {
    font-size: 0;
}

.comment-reply-title small {
    font-size: 15px;
}

.commentlist ul.children {
    margin-top: 1rem;
    list-style:none;
}

@media (min-width: 576px) {
    .body > .woocommerce {
        max-width: 540px
    }
}

@media (min-width: 768px) {
    .body > .woocommerce {
        max-width: 720px
    }
}

@media (min-width: 992px) {
    .body > .woocommerce {
        max-width: 960px
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 20rem;
    }
}

@media (min-width: 1200px) {
    .body > .woocommerce {
        max-width: 1140px
    }
}

@media (min-width: 1400px) {
    .body > .woocommerce {
        max-width: 1320px
    }
}