:root {
	--wd-text-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #777777;
	--wd-text-font-size: 16px;
	--wd-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 17px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: #1f2a44;
	--wd-alternative-color: #fcc917;
	--btn-default-font-family: "Cairo", Arial, Helvetica, sans-serif;
	--btn-default-font-weight: 400;
	--btn-default-transform: none;
	--btn-default-bgcolor: rgb(61,95,175);
	--btn-default-bgcolor-hover: #fcc917;
	--btn-accented-font-family: "Cairo", Arial, Helvetica, sans-serif;
	--btn-accented-font-weight: 400;
	--btn-accented-transform: none;
	--btn-accented-bgcolor: rgb(30,115,190);
	--btn-accented-bgcolor-hover: #fcc917;
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #1f2a44;
	--wd-link-color-hover: #fcc917;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 280px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-image: url(https://storage.googleapis.com/mn-egy/2020/08/page-title-007-1.jpg);
	background-size: cover;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	font-family: "Cairo", Arial, Helvetica, sans-serif;
	font-weight: 600;
	font-size: 14px;
}
.wd .product-label.onsale {
	background-color: rgb(224,7,0);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 0px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 5px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #333;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 5px;
}

@media (min-width: 1222px) {
[data-vc-full-width]:not([data-vc-stretch-content]),
:is(.vc_section, .vc_row).wd-section-stretch {
padding-left: calc((100vw - 1222px - var(--wd-sticky-nav-w) - var(--wd-scroll-w)) / 2);
padding-right: calc((100vw - 1222px - var(--wd-sticky-nav-w) - var(--wd-scroll-w)) / 2);
}
}


.wd-page-title {
background-color: #0a0a0a;
}

/* --- 1. GLOBAL FONT OPTIMIZATION --- */
/* Merged all Cairo font declarations to reduce file size */
body, .font-text, .menu-item-register .create-account-link, .menu-label, 
.blog-post-loop .entry-title, .post-single-page .entry-title, td.product-name a, 
.product-title, .product-grid-item .product-title, h1, h2, h3, h4, h5, h6, .title,
.main-nav .item-level-0 > a, .lsd-listing-address, .lsd-load-more-text {
    font-family: Cairo, Arial, sans-serif !important;
}
/* --- 2. THE ROW EQUALIZER (FIXES YOUR ISSUE) --- */
/* Forces all products in a row to match the tallest one */
ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
}
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    height: auto !important;
}
.shop-sub-description {
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px; /* Reserves space for 2 lines */
    margin-bottom: 10px;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-sub-description.is-empty {
    visibility: hidden; /* Keeps the 36px space but hides the box */
}
/* Pushes buttons to the bottom of the card for perfect alignment */
ul.products li.product .price, 
ul.products li.product .button, 
ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
}
/* --- 3. COLORS & UI FIXES --- */
a.product-title:hover, .product-grid-item .product-title a:hover {
    color: #1d6aa2;
}
.promo-banner-wrapper h4 {
    color: #FCC917;
    text-shadow: 2px 2px 2px #000;
    background: rgba(31, 42, 68, 0.77); /* Cleaner syntax for #1f2a44c4 */
    padding: 5px 5px 10px;
}
/* Fixed double semicolon and syntax in LSD styles */
.lsd-grid-view-wrapper.lsd-style-style1 .lsd-grid-view-listings-wrapper .lsd-row>div .lsd-listing .lsd-listing-body {
    border-top: 1px #eee solid;
    padding: 15px 20px;
}
/* --- 4. HIDDEN ELEMENTS --- */
#enquiryButton, .woocommerce-ordering, .icons-design-colored .social-tg, 
.icons-design-colored .social-linkedin, .woodmart-post-date, 
.lsd-listing-image, .lsd-listing-bottom-bar {
    display: none !important;
}

