/* =========================================================
   RAYA — WOMEN PAGE
   صفحه اختصاصی پوشاک زنانه
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

.raya-category-page {
    width: 100%;
    max-width: 100%;
    padding-top: 0px;
    padding-bottom: 100px;
    overflow-x: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.raya-category-page .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


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

.raya-category-page .product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 30px;

    font-size: 12px;
    color: #888;
}

.raya-category-page .product-breadcrumb a {
    color: #555;
    text-decoration: none;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.raya-category-page .section-heading {
    margin-bottom: 30px;
}

.raya-category-page .section-heading h1 {
    margin: 0 0 10px;

    font-size: 34px;
    font-weight: 500;

    color: #171717;
}

.raya-category-page .section-heading p {
    margin: 0;

    font-size: 14px;
    line-height: 2;

    color: #777;
}


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

.raya-category-page .shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-bottom: 30px;
    padding: 14px 18px;

    background: #fff;

    border: 1px solid #e8e3da;
    border-radius: 10px;
}


/* FILTER BUTTON */

.raya-category-page .filter-toggle {
    display: none;

    border: 0;
    background: #171717;
    color: #fff;

    padding: 10px 16px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}


/* RESULT COUNT */

.raya-category-page .shop-result-count {
    font-size: 12px;
    color: #777;
}


/* SORT */

.raya-category-page .shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.raya-category-page .shop-sort label {
    font-size: 12px;
    color: #666;
}

.raya-category-page .shop-sort select {
    height: 38px;

    padding: 0 12px;

    border: 1px solid #ddd7cd;
    border-radius: 7px;

    background: #fff;

    font-family: inherit;
    font-size: 12px;

    color: #333;
}


/* =========================================================
   SHOP LAYOUT
========================================================= */

.raya-category-page .shop-layout {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    gap: 30px;

    width: 100%;
}


/* =========================================================
   SIDEBAR
========================================================= */

.raya-category-page .shop-sidebar {
    width: 100%;

    padding: 20px;

    background: #fff;

    border: 1px solid #e8e3da;
    border-radius: 10px;
}


/* CLOSE BUTTON */

.raya-category-page .close-filter {
    display: none;
}


/* =========================================================
   FILTER GROUP
========================================================= */

.raya-category-page .filter-group {
    margin-bottom: 28px;
}

.raya-category-page .filter-group:last-child {
    margin-bottom: 0;
}

.raya-category-page .filter-group h3 {
    margin: 0 0 15px;

    font-size: 13px;
    font-weight: 600;

    color: #171717;
}


/* =========================================================
   SIZE FILTER
========================================================= */

