/* Mobile-first SEO & usability enhancements for فروشگاه نصف جهان */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: 16px;
    line-height: 1.65;
}

.product-details-title,
.product-list-title,
.home-hero-slider .carousel-caption h2,
.order-invoice-title {
    line-height: 1.35;
    word-break: break-word;
}

.product-details-desc,
.product-details-long-desc,
.site-description p {
    font-size: 1rem;
    line-height: 1.8;
}

.product-details-breadcrumb,
.order-invoice-breadcrumb {
    font-size: 0.875rem;
    flex-wrap: wrap;
}

a.product-details-cta,
.mb-add-to-cart-btn,
.btn-primary-cm,
.pwa-bottom-nav a {
    min-height: 44px;
}

.product-card .product-title a,
.product-details-title {
    color: inherit;
}

.product-seo-intro {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.product-seo-image,
.seo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-seo-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.banner-seo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-list-thumb .product-seo-image,
.product-card .product-seo-image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.product-details-gallery .product-seo-image[itemprop="image"] {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

img[loading="lazy"] {
    content-visibility: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-details-long-desc {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.product-details-long-desc h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-details-specs {
    margin-top: 1.5rem;
}

.product-details-specs h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-details-seo-intro {
    margin-top: 0;
    padding: 1rem 1.25rem;
}

.product-details-seo-intro .product-seo-intro {
    margin-bottom: 0;
    line-height: 1.85;
}

@media (max-width: 767.98px) {
    .product-details-page {
        padding-bottom: 5.5rem;
    }

    .product-details-title {
        font-size: 1.25rem;
    }

    .product-details-desc-box {
        margin-top: 0.75rem;
    }

    .related-products-carousel .product-card {
        margin-bottom: 0.5rem;
    }

    .site-description .site-title {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .main-slider .carousel-item img {
        max-height: 220px;
        object-fit: cover;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