//* --- Woodmart Grid-Safe Equalizer --- */
/* 1. Make the individual product column a flex container */
.wd-product {
    display: flex !important;
    flex-direction: column !important;
}
/* 2. Make the inner wrapper fill the available height in the row */
.wd-product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    height: 100% !important;
}
/* 3. Description styling: Limit to 2 lines, no fixed height */
.shop-sub-description {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #777;
    /* Standard line-clamping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 4. The "Anchor": Pushes buttons to the bottom ONLY when needed */
.wd-product-wrapper .price,
.wd-product-wrapper .woocommerce_catalog_product_button {
    margin-top: auto !important;
}
/* 5. Hide the placeholder div if empty to save even more space */
.shop-sub-description.is-empty {
    display: none;
}

/* Shop attributes Table Looks */
/* 1. The Outer Frame */
table.woocommerce-product-attributes.shop_attributes {
    border: 2px solid #e1e1e1 !important;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
    width: 100%;
    margin: 25px 0;
}
/* 2. Row & Cell Structure */
.shop_attributes tr {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #e1e1e1;
}
.shop_attributes tr:last-child {
    border-bottom: none;
}
/* 3. Label (Right Side - Blue Tint) */
.shop_attributes th {
    flex: 0 0 35%;
    background-color: #f8f9fb !important; /* Very light blue-gray tint */
    color: #1f2a44 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 20px !important;
    /* border-left: 1px solid #e1e1e1 !important; Vertical divider in RTL */
		border-left: 4px solid #f8d405 !important; 
		/* Vertical divider in RTL */
    text-align: right;
    display: flex;
    align-items: center;
}
/* 4. Value (Left Side - White) */
.shop_attributes td {
    flex: 1;
    background-color: #fffefc !important;
    color: #444 !important;
    padding: 15px 20px !important;
    font-size: 14px;
    font-style: normal !important;
    display: flex;
    align-items: right;
}
/* 5. Gold Interactive Accents */
.shop_attributes td a {
    color: #29427e;
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
/* 6. Tooltip & Hint Styling */
.wd-attr-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wd-hint.wd-tooltip {
    background-color: #1f2a44 !important;
    color: #fcc917 !important;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
/* 7. Hover Row Effect */
.shop_attributes tr:hover th {
    background-color: #243763 !important;
    color: #ffffff !important;
	  transition: all 0.2s ease;
}

}


/* 1. Container & Flex Setup */
.woocommerce-catalog-mode-variations.variations-table {
    border-collapse: separate;
    border-spacing: 0 8px; /* Adds spacing between rows for the "pill" effect */
    width: 100%;
    display: table; /* Maintains table behavior for the parent */
}

/* 2. Reverse Column Order */
.woocommerce-catalog-mode-variations.variations-table thead tr,
.woocommerce-catalog-mode-variations.variations-table tbody tr {
    display: flex;
    flex-direction: row-reverse; /* Swaps the position of columns */
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* 3. Cell Styling & Alignment */
.woocommerce-catalog-mode-variations.variations-table th,
.woocommerce-catalog-mode-variations.variations-table td {
    flex: 1; /* Makes columns equal width */
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

/* 4. Correct Rounding for Reversed RTL Order */
/* The "last-child" becomes the visually "first" cell on the right in RTL flex-reverse */
.woocommerce-catalog-mode-variations.variations-table tr > *:last-child {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid #e1e1e1;
}

/* The "first-child" becomes the visually "last" cell on the left in RTL flex-reverse */
.woocommerce-catalog-mode-variations.variations-table tr > *:first-child {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid #e1e1e1;
}

/* 5. Header specific styling */
.woocommerce-catalog-mode-variations.variations-table thead tr {
    background-color: #1f2a44; /* Your brand blue */
    margin-bottom: 8px;
}

.woocommerce-catalog-mode-variations.variations-table thead th {
    color: white;
    border: none;
    font-weight: bold;
}

/* Ensure no default WooCommerce borders interfere */
.woocommerce-catalog-mode-variations.variations-table,
.woocommerce-catalog-mode-variations.variations-table td,
.woocommerce-catalog-mode-variations.variations-table th {
    border-color: #e1e1e1;
}
/* hide the word الخيارات */
.woocommerce-catalog-mode-variations.variations-table + h2, 
h2:has(+ .woocommerce-catalog-mode-variations.variations-table),
.summary.entry-summary h1 + h2 {
    display: none !important;
}