.raya-category-page .size-options {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.raya-category-page .size-option {
    min-width: 40px;
    height: 34px;

    padding: 0 8px;

    border: 1px solid #ddd7cd;
    border-radius: 6px;

    background: #fff;

    color: #555;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.raya-category-page .size-option:hover,
.raya-category-page .size-option.active {
    background: #171717;
    border-color: #171717;
    color: #fff;
}


/* =========================================================
   PRICE FILTER
========================================================= */

.raya-category-page .price-filter {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.raya-category-page .price-filter input {
    width: 100%;
    height: 36px;

    padding: 0 8px;

    border: 1px solid #ddd7cd;
    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
}


/* =========================================================
   PRODUCTS AREA
========================================================= */

.raya-category-page .shop-products-area {
    min-width: 0;
    width: 100%;
}


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

.raya-category-page .products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 35px 18px;

    width: 100%;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.raya-category-page .product-card {
    min-width: 0;
    width: 100%;
}

.raya-category-page .product-card .product-image {
    display: block;

    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 9px;

    background: #eee;
}

.raya-category-page .product-card .product-image img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform .4s ease;
}

.raya-category-page .product-card:hover .product-image img {
    transform: scale(1.03);
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.raya-category-page .product-info {
    padding-top: 12px;
}

.raya-category-page .product-category {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    color: #999;
}

.raya-category-page .product-info h3 {
    margin: 0 0 9px;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.8;
}

.raya-category-page .product-info h3 a {
    color: #171717;
    text-decoration: none;
}


/* =========================================================
   PRODUCT BOTTOM
========================================================= */

.raya-category-page .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.raya-category-page .product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    font-size: 12px;
}

.raya-category-page .sale-price {
    color: #171717;
}

.raya-category-page .regular-price {
    color: #999;
    font-size: 10px;
}


/* =========================================================
   WISHLIST
========================================================= */

.raya-category-page .wishlist-btn {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border: 1px solid #ddd7cd;
    border-radius: 50%;

    background: #fff;

    color: #555;

    font-size: 16px;

    cursor: pointer;
}

.raya-category-page .wishlist-btn.active {
    color: #171717;
}


/* =========================================================
   SALE BADGE
========================================================= */

.raya-category-page .product-badge {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 2;

    padding: 5px 9px;

    border-radius: 5px;

    background: #171717;
    color: #fff;

    font-size: 10px;
}


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

.raya-category-page .products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 50px;
}

.raya-category-page .pagination-btn {
    width: 36px;
    height: 36px;

    border: 1px solid #ddd7cd;
    border-radius: 7px;

    background: #fff;

    color: #555;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

.raya-category-page .pagination-btn.active,
.raya-category-page .pagination-btn:hover:not(:disabled) {
    background: #171717;
    border-color: #171717;
    color: #fff;
}

.raya-category-page .pagination-btn:disabled {
    opacity: .35;
}

.raya-category-page .pagination-dots {
    color: #999;
}


/* =========================================================
   FILTER OVERLAY
========================================================= */

.raya-category-page .filter-overlay {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .raya-category-page .shop-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .raya-category-page .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 25px 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .raya-category-page {
        padding-top: 20px;
    }


    /* HEADING */

    .raya-category-page .section-heading {
        margin-bottom: 22px;
    }

    .raya-category-page .section-heading h1 {
        font-size: 26px;
    }

    .raya-category-page .section-heading p {
        font-size: 12px;
    }


    /* TOOLBAR */

    .raya-category-page .shop-toolbar {
        flex-wrap: wrap;

        gap: 10px;

        margin-bottom: 22px;

        padding: 11px 12px;
    }

    .raya-category-page .filter-toggle {
        display: block;
    }

    .raya-category-page .shop-result-count {
        margin-right: auto;
        font-size: 11px;
    }


    /* SORT */

    .raya-category-page .shop-sort {
        width: 100%;
    }

    .raya-category-page .shop-sort select {
        flex: 1;
    }


    /* LAYOUT */

    .raya-category-page .shop-layout {
        display: block;
    }


    /* SIDEBAR */

    .raya-category-page .shop-sidebar {
        position: fixed;

        top: 0;
        right: 0;

        z-index: 1001;

        width: min(310px, 88vw);
        height: 100vh;

        overflow-y: auto;

        padding: 22px;

        background: #fff;

        border: 0;
        border-radius: 0;

        transform: translateX(110%);

        transition: transform .3s ease;
    }

    .raya-category-page .shop-sidebar.active {
        transform: translateX(0);
    }


    /* CLOSE */

    .raya-category-page .close-filter {
        display: block;

        border: 0;

        background: transparent;

        font-size: 25px;

        cursor: pointer;
    }


    /* OVERLAY */

    .raya-category-page .filter-overlay {
        position: fixed;

        inset: 0;

        z-index: 1000;

        background: rgba(0,0,0,.35);
    }

    body.filter-open .raya-category-page .filter-overlay {
        display: block;
    }

    body.filter-open {
        overflow: hidden;
    }


    /* PRODUCTS */

    .raya-category-page .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px 10px;
    }


    .raya-category-page .product-info h3 {
        font-size: 12px;
    }

    .raya-category-page .product-price {
        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .raya-category-page {
        padding-top: 15px;
        padding-bottom: 70px;
    }

    .raya-category-page .section-heading h1 {
        font-size: 23px;
    }

    .raya-category-page .section-heading p {
        font-size: 11px;
    }

    .raya-category-page .products-grid {
        gap: 22px 9px;
    }

    .raya-category-page .product-info {
        padding-top: 8px;
    }

    .raya-category-page .product-info h3 {
        font-size: 11px;
    }

}
/* =========================================================
   FIX — WOMEN PAGE BOX ALIGNMENT
========================================================= */

.raya-category-page .shop-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.raya-category-page .shop-sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: start;
}

.raya-category-page .shop-products-area {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.raya-category-page .products-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 18px;
}

.raya-category-page .product-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.raya-category-page .product-card .product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.raya-category-page .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


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

.raya-category-page .shop-toolbar {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .raya-category-page .shop-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .raya-category-page .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .raya-category-page .shop-layout {
        display: block;
    }

    .raya-category-page .shop-products-area {
        width: 100%;
        overflow: visible;
    }

    .raya-category-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 10px;
    }

    .raya-category-page .product-card {
        width: 100%;
    }

}
/* =========================================================
   MOBILE RESPONSIVE FIX
========================================================= */

