/* ============ SHOP / ARCHIVE ============ */
ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
ul.products li.product{margin:0;width:auto;float:none}
.shop-hero{background:linear-gradient(180deg,var(--blush),#fff);padding:56px 0 34px;text-align:center}
.shop-hero h1{font-size:clamp(3rem,3.6vw,4.4rem)}
.shop-hero .term-description{max-width:720px;margin:14px auto 0;font-size:1.4rem;line-height:1.8}
.breadcrumb{font-size:1.15rem;color:var(--grey);padding:16px 0 0}
.breadcrumb a{color:var(--grey)}
.breadcrumb a:hover{color:var(--rose)}
.shop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:28px;flex-wrap:wrap}
.woocommerce-result-count{margin:0;font-size:1.25rem;color:var(--grey)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{padding:10px 34px 10px 14px;border-radius:999px;font-size:1.2rem;border-color:var(--line);background:#fff;appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8487' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.shop-empty{text-align:center;padding:70px 0;font-size:1.4rem}
.woocommerce-pagination{margin-top:44px}
.woocommerce-pagination ul{list-style:none;display:flex;justify-content:center;gap:8px;margin:0;padding:0;border:0}
.woocommerce-pagination li{border:0}
.woocommerce-pagination a,.woocommerce-pagination span{display:grid;place-items:center;min-width:40px;height:40px;border-radius:50%;border:1px solid var(--line);font-size:1.25rem;color:var(--ink);padding:0 10px}
.woocommerce-pagination span.current,.woocommerce-pagination a:hover{background:var(--rose);color:#fff;border-color:var(--rose)}
.woocommerce-pagination .next,.woocommerce-pagination .prev{font-size:1.1rem}

/* ============ PRODUCT DETAIL ============ */
.pdp{padding:34px 0 70px}
.pdp__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(28px,4vw,60px);align-items:start}
.pdp__gallery{position:sticky;top:96px}
.woocommerce-product-gallery{position:relative;background:var(--blush);border-radius:24px;padding:18px;margin:0;overflow:hidden}
.woocommerce-product-gallery__wrapper{margin:0;display:block}
.woocommerce-product-gallery__image img{border-radius:14px;width:100%;height:auto}
.woocommerce-product-gallery .flex-viewport{border-radius:14px}
.woocommerce-product-gallery .flex-control-thumbs{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:12px 0 0;padding:0}
.woocommerce-product-gallery .flex-control-thumbs li{width:auto;margin:0;float:none}
.woocommerce-product-gallery .flex-control-thumbs img{border-radius:10px;border:2px solid transparent;padding:5px;background:#fff;cursor:pointer;opacity:1}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active{border-color:var(--rose)}
.woocommerce-product-gallery .onsale{top:16px;left:16px;z-index:3;background:var(--rose);color:#fff;font-size:1.1rem;font-weight:700;padding:7px 14px;border-radius:999px;letter-spacing:.06em;min-height:0;min-width:0;line-height:1.4}
.pdp__main{position:relative;background:var(--blush);border-radius:24px;overflow:hidden;aspect-ratio:1/1;display:grid;place-items:center;padding:18px}
.pdp__main img{width:100%;height:100%;object-fit:contain}
.pdp__main .onsale{position:absolute;top:16px;left:16px;background:var(--rose);color:#fff;font-size:1.1rem;font-weight:700;padding:7px 14px;border-radius:999px;letter-spacing:.06em}
.pdp__thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}
.pdp__thumb{background:var(--blush);border:2px solid transparent;border-radius:12px;padding:6px;aspect-ratio:1;display:grid;place-items:center;cursor:pointer;transition:.2s}
.pdp__thumb img{width:100%;height:100%;object-fit:contain}
.pdp__thumb.active,.pdp__thumb:hover{border-color:var(--rose)}
.pdp__summary{display:grid;gap:16px;align-content:start}
.pdp__cat{font-size:1.05rem;letter-spacing:.22em;text-transform:uppercase;color:var(--rose);font-weight:700}
.pdp__title{font-size:clamp(2.8rem,3.2vw,4rem);line-height:1.18}
.pdp__rating{display:flex;align-items:center;gap:8px;font-size:1.2rem;color:var(--grey)}
.pdp__rating .stars{color:#e5a13a;font-size:1.3rem}
.pdp__price{display:flex;align-items:baseline;gap:12px;font-size:2.6rem;font-weight:700;color:var(--rose);flex-wrap:wrap;font-family:var(--display)}
.pdp__price del{font-size:1.7rem;color:var(--grey);font-weight:400}
.pdp__price ins{text-decoration:none}
.pdp__short{font-size:1.4rem;line-height:1.8}
.pdp__short ul{margin:0;padding-left:18px}
.pdp__short li{margin-bottom:4px}
.pdp__form{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;display:grid;gap:16px}
.pdp__form form.cart{display:grid;gap:12px;margin:0}
.pdp__form .quantity{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;height:50px;width:fit-content}
.pdp__form .quantity input{width:58px;border:0;text-align:center;padding:0;height:100%;font-weight:700;-moz-appearance:textfield}
.pdp__form .quantity input::-webkit-outer-spin-button,.pdp__form .quantity input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pdp__form .single_add_to_cart_button{width:100%;height:50px;padding:0 24px;border-radius:999px;font-size:1.35rem}
.pdp__form .variations{width:100%;border-collapse:collapse;margin:0 0 6px}
.pdp__form .variations th,.pdp__form .variations td{text-align:left;padding:6px 0;border:0;font-size:1.3rem;vertical-align:middle}
.pdp__form .variations th{font-weight:700;color:var(--ink);width:84px}
.pdp__form .variations select{max-width:100%;padding:10px 14px;border-radius:10px}
.pdp__form .reset_variations{font-size:1.1rem;color:var(--grey);margin-left:8px}
.pdp__form .woocommerce-variation-price{margin:4px 0 10px;font-weight:700;color:var(--rose);font-size:1.6rem}
.pdp__form .woocommerce-variation-availability{font-size:1.2rem;color:var(--grey)}
.pdp__buynow{height:50px;border-radius:999px;padding:0 24px;background:var(--blush);color:var(--rose)!important;font-weight:700;border:1px solid #f6d3dd;display:inline-flex;align-items:center;justify-content:center;font-size:1.3rem}
.pdp__buynow:hover{background:#fde4ec}
.pdp__trust{display:grid;gap:10px;font-size:1.25rem;color:var(--ink);font-weight:600}
.pdp__trust div{display:flex;align-items:center;gap:10px}
.pdp__trust span{width:26px;height:26px;border-radius:50%;background:var(--blush);color:var(--rose);display:grid;place-items:center;font-size:1.3rem;flex:0 0 26px}
.pdp__pay{margin-top:2px;background:var(--blush);border-radius:12px;padding:12px 16px;font-size:1.2rem;color:var(--text);display:flex;gap:10px;align-items:flex-start}
.pdp__pay b{color:var(--ink)}
.pdp__meta{font-size:1.15rem;color:var(--grey);display:grid;gap:4px}
.pdp__tabs{margin-top:60px;border-top:1px solid var(--line);padding-top:34px}
.woocommerce-tabs ul.tabs{list-style:none;display:flex;gap:26px;margin:0 0 24px;padding:0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;background:none;border-radius:0}
.woocommerce-tabs ul.tabs li a{display:block;padding:12px 2px;font-size:1.3rem;font-weight:700;color:var(--grey);border-bottom:2px solid transparent;margin-bottom:-1px}
.woocommerce-tabs ul.tabs li.active a{color:var(--ink);border-color:var(--rose)}
.woocommerce-tabs .panel{font-size:1.4rem;line-height:1.85}
.woocommerce-tabs .panel h2{font-size:2.2rem;margin-bottom:14px}
.woocommerce-tabs .panel ul{padding-left:20px}
.pdp-accordion{border-top:1px solid var(--line);margin-top:34px}
.pdp-acc{border-bottom:1px solid var(--line)}
.pdp-acc summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:20px 0;font-size:1.4rem;font-weight:700;color:var(--ink)}
.pdp-acc summary::-webkit-details-marker{display:none}
.pdp-acc summary::after{content:"+";color:var(--rose);font-size:2rem;line-height:1}
.pdp-acc[open] summary::after{transform:rotate(45deg)}
.pdp-acc__body{padding:0 0 20px;font-size:1.35rem;line-height:1.85}
.pdp-acc__body ul{padding-left:18px}
.pdp-acc__body img{max-width:100%;height:auto;border-radius:10px;margin:8px 0}
.tc-badges{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 4px}
.tc-badge{display:inline-flex;align-items:center;gap:6px;background:var(--blush);color:var(--rose);border-radius:999px;padding:7px 12px;font-size:1.05rem;font-weight:700}
.tc-reviews{display:grid;gap:14px;margin-top:8px}
.tc-review{background:#fff;border:1px solid #f7e9ee;border-radius:14px;padding:18px}
.tc-review__top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.tc-review__name{font-weight:700;color:var(--ink);font-size:1.25rem}
.tc-review p{margin:0;font-size:1.25rem;line-height:1.7}
.tc-review__media{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tc-review__media img,.tc-review__media video{width:84px;height:84px;object-fit:cover;border-radius:10px}
.related.products{margin-top:70px}
.related.products>h2{font-size:2.8rem;text-align:center;margin-bottom:28px}
.upsells.products{margin-top:50px}
.upsells.products>h2{font-size:2.4rem;margin-bottom:20px}
.stock.in-stock{color:var(--ok);font-weight:700;font-size:1.2rem}
.stock.out-of-stock{color:var(--danger);font-weight:700;font-size:1.2rem}

/* ============ CART / CHECKOUT / ACCOUNT ============ */
.woocommerce-cart .wrap,.woocommerce-checkout .wrap{max-width:1120px}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:16px;border-collapse:separate;border-spacing:0;overflow:hidden;font-size:1.3rem}
.woocommerce table.shop_table th{background:var(--blush);color:var(--ink);font-weight:700;padding:14px 16px;border:0}
.woocommerce table.shop_table td{padding:14px 16px;border-top:1px solid var(--line)}
.woocommerce table.shop_table img{width:64px;height:64px;object-fit:contain;border-radius:8px;background:var(--blush);padding:4px}
.woocommerce a.remove{color:var(--rose)!important;font-size:1.6rem}
.woocommerce .quantity input{width:64px;padding:8px;border:1px solid var(--line);border-radius:8px}
.woocommerce .coupon{display:flex;gap:8px;flex-wrap:wrap}
.woocommerce .coupon input{max-width:200px}
.cart_totals,.woocommerce-checkout-review-order{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}
.cart_totals h2,.woocommerce-checkout-review-order h3{font-size:2rem;margin-bottom:14px}
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr;gap:22px}
.woocommerce-checkout .woocommerce-billing-fields h3,.woocommerce-checkout .woocommerce-additional-fields h3{font-size:2rem}
.woocommerce form .form-row{margin-bottom:14px}
.woocommerce form .form-row label{display:block;font-size:1.2rem;font-weight:700;color:var(--ink);margin-bottom:6px}
.woocommerce form .form-row .required{color:var(--rose)}
.woocommerce-checkout #payment{background:var(--blush);border-radius:16px;padding:22px}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;padding:0;margin:0 0 16px;border:0}
.woocommerce-checkout #payment li{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.woocommerce-checkout #payment label{font-weight:700;color:var(--ink)}
.woocommerce-checkout #payment .payment_box{background:transparent;border:0;padding:8px 0 0;margin:0;font-size:1.2rem}
.woocommerce-checkout #payment .payment_box::before{display:none}
#place_order{width:100%;padding:16px;font-size:1.4rem}
.woocommerce-order{max-width:820px;margin:0 auto;padding:40px 0 70px}
.woocommerce-order h2,.woocommerce-order h3{font-size:2.2rem}
.woocommerce-order .shop_table{width:100%}
.woocommerce-order .woocommerce-thankyou-order-details{list-style:none;display:grid;gap:8px;padding:0}
.woocommerce-thankyou-order-received{font-size:1.8rem;color:var(--ink);background:var(--blush);border-radius:14px;padding:18px 22px;text-align:center}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:11px 14px;border-radius:10px;background:var(--blush);font-size:1.25rem;font-weight:600;color:var(--ink)}
.woocommerce-account .woocommerce-MyAccount-content{font-size:1.35rem}
.woocommerce-account .woocommerce-MyAccount-content .button{margin-top:8px}
.woocommerce-account .col-1,.woocommerce-account .col-2{width:100%}

/* ============ MOBILE STICKY ATC ============ */
@media(max-width:980px){
  .pdp__grid{grid-template-columns:1fr;gap:26px}
  .pdp__gallery{position:static}
  .shop-grid{grid-template-columns:repeat(3,1fr);gap:16px}
  ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:720px){
  .shop-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .woocommerce-product-gallery{padding:10px;border-radius:18px}
  .woocommerce-product-gallery .flex-control-thumbs{gap:7px}
  .shop-hero{padding:38px 0 24px}
  .pdp{padding:20px 0 90px}
  .pdp__thumbs{grid-template-columns:repeat(5,1fr);gap:7px}
  .pdp__price{font-size:2.2rem}
  .pdp__form form.cart{position:sticky;bottom:0}
  .pdp__form .single_add_to_cart_button{min-width:140px}
  .pdp__tabs{margin-top:40px}
  .related.products{margin-top:50px}
  .woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:10px 8px;font-size:1.15rem}
  .woocommerce table.shop_table img{width:48px;height:48px}
}
@media(max-width:480px){
  .shop-grid{grid-template-columns:repeat(2,1fr)}
  .tc-card__atc{font-size:.95rem;padding:8px}
  .woocommerce table.shop_table .product-name{min-width:120px}
}

/* ============ RTL ============ */
[dir=rtl] body{font-family:"Cairo","Plus Jakarta Sans",sans-serif}
[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] .logo,[dir=rtl] .site-title{font-family:"Cairo",var(--display),sans-serif;letter-spacing:0}
[dir=rtl] .hd__nav a::after{left:auto;right:0}
[dir=rtl] .hero__lead,[dir=rtl] .lead,[dir=rtl] .standard p,[dir=rtl] .vision p{text-align:right}
[dir=rtl] .hero__cta,[dir=rtl] .hero__micro{justify-content:flex-start}
[dir=rtl] .wcard,[dir=rtl] .rcard{text-align:right}
[dir=rtl] .wcard__num{right:auto;left:0}
[dir=rtl] .float-card--a{left:auto;right:0}
[dir=rtl] .float-card--b{right:auto;left:0}
[dir=rtl] .pdp__form .variations th,[dir=rtl] .pdp__form .variations td{text-align:right}
[dir=rtl] .shop-toolbar,[dir=rtl] .woocommerce-result-count{text-align:right}
[dir=rtl] .woocommerce .coupon{direction:ltr}
[dir=rtl] .wa{right:auto;left:20px}
[dir=rtl] .drawer__panel{left:auto;right:0;transform:translateX(100%)}
[dir=rtl] .drawer.open .drawer__panel{transform:none}
[dir=rtl] .cartdot{right:-6px;left:auto}
@media(max-width:720px){
  [dir=rtl] .step{grid-template-columns:60px 1fr;text-align:right}
}

/* ============ MAISON ATLAS SHOP ============ */
ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;list-style:none;margin:0;padding:0}
ul.products::before,ul.products::after{display:none!important;content:none!important}
ul.products li.product{width:auto!important;float:none!important;margin:0!important;display:block!important}

/* Product gallery */
.woocommerce-product-gallery{background:var(--blush);border:1px solid var(--line);border-radius:22px}
.woocommerce-product-gallery .onsale{background:var(--gold);color:var(--ink)}
.pdp__cat{color:var(--gold-deep)}
.pdp__price{color:var(--gold-deep)}
.pdp__price del{color:var(--grey)}
.pdp__rating .stars{color:var(--gold)}
.pdp__pay{background:var(--blush);border:1px solid var(--line)}
.pdp__trust span{background:var(--blush);color:var(--gold-deep);border:1px solid var(--line)}
.pdp__buynow{background:transparent!important;border:1px solid var(--gold)!important;color:var(--gold-deep)!important}
.pdp__buynow:hover{background:var(--gold)!important;color:var(--ink)!important}
.pdp__form .quantity{border-color:var(--line)}

/* Add to cart buttons (Woo default purple must be overridden) */
.pdp__form .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.woocommerce button.button.alt{
  background:var(--ink)!important;color:var(--gold-light)!important;border-radius:999px!important;
  text-transform:uppercase;letter-spacing:.12em;font-weight:500;font-size:1.15rem
}
.pdp__form .single_add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover{background:var(--gold)!important;color:var(--ink)!important}

/* Accordions */
.pdp-acc summary{color:var(--ink);font-family:var(--body);font-weight:500;letter-spacing:.04em}
.pdp-acc summary::after{color:var(--gold-deep);font-family:var(--display)}
.pdp-acc__body{color:var(--text)}
.pdp-acc__body b{color:var(--ink)}

/* Reviews */
.tc-review{background:var(--paper);border-color:var(--line)}
.tc-review__name{color:var(--ink)}

/* Related */
.related.products>h2,.upsells.products>h2{font-family:var(--display);font-weight:500;color:var(--ink);letter-spacing:.01em}
.related.products>h2{font-size:3.2rem}

/* Breadcrumb */
.breadcrumb{color:var(--grey);font-size:1.1rem;letter-spacing:.04em}
.breadcrumb a:hover{color:var(--gold-deep)}

/* Shop toolbar */
.woocommerce-result-count{color:var(--grey)}
.woocommerce-ordering select{border-color:var(--line);background-color:var(--paper)}

/* Pagination */
.woocommerce-pagination a,.woocommerce-pagination span{border-color:var(--line);color:var(--ink)}
.woocommerce-pagination span.current,.woocommerce-pagination a:hover{background:var(--gold);color:var(--ink);border-color:var(--gold)}

/* Cart / checkout */
.woocommerce table.shop_table{border-color:var(--line)}
.woocommerce table.shop_table th{background:var(--blush);color:var(--ink)}
.woocommerce table.shop_table td{border-color:var(--line)}
.woocommerce a.remove{color:var(--gold-deep)!important}
.cart_totals,.woocommerce-checkout-review-order{border-color:var(--line);background:var(--paper)}
.woocommerce-checkout #payment{background:var(--blush)}
.woocommerce-checkout #payment li{background:var(--paper);border-color:var(--line)}
#place_order{background:var(--ink)!important;color:var(--gold-light)!important}
#place_order:hover{background:var(--gold)!important;color:var(--ink)!important}
.woocommerce-account .woocommerce-MyAccount-navigation a{background:var(--blush);color:var(--ink)}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:var(--gold);color:var(--ink)}
.woocommerce-order .woocommerce-thankyou-order-received{background:var(--blush);color:var(--ink)}

/* Arabic */
[dir=rtl] .pdp__form .single_add_to_cart_button,[dir=rtl] .pdp__buynow,[dir=rtl] .tc-card__atc{font-family:"Tajawal",sans-serif;letter-spacing:0}

/* Checkout: phone is required, hide the misleading "optional" hint */
#billing_phone_field label .optional{display:none}
#billing_phone_field label.required_field::after{content:" *";color:#B3261E;font-weight:700}

/* Classic cart & checkout — brand styling */
.woocommerce-cart .wa,.woocommerce-checkout .wa,.woocommerce-order-received .wa{display:none}
.woocommerce form .form-row{margin-bottom:13px}
.woocommerce form .form-row label{font-size:1.2rem;color:#5B5348;margin-bottom:5px;font-weight:500}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  height:46px;padding:0 12px;border:1px solid rgba(23,21,18,.18);border-radius:10px;background:#fff;
  color:var(--ink);font-size:1.4rem;box-shadow:none
}
.woocommerce form .form-row textarea{height:auto;padding:10px 12px}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus{border-color:var(--gold);outline:none;box-shadow:0 0 0 3px rgba(201,162,39,.15)}
.woocommerce form .form-row .required{color:#B3261E;text-decoration:none;font-weight:700}
.woocommerce-checkout #payment{background:var(--blush);border:1px solid var(--line);border-radius:14px}
.woocommerce-checkout #payment div.payment_box{background:transparent;color:var(--text);font-size:1.3rem;padding:6px 0 0}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #place_order{
  width:100%;height:50px;border:0;border-radius:10px;background:var(--ink);color:var(--gold-light);
  font-size:1.5rem;font-weight:600;letter-spacing:.04em
}
.woocommerce-checkout #place_order:hover{background:var(--gold-deep);color:#fff}
.woocommerce .woocommerce-info,.woocommerce .woocommerce-message{
  background:var(--blush);border-top-color:var(--gold);color:var(--ink);font-size:1.3rem
}
.woocommerce .woocommerce-error{background:#FDEEEC;border-top-color:#B3261E;font-size:1.3rem}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.woocommerce table.shop_table th{background:var(--blush);color:var(--ink)}
.woocommerce-checkout-review-order-table td,.woocommerce-checkout-review-order-table th{padding:10px 8px;font-size:1.25rem}
.woocommerce-cart table.cart td.actions .coupon .input-text{height:40px;margin-right:6px}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{background:var(--ink)!important;color:var(--gold-light)!important;border-radius:10px;font-size:1.4rem}

@media(max-width:980px){
  ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Mobile cart: turn the table into readable cards */
@media(max-width:720px){
  .woocommerce-cart .woocommerce{overflow:visible}
  .woocommerce table.cart{display:block;border:0;border-radius:0;overflow:visible}
  .woocommerce table.cart thead{display:none}
  .woocommerce table.cart tbody{display:block}
  .woocommerce table.cart tr.cart_item{
    display:grid;grid-template-columns:84px 1fr auto;grid-template-areas:
      "img name remove"
      "img price subtotal"
      "img qty qty";
    gap:4px 12px;padding:14px 0;border-bottom:1px solid var(--line);position:relative
  }
  .woocommerce table.cart tr.cart_item td{display:block;border:0;padding:0!important;text-align:start!important;background:none}
  .woocommerce table.cart tr.cart_item td::before{display:none!important}
  .woocommerce table.cart td.product-thumbnail{grid-area:img;align-self:start}
  .woocommerce table.cart td.product-thumbnail img{width:84px;height:84px;object-fit:cover;border-radius:10px}
  .woocommerce table.cart td.product-name{grid-area:name;font-size:1.25rem;line-height:1.4;font-weight:500}
  .woocommerce table.cart td.product-remove{grid-area:remove;justify-self:end;align-self:start}
  .woocommerce table.cart td.product-remove a{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--blush);color:var(--ink);text-decoration:none;font-size:1.5rem;line-height:1}
  .woocommerce table.cart td.product-price{grid-area:price;font-size:1.2rem;color:var(--grey)}
  .woocommerce table.cart td.product-quantity{grid-area:qty;margin-top:6px}
  .woocommerce table.cart td.product-quantity .quantity{display:inline-flex}
  .woocommerce table.cart td.product-quantity input.qty{width:70px;height:38px}
  .woocommerce table.cart td.product-subtotal{grid-area:subtotal;justify-self:end;font-size:1.3rem;font-weight:600;color:var(--gold-deep)}
  .woocommerce table.cart td.actions{display:block;padding:14px 0!important;text-align:start}
  .woocommerce table.cart td.actions .coupon{display:flex;gap:8px;margin-bottom:10px}
  .woocommerce table.cart td.actions .coupon .input-text{flex:1;height:42px;margin:0!important}
  .woocommerce table.cart td.actions .coupon .button{height:42px;padding:0 14px;background:var(--ink);color:var(--gold-light);border:0;border-radius:8px}
  .woocommerce table.cart td.actions>.button{width:100%;height:44px;background:var(--blush);color:var(--ink);border:1px solid var(--line);border-radius:8px}
  .woocommerce-cart .cart-collaterals .cart_totals{width:100%!important;float:none!important}
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:block;text-align:center;padding:14px 0!important}
}
/* Card title: shortened server-side, two natural lines, no clipping */
.tc-card__title{
  display:block!important;height:auto;min-height:3.8rem;max-height:none;overflow:visible;margin:0
}
.tc-card__title a{display:block!important;font-size:1.3rem;line-height:1.45;color:inherit}

/* Price order: current price first, struck-through original second */
.pdp__price ins,.tc-card__price ins{order:1}
.pdp__price del,.tc-card__price del{order:2}
.pdp__price del{font-size:1.6rem!important}
.tc-card__price del{font-size:1.15rem!important}

/* Arabic typography */
[dir=rtl] body,[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] h4,[dir=rtl] .logo,[dir=rtl] .site-title{
  font-family:"Tajawal",sans-serif!important;letter-spacing:0
}

@media(max-width:720px){
  ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
  .related.products>h2{font-size:2.4rem}
  .single-product .wa{bottom:calc(126px + env(safe-area-inset-bottom))!important}
}
