/* ATHAR brand layer for theme + WooCommerce pages */
:root{
  --athar-ivory:#F6F2EB; --athar-paper:#FBFAF7; --athar-sand:#E6DED1;
  --athar-ink:#1A1714; --athar-ink-2:#5E554C; --athar-burgundy:#7A1F2E; --athar-deep:#5C1622;
  --athar-line:rgba(26,23,20,.12);
  --wp--preset--color--base:#F6F2EB; --wp--preset--color--contrast:#1A1714;
  --wp--preset--color--accent-1:#7A1F2E; --wp--preset--color--accent-2:#E6DED1;
}
body{background:var(--athar-ivory)!important;color:var(--athar-ink);font-family:'Jost','Noto Naskh Arabic',system-ui,sans-serif;font-weight:300}
h1,h2,h3,h4,.wp-block-site-title,.wp-block-post-title,.product_title,.wc-block-components-product-name,.wp-block-woocommerce-product-collection h3{
  font-family:'Cormorant Garamond','Noto Naskh Arabic',Georgia,serif!important;font-weight:500;letter-spacing:.02em;color:var(--athar-ink)}
.wp-block-site-title a{font-size:28px;letter-spacing:.14em;text-decoration:none;color:var(--athar-ink)}
a{color:var(--athar-burgundy)}
a:hover{color:var(--athar-deep)}
header.wp-block-template-part,.wp-site-blocks>header{border-bottom:1px solid var(--athar-line);background:var(--athar-ivory)}
footer.wp-block-template-part{border-top:1px solid var(--athar-line);background:var(--athar-ivory)}

/* Buttons */
.wp-element-button,.wp-block-button__link,button.single_add_to_cart_button,.button,.wc-block-components-button,
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.woocommerce a.button,.woocommerce button.button{
  background:var(--athar-burgundy)!important;color:#FBFAF7!important;border:0!important;border-radius:0!important;
  font-family:'Jost',sans-serif!important;font-weight:400!important;letter-spacing:.18em!important;text-transform:uppercase;font-size:13px!important;padding:14px 26px!important;transition:background .25s}
.wp-element-button:hover,.wp-block-button__link:hover,button.single_add_to_cart_button:hover,.button:hover,.wc-block-components-button:hover{background:var(--athar-deep)!important}

/* Prices */
.price,.wc-block-components-product-price,.woocommerce-Price-amount{color:var(--athar-burgundy);font-family:'Jost',sans-serif;font-weight:400;letter-spacing:.04em}

/* Product images on sand */
.woocommerce-product-gallery,.wc-block-components-product-image,.wp-block-woocommerce-product-image,.wp-block-woocommerce-product-image-gallery{background:var(--athar-sand)}
.wc-block-components-product-image img,.wp-block-woocommerce-product-image img{mix-blend-mode:multiply}

/* Size pills / selects */
.variations select,.wc-block-components-select select,select{border:1px solid var(--athar-line)!important;border-radius:0!important;background:var(--athar-paper)!important;padding:10px 12px!important;font-family:'Jost',sans-serif}
.wc-block-add-to-cart-with-options-variation-selector-attribute-options__pill,.wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-options .wc-block-components-pill{border-radius:0!important}
.wc-block-add-to-cart-with-options-variation-selector-attribute-options__pill[aria-checked="true"],.wc-block-add-to-cart-with-options-variation-selector-attribute-options__pill--selected{background:var(--athar-ink)!important;color:var(--athar-paper)!important;border-color:var(--athar-ink)!important}

