/*
Theme Name: TTC Coatings - RTL Stylesheet
*/

:root {
    --font-heading: 'Almarai', sans-serif;
    --font-body: 'Almarai', sans-serif;
}

/* Floating WhatsApp RTL */
.c-floating-whatsapp {
    right: auto;
    left: 28px;
}

.c-floating-whatsapp__badge {
    right: auto;
    left: -2px;
}

.c-floating-whatsapp__tooltip {
    right: auto;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-6px);
}

.c-floating-whatsapp:hover .c-floating-whatsapp__tooltip,
.c-floating-whatsapp:focus-visible .c-floating-whatsapp__tooltip {
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
    .c-floating-whatsapp {
        right: auto;
        left: 18px;
    }
    .c-floating-whatsapp__badge {
        right: auto;
        left: -2px;
    }
}

/* Mobile Navigation Drawer RTL */
@media (max-width: 992px) {
    .main-navigation {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
    }
    .main-navigation.mobile-menu-open {
        transform: translateX(0);
    }
}

/* Numbers & Phone Numbers in RTL */
.contact-phone,
[dir="ltr"] {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: embed;
}

/* Search input RTL */
.c-product-search-input {
    padding: 0 28px 0 64px;
}
.c-product-search-btn {
    right: auto;
    left: 8px;
}

/* ==========================================================================
   RTL Subpages, Products & Blog
   ========================================================================== */

/* Product Card RTL Badges */
.c-product-card__badge {
    right: auto;
    left: 14px;
}
.c-product-card__code {
    left: auto;
    right: 14px;
}
.c-product-card__actions .c-product-card__btn-view svg {
    transform: rotate(180deg);
}

/* Single Product Showcase RTL */
.c-single-product__code-badge {
    right: auto;
    left: 20px;
}

/* Blog Cards RTL */
.c-post-card__cat-badge {
    right: auto;
    left: 14px;
}
.c-post-card__btn-read svg {
    transform: rotate(180deg);
}
.c-post-card__btn-read:hover {
    gap: 12px;
}

/* Single Article Typography RTL */
.entry-content blockquote {
    border-left: none;
    border-right: 4px solid var(--c-amber-start);
    border-radius: 8px 0 0 8px;
}
.c-single-article__tags .tags-title {
    margin-right: 0;
    margin-left: 8px;
}

/* Hierarchical Category & Placeholder RTL adjustments */
.c-category-card:hover .c-category-card__arrow {
    transform: translateX(-4px);
}

.c-catalog-back-link svg {
    transform: scaleX(-1);
}

.c-catalog-back-link:hover {
    transform: translateX(3px);
}

/* About Us RTL Enhancements */
.c-about-spec-item {
    text-align: right;
}

.c-about-sectors__pills {
    direction: rtl;
}

.c-about-principle-card {
    text-align: center;
}

.c-about-pillar-card {
    text-align: right;
}

.c-about-cta-card {
    text-align: right;
}

/* Blog & Single Article RTL */
.c-article-cta-box {
    text-align: right;
}

.c-blog-category-nav__scroll {
    direction: rtl;
}

.c-single-article__meta {
    direction: rtl;
}

/* Contact Us RTL */
.c-contact-info,
.c-contact-card,
.c-contact-form-card {
    text-align: right;
}

.c-contact-card__value.contact-phone,
.c-contact-card__value[dir="ltr"] {
    text-align: right;
}


