/*
Theme Name:     Woodmart Child
Theme URI:      https://olaps.net/
Description:    Child theme for Woodmart
Author:         Olaps
Author URI:     https://olaps.net/
Template:       woodmart
Version:        1.0
*/

/* ============================================================
   PRODUCT & SLIDER STYLING
   ============================================================ */

.product-element-top {
    background-color: #f5f5f5;
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-wrapper .wd-entities-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wd-carousel-item {
    height: 100% !important;
}

/* Responsive heights */
@media (max-width: 1024px) {
    .product-wrapper { height: 540px; }
    .wd-slide { min-height: 300px !important; }
}

@media (max-width: 768px) {
    .product-wrapper { height: 585px; }
    .wd-slide { min-height: 250px !important; }
    .wd-nav-pagin { display: none !important; }
}

@media (max-width: 580px) {
    .product-wrapper { height: 500px; }
    .wd-slide { min-height: 200px !important; }
}

@media (max-width: 445px) {
    .product-wrapper {
        height: 417px !important;
        min-height: 417px !important;
    }
    .wd-slide {
        min-height: 100px !important;
        height: 100px !important;
    }
}

/* ============================================================
   ARABIC (RTL) UI FIXES
   ============================================================ */

html[lang="ar"] .wa__btn_popup,
html[lang="ar"] .wa__popup_chat_box {
    right: unset !important;
    left: 18px !important;
}

html[lang="ar"] .scrollToTop {
    right: unset !important;
    left: 20px;
}

html[lang="ar"] body {
    margin-left: 0 !important;
}
/* ============================================================
   THANK YOU PAGE – BLUE PREMIUM (FINAL)
   ============================================================ */

body.woocommerce-order-received {
    background: linear-gradient(180deg, #f3f6fd 0%, #ffffff 45%);
}

.woocommerce-order {
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    padding: 48px;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
}

/* Remove unwanted Woo text */
.woocommerce-thankyou-order-received,
.woocommerce-order > p {
    display: none !important;
}

/* SUCCESS BOX */
.olaps-success {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 42px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(37,99,235,0.35);
}

.olaps-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

/* CUSTOMER INFO GRID (FORCED) */
.woocommerce-order .olaps-customer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    background: #f9fbff;
    border: 1px solid #e6ecff;
    border-radius: 14px;
    padding: 24px;
}

.olaps-customer-grid strong {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.olaps-customer-grid p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #555;
}
.woocommerce-order > p {
    display: none !important;
}
/* Mobile */
@media (max-width: 768px) {
    .woocommerce-order {
        padding: 32px;
    }

    .olaps-customer-grid {
        grid-template-columns: 1fr !important;
    }
}