/* Fit Form mobile UX fixes. Each block is numbered as in CHANGELOG.md. */

/* B16 size / colour buttons (all screen sizes) */
.ffx-opts{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.ffx-opt{min-width:48px;height:44px;padding:0 14px;border:1px solid #cfd2d6;border-radius:3px;background:#fff;color:#0a0500;font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.ffx-opt.is-on{background:#0a0500;border-color:#0a0500;color:#fff}
.ffx-opt.is-off{color:#b4b4b4;border-style:dashed;text-decoration:line-through;background:#fafafa}
.ffx-has-opts select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.ffx-has-opts .reset_variations{display:none!important}
.variations.ffx-flash .ffx-opts{animation:ffx-flash .9s ease 2}
@keyframes ffx-flash{50%{box-shadow:0 0 0 6px rgba(252,180,36,.45);border-radius:4px}}

/* B13 add-to-cart confirmation */
.ffx-added{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:100000;background:#fff;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.28);padding:14px;transform:translateY(140%);transition:transform .35s cubic-bezier(.2,.9,.2,1);max-width:460px;margin:0 auto}
.ffx-added.is-on{transform:none}
.ffx-added__msg{display:flex;align-items:center;gap:8px;color:#0a0500;font-weight:700;font-size:15px;margin-bottom:12px}
.ffx-added__msg:before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1f8f4e;color:#fff;font-size:13px}
.ffx-added__x{margin-left:auto;background:none;border:0;font-size:22px;line-height:1;color:#504e4a;padding:6px 8px;cursor:pointer}
.ffx-added__row{display:flex;gap:10px}
.ffx-added__row a{flex:1;height:48px;display:flex;align-items:center;justify-content:center;border-radius:3px;font-weight:700;font-size:14px;text-decoration:none}
.ffx-added__cart{border:1px solid #0a0500;color:#0a0500!important;background:#fff}
.ffx-added__pay{background:#0a0500;color:#fff!important}

@media (max-width:689.98px){
  /* B12 sticky add-to-cart bar */
  .ffx-bar{position:fixed;left:0;right:0;bottom:0;z-index:99990;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #edeff2;box-shadow:0 -6px 20px rgba(0,0,0,.07);transform:translateY(110%);transition:transform .25s ease}
  .ffx-bar.is-on{transform:none}
  .ffx-bar__info{flex:1;min-width:0;line-height:1.3}
  .ffx-bar__name{display:block;font-size:12px;color:#504e4a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ffx-bar__price{display:block;font-size:16px;font-weight:700;color:#0a0500}
  .ffx-bar__btn{flex:0 0 auto;height:48px;min-width:150px;padding:0 20px;border:0;border-radius:3px;background:#0a0500;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
  body.ffx-bar-on{padding-bottom:76px}
  body.ffx-bar-on .cookie-notification{bottom:84px}

  /* B14 comfortable tap areas */
  header#header .ct-header-cart>a,header#header .ct-header-trigger{position:relative}
  header#header .ct-header-cart>a:after,header#header .ct-header-trigger:after{content:"";position:absolute;inset:-15px}
  .ct-product-add-to-cart .quantity{--quantity-height:48px;height:48px}
  .ct-product-add-to-cart .quantity .ct-increase::after,.ct-product-add-to-cart .quantity .ct-decrease::after{content:'';position:absolute;inset:-10px -8px}
  .ct-product-add-to-cart .single_add_to_cart_button,.woocommerce a.added_to_cart{min-height:48px}
  .woocommerce a.added_to_cart{background:#0a0500!important;color:#fff!important;border-color:#0a0500!important}
  .ct-footer .menu a{display:inline-block;padding:12px 6px}
  li.product .entry-meta a{display:inline-block;padding:6px 0}

  /* B19 one-line cookie bar */
  body .cookie-notification[data-type]{padding:0!important}
  body .cookie-notification[data-type] .container{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:8px 12px!important;text-align:left!important}
  body .cookie-notification[data-type] .ct-cookies-content{font-size:12px!important;line-height:1.35!important;margin:0!important;flex:1!important}
  body .cookie-notification[data-type] .ct-button-group{display:flex!important;gap:6px!important;margin:0!important;flex:0 0 auto!important}
  body .cookie-notification[data-type] button{min-height:40px!important;padding:0 12px!important;font-size:12px!important}
  body.ffx-added-on .cookie-notification{display:none!important}
  .ct-product-add-to-cart .stock{margin-bottom:10px}
}

/* A8 readable link colour on white (was yellow, contrast 1.5:1) */
.ct-breadcrumbs a,.woocommerce-cart .wc-block-components-product-name,.woocommerce-LostPassword a,.wc-block-grid__product-title{color:#0a0500!important}
.ct-breadcrumbs a:hover{color:#b07a00!important}
.woocommerce-tabs .tabs li.active a{color:#0a0500!important}

/* A4: category name above listings */


@media (max-width:689.98px){
  /* A3: product gallery thumbnails as one swipeable row instead of a grid */
  .single-product .flexy-pills[data-type="thumbs"] ol{display:flex!important;flex-wrap:nowrap;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .single-product .flexy-pills[data-type="thumbs"] ol::-webkit-scrollbar{display:none}
  .single-product .flexy-pills[data-type="thumbs"] ol li{flex:0 0 62px;width:62px;scroll-snap-align:start}

  /* A4: product cards sized for two per row */
  [data-products] .woocommerce-loop-product__title{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
  [data-products] .price{font-size:14px}
  [data-products] .entry-meta{font-size:11px}
  [data-products] .product .button{width:100%;min-height:44px;padding:0 8px;font-size:13px;justify-content:center}
}

/* C22: reassurance points under add to cart */
.ffx-points{list-style:none;margin:18px 0 0;padding:14px 16px;background:#f6f6f4;border-radius:8px;font-size:14px;line-height:1.5}
.ffx-points li{padding:5px 0}
.ffx-points li+li{border-top:1px solid #e6e6e2}
.ffx-points span[lang=ar]{text-align:right}

/* B21: compact classic cart */
.woocommerce-cart .woocommerce-shipping-totals,.woocommerce-cart .ffx-hide-update button[name=update_cart]{display:none!important}
.woocommerce-cart .ffx-delivery-note td{border:0}
@media (max-width:689.98px){
  .woocommerce-cart .site-main>.ct-container,.woocommerce-cart article>.entry-content{margin-top:0}
  .woocommerce-cart [class*=ct-container]{padding-top:0}
  .woocommerce-cart .site-main{padding-top:16px}
  .woocommerce-cart td.actions .coupon{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px;align-items:stretch;width:0;min-width:100%;box-sizing:border-box}
  .woocommerce-cart td.actions .coupon input#coupon_code{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important;height:48px!important;margin:0!important}
  .woocommerce-cart td.actions .coupon button[name=apply_coupon]{flex:0 0 auto!important;width:auto!important;white-space:nowrap;min-height:48px;margin:0!important;padding:0 16px;background:#fff;color:#0a0500;border:1.5px solid #0a0500}
  .woocommerce-cart form.woocommerce-cart-form{margin-bottom:0!important}
  .woocommerce-cart td.actions{padding-bottom:0!important}
  .woocommerce-cart .cart_totals{margin-top:20px}
}

/* B18: WhatsApp */
.ffx-wa{position:fixed;left:16px;bottom:16px;z-index:60;width:52px;height:52px;border-radius:50%;background:#25d366;color:#fff!important;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:bottom .2s}
body.ffx-bar-on .ffx-wa{bottom:88px}
body.ffx-added-on .ffx-wa{display:none}
.ffx-ask{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;min-height:48px;border:1.5px solid #1fa855;border-radius:6px;color:#127a3b!important;font-weight:600;font-size:15px;text-decoration:none}
.ffx-ask svg{width:22px;height:22px}
/* Arabic half of the bilingual pages */
.ffx-ar{direction:rtl;text-align:right;font-size:1.05em;line-height:1.9}
.ffx-ar ul{padding-right:1.2em;padding-left:0}
.ffx-wa-btn .wp-block-button__link{background:#25d366!important;color:#fff!important}

/* readable links inside page text; phone numbers stay on one line */
.entry-content :is(p,li) > a:not(.wp-block-button__link):not(.button):not(.stk-link),.entry-content :is(p,li) > bdi > a{text-decoration:underline;text-underline-offset:3px}
.entry-content [data-products] a,.entry-content .products a{text-decoration:none!important}
.entry-content bdi{white-space:nowrap}
/* the WhatsApp button waits until the cookie notice is answered */
body:has(.cookie-notification) .ffx-wa{display:none}
.page-id-381 .entry-content{padding-top:28px}

/* A11: page-builder images never run wider than the screen */
.stk-block-image .stk-img-wrapper,.stk-block-image img{max-width:100%!important}

/* desktop already has the social icons in the header top row */

/* listing filters */
.ffx-filter{margin:0 0 16px;width:100%}
.ffx-filter summary{list-style:none;cursor:pointer;display:inline-block}
.ffx-filter summary::-webkit-details-marker{display:none}
.ffx-filter-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1.5px solid #0a0500;border-radius:6px;font-weight:600;font-size:14px;color:#0a0500;background:#fff}
.ffx-filter[open] .ffx-filter-btn{background:#0a0500;color:#fff}
.ffx-filter-btn b{background:#ffcd05;color:#0a0500;border-radius:999px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.ffx-filter-body{margin-top:12px;padding:14px;border:1px solid #e6e6e2;border-radius:8px;background:#fafaf8}
.ffx-filter-group{margin-bottom:12px}
.ffx-filter-group>span{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;color:#504e4a}
.ffx-filter-group>div{display:flex;flex-wrap:wrap;gap:8px}
.ffx-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1.5px solid #cfcfc9;border-radius:999px;background:#fff;color:#0a0500!important;font-size:14px;text-decoration:none!important}
.ffx-chip.is-on{background:#0a0500;border-color:#0a0500;color:#fff!important}
.ffx-dot{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.2);display:inline-block}
.ffx-dot-black{background:#111}.ffx-dot-white{background:#fff}.ffx-dot-grey{background:#9a9a9a}.ffx-dot-blue{background:#2f6fd0}.ffx-dot-green{background:#59b38a}.ffx-dot-pink{background:#e8438d}.ffx-dot-purple{background:#b79adf}.ffx-dot-orange{background:#f2994a}.ffx-dot-red{background:#d62828}.ffx-dot-brown{background:#9c7b5b}.ffx-dot-yellow{background:#f6d43c}
.ffx-dot-multicolour{background:conic-gradient(#e8438d,#f2994a,#f6d43c,#59b38a,#2f6fd0,#b79adf,#e8438d)}
.ffx-filter-clear{display:inline-block;font-size:14px;color:#0a0500!important;text-decoration:underline!important;padding:6px 0}
.ffx-filter-empty{text-align:center;margin-top:16px}

/* language switcher in the header */
.ffx-lang{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1.5px solid #0a0500;border-radius:999px;font-size:14px;font-weight:700;line-height:1;color:#0a0500!important;text-decoration:none!important;white-space:nowrap;background:#fff}
.ffx-lang[lang=ar]{font-family:FitFormArabic,Tahoma,Arial,sans-serif;font-size:15px}
@media (max-width:689.98px){.ct-header [data-id="text"]{margin-inline-start:10px}.ffx-lang{min-height:34px;padding:0 10px}}
/* right-to-left pages */
body.ffx-lang-ar .ffx-wa{left:auto;right:16px}
body.ffx-lang-ar .ffx-points,body.ffx-lang-ar .ffx-filter,body.ffx-lang-ar .ffx-added{direction:rtl;text-align:right}
body.ffx-lang-ar .entry-content{text-align:right}

/* the confirmation card already offers View cart */
.single-product form.cart a.added_to_cart{display:none!important}

/* ---------- visual pass, 30 Nov ---------- */
/* category / shop banner */
.ffx-banner{position:relative;background:#111;color:#fff;overflow:hidden;isolation:isolate}
.ffx-banner.has-image::before{content:"";position:absolute;top:0;bottom:0;inset-inline-end:0;width:46%;background-image:var(--ffx-banner-image);background-size:cover;background-position:center 18%;opacity:.9;z-index:-1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 45%);mask-image:linear-gradient(90deg,transparent,#000 45%)}
[dir=rtl] .ffx-banner.has-image::before{-webkit-mask-image:linear-gradient(270deg,transparent,#000 45%);mask-image:linear-gradient(270deg,transparent,#000 45%)}
.ffx-banner:not(.has-image)::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,#111 55%,#2a2a2a);z-index:-1}
.ffx-banner-in{max-width:1290px;margin:0 auto;padding:0 24px;min-height:220px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.ffx-banner h1{color:#fff;font-size:44px;line-height:1.1;margin:0;font-weight:800;border-inline-start:5px solid #ffcd05;padding-inline-start:16px}
.ffx-banner span{font-size:14px;letter-spacing:.06em;text-transform:uppercase;opacity:.85;padding-inline-start:21px}
@media (max-width:689.98px){.ffx-banner.has-image::before{width:58%}.ffx-banner-in{min-height:120px;padding:0 20px}.ffx-banner h1{font-size:28px;border-inline-start-width:4px;padding-inline-start:12px}.ffx-banner span{font-size:12px;padding-inline-start:16px}}

/* home: the poster hero is shown whole instead of stretched across the screen */
.home .entry-content>figure.wp-block-image.alignfull:first-child{background:linear-gradient(90deg,#eedcd6,#f4e8e7 50%,#ead7d0);text-align:center;margin-bottom:0}
.home .entry-content>figure.wp-block-image.alignfull:first-child img{width:auto;max-width:100%;height:auto;max-height:min(calc(100vh - 150px),760px);display:block;margin:0 auto}
.home .entry-content .stk-block-spacer{height:56px!important}
/* product cards: buttons line up along the bottom of each row */
[data-products] li.product{display:flex;flex-direction:column}
[data-products] li.product .ct-woo-card-actions{margin-top:auto}

@media (min-width:1000px){
  /* home hero: the landscape poster fills the width */
  .home .entry-content>figure.wp-block-image.alignfull:first-child img{width:100%;max-height:none;aspect-ratio:1920/760}
  .home .entry-content>figure.wp-block-image.alignfull:first-child picture{display:block}
  /* slimmer desktop header */
  [data-header*="type-1"] .ct-header [data-row*="top"]{--height:34px!important}
  [data-header*="type-1"] .ct-header [data-row*="middle"]{--height:88px!important}
  [data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container{--logo-max-height:72px!important}
}
@media (max-width:689.98px){
  .home .entry-content .stk-block-spacer{height:36px!important}
  /* home category tiles: two by two instead of four full-screen blocks */
  .home .stk-a3f6966>.stk-inner-blocks{display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important}
  .home .stk-a3f6966>.stk-inner-blocks>.stk-block-column{width:auto!important;max-width:none!important;flex:none!important;min-width:0}
  .home .stk-a3f6966 [class*="-container"]{min-height:250px!important}
  .home .stk-a3f6966 .stk-block-heading__text{font-size:17px!important}
}

/* reviews */
#reviews #review_form_wrapper,#reviews #review_form,#reviews #respond{max-width:100%;box-sizing:border-box}
#reviews #review_form input#author,#reviews #review_form textarea#comment{width:100%;max-width:100%;box-sizing:border-box}
#reviews #review_form .form-submit input,#reviews #review_form .form-submit button{min-height:48px;width:100%}
.ffx-bar__price .sale-price{display:inline-flex;align-items:baseline;gap:.45em;flex-wrap:wrap}
.ffx-bar__price del{font-size:.87em;color:#625c56;font-weight:400}
.ffx-bar__price ins{text-decoration:none}
.ffx-bar__price bdi{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.ffx-added__x{margin-left:0;margin-inline-start:auto;min-width:44px;min-height:44px}
.ffx-wa-btn .wp-block-button__link{color:#102a18!important}
body:has(.pswp--open) :is(.ffx-bar,.ffx-wa,.fft-fab,.fft-peek){visibility:hidden!important}
.pswp.pswp--open .pswp__top-bar{background:#171717}
.pswp.pswp--open :is(.pswp__button--arrow--left,.pswp__button--arrow--right)::before{background-color:#242424;border-radius:4px}
.ffx-search-recovery{margin:18px 0 32px}.ffx-search-recovery form{margin-bottom:14px}
.ffx-stock{display:block;color:#763513;font-weight:650;font-size:14px}
.ffx-ar-promo,.ffx-about-hero{display:flex;align-items:stretch;overflow:hidden;background:#f5ebe2;color:#311b19!important;line-height:1.55}
.ffx-ar-promo>img,.ffx-about-hero>span{width:44%;object-fit:cover;min-height:0;max-height:450px}
.ffx-ar-promo>span,.ffx-about-hero>strong{flex:1;padding:clamp(16px,4vw,48px);align-self:center}
.ffx-ar-promo strong,.ffx-ar-promo b,.ffx-ar-promo small{display:block}.ffx-ar-promo strong,.ffx-about-hero strong{font-size:clamp(22px,4vw,46px)}
.ffx-ar-promo b{margin:.5em 0;color:#891b13}.ffx-ar-promo em{display:inline-block;margin-top:12px;padding:7px 16px;background:#401514;color:white;font-style:normal}
.ffx-about-hero>span img{width:100%;height:100%;min-height:140px;object-fit:cover;object-position:right;aspect-ratio:1.15}
.woocommerce-cart .cart_item a.remove{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px}
body .fft-trigger.fft-card{width:auto;max-width:calc(100% - 16px);padding-inline:9px;font-size:12px}
.fft-card::before{content:"Try on"}.fft-card.is-saved::before{content:"In closet"}
.ffx-lang-ar .fft-card::before{content:"جرّبيها"}.ffx-lang-ar .fft-card.is-saved::before{content:"في خزانتك"}
body .fft-fab.fft-ui{width:auto;padding-inline:12px;gap:6px;border-radius:24px}
.fft-fab::before{content:"Closet";font-size:13px}.ffx-lang-ar .fft-fab::before{content:"خزانتي"}
@media(max-width:689.98px){
 body .ffx-wa{display:none!important} /* WhatsApp stays available in the menu, product details and footer. */
 .woocommerce-ordering select.orderby{width:auto!important;max-width:100%;min-height:44px;padding-inline:10px 24px!important;font-size:14px!important;color:#221e1a!important;text-indent:0!important;background-color:#fff}
 .woocommerce-ordering:before,.woocommerce-ordering:after{display:none!important}
 body.woocommerce .woocommerce-ordering{max-width:100%;width:auto!important}
}
body.woocommerce p.stars{color:#825100}
body.woocommerce p.stars span{display:inline-flex;align-items:center}
body.woocommerce p.stars a{display:inline-flex!important;width:44px!important;height:44px!important;margin:0!important;align-items:center;justify-content:center;color:#825100!important}
body.woocommerce p.stars a::before{position:static!important;font-size:21px!important;line-height:1!important}
.ffx-rating-value{display:block;font-size:14px;font-weight:650}
.ffx-search-recovery form{display:flex;align-items:stretch;gap:8px;max-width:38rem}
.ffx-search-recovery input[type=search]{flex:1;min-width:0}
.ffx-search-recovery button{flex:none;min-width:48px;color:white!important}
.pswp.pswp--open{background:#121212}
.pswp.pswp--open .pswp__bg{background:#121212;opacity:1!important}
.pswp.pswp--open .pswp__button--arrow--left,.pswp.pswp--open .pswp__button--arrow--right{display:block!important;opacity:1!important;width:48px;height:48px;margin-top:-24px;border-radius:50%;background:#272727!important}
.pswp.pswp--open .pswp__button--arrow--left{left:8px}
.pswp.pswp--open .pswp__button--arrow--right{right:8px}
.pswp.pswp--open .pswp__button--arrow--left::before,.pswp.pswp--open .pswp__button--arrow--right::before{content:"";position:absolute;inset:50% auto auto 50%;background:none!important;width:12px;height:12px;border:solid #fff;border-width:2px 2px 0 0;border-radius:0}
.pswp.pswp--open .pswp__button--arrow--left::before{transform:translate(-35%,-50%) rotate(-135deg)}
.pswp.pswp--open .pswp__button--arrow--right::before{transform:translate(-65%,-50%) rotate(45deg)}
.ffx-bar__price del{opacity:1!important}
.ffx-rating-value{white-space:nowrap}
.comment-form-rating{flex-wrap:wrap}
li.product:has(.ffx-stock) .fft-card,.single-product .product:has(.summary .stock.out-of-stock) .fft-pill{display:none!important}
