/* ---------------------------------------------------------------------------
   Styles for the SEO pages added in July 2026: the HTML sitemap (/{lang}/sitemap)
   and the custom 404 error page.

   Kept in a SEPARATE file on purpose. custom.css / custom-ar.css carry the
   chatbot CSS-leak mitigation that is applied directly on the server and is not
   always in sync with the repository — appending here avoids any risk of that
   fix being overwritten by a deploy.

   Direction-agnostic: uses logical properties (text-align:start, margin-inline)
   so the same file serves both the LTR English and RTL Arabic layouts.
--------------------------------------------------------------------------- */

/* ------------------------------- Sitemap page ---------------------------- */

.sitemap-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.sitemap-page h1 {
    margin-bottom: 12px;
}

.sitemap-page .sitemap-intro {
    max-width: 760px;
    color: var(--clr-blue-gray2, #535A6D);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.sitemap-page .sitemap-section-title {
    margin-top: 24px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-gray1, #EEEEEE);
}

.sitemap-page .sitemap-block {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--clr-gray1, #EEEEEE);
    border-radius: 10px;
    background: var(--clr-white, #ffffff);
    transition: box-shadow 0.25s ease;
}

.sitemap-page .sitemap-block:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.sitemap-page .sitemap-block h2,
.sitemap-page .sitemap-block h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-gray1, #EEEEEE);
    text-align: start;
}

.sitemap-page .sitemap-block h3 a {
    color: inherit;
}

.sitemap-page .sitemap-links {
    margin: 0;
    padding: 0;
}

.sitemap-page .sitemap-links li {
    margin-bottom: 10px;
    text-align: start;
}

.sitemap-page .sitemap-links li:last-child {
    margin-bottom: 0;
}

.sitemap-page .sitemap-links a {
    color: var(--clr-blue-gray2, #535A6D);
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.sitemap-page .sitemap-links a:hover,
.sitemap-page .sitemap-block h3 a:hover {
    color: var(--color-primary, #037AC5);
}

@media screen and (max-width: 767px) {
    .sitemap-page {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .sitemap-page .sitemap-block {
        padding: 18px;
    }
}

/* ------------------------------ 404 error page --------------------------- */

.error-page {
    padding-top: 60px;
    padding-bottom: 80px;
}

.error-page .error-code {
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary, #037AC5);
    opacity: 0.18;
    margin-bottom: 8px;
}

.error-page .error-heading {
    font-size: 30px;
    margin-bottom: 16px;
}

.error-page .error-message {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--clr-blue-gray2, #535A6D);
    font-size: 16px;
    line-height: 1.7;
}

.error-page .error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 44px;
}

.error-page .error-btn {
    min-width: 190px;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.error-page .error-btn:hover {
    opacity: 0.88;
}

.error-page .error-btn-primary {
    background: var(--color-primary, #037AC5);
    color: var(--clr-white, #ffffff);
}

.error-page .error-btn-secondary {
    background: transparent;
    color: var(--color-primary, #037AC5);
    border: 1px solid var(--color-primary, #037AC5);
}

.error-page .error-categories {
    padding-top: 32px;
    border-top: 1px solid var(--clr-gray1, #EEEEEE);
}

.error-page .error-subheading {
    font-size: 18px;
    margin-bottom: 18px;
}

.error-page .error-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.error-page .error-category-links a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--clr-gray1, #EEEEEE);
    border-radius: 40px;
    font-size: 14px;
    color: var(--clr-blue-gray2, #535A6D);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.error-page .error-category-links a:hover {
    border-color: var(--color-primary, #037AC5);
    color: var(--color-primary, #037AC5);
}

.error-page .error-help {
    margin-top: 36px;
    margin-bottom: 0;
    font-size: 15px;
    color: var(--clr-blue-gray2, #535A6D);
}

.error-page .error-help a {
    color: var(--color-primary, #037AC5);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media screen and (max-width: 767px) {
    .error-page {
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .error-page .error-code {
        font-size: 76px;
    }

    .error-page .error-heading {
        font-size: 23px;
    }

    .error-page .error-btn {
        min-width: 100%;
    }
}

/* ------------------------- Heading structure (SEO) -----------------------
   The homepage previously rendered 9 <h1> tags: one per banner slide plus one
   per product section title. Those are now <h2>, and the page carries a single
   <h1>. The rules below reproduce the original .slideshow-content h1 and
   .section-title h1 styling exactly (all breakpoints), so the change is
   invisible to users — only the document outline changes.

   The one Arabic-specific difference from custom-ar.css (extra padding-top on
   small screens) is reapplied via html[dir="rtl"] at the end.
------------------------------------------------------------------------- */

.slideshow-content h2.banner-slide-title {
    font-size: 88px;
    color: var(--clr-white);
    line-height: 1;
    margin-bottom: 30px;
}

@media only screen and (min-width:1400px) and (max-width:1599px) {
    .slideshow-content h2.banner-slide-title { font-size: 70px; }
}

@media screen and (min-width:1200px) and (max-width:1399px) {
    .slideshow-content h2.banner-slide-title { font-size: 50px; }
}

@media screen and (min-width:992px) and (max-width:1199px) {
    .slideshow-content h2.banner-slide-title { font-size: 40px; }
}

@media screen and (min-width:576px) and (max-width:991px) {
    .slideshow-content h2.banner-slide-title { font-size: 23px !important; margin-bottom: 10px; }
}

@media screen and (min-width:300px) and (max-width:575px) {
    .slideshow-content h2.banner-slide-title { font-size: 17px !important; margin-bottom: 5px; }
}

.section-title h2.section-heading {
    font-size: 23px;
    padding-top: 45px;
    padding-bottom: 15px;
    color: var(--clr-blue);
}

@media only screen and (min-width:1400px) and (max-width:1599px) {
    .section-title h2.section-heading { font-size: 33px; }
}

@media screen and (min-width:1200px) and (max-width:1399px) {
    .section-title h2.section-heading { font-size: 30px; }
}

@media screen and (min-width:992px) and (max-width:1199px) {
    .section-title h2.section-heading { font-size: 25px; }
}

@media screen and (min-width:300px) and (max-width:991px) {
    .section-title h2.section-heading { font-size: 18px; line-height: 1; }
    html[dir="rtl"] .section-title h2.section-heading { padding-top: 20px; }
}

/* Single homepage h1. Sits above the first content section, styled to read as
   a page lead-in rather than a banner heading. */
.home-page-title {
    font-size: 22px;
    line-height: 1.4;
    color: var(--clr-blue, #037AC5);
    text-align: start;
    margin: 0;
    padding-top: 28px;
}

@media screen and (max-width:991px) {
    .home-page-title {
        font-size: 17px;
        padding-top: 20px;
    }
}

/* Product detail page: the product name is now the page's single <h1> (it was an
   <h2>, leaving product pages with no h1 at all — SEO audit, July 2026).
   Reproduces the previous .product-details h2 appearance exactly. */
.product-details h1.product-detail-title {
    margin-bottom: 0;
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
}

@media screen and (min-width:300px) and (max-width:767px) {
    .product-details h1.product-detail-title {
        font-size: 20px;
    }
}

/* Footer sitemap link (SEO audit, July 2026) */
.footer__bottom .footer-sitemap-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.footer__bottom .footer-sitemap-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__bottom .footer-sitemap-link:hover {
    opacity: 0.8;
}