/* Inputs */
input[type=text],input[type=email],input[type=tel],input[type=number],textarea,.wc-block-components-text-input input{border-radius:0!important;border-color:var(--athar-line)!important;background:var(--athar-paper)!important}
.wc-block-components-sale-badge,.onsale{background:var(--athar-burgundy)!important;color:#fff!important;border:0!important;border-radius:0!important}
.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner{border-radius:0!important;border-color:var(--athar-burgundy)!important}

/* Extendable theme: page-title band and accents in ATHAR colours */
:root{--wp--preset--color--tertiary:#F6F2EB;--wp--preset--color--primary:#7A1F2E;--wp--preset--color--secondary:#1A1714;--wp--preset--color--foreground:#1A1714;--wp--preset--color--background:#F6F2EB}
.has-tertiary-background-color,.has-background.has-tertiary-background-color{background-color:var(--athar-ivory)!important;border-bottom:1px solid var(--athar-line)}
.wp-block-post-title{font-size:clamp(34px,5vw,56px)!important}
/* Egypt only: hide the country selector at checkout and in the cart calculator */
.wc-block-components-address-form__country,.wc-block-components-address-form .wc-block-components-country-input{display:none!important}
.wc-block-checkout__use-address-for-billing{margin-top:6px}
.wc-block-components-checkout-step__title,.wc-block-components-title{font-family:'Cormorant Garamond',Georgia,serif!important;font-size:26px!important;font-weight:500!important}
.wc-block-components-order-summary-item__image img{background:var(--athar-sand)}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,.wc-block-components-radio-control__option-checked{box-shadow:inset 0 0 0 1.5px var(--athar-ink)!important;border-radius:0!important}
.wc-block-components-radio-control__input:checked{border-color:var(--athar-burgundy)!important}
.wc-block-components-radio-control__input:checked:before{background:var(--athar-burgundy)!important}

/* Classic checkout */
.athar-hidden,#billing_country_field{display:none!important}
.woocommerce-checkout .col2-set,.woocommerce-checkout .col2-set .col-1{width:100%!important;float:none!important}
.woocommerce-checkout .col2-set .col-2{display:none}
.woocommerce form .form-row{margin:0 0 16px!important;padding:0!important}
.woocommerce form .form-row label{font-size:14px;color:var(--athar-ink);margin-bottom:6px;display:block}
.woocommerce form .form-row .required{color:var(--athar-burgundy);text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container .select2-selection--single{min-height:50px;padding:12px 14px!important;border:1px solid var(--athar-line)!important;border-radius:0!important;background:var(--athar-paper)!important;font-family:'Jost','Noto Naskh Arabic',sans-serif;font-size:16px;width:100%;box-sizing:border-box}
.select2-container .select2-selection--single .select2-selection__rendered{line-height:24px!important;padding:0!important}
.select2-container .select2-selection--single .select2-selection__arrow{height:48px!important}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:var(--athar-burgundy)!important}
.woocommerce-checkout h3,#order_review_heading{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:28px;margin:8px 0 18px}
.woocommerce-checkout-review-order-table{border:1px solid var(--athar-line)!important;border-radius:0!important;background:var(--athar-paper)}
.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{padding:14px 16px!important;border-color:var(--athar-line)!important}
.woocommerce-checkout-review-order-table .order-total .amount{font-size:20px;color:var(--athar-ink)}
#payment{background:var(--athar-paper)!important;border:1px solid var(--athar-line);border-radius:0!important}
#payment div.payment_box{background:var(--athar-sand)!important;color:var(--athar-ink)!important;border-radius:0!important}
#payment div.payment_box:before{border-bottom-color:var(--athar-sand)!important}
#place_order{width:100%;min-height:56px;font-size:14px!important}
@media (min-width:900px){
  form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0 48px;align-items:start}
  form.woocommerce-checkout #customer_details{grid-column:1;grid-row:1 / span 3}
  form.woocommerce-checkout #order_review_heading,form.woocommerce-checkout #order_review{grid-column:2}
}
.woocommerce-form-coupon-toggle .woocommerce-info{background:var(--athar-paper)!important;border:1px solid var(--athar-line)!important;color:var(--athar-ink)!important}
.woocommerce-form-coupon-toggle .woocommerce-info::before,.woocommerce-form-coupon-toggle .wc-block-components-notice-banner__icon{display:none}
.woocommerce-billing-fields__field-wrapper{display:flex;flex-direction:column}
#billing_first_name_field{order:-3}#billing_phone_field{order:-2}#billing_email_field{order:10}

/* Privacy / policy note under the order button */
.woocommerce-privacy-policy-text,.woocommerce-privacy-policy-text p,.wc-block-components-checkout-policies{font-size:12.5px!important;line-height:1.7!important;color:var(--athar-ink-2)!important;margin:14px 2px!important}
#payment .place-order{padding:16px!important}

/* Thank-you page */
.athar-thanks{background:var(--athar-paper);border:1px solid var(--athar-line);padding:clamp(24px,5vw,48px);margin:0 0 32px;text-align:center}
.athar-thanks .at-mark{font-family:'Cormorant Garamond',serif;letter-spacing:.3em;font-size:18px;color:var(--athar-ink)}
.athar-thanks .at-mark span{color:var(--athar-burgundy);letter-spacing:0;margin-inline-start:6px}
.athar-thanks h2{font-family:'Noto Naskh Arabic',serif;font-size:clamp(26px,4vw,38px);font-weight:500;margin:18px 0 4px;color:var(--athar-ink)}
.athar-thanks .at-en{font-family:'Cormorant Garamond',serif;font-size:22px;font-style:italic;color:var(--athar-burgundy);margin:0 0 20px}
.athar-thanks .at-en.small{font-family:'Jost',sans-serif;font-style:normal;font-size:14px;color:var(--athar-ink-2);max-width:520px;margin:16px auto}
.athar-thanks .at-num{display:inline-flex;flex-direction:column;gap:4px;border:1px solid var(--athar-line);background:var(--athar-ivory);padding:12px 28px;margin-bottom:22px}
.athar-thanks .at-num span{font-size:11px;letter-spacing:.2em;color:var(--athar-ink-2)}
.athar-thanks .at-num b{font-size:26px;font-weight:400;letter-spacing:.06em}
.athar-thanks .at-steps{list-style:none;padding:0;margin:0 auto;max-width:520px;text-align:right;display:grid;gap:10px;counter-reset:s}
.athar-thanks .at-steps li{counter-increment:s;display:grid;grid-template-columns:32px 1fr;gap:12px;align-items:start;font-family:'Noto Naskh Arabic',serif;font-size:16px;line-height:1.7;border-top:1px solid var(--athar-line);padding-top:10px}
.athar-thanks .at-steps li::before{content:counter(s);width:28px;height:28px;border-radius:50%;background:var(--athar-burgundy);color:#fff;display:grid;place-items:center;font-size:13px;font-family:'Jost',sans-serif}
.athar-thanks .at-sign{font-family:'Noto Naskh Arabic',serif;color:var(--athar-burgundy);font-size:18px;margin:10px 0 22px}
.athar-thanks .at-acts{display:flex;gap:18px;justify-content:center;align-items:center;flex-wrap:wrap}
.athar-thanks .at-link{font-size:13px;color:var(--athar-ink-2)}
.woocommerce-order-received .woocommerce-notice--success{display:none}
.woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:0;list-style:none;padding:0!important;border:1px solid var(--athar-line);background:var(--athar-paper);margin:0 0 28px!important}
.woocommerce-order-overview li{flex:1 1 160px;padding:14px 18px!important;border:0!important;border-inline-end:1px solid var(--athar-line)!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.14em;color:var(--athar-ink-2)}
.woocommerce-order-overview li strong{display:block;font-size:15px!important;text-transform:none;letter-spacing:0;color:var(--athar-ink);margin-top:4px}

/* Policy page */
.athar-policy{max-width:760px;margin-inline:auto}
.athar-policy h2{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:30px;margin:36px 0 10px}
.athar-policy [dir=rtl] h2,.athar-policy [dir=rtl] h3,.athar-policy [dir=rtl] p,.athar-policy [dir=rtl] li{font-family:'Noto Naskh Arabic',serif}
.athar-policy h3{font-size:18px;font-weight:500;margin:22px 0 6px;color:var(--athar-burgundy)}
.athar-policy p,.athar-policy li{font-size:16px;line-height:1.85}
.athar-policy .lead-box{border:1px solid var(--athar-line);background:var(--athar-paper);padding:18px 22px;font-size:17px}
.athar-policy hr{border:0;border-top:1px solid var(--athar-line);margin:44px 0}
.athar-thanks .at-ipa{font-family:'Jost',sans-serif;background:var(--athar-sand);padding:1px 8px;direction:ltr;unicode-bidi:isolate}
#payment ul.payment_methods li{padding:14px 4px!important;border-bottom:1px solid var(--athar-line)}
#payment ul.payment_methods li label{font-size:15px}
