/* ======================================== */
/* content                                  */
/* ======================================== */

.store-section {
    position: relative;
    direction: rtl;
    overflow: hidden;
    padding: 105px 20px 20px;
    font-family: "IRANSansWeb", "IRANSans", Tahoma, sans-serif;
    color: #102f2a;
    isolation: isolate;
}

.store-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 74, 66, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 74, 66, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
}

.store-section::after {
    content: "";
    position: absolute;
    top: -230px;
    left: -180px;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.14) 62%, transparent 72%);
    pointer-events: none;
}

.store-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ======================================== */
/* header                                   */
/* ======================================== */

.store-header {
    max-width: 760px;
    margin: 0 auto 58px;
    text-align: center;
}

.store-header h2 {
    margin: 0;
    color: #102f2a;
    font-size: 38px;
    font-weight: 950;
    line-height: 1.55;
    letter-spacing: -0.9px;
}

.store-header p {
    max-width: 640px;
    margin: 14px auto 0;
    color: rgba(16, 47, 42, 0.66);
    font-size: 15px;
    font-weight: 500;
    line-height: 2.08;
}

/* ======================================== */
/* product grid                             */
/* ======================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* ======================================== */
/* product card                             */
/* ======================================== */

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 242, 0.56));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 28px 68px rgba(16, 47, 42, 0.13),
        0 10px 24px rgba(16, 47, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    transition:
        transform 0.34s ease,
        box-shadow 0.34s ease,
        border-color 0.34s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(26, 74, 66, 0.16), rgba(26, 74, 66, 0.04) 66%, transparent 74%);
    pointer-events: none;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 33px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%, rgba(26, 74, 66, 0.04));
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-9px);
    border-color: rgba(26, 74, 66, 0.24);
    box-shadow:
        0 38px 86px rgba(16, 47, 42, 0.18),
        0 16px 34px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* ======================================== */
/* image                                    */
/* ======================================== */

.product-image-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    height: 285px;
    margin: 16px 16px 0;
    border-radius: 27px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.86), rgba(223, 234, 230, 0.78)),
        linear-gradient(145deg, #eef5f2, #dfeae6);
    box-shadow:
        0 18px 42px rgba(16, 47, 42, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.product-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(16, 47, 42, 0.04), transparent 42%, rgba(16, 47, 42, 0.14)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 34%);
    pointer-events: none;
}

.product-image-wrapper::after {
    content: "";
    position: absolute;
    right: -90%;
    top: 0;
    z-index: 3;
    width: 64%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: right 0.7s ease;
    pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
    right: 130%;
}

.product-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

/* ======================================== */
/* info                                     */
/* ======================================== */

.product-info {
    position: relative;
    z-index: 2;
    padding: 25px 24px 28px;
    text-align: right;
}

.product-title {
    margin: 0 0 14px;
    color: #102f2a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.7;
    letter-spacing: -0.35px;
}

.product-price {
    position: relative;
    margin: 0 0 22px;
    padding-top: 18px;
    color: #1a4a42;
    border-top: 1px solid rgba(26, 74, 66, 0.11);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.7;
}

.product-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    min-width: 158px;
    padding: 11px 22px;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #102f2a 0%, #1a4a42 55%, #245f55 100%);
    box-shadow:
        0 16px 32px rgba(16, 47, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.8;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

.product-button::before {
    content: "";
    position: absolute;
    top: 0;
    right: -85%;
    width: 65%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg);
    transition: right 0.6s ease;
}

.product-button span {
    position: relative;
    z-index: 2;
}

.product-button-icon {
    transition: transform 0.28s ease;
}

.product-button:hover {
    transform: translateY(-3px);
    filter: saturate(1.06);
    box-shadow:
        0 22px 44px rgba(16, 47, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-button:hover::before {
    right: 125%;
}

.product-button:hover .product-button-icon {
    transform: translateX(-5px);
}

/* ======================================== */
/* pagination                               */
/* ======================================== */

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 100px;
}

.page-link,
.page-dots {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 17px;
    border-radius: 16px;
    color: #1a4a42;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        0 12px 26px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.page-link {
    transition:
        transform 0.28s ease,
        color 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.page-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
    background:
        linear-gradient(135deg, #102f2a 0%, #1a4a42 58%, #245f55 100%);
    border-color: rgba(26, 74, 66, 0.22);
    box-shadow:
        0 18px 36px rgba(16, 47, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.current-page {
    color: #ffffff;
    background:
        linear-gradient(135deg, #102f2a 0%, #1a4a42 58%, #245f55 100%);
    border-color: rgba(26, 74, 66, 0.22);
    box-shadow:
        0 18px 36px rgba(16, 47, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.page-dots {
    color: rgba(16, 47, 42, 0.58);
    pointer-events: none;
    user-select: none;
}

.prev-page,
.next-page {
    min-width: 118px;
}

/* ======================================== */
/* focus                                    */
/* ======================================== */

.store-section a:focus-visible {
    outline: 3px solid rgba(26, 74, 66, 0.24);
    outline-offset: 4px;
}

/* ======================================== */
/* responsive                               */
/* ======================================== */

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

@media (max-width: 1080px) {
    .store-section {
        padding: 92px 18px 104px;
    }

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

    .store-header h2 {
        font-size: 34px;
    }
}

@media (max-width: 720px) {
    .store-section {
        padding: 72px 15px 84px;
    }

    .store-header {
        margin-bottom: 42px;
    }

    .store-header h2 {
        font-size: 28px;
    }

    .store-header p {
        font-size: 14px;
        line-height: 2;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card {
        border-radius: 30px;
    }

    .product-card::after {
        border-radius: 29px;
    }

    .product-image-wrapper {
        height: 255px;
        margin: 14px 14px 0;
        border-radius: 24px;
    }

    .product-info {
        padding: 22px 22px 25px;
    }

    .product-title {
        font-size: 19px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-button {
        width: 100%;
    }

    .pagination-container {
        gap: 9px;
        margin-top: 44px;
    }

    .page-link,
    .page-dots {
        min-width: 42px;
        height: 42px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 13px;
    }

    .prev-page,
    .next-page {
        min-width: 104px;
    }
}

@media (max-width: 430px) {
    .store-section {
        padding: 62px 12px 74px;
    }

    .store-header h2 {
        font-size: 25px;
    }

    .product-image-wrapper {
        height: 230px;
    }

    .prev-page,
    .next-page {
        width: 100%;
    }
}
