

/* Hide any duplicate WooCommerce toolbar output outside our custom controls. */
.shop-page > .woocommerce-result-count,
.shop-page > .woocommerce-ordering,
.shop-page .shop-container > .woocommerce-result-count,
.shop-page .shop-container > .woocommerce-ordering {
    display: none !important;
}

/* =========================================================
   SHOES THEME - SHOP / PRODUCT ARCHIVES
   ========================================================= */

.shop-page {
    width: 100%;
    padding: 24px 0 72px;
    background: #fff;
}

.shop-container {
    width: min(100% - 32px, 1400px);
    margin-inline: auto;
}

.shop-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 34px;
    padding-top: 6px;
    padding-right: 1em;
    direction: rtl;
    color: #8b8b8b;
    font-size: 14px;
    font-weight: 300;
    line-height: 3em;
    border: 1px solid #cfcfcf;
}

.shop-breadcrumbs a {
    color: #555;
    text-decoration: none;
    transition: color .18s ease;
}

.shop-breadcrumbs a:hover {
    color: #c8102e;
}

.shop-breadcrumbs span[aria-hidden="true"] {
    color: #b9b9b9;
    font-size: 16px;
}

.shop-header {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 0;
    direction: rtl;
}

.shop-header__copy {
    width: 100%;
    min-width: 0;
}

.shop-header__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #c8102e;
    font-size: 13px;
    font-weight: 500;
}

.shop-header__title {
    margin: 0;
    color: #111;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.25;
    font-weight: 900;
}

.shop-header__description {
    max-width: 700px;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 2;
}

.shop-header__controls {
    width: 100%;
    margin-top: 30px;
    padding: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ececec;
}

.shop-header__controls .woocommerce-result-count {
    order: 1;
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

.shop-header__controls .woocommerce-ordering {
    order: 2;
    margin: 0;
}

.shop-header__controls .woocommerce-ordering select {
    min-width: 220px;
    height: 56px;
    padding: 0 18px;
    border: 1px solid #dcdcdc;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-family: 'IRANSans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    appearance: auto;
}

.shop-header__controls .woocommerce-ordering select:focus {
    border-color: #aaa;
}



.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 18px;
    margin-top: 30px;
}

.shop-product-card {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    border: 1px solid #eeeeee;
    border-radius: 5px;
}

.shop-product-card__image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Fixed ratio keeps the grid stable without forcing the source image to stretch. */
.shop-product-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #fafafa;
}

.shop-product-card__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
}

/* Keep hover lightweight: transform only the image, with no layout change. */
@media (hover: hover) {
    .shop-product-card__image {
        transition: transform 180ms ease;
    }

    .shop-product-card__image-link:hover .shop-product-card__image,
    .shop-product-card__image-link:focus-visible .shop-product-card__image {
        transform: scale(1.025);
    }
}

.shop-product-card__sale {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 46px;
    height: 27px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #c8102e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.shop-product-card__body {
    padding-top: 13px;
    direction: rtl;
    text-align: center;
}

.shop-product-card__title {
    min-height: 54px;
    margin: 0;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.shop-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.shop-product-card__title a:hover {
    color: #c8102e;
}

.shop-product-card__meta {
    min-height: 23px;
    margin-top: 1px;
    color: #888;
    font-size: 11px;
    line-height: 1.8;
}

.shop-product-card__meta a {
    color: inherit;
    text-decoration: none;
}

/* Price gets its own row. */
.shop-product-card__price {
    min-height: 28px;
    margin-top: 9px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.shop-product-card__price del {
    margin-inline-end: 7px;
    color: #aaa;
    font-size: 11px;
    font-weight: 400;
}

.shop-product-card__price ins {
    color: #111;
    text-decoration: none;
}

/* Button always occupies a separate full row below the price. */
.shop-product-card__action {
    display: flex;
    width: 100%;
    margin-top: 9px;
}

.shop-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #111;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.shop-product-card__button:hover,
.shop-product-card__button:focus-visible {
    background: #222;
    color: #fff;
}

.shop-product-card__button--view {
    background: #111;
    color: #fff;
}


/* =========================================================
   PAGINATION
   Inspired by the clean, minimal pagination used on
   Humtto Caspian shop pages.
   ========================================================= */

.shop-page .woocommerce-pagination {
    width: 100%;
    margin-top: 48px;
    padding-top: 0;
    text-align: center;
    direction: rtl;
}

.shop-page .woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
	max-width:95%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    list-style: none !important;
}

.shop-page .woocommerce-pagination ul.page-numbers::before,
.shop-page .woocommerce-pagination ul.page-numbers::after {
    display: none !important;
}

.shop-page .woocommerce-pagination ul.page-numbers li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eeeeee;
    box-shadow: none !important;
    border-radius: 3px;
}

.shop-page .woocommerce-pagination ul.page-numbers li:hover,
.shop-page .woocommerce-pagination ul.page-numbers li:focus-within {
    background: #b9b9b9;
    box-shadow: none !important;
}

.shop-page .woocommerce-pagination .page-numbers {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

/* Current page: black background + white number. */
.shop-page .woocommerce-pagination .page-numbers.current,
.shop-page .woocommerce-pagination .page-numbers.current:hover,
.shop-page .woocommerce-pagination .page-numbers.current:focus,
.shop-page .woocommerce-pagination .page-numbers.current:focus-visible,
.shop-page .woocommerce-pagination .page-numbers.current:active {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Other pages: transparent normally, light gray on hover/focus. */
.shop-page .woocommerce-pagination .page-numbers:not(.current):hover,
.shop-page .woocommerce-pagination .page-numbers:not(.current):focus,
.shop-page .woocommerce-pagination .page-numbers:not(.current):focus-visible {
    border-color: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
}

.shop-page .woocommerce-pagination .page-numbers:not(.current):active {
    border-color: transparent !important;
    background: #eeeeee !important;
    color: #111 !important;
    box-shadow: none !important;
}

/* Ellipsis keeps the same clean, unboxed appearance. */
.shop-page .woocommerce-pagination .page-numbers.dots {
    width: 32px;
    min-width: 32px;
    background: transparent !important;
    color: #777 !important;
    pointer-events: none;
}

/* Previous / next arrows. */
.shop-page .woocommerce-pagination .page-numbers.prev,
.shop-page .woocommerce-pagination .page-numbers.next {
    font-size: 18px;
    font-weight: 400;
}

.shop-empty {
    padding: 90px 20px 70px;
    text-align: center;
}

.shop-empty__icon {
    font-size: 52px;
    line-height: 1;
    color: #aaa;
}

.shop-empty h2 {
    margin: 18px 0 8px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.shop-empty p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.shop-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 3px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shop-page {
        padding-bottom: 54px;
    }

    .shop-container {
        width: min(100% - 24px, 700px);
    }

    .shop-header {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-header__controls {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .shop-header__controls .woocommerce-ordering select {
        min-width: 190px;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .shop-product-card__image-wrap {
        border-radius: 7px;
    }

    .shop-product-card__title {
        min-height: 50px;
        font-size: 14px;
    }

    .shop-product-card__price {
        font-size: 13px;
    }

    .shop-product-card__button {
        min-height: 40px;
    }
}

@media (max-width: 420px) {
    .shop-container {
        width: min(100% - 20px, 420px);
    }

    .shop-header__controls {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .shop-header__controls .woocommerce-ordering {
        width: 100%;
    }

    .shop-header__controls .woocommerce-ordering select {
        width: 100%;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
    }
}
