/* M7trf single product page: same clean white pattern as the homepage (m7-home-v2) and shop.
   Fonts come from m7-home-v2.css (enqueued as a dependency). Scoped to body.m7-product. */
body.m7-product{
  --m7-line:#ebe8f2; --m7-soft:#f6f5fa; --m7-fg:#16131f; --m7-muted:#6e6880;
  --m7-accent:#7c4dff; --m7-accent-hover:#6a3bf0; --m7-accent-soft:#f1ecff;
}
body.m7-product .elementor-location-single,
body.m7-product [data-elementor-type="product"],
body.m7-product .etheme-sticky-cart{font-family:"M7 Tajawal",Tahoma,sans-serif}
body.m7-product [data-elementor-type="product"] :is(h1,h2,h3,h4,p,a,span,button,li,input,select,label){font-family:inherit}

/* gallery */
body.m7-product .woocommerce-product-gallery .swiper-control-top{border:1px solid var(--m7-line);border-radius:20px;overflow:hidden;background:#fff}
body.m7-product .woocommerce-product-gallery__image img{object-fit:contain}
body.m7-product .vertical-thumbnails-wrapper img,
body.m7-product .thumbnails-list img{border:1px solid var(--m7-line)!important;border-radius:12px!important;background:#fff}
body.m7-product .vertical-thumbnails-wrapper .active-thumbnail img,
body.m7-product .vertical-thumbnails-wrapper .swiper-slide-active img{border-color:var(--m7-accent)!important}

/* title + price */
body.m7-product .elementor-widget-woocommerce-product-etheme_title,body.m7-product .elementor-widget-woocommerce-product-etheme_title .elementor-widget-container{text-align:right!important}
body.m7-product .product_title{text-align:right!important;width:100%;font-size:clamp(24px,2.6vw,32px)!important;font-weight:800!important;line-height:1.3!important;color:var(--m7-fg)!important;letter-spacing:0!important;text-transform:none!important}
body.m7-product .elementor-widget-woocommerce-product-etheme_price .price{font-size:30px!important;font-weight:800!important;color:var(--m7-fg)!important;display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
body.m7-product .elementor-widget-woocommerce-product-etheme_price .price ins{text-decoration:none;color:var(--m7-fg)!important;order:-1}
body.m7-product .elementor-widget-woocommerce-product-etheme_price .price del{font-size:18px;font-weight:400;color:var(--m7-muted)!important;opacity:1}
body.m7-product .single-wishlist a,body.m7-product .single-compare a{color:var(--m7-muted)!important}
body.m7-product .single-wishlist a:hover,body.m7-product .single-compare a:hover{color:var(--m7-accent)!important}
body.m7-product .elementor-divider-separator{border-color:var(--m7-line)!important}

/* installments box */
body.m7-product .m7-inst{border:1px solid var(--m7-line);background:var(--m7-soft);border-radius:16px;padding:14px 16px;margin:0 0 18px;font-family:"M7 Tajawal",Tahoma,sans-serif;color:var(--m7-fg)}
body.m7-product .m7-inst-title{margin:0 0 10px!important;font-size:15px;font-weight:800;line-height:1.4}
body.m7-product .m7-inst-list{list-style:none;margin:0!important;padding:0!important;display:grid;gap:8px}
body.m7-product .m7-inst-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--m7-line);border-radius:12px;padding:8px 12px;margin:0!important}
body.m7-product .m7-inst-row::before{display:none!important}
body.m7-product .m7-inst-logo{display:inline-flex;align-items:center;gap:6px;height:28px}
body.m7-product .m7-inst-logo img{height:26px;width:auto;max-width:90px;display:block;border-radius:7px}
body.m7-product .m7-inst-row.is-deema .m7-inst-logo img{height:26px;width:26px}
body.m7-product .m7-inst-logo b{font-family:Tahoma,Arial,sans-serif;font-weight:700;font-size:16px;color:#1b1b1f;direction:ltr}
body.m7-product .m7-inst-amt{font-size:14px;color:var(--m7-muted);white-space:nowrap}
body.m7-product .m7-inst-amt strong{color:var(--m7-fg);font-weight:800;font-size:15px}
body.m7-product .m7-inst-amt .woocommerce-Price-amount{color:inherit;font-weight:inherit}
body.m7-product .m7-inst-note{margin:10px 0 0!important;font-size:12px;color:var(--m7-muted)}
/* the plugin's own Tabby promo would repeat the box */
body.m7-product #tabbyPromo,body.m7-product #tabbyPromo1{display:none!important}

/* quantity + buttons */
body.m7-product .quantity select,body.m7-product .quantity input.qty,body.m7-product .quantity-wrapper{border:1px solid var(--m7-line)!important;border-radius:12px!important;background:#fff!important}
body.m7-product form.cart .single_add_to_cart_button:not(.et-single-buy-now){background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:12px!important;font-weight:700!important;font-size:16px!important;text-transform:none!important;letter-spacing:0!important;transition:background .15s}
body.m7-product form.cart .single_add_to_cart_button:not(.et-single-buy-now):hover{background:var(--m7-accent-hover)!important;border-color:var(--m7-accent-hover)!important}
body.m7-product form.cart .et-single-buy-now{background:var(--m7-fg)!important;border-color:var(--m7-fg)!important;color:#fff!important;border-radius:12px!important;font-weight:700!important;font-size:16px!important;text-transform:none!important;letter-spacing:0!important}
body.m7-product form.cart .et-single-buy-now:hover{background:#2b2638!important;border-color:#2b2638!important}
body.m7-product .qlwapp--woocommerce .qlwapp__button{border-radius:12px!important;font-family:inherit!important;font-weight:700}
body.m7-product .et-or-wrapper{display:none!important}

/* meta */
body.m7-product .product_meta{font-size:14px;color:var(--m7-muted)}
body.m7-product .product_meta a{color:var(--m7-fg)!important}
body.m7-product .product_meta a:hover{color:var(--m7-accent)!important}

/* tabs */
body.m7-product .woocommerce-tabs .wc-tabs{border-color:var(--m7-line)!important}
body.m7-product .woocommerce-tabs .et-woocommerce-tab a{font-weight:800!important;font-size:18px!important;color:var(--m7-muted)!important;text-transform:none!important;letter-spacing:0!important}
body.m7-product .woocommerce-tabs .et-woocommerce-tab.active a{color:var(--m7-fg)!important}
body.m7-product .woocommerce-tabs .et-woocommerce-tab.active a::after,
body.m7-product .woocommerce-tabs .et-woocommerce-tab.active::after{background:var(--m7-accent)!important;border-color:var(--m7-accent)!important}
body.m7-product .woocommerce-Tabs-panel{color:#38334a;font-size:15px;line-height:1.8}
body.m7-product .woocommerce-Tabs-panel table{border-radius:12px;overflow:hidden;border:1px solid var(--m7-line)}
body.m7-product #review_form .submit,body.m7-product #respond input#submit{background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:12px!important}
body.m7-product #respond textarea,body.m7-product #respond input[type=text],body.m7-product #respond input[type=email]{border:1px solid var(--m7-line)!important;border-radius:12px!important}

/* related products: same card as the homepage rails */
body.m7-product .elementor-widget-woocommerce-product-etheme_related .elementor-heading-title,
body.m7-product .elementor-widget-woocommerce-product-etheme_related .related-products-title{font-weight:800!important;color:var(--m7-fg)!important}
body.m7-product .etheme-elementor-slider .swiper-slide>.product{background:#fff;border:1px solid var(--m7-line);border-radius:16px;padding:10px;height:100%;transition:box-shadow .2s,border-color .2s}
body.m7-product .etheme-elementor-slider .swiper-slide>.product:hover{border-color:#d9d2ee;box-shadow:0 8px 24px rgba(40,20,90,.08)}
body.m7-product .etheme-elementor-slider .product-image-wrapper{border-radius:12px;overflow:hidden;background:#fff}
body.m7-product .etheme-elementor-slider .product-details{text-align:right!important;padding:8px 2px 0!important}
body.m7-product .etheme-elementor-slider .product-title{font-size:14px!important;font-weight:700!important;line-height:1.5!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em}
body.m7-product .etheme-elementor-slider .product-title a{color:var(--m7-fg)!important}
body.m7-product .etheme-elementor-slider .products-page-cats a{color:var(--m7-muted)!important;font-size:12px}
body.m7-product .etheme-elementor-slider .price{font-size:16px!important;font-weight:800!important;color:var(--m7-fg)!important}
body.m7-product .etheme-elementor-slider .price ins,body.m7-product .etheme-elementor-slider .price ins .amount{color:var(--m7-fg)!important;text-decoration:none}
body.m7-product .etheme-elementor-slider .sale-wrapper .onsale{background:#e5484d!important;color:#fff!important;border:0!important;border-radius:6px!important;font-weight:700}
body.m7-product .etheme-elementor-slider .price del{font-size:13px;font-weight:400;color:var(--m7-muted)!important}
body.m7-product .etheme-elementor-slider .button{background:var(--m7-accent-soft)!important;color:var(--m7-accent)!important;border:0!important;border-radius:10px!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important}
body.m7-product .etheme-elementor-slider .button:hover{background:var(--m7-accent)!important;color:#fff!important}

/* sticky add-to-cart bar */
body.m7-product .etheme-sticky-cart .single_add_to_cart_button:not(.et-single-buy-now){background:var(--m7-accent)!important;border-color:var(--m7-accent)!important;color:#fff!important;border-radius:12px!important}
body.m7-product .etheme-sticky-cart .et-single-buy-now{background:var(--m7-fg)!important;border-color:var(--m7-fg)!important;color:#fff!important;border-radius:12px!important}

@media (max-width:760px){
  body.m7-product .product_title{text-align:right!important;width:100%;font-size:22px!important}
  body.m7-product .elementor-widget-woocommerce-product-etheme_price .price{font-size:24px!important}
  body.m7-product .m7-inst{padding:12px}
  body.m7-product .m7-inst-row{padding:7px 10px}
  body.m7-product .m7-inst-logo img{height:22px}
  body.m7-product .m7-inst-row.is-deema .m7-inst-logo img{height:22px;width:22px}
  body.m7-product .m7-inst-amt{font-size:13px}
  body.m7-product .woocommerce-product-gallery .swiper-control-top{border-radius:16px}
}
@media (prefers-reduced-motion:reduce){body.m7-product .etheme-elementor-slider *{transition:none!important}}
