/* Sayed Ali Shop Look – Dawn layout and sizes, site colors.
   Sizes follow Dawn (1rem there = 10px): page width 1200 + 50px gutters,
   media 65% / info 35% from 990px, title 30→40px, price 16→18px,
   quantity 140×45, buttons 45px high and max 440px wide. */
html body{--sa-fg:hsl(var(--foreground));--sa-fg75:hsl(var(--foreground) / .75);--sa-line:hsl(var(--foreground) / .1);--sa-gold:hsl(var(--primary));--sa-dark:hsl(var(--primary-foreground))}

/* ---------- Product page ---------- */
.sa-woo-page:has(div.product){padding-top:112px;padding-bottom:48px}
.sa-woo-page:has(div.product)>.container{max-width:1300px;padding:0 15px}
html body .sa-woo-page div.product{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:start}
html body .sa-woo-page div.product>*{grid-column:1/-1}
html body .sa-woo-page div.product div.images{margin:0 0 30px!important;position:relative}
html body .sa-woo-page div.product div.images img{border-radius:0;background:#fff;width:100%}
html body .sa-woo-page div.product div.images .flex-viewport{background:#fff}
html body .sa-woo-page div.product .woocommerce-product-gallery__trigger{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;width:36px;height:36px;border-radius:50%;background:hsl(var(--background));border:1px solid var(--sa-line);font-size:0!important;text-indent:0;display:flex;align-items:center;justify-content:center;z-index:3}
html body .sa-woo-page div.product .woocommerce-product-gallery__trigger:before{border-color:var(--sa-fg)!important;top:10px!important;left:10px!important}
html body .sa-woo-page div.product .woocommerce-product-gallery__trigger:after{background:var(--sa-fg)!important;top:20px!important;left:20px!important}
html body .sa-woo-page div.product .woocommerce-product-gallery__trigger img{display:none!important}
html body .sa-woo-page div.product ol.flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:8px 0 0!important;padding:0}
html body .sa-woo-page div.product ol.flex-control-thumbs li{width:auto!important;float:none!important;margin:0!important}
html body .sa-woo-page div.product ol.flex-control-thumbs img{opacity:.6;border:1px solid transparent;background:#fff}
html body .sa-woo-page div.product ol.flex-control-thumbs img.flex-active,html body .sa-woo-page div.product ol.flex-control-thumbs img:hover{opacity:1;border-color:var(--sa-fg)}

html body .sa-woo-page div.product div.summary{margin:0!important;max-width:600px}
html body .sa-woo-page div.product .summary>*{margin-top:0}
html body .sa-vendor{margin:0 0 10px;color:var(--sa-fg75);font-size:11px;letter-spacing:1.3px;line-height:1.2;text-transform:uppercase}
html body .sa-woo-page div.product .product_title{font-size:30px;font-weight:400;line-height:1.3;letter-spacing:.6px;margin:0 0 15px;color:var(--sa-fg)}
html body .sa-woo-page div.product p.price{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0;font-size:16px;font-weight:400;letter-spacing:1.3px;line-height:1.5;color:var(--sa-fg)}
html body .sa-woo-page div.product p.price del{order:0;color:var(--sa-fg75);font-size:13px;opacity:1}
html body .sa-woo-page div.product p.price ins{order:1;text-decoration:none;font-weight:400}
html body .sa-badge{display:inline-block;margin-inline-start:10px;vertical-align:3px;border-radius:40px;padding:5px 13px 6px;font-size:12px;letter-spacing:1px;line-height:1;background:var(--sa-gold);color:var(--sa-dark)}
html body .sa-tax{margin:6px 0 0;color:var(--sa-fg75);font-size:12px;letter-spacing:.7px}
html body .sa-woo-page div.product .woocommerce-product-rating{margin:8px 0 0}

html body .sa-woo-page div.product form.cart{display:block;margin:25px 0 0;max-width:440px}
html body .sa-qty-label{display:block;margin:0 0 6px;color:var(--sa-fg75);font-size:13px!important;font-weight:400!important;letter-spacing:.4px!important;text-transform:none!important}
html body .sa-woo-page div.product form.cart div.quantity{display:flex;width:140px;height:45px;margin:0 0 25px!important;border:1px solid hsl(var(--foreground) / .55);float:none}
html body .sa-woo-page div.product form.cart div.quantity:focus-within{border-color:var(--sa-fg)}
html body .sa-qty-btn{flex:0 0 45px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:var(--sa-fg);cursor:pointer;font-size:18px;line-height:1;padding:0}
html body .sa-qty-btn:hover{color:var(--sa-gold)}
html body .sa-woo-page div.product form.cart .quantity .qty{flex:1 1 auto;width:100%;min-width:0;min-height:0;height:100%;border:0!important;background:transparent!important;text-align:center;font-size:15px;color:var(--sa-fg);padding:0;-moz-appearance:textfield;box-shadow:none!important}
html body .sa-woo-page div.product form.cart .quantity .qty::-webkit-inner-spin-button,html body .sa-woo-page div.product form.cart .quantity .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body .sa-woo-page div.product form.cart .single_add_to_cart_button,html body .sa-buy-now{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:45px;margin:0 0 10px!important;padding:0 30px!important;border-radius:0!important;font-family:inherit;font-size:15px!important;font-weight:400!important;letter-spacing:1px!important;text-transform:none!important;line-height:1.2;cursor:pointer;transition:box-shadow .1s,opacity .1s}
html body .sa-woo-page div.product form.cart .single_add_to_cart_button{background:transparent!important;color:var(--sa-fg)!important;border:0!important;box-shadow:inset 0 0 0 1px var(--sa-fg)}
html body .sa-woo-page div.product form.cart .single_add_to_cart_button:hover{box-shadow:inset 0 0 0 2px var(--sa-fg);background:transparent!important}
html body .sa-buy-now{background:var(--sa-gold);color:var(--sa-dark);border:0}
html body .sa-buy-now:hover{box-shadow:inset 0 0 0 2px var(--sa-gold);opacity:.92}
html body .sa-woo-page div.product form.cart .single_add_to_cart_button:focus-visible,html body .sa-buy-now:focus-visible,html body .sa-qty-btn:focus-visible,html body .sa-share:focus-visible,html body .sa-acc summary:focus-visible{outline:2px solid var(--sa-gold);outline-offset:2px}
html body .sa-woo-page div.product .stock{margin:15px 0 0;color:var(--sa-fg75);font-size:13px}

html body .sa-desc{margin:25px 0;color:var(--sa-fg75);font-size:15px;line-height:1.8;letter-spacing:.4px}
html body .sa-desc p{margin:0 0 12px}
html body .sa-desc strong{color:var(--sa-fg);font-weight:600}
html body .sa-acc details{border-top:1px solid var(--sa-line)}
html body .sa-acc details:last-child{border-bottom:1px solid var(--sa-line)}
html body .sa-acc summary{display:flex;align-items:center;justify-content:space-between;padding:15px 0;cursor:pointer;list-style:none;color:var(--sa-fg);font-size:15px;letter-spacing:.6px}
html body .sa-acc summary::-webkit-details-marker{display:none}
html body .sa-acc summary:after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s}
html body .sa-acc details[open] summary:after{transform:rotate(-135deg) translateY(-1px)}
html body .sa-acc__body{padding:0 0 15px;color:var(--sa-fg75);font-size:15px;line-height:1.8}
html body .sa-acc__body p{margin:0 0 10px}
html body .sa-acc__body[dir=rtl]{font-family:"Segoe UI",Tahoma,Arial,sans-serif;text-align:right}
html body .sa-share{display:inline-flex;align-items:center;gap:10px;margin:15px 0 0;padding:6px 0;background:none;border:0;color:var(--sa-fg);font:inherit;font-size:13px;letter-spacing:.6px;cursor:pointer}
html body .sa-share:hover span{text-decoration:underline;text-underline-offset:3px}

html body .sa-woo-page section.related,html body .sa-woo-page section.upsells{margin-top:36px;padding-top:36px;border-top:1px solid var(--sa-line)}
html body .sa-woo-page .related.products>h2,html body .sa-woo-page .upsells.products>h2{font-size:20px;font-weight:400;letter-spacing:.6px;margin:0 0 25px}

@media (min-width:750px){
 .sa-woo-page:has(div.product)>.container{padding:0 50px}
 html body .sa-woo-page div.product{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html body .sa-woo-page div.product div.images{grid-column:1;margin:0!important}
 html body .sa-woo-page div.product div.summary{grid-column:2;padding-left:50px;position:sticky;top:110px}
 html body .sa-woo-page div.product .product_title{font-size:40px}
 html body .sa-woo-page div.product p.price{font-size:18px}
 html body .sa-desc,html body .sa-acc summary,html body .sa-acc__body{font-size:16px}
 html body .sa-woo-page .related.products>h2,html body .sa-woo-page .upsells.products>h2{font-size:24px}
}
@media (min-width:990px){
 html body .sa-woo-page div.product{grid-template-columns:minmax(0,65%) minmax(0,35%)}
}

/* ---------- Product cards (shop, categories, related) ---------- */
html body .sa-woo-page ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:8px!important;row-gap:28px!important;margin:0!important;padding:0!important}
@media (min-width:990px){html body .sa-woo-page ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html body .sa-woo-page ul.products li.product{position:relative;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;transform:none!important;padding:0!important;text-align:left}
html body .sa-woo-page ul.products li.product a.woocommerce-LoopProduct-link{display:block;text-decoration:none;color:var(--sa-fg)}
html body .sa-woo-page ul.products li.product a img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff!important;border-radius:0!important;margin:0!important;transition:transform .6s cubic-bezier(.2,0,0,1)}
html body .sa-woo-page ul.products li.product a.woocommerce-LoopProduct-link{overflow:hidden}
@media (hover:hover){html body .sa-woo-page ul.products li.product:hover a img{transform:scale(1.03)}}
html body .sa-woo-page ul.products li.product .woocommerce-loop-product__title{padding:13px 0 0!important;margin:0!important;font-size:13px!important;font-weight:400!important;line-height:1.3!important;letter-spacing:.6px;color:var(--sa-fg)!important;text-transform:none!important}
@media (min-width:750px){html body .sa-woo-page ul.products li.product .woocommerce-loop-product__title{font-size:15px!important}}
@media (hover:hover){html body .sa-woo-page ul.products li.product:hover .woocommerce-loop-product__title{text-decoration:underline;text-underline-offset:3px}}
html body .sa-woo-page ul.products li.product .price{display:flex!important;flex-wrap:wrap;gap:2px 8px;align-items:baseline;padding:5px 0 0!important;margin:0!important;color:var(--sa-fg)!important;font-size:15px!important;font-weight:400!important;letter-spacing:1px}
html body .sa-woo-page ul.products li.product .price del{color:var(--sa-fg75);font-size:13px;opacity:1}
html body .sa-woo-page ul.products li.product .price ins{text-decoration:none;font-weight:400}
html body .sa-woo-page ul.products li.product .star-rating{margin:6px 0 0}
html body .sa-woo-page ul.products li.product span.onsale{text-transform:none!important;position:absolute;top:10px!important;left:10px!important;right:auto!important;bottom:auto;min-width:0;min-height:0;margin:0;padding:5px 13px 6px;border-radius:40px;font-size:12px;font-weight:400;letter-spacing:1px;line-height:1;background:var(--sa-gold)!important;color:var(--sa-dark)!important;z-index:2}
html body .sa-woo-page ul.products li.product .button,html body .sa-woo-page ul.products li.product .added_to_cart{display:none!important}
html body .sa-woo-page .woocommerce-result-count,html body .sa-woo-page .woocommerce-ordering{font-size:13px;letter-spacing:.6px;margin:0 0 20px}
@media (min-width:750px){html body .sa-woo-page .woocommerce-ordering{float:right!important}html body .sa-woo-page .woocommerce-result-count{float:left!important;line-height:2.75rem}html body .sa-woo-page ul.products{clear:both}}

/* ---------- Product page details (layout of the reference screenshot) ----------
   Site background and text colors, Montserrat, single tan "Add to cart" button #b4886b,
   photo in a white bordered box. */
.sa-woo-page:has(div.product){--sa-gold:#b4886b;font-family:Montserrat,sans-serif}
.sa-woo-page:has(div.product) div.product .product_title,.sa-woo-page:has(div.product) .related.products>h2,.sa-woo-page:has(div.product) .upsells.products>h2{font-family:Montserrat,sans-serif!important;font-weight:400}
.sa-woo-page:has(div.product) .sa-vendor,.sa-woo-page:has(div.product) div.product p.price,.sa-woo-page:has(div.product) .sa-qty-label,.sa-woo-page:has(div.product) .sa-desc,.sa-woo-page:has(div.product) .sa-acc,.sa-woo-page:has(div.product) .sa-share,.sa-woo-page:has(div.product) div.product form.cart .single_add_to_cart_button,.sa-woo-page:has(div.product) div.product form.cart .quantity .qty,.sa-woo-page:has(div.product) ul.products li.product .woocommerce-loop-product__title,.sa-woo-page:has(div.product) ul.products li.product .price{font-family:Montserrat,sans-serif!important}
.sa-woo-page:has(div.product) .sa-vendor{font-size:10px;letter-spacing:1.3px;margin-bottom:6px}
.sa-woo-page:has(div.product) div.product p.price{font-size:16px!important;letter-spacing:1.3px}
.sa-woo-page:has(div.product) .sa-qty-label{margin-top:4px}
.sa-woo-page:has(div.product) div.product form.cart{margin-top:30px}
.sa-woo-page:has(div.product) div.product form.cart div.quantity{border-color:hsl(var(--foreground) / .55);height:46px;margin-bottom:25px!important}
.sa-woo-page:has(div.product) .sa-qty-btn{color:var(--sa-fg)}
.sa-woo-page:has(div.product) div.product form.cart .single_add_to_cart_button{background:#b4886b!important;color:hsl(var(--primary-foreground))!important;box-shadow:none!important;min-height:46px;font-size:15px!important;letter-spacing:1px!important}
.sa-woo-page:has(div.product) div.product form.cart .single_add_to_cart_button:hover{background:#b4886b!important;box-shadow:inset 0 0 0 1.5px var(--sa-fg)!important}
.sa-woo-page:has(div.product) .sa-desc{margin-top:40px!important;color:var(--sa-fg75);font-size:16px;line-height:1.8}
.sa-woo-page:has(div.product) .sa-desc strong{color:var(--sa-fg)}
.sa-woo-page:has(div.product) .sa-badge{background:#b4886b;color:#fff}
/* photo: white box with a hairline border, centered in its column, never taller than 500px */
.sa-woo-page:has(div.product) div.product div.images{display:flex;justify-content:center}
.sa-woo-page:has(div.product) div.product div.images .woocommerce-product-gallery__wrapper,.sa-woo-page:has(div.product) div.product div.images .flex-viewport{max-width:500px;margin:0 auto;width:100%}
.sa-woo-page:has(div.product) div.product div.images .woocommerce-product-gallery__image{background:#fff;border:1px solid #e3e4e4}
.sa-woo-page:has(div.product) div.product div.images img{max-height:500px;object-fit:contain}
.sa-woo-page:has(div.product) div.product .woocommerce-product-gallery__trigger{background:#fff!important;border-color:#e3e4e4!important}
.sa-woo-page:has(div.product) div.product .woocommerce-product-gallery__trigger:before{border-color:#36454f!important}
.sa-woo-page:has(div.product) div.product .woocommerce-product-gallery__trigger:after{background:#36454f!important}
.sa-woo-page:has(div.product) ul.products li.product a img{border:1px solid #e3e4e4}
.sa-woo-page:has(div.product) a:hover{color:inherit}
.sa-woo-page:has(div.product) div.product .woocommerce-product-gallery__trigger{display:none!important}

/* ---------- Checkout: customer details on the left, order summary on the right ---------- */
html body .sa-woo-page #customer_details.col2-set{display:block!important}
html body .sa-woo-page #customer_details .col-1,html body .sa-woo-page #customer_details .col-2{float:none!important;width:100%!important;max-width:none!important;margin:0!important}
html body .sa-woo-page #customer_details .col-2{margin-top:28px!important}
html body .sa-woo-page form.checkout h3{margin-top:0}
html body .sa-woo-page .woocommerce-billing-fields__field-wrapper,html body .sa-woo-page .woocommerce-shipping-fields__field-wrapper{display:flex;flex-wrap:wrap;column-gap:4%}
html body .sa-woo-page form.checkout .form-row{float:none!important;width:100%!important;margin:0 0 16px!important;padding:0!important}
html body .sa-woo-page form.checkout .form-row-first,html body .sa-woo-page form.checkout .form-row-last{width:48%!important}
html body .sa-woo-page form.checkout .form-row input.input-text,html body .sa-woo-page form.checkout .form-row select,html body .sa-woo-page form.checkout .form-row textarea,html body .sa-woo-page form.checkout .select2-container{width:100%!important}
html body .sa-woo-page form.checkout #ship-to-different-address{margin:0 0 16px;font-size:.85rem}
html body .sa-woo-page form.checkout #ship-to-different-address label{display:flex;align-items:center;gap:10px;cursor:pointer}
html body .sa-woo-page form.checkout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
html body .sa-woo-page form.checkout>*{grid-column:1/-1}
@media (min-width:990px){
 html body .sa-woo-page form.checkout{grid-template-columns:minmax(0,1fr) 420px!important;column-gap:56px!important;row-gap:16px!important;align-items:start}
 html body .sa-woo-page form.checkout>.woocommerce-NoticeGroup{grid-column:1/-1;grid-row:1}
 html body .sa-woo-page form.checkout>#customer_details{grid-column:1;grid-row:2/span 3}
 html body .sa-woo-page form.checkout>#order_review_heading{grid-column:2;grid-row:2;margin:0!important}
 html body .sa-woo-page form.checkout>#order_review{grid-column:2;grid-row:3;position:sticky;top:110px}
}

/* ---------- Arabic / English (html.sa-ar is set by the Sayed Ali Language Switch plugin) ---------- */
[data-sa-lang=ar]{display:none!important}
html.sa-ar [data-sa-lang=ar]{display:block!important}
html.sa-ar [data-sa-lang=en]{display:none!important}
html.sa-ar .sa-woo-page,html.sa-ar section:has(>.container .sa-woo-page) h1{direction:rtl;font-family:Montserrat,"Segoe UI",Tahoma,Arial,sans-serif!important}
html.sa-ar .sa-woo-page *{letter-spacing:0!important;font-family:Montserrat,"Segoe UI",Tahoma,Arial,sans-serif!important}
html.sa-ar .sa-woo-page .text-left,html.sa-ar .sa-woo-page th,html.sa-ar .sa-woo-page td{text-align:right}
html.sa-ar .sa-woo-page:has(div.product) div.product div.summary{padding-left:0;padding-right:50px}
@media (max-width:749px){html.sa-ar .sa-woo-page:has(div.product) div.product div.summary{padding-right:0}}
html.sa-ar .sa-woo-page ul.products li.product{text-align:right}
html.sa-ar .sa-woo-page ul.products li.product span.onsale{left:auto!important;right:10px!important}
html.sa-ar .sa-woo-page .sa-badge{margin-inline-start:10px}
html.sa-ar .sa-woo-page .quantity,html.sa-ar .sa-woo-page .woocommerce-Price-amount{direction:ltr}
html.sa-ar .sa-woo-page .woocommerce-Price-amount{display:inline-block}
/* English product names keep their word order inside Arabic pages */
html.sa-ar .sa-woo-page .product_title,html.sa-ar .sa-woo-page .woocommerce-loop-product__title,html.sa-ar .sa-woo-page .sa-vendor,html.sa-ar .sa-woo-page .product-name,html.sa-ar .sa-woo-page td.product-name a{unicode-bidi:plaintext;text-align:right}
