
/* =====================================
   Shiny Gallery - Shop Archive
   ===================================== */

:root {
    --shlly-pink: #f467b1;
    --shlly-pink-dark: #ed2997;
    --shlly-text: #222222;
    --shlly-border: #eeeeee;
}

/* Background */

body.post-type-archive-product,
body.tax-product_cat {
    background-color: #ffffff;
    background-image: url('https://shainygallery.ir/wp-content/uploads/2022/10/Layer-10-copy-2-1.png');
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
}

/* Main Container */

.shlly-shop-page {
    width: 100%;
    padding: 35px 15px 60px;
    direction: rtl;
    font-family: inherit;
}

.shlly-shop-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

/* Toolbar */

.shlly-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 65px;
    padding: 12px 20px;
    margin-bottom: 25px;
    background: var(--shlly-pink);
    color: #ffffff;
}

.shlly-shop-count,
.shlly-shop-ordering {
    display: flex;
    align-items: center;
}

.shlly-shop-count p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
}

.shlly-shop-ordering select {
    min-width: 155px;
    padding: 9px 12px;
    border: 1px solid #ffffff;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
}

.shlly-shop-ordering select option {
    background: #ffffff;
    color: #222222;
}

/* Main Layout */

.shlly-shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr);
    grid-template-areas: "products sidebar";
    gap: 10px;
    align-items: start;
    direction: ltr;
}

.shlly-products-area {
    grid-area: products;
    min-width: 0;
    direction: rtl;
}

.shlly-shop-sidebar {
    grid-area: sidebar;
    min-width: 0;
    direction: rtl;
}

.shlly-mobile-filter-toggle {
    display: none;
}

.shlly-products-area ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 16px;
    margin: 0 !important;
    padding: 0 !important;
}

.shlly-products-area ul.products::before,
.shlly-products-area ul.products::after {
    display: none !important;
    content: none !important;
}

.shlly-products-area ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    text-align: center;
    background: transparent;
}

/* Product Image */

.shlly-products-area ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 12px !important;
    transition: transform .3s ease;
}

.shlly-products-area ul.products li.product:hover a img {
    transform: scale(1.025);
}

/* Product Title */

.shlly-products-area ul.products li.product .woocommerce-loop-product__title {
    padding: 0 5px !important;
    margin: 7px 0 !important;
    color: var(--shlly-text);
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.9;
}

/* Price */

.shlly-products-area ul.products li.product .price {
    display: block;
    margin: 8px 0 !important;
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 800;
}

.shlly-products-area ul.products li.product .price del {
    color: #999999 !important;
    font-size: 11px;
    opacity: .8;
}

.shlly-products-area ul.products li.product .price ins {
    color: #111111 !important;
    text-decoration: none;
}

/* Category */

.shlly-products-area ul.products li.product .ast-woo-product-category,
.shlly-products-area ul.products li.product .posted_in {
    color: var(--shlly-pink-dark);
    font-size: 11px;
}

/* Add to Cart */

.shlly-products-area ul.products li.product .button {
    display: inline-block;
    margin-top: 5px;
    padding: 8px 13px;
    border: none;
    border-radius: 0;
    background: var(--shlly-pink-dark);
    color: #ffffff;
    font-size: 11px;
}

.shlly-products-area ul.products li.product .button:hover {
    background: #d91c83;
    color: #ffffff;
}

/* Sale Badge */

.shlly-products-area ul.products li.product .onsale {
    top: 8px;
    right: 8px;
    left: auto;
    min-height: auto;
    min-width: auto;
    padding: 5px 9px;
    border-radius: 0;
    background: var(--shlly-pink-dark);
    color: #ffffff;
    font-size: 10px;
    line-height: 1.5;
}

/* Sidebar */

.shlly-shop-sidebar {
    padding: 15px 12px;
    background: var(--shlly-pink);
    color: #ffffff;
}

.shlly-filter-box {
    margin-bottom: 20px;
}

.shlly-filter-box h3 {
    padding: 0 0 12px;
    margin: 0 0 15px;
    border-bottom: 1px solid rgba(255,255,255,.5);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

/* Price Filter */

.shlly-price-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shlly-price-inputs label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
    font-size: 11px;
}

.shlly-price-inputs input {
    width: 100%;
    min-height: 35px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 0;
    background: rgba(255,255,255,.95);
    color: #222222;
    font-size: 12px;
}

.shlly-price-filter button {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.shlly-price-filter button:hover {
    background: #ffffff;
    color: var(--shlly-pink-dark);
}

.shlly-price-filter > a {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
}

/* Category List */

.shlly-category-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.shlly-category-list li {
    margin-bottom: 8px;
}

.shlly-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.6);
    color: #ffffff;
    font-size: 12px;
    transition: .2s;
}

.shlly-category-list li a:hover,
.shlly-category-list li.active a {
    background: #ffffff;
    color: var(--shlly-pink-dark);
}

.shlly-category-list li span {
    font-size: 10px;
}

/* Pagination */

.shlly-shop-pagination {
    margin-top: 30px;
    text-align: center;
}

.shlly-shop-pagination .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    border: none;
}

.shlly-shop-pagination .woocommerce-pagination ul li {
    border: none;
}

.shlly-shop-pagination .woocommerce-pagination ul li a,
.shlly-shop-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
    border: 1px solid var(--shlly-pink);
    background: #ffffff;
    color: var(--shlly-pink-dark);
}

.shlly-shop-pagination .woocommerce-pagination ul li span.current,
.shlly-shop-pagination .woocommerce-pagination ul li a:hover {
    background: var(--shlly-pink);
    color: #ffffff;
}

/* No Products */

.shlly-products-area .woocommerce-info {
    border-top-color: var(--shlly-pink);
    background: #ffffff;
}

/* Tablet */

@media (max-width: 900px) {

    .shlly-shop-layout {
        grid-template-columns: minmax(0, 1fr) 200px;
    }

    .shlly-products-area ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 12px;
    }

}

/* Mobile */

/* Mobile */
@media (max-width: 600px) {

    .shlly-shop-page {
        padding: 15px 10px 35px;
    }

    .shlly-shop-toolbar {
        min-height: 55px;
        padding: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .shlly-shop-count p {
        font-size: 11px;
    }

    .shlly-shop-ordering select {
        min-width: 130px;
        font-size: 11px;
    }

    /* Layout */
    .shlly-shop-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        direction: rtl;
    }

    /* Filter Button */
    .shlly-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 45px;
        padding: 10px 15px;
        border: 1px solid var(--shlly-pink-dark);
        border-radius: 0;
        background: var(--shlly-pink);
        color: #ffffff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .shlly-mobile-filter-toggle:hover,
    .shlly-mobile-filter-toggle:focus {
        background: var(--shlly-pink-dark);
        color: #ffffff;
    }

    /* Hamburger Icon */
    .shlly-hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 19px;
        height: 18px;
    }

    .shlly-hamburger-icon span {
        display: block;
        width: 19px;
        height: 2px;
        background: #ffffff;
        transition: transform .2s ease;
    }

    .shlly-mobile-filter-toggle.is-active .shlly-hamburger-icon span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .shlly-mobile-filter-toggle.is-active .shlly-hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .shlly-mobile-filter-toggle.is-active .shlly-hamburger-icon span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Sidebar - Closed by default */
    .shlly-shop-sidebar {
        display: none;
        order: 2;
        width: 100%;
        padding: 15px;
        background: var(--shlly-pink);
    }

    .shlly-shop-sidebar.is-open {
        display: block;
    }

    .shlly-filter-box {
        margin-bottom: 18px;
    }

    /* Products */
    .shlly-products-area {
        order: 3;
        width: 100%;
        padding: 7px;
    }

    .shlly-products-area ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 9px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .shlly-products-area ul.products li.product {
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 0 8px !important;
    }

    .shlly-products-area ul.products li.product .woocommerce-loop-product__title {
        padding: 0 3px !important;
        font-size: 12px !important;
        line-height: 1.8;
    }

    .shlly-products-area ul.products li.product .price {
        font-size: 12px !important;
    }

    .shlly-products-area ul.products li.product .button {
        padding: 7px 8px;
        font-size: 10px;
    }

}


