/* LTR layout fixes for English pages */

/* Reverse two-column elementor containers to match Arabic visual layout */
.elementor-section > .elementor-container {
    flex-direction: row-reverse !important;
}

/* Inner sections also need reversing */
.elementor-inner-section > .elementor-container {
    flex-direction: row-reverse !important;
}

/* Sections with elementor-reverse-mobile were already reversed in RTL */
.elementor-reverse-mobile > .elementor-container {
    flex-direction: row !important;
}

/* Fix nav alignment for LTR */
#site-navigation-wrap {
    float: right;
}

#site-logo {
    float: left;
}

/* Keep sub-menus dropping correctly in LTR */
#site-navigation-wrap .dropdown-menu .sub-menu {
    left: 0;
    right: auto;
}

/* Fix mobile menu alignment */
.oceanwp-mobile-menu-icon {
    float: right;
}

/* Fix text alignment for LTR */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor h2,
.elementor-icon-box-content,
.elementor-icon-box-title,
.elementor-icon-box-description,
.elementor-testimonial-wrapper {
    text-align: left !important;
}

/* Product grid should flow normally LTR */
.woo-products-products {
    direction: ltr;
}

/* Fix product card text alignment */
.woo-products-product-title,
.woo-products-product-button {
    text-align: center !important;
}

/* Fix icon box layout for LTR */
.elementor-position-inline-start .elementor-icon-box-wrapper {
    flex-direction: row !important;
}

.elementor-position-inline-end .elementor-icon-box-wrapper {
    flex-direction: row-reverse !important;
}

/* Icon box icon margin fix */
.elementor-position-inline-start .elementor-icon-box-icon {
    margin-right: 15px;
    margin-left: 0;
}

/* Fix icon list alignment */
.elementor-icon-list-items {
    text-align: left !important;
}

.elementor-icon-list-item {
    direction: ltr;
}

.elementor-icon-list-icon {
    margin-right: 8px;
    margin-left: 0;
}

/* Fix the contact form text alignment */
.elementor-field-textual {
    text-align: left !important;
}

/* Swiper navigation arrows for LTR */
.elementor-swiper-button-prev {
    left: 10px !important;
    right: auto !important;
}
.elementor-swiper-button-next {
    right: 10px !important;
    left: auto !important;
}

/* WooCommerce product page - gallery left, summary right */
.woocommerce div.product div.images {
    float: left !important;
}
.woocommerce div.product div.summary {
    float: right !important;
}

/* Force product gallery to be visible */
.woocommerce-product-gallery {
    opacity: 1 !important;
}

/* Product short description text align */
.woocommerce-product-details__short-description p {
    text-align: left !important;
}

/* Fix button alignment */
.elementor-button-wrapper {
    text-align: left;
}

/* Centered buttons should stay centered */
.elementor-align-center .elementor-button-wrapper {
    text-align: center;
}

/* Copyright footer center */
#copyright {
    text-align: center !important;
}

/* Social icons keep left alignment */
.elementor-grid {
    direction: ltr;
}

/* Fix product thumbnails gallery */
.woocommerce-product-gallery .flex-control-thumbs {
    direction: ltr;
    display: flex !important;
    gap: 8px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs li.active,
.woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: #971b4a;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product gallery - show as simple gallery with constrained height */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    display: block !important;
    transform: none !important;
    position: relative;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image {
    display: none;
    float: none !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image:first-child,
.woocommerce-product-gallery .woocommerce-product-gallery__image.is-active {
    display: block;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* The "Expertise" section heading should be on LEFT in LTR (don't reverse) */
.elementor-element-539752b > .elementor-container {
    flex-direction: row !important;
}

/* English home: force "Why Golden Crown?" image to appear on right */
.elementor-115 .elementor-element.elementor-element-5544800 {
    position: relative;
    overflow: hidden;
}

.elementor-115 .elementor-element.elementor-element-5544800:not(.elementor-motion-effects-element-type-background),
.elementor-115 .elementor-element.elementor-element-5544800 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
}

.elementor-115 .elementor-element.elementor-element-5544800::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("wp-content/uploads/2020/04/banner-4-scaled-1.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    transform: scaleX(-1);
    transform-origin: center center;
    z-index: 0;
}

.elementor-115 .elementor-element.elementor-element-5544800 > .elementor-container,
.elementor-115 .elementor-element.elementor-element-5544800 > .elementor-shape {
    position: relative;
    z-index: 1;
}

/* English product pages: hide native top thumbs, keep custom bottom strip */
.woocommerce-product-gallery .flex-control-thumbs,
.woocommerce-product-gallery .flex-control-nav {
    display: none !important;
}

