/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*
 ============ Font ===========
*/
@font-face {
  font-display: swap;
  font-family: 'Readex';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/readex.woff2') format('woff2');
}
@font-face {
    font-family: 'Readex-Fallback';
    src: local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), sans-serif;
    size-adjust: 104.11%;
    ascent-override: 80%;
    descent-override: 20%;
    line-gap-override: 0%;
}

/*============ Variables ============*/
:root {
	--main-font: 'Readex', 'Readex-Fallback', system-ui, sans-serif;
	--main-border-radius: 8px;
    --main-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --main-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --main-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General */
body {
    font-family: var(--main-font);
}

/* إخفاء الودجت (قبل وبعد الزر) داخل العرض السريع */
.woosq-popup .widget, 
.woosq-popup .product_meta, 
.woosq-popup .before-cart-widget,
.woosq-popup .after-cart-widget {
    display: none;
}

/* widgets */
.before-tabs-widget {
    clear: both;
}

/* تنسيق المنتج في صفحة الارشيف */
.woocommerce ul.products li.product a img {
    margin: unset;
}

/* تنسيق زر العرض السريع */
ul.products li.product .woosq-btn {
    position: absolute;
    transform: translate(-7px,-44px);
    padding: 7px 10px 4px 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
	overflow: hidden;
	display: inline-flex;
    align-items: center;
}
.woosq-btn-text {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    margin-inline-start: 0;
	transition: var(--main-transition);
}
ul.products li.product:hover .woosq-btn-text {
    max-width: 200px;
    opacity: 1;
    margin-inline-start: 5px;
}

/* تنسيق زر العرض السريع مكان صورة المنتج */
/* حاوية الصورة */
/*.woosq-link {
    display: block;
    position: relative;
    overflow: hidden;
}*/
/* النص العائم (يدعم اللغات تلقائياً) */
/*.woosq-link::after {
    content: attr(data-qv-text);
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    transition: var(--main-transition);
    pointer-events: none;
    box-shadow: var(--shadow-light);
}
.woosq-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}*/
/*.woosq-link:hover img {
    filter: brightness(0.9);
    /*transform: scale(1.03);*/
}*/

/* زر العرض السريع */
/*.woosq-btn {
    position: absolute;
    top: 15px;
	left: 15px;
    background: #fff;
    color: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transition: var(--main-transition);
    z-index: 10;
    padding: 0;
}
ul.products li.product:hover .woosq-btn {
    opacity: 1;
    bottom: 15px;
}
.woosq-btn::before {
    font-size: 18px;
}*/

/* تنسيق واجهة المتجر */
/* re-order form on home page */
.shop_table tr:last-child td {border-right: 1px solid rgba(0,0,0,.1) !important;}

/* تنسيق كارت المنتج ليشبه Woodmart */
ul.products li.product {
    transition: var(--main-transition);
}

ul.products li.product:hover {
    box-shadow: var(--hover-shadow);
    /*transform: translateY(-3px);*/
}

/* تنسيق الصور */
ul.products li.product img {
    border-radius: 8px;
}

/* تنسيق الأزرار لتصبح فخمة */
.button.add_to_cart_button, .button.product_type_variable {
    background-color: #222;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
}