@media (max-width: 768px) {

    .raya-category-page {
        width: 100%;
        max-width: 100%;
        padding-top: 10px;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .raya-category-page .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* عنوان صفحه */

    .raya-category-page .section-heading {
        width: 100%;
        margin-bottom: 18px;
    }

    .raya-category-page .section-heading h1 {
        font-size: 24px;
        line-height: 1.6;
    }

    .raya-category-page .section-heading p {
        font-size: 11px;
        line-height: 1.9;
    }

    /* نوار بالای محصولات */

    .raya-category-page .shop-toolbar {
        width: 100%;
        margin-bottom: 18px;
        padding: 10px;
        box-sizing: border-box;
    }

    /* چیدمان */

    .raya-category-page .shop-layout {
        display: block;
        width: 100%;
    }

    /* محصولات */

    .raya-category-page .shop-products-area {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .raya-category-page .products-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 9px;
    }

    .raya-category-page .product-card {
        width: 100%;
        min-width: 0;
    }

    .raya-category-page .product-card .product-image {
        width: 100%;
        aspect-ratio: 3 / 4;
    }

    .raya-category-page .product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .raya-category-page .product-info {
        width: 100%;
        padding-top: 7px;
    }

    .raya-category-page .product-info h3 {
        font-size: 11px;
        line-height: 1.7;
    }

    .raya-category-page .product-bottom {
        width: 100%;
    }

    .raya-category-page .product-price {
        font-size: 10px;
    }

    .raya-category-page .wishlist-btn {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .raya-category-page {
        padding-top: 5px;
    }

    .raya-category-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .raya-category-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 8px;
    }

    .raya-category-page .section-heading h1 {
        font-size: 21px;
    }

    .raya-category-page .section-heading p {
        font-size: 10px;
    }

}
/* =========================================================
   RAYA WOMEN — MOVE ENTIRE PAGE UP
========================================================= */

body.page-template-page-women .raya-category-page,
body.page-template-page-women main.raya-category-page {
    margin-top: -60px !important;
    padding-top: 0 !important;
}

/* جلوگیری از ایجاد فاصله توسط کانتینر */
body.page-template-page-women .raya-category-page > .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* =========================================================
   MOBILE — ALWAYS SHOW FILTERS
========================================================= */

@media (max-width: 768px) {

    /* سایدبار فیلتر دیگر کشویی نباشد */
    .raya-category-page .shop-sidebar {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;
        height: auto;

        max-height: none;

        padding: 15px;

        margin-bottom: 20px;

        overflow: visible;

        transform: none !important;

        background: #fff;

        border: 1px solid #e8e3da;
        border-radius: 10px;

        box-sizing: border-box;
    }

    /* دکمه بستن فیلتر حذف شود */
    .raya-category-page .close-filter {
        display: none;
    }

    /* دکمه فیلتر هم دیگر لازم نیست */
    .raya-category-page .filter-toggle {
        display: none;
    }

    /* فاصله بین بخش‌های فیلتر */
    .raya-category-page .filter-group {
        margin-bottom: 20px;
        padding-bottom: 15px;

        border-bottom: 1px solid #eee;
    }

    .raya-category-page .filter-group:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    /* عنوان فیلتر */
    .raya-category-page .filter-group h3 {
        margin-bottom: 12px;

        font-size: 13px;
        font-weight: 600;
    }

    /* سایزها */
    .raya-category-page .size-options {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .raya-category-page .size-option {
        min-width: 42px;
        height: 36px;

        padding: 0 10px;

        font-size: 11px;
    }

    /* قیمت */
    .raya-category-page .price-filter {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .raya-category-page .price-filter input {
        height: 38px;
        font-size: 11px;
    }

    /* فیلتر روی صفحه باشد */
    body.filter-open {
        overflow: auto;
    }

    .raya-category-page .filter-overlay {
        display: none !important;
    }

    /* محصولات بعد از فیلتر */
    .raya-category-page .shop-products-area {
        width: 100%;
        margin-top: 10px;
    }
}