/* Raqiyalbas responsive components: maintained separately from design-system.css.
   Avoid absolute positioning of the language switcher in the header. */
/* Header controls share the navigation-collapse breakpoint. */
@media (max-width: 1100px) {
  body.raqiyalbas-experience-active .raq-site-header .raq-menu-toggle {
    background: transparent !important; color: var(--raq-ink); min-height: 44px;
  }
  body.raqiyalbas-experience-active .raq-site-header .raq-header-actions .raq-account-link {
    display: inline-flex !important;
  }
}
@media (max-width: 767px) {
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-inner {
    display: grid !important;
    grid-template-columns: 40px minmax(72px,1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 68px !important;
    padding: 8px 10px !important;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-menu-toggle {
    grid-column: 1 !important; grid-row: 1 !important;
    min-width: 40px; min-height: 44px;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-wordmark {
    grid-column: 2 !important; grid-row: 1 !important;
    min-width: 0 !important; max-width: 100% !important;
    justify-self: start !important;
    font-size: clamp(16px, 4.3vw, 19px) !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important; overflow: hidden !important;
    text-overflow: clip !important;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-actions {
    grid-column: 3 !important; grid-row: 1 !important;
    position: static !important; display: flex !important;
    flex-flow: row nowrap !important; align-items: center !important;
    gap: 2px !important; min-width: 0 !important;
    justify-self: end !important;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-actions :is(.raq-search-trigger,.raq-account-link,.raq-cart-link) {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; flex: 0 0 35px !important;
    width: 35px !important; min-width: 35px !important;
    min-height: 44px !important; padding: 0 !important;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-language {
    position: relative !important; inset: auto !important;
    order: -1 !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    flex: 0 0 48px !important; width: 48px !important;
    min-width: 48px !important; max-width: 48px !important;
    min-height: 44px !important; height: 44px !important;
    margin: 0 !important; padding: 0 !important;
    overflow: visible !important; z-index: 10;
  }
  /* Keep TranslatePress's in-flow anchor and interactive overlay aligned. */
  .raq-header-language .trp-shortcode-switcher__wrapper { width: 48px; }
  .raq-header-language .trp-language-switcher {
    width: 48px; min-width: 0; margin: 0; padding: 0; border: 0;
  }
  .raq-header-language .trp-current-language-item__wrapper {
    box-sizing: border-box; width: 48px; min-height: 44px; padding: 0 3px; gap: 4px;
  }
  .raq-header-language .trp-language-item {
    box-sizing: border-box; min-height: 44px; padding: 8px 4px;
  }
  .raq-header-language .trp-language-item__current {
    flex: 1; min-width: 0; gap: 0; padding: 0; justify-content: center;
  }
  .raq-site-header .raq-header-language .trp-language-item__current :is(img,.trp-language-item-name) { display: none !important; }
  .raq-header-language .trp-shortcode-arrow { flex: 0 0 12px; width: 12px; }
  .raq-header-language .trp-language-item__current::after { content: 'EN'; font-size: 12px; }
  html[lang^="ar"] .raq-header-language .trp-language-item__current::after { content: 'AR'; }
  .raq-header-language .trp-shortcode-overlay:has(.trp-language-item[aria-expanded="true"]) {
    width: 48px; overflow: visible;
    background: #fff; border: 0;
  }
  .raq-header-language .trp-switcher-dropdown-list {
    position: absolute; top: 100%; inset-inline-end: 0; inset-inline-start: auto;
    width: 128px; background: #fff; border: 1px solid #dedede;
    box-shadow: 0 6px 16px #00000012;
  }
  .raq-header-language .trp-switcher-dropdown-list .trp-language-item { padding: 10px; gap: 8px; }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage,
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage > img:first-child {
    height: auto !important; min-height: 0 !important; max-height: none !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage > img:first-child {
    width: 100% !important; object-fit: contain !important;
    display: block !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-caption,
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-caption > span {
    min-width: 0 !important; overflow: visible !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-caption b,
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-caption strong,
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-progress button b {
    white-space: normal !important; overflow: visible !important;
    text-overflow: clip !important; overflow-wrap: anywhere !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-progress {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    position: static !important; gap: 8px !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-progress button {
    min-height: 50px !important; padding: 8px !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important; gap: 6px !important;
  }
  html[lang^="ar"] body.raqiyalbas-experience-active #raq-search-input {
    direction: rtl !important; text-align: right !important;
    unicode-bidi: plaintext;
  }
}
@media (max-width: 359px) {
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-inner {
    padding-inline: 5px !important; gap: 2px !important;
    grid-template-columns: 40px minmax(60px,1fr) auto !important;
  }
  html body.raqiyalbas-experience-active .raq-site-header .raq-header-actions {gap: 0 !important;}
}
@media (min-width: 768px) and (max-width: 1100px) {
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage,
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage > img:first-child {
    height: auto !important; min-height: 0 !important; max-height: none !important;
  }
  html body.raqiyalbas-experience-active .raq-customizer-shell .raq-preview-stage > img:first-child {object-fit: contain !important;}
}

/* Small collections retain normal card proportions instead of filling the row.
   Important declarations here match the existing catalogue grid contract. */
body.raqiyalbas-experience-active #new-arrivals .raq-product-grid:has(> .raq-product-card:nth-child(2):last-child),
body.raqiyalbas-experience-active:is(.woocommerce-shop,.tax-product_cat) ul.products:has(> li.product-warp-item:nth-child(2):last-child) {
  width: 100% !important;
  max-width: 704px !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  column-gap: clamp(12px,2.4vw,24px) !important;
}
/* Slick owns multi-item carousels; a lone related item needs no carousel row. */
body.single-product.raq-product-page .related.products .nasa-slick-slider:has(.slick-track > .product:only-child) {
  display: block !important;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}
body.single-product.raq-product-page .related.products .slick-track:has(> .product:only-child) {
  display: block !important;
}
body.single-product.raq-product-page .related.products .slick-track:has(> .product:only-child),
body.single-product.raq-product-page .related.products .slick-track > .product:only-child {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  body.single-product.raq-product-page .related.products .nasa-slick-slider:has(.slick-track > .product:only-child) {
    max-width: 280px;
  }
}

/* Isolate international phone numbers from the surrounding Arabic text. */
html[lang^="ar"] body.raq-contact-page .raq-contact-card[href*="wa.me/"] p,
html[lang^="ar"] body.raq-contact-page a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

/* Customer-care policy pages */
body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content {box-sizing:border-box;width:min(100%,920px);margin-inline:auto;padding:clamp(42px,6vw,80px) clamp(20px,4vw,48px) clamp(72px,8vw,112px);}
body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content h2 {font-size:clamp(23px,2.5vw,30px);line-height:1.2;letter-spacing:-.025em;margin:38px 0 13px;}
body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content h2:first-child {margin-top:0;}
body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content p {font-size:clamp(15px,1.25vw,17px);line-height:1.8;color:#444;margin:0 0 16px;}
body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content a {color:#111;text-decoration:underline;text-underline-offset:3px;}
html[lang^=ar] body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content {text-align:right;}

body:is(.page-id-4098,.page-id-4099,.page-id-3) #main-content h1 {font-size:clamp(34px,4vw,50px);line-height:1.1;letter-spacing:-.045em;margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid #e5e5e2;}

/* Delivered-order return requests in My Account. */
body.raqiyalbas-experience-active :is(.raq-return-request, .raq-cancel-request) {
    max-width: 760px;
    margin: 32px 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #e7e7e3;
    border-radius: 12px;
    background: #fafaf8;
}
body.raqiyalbas-experience-active :is(.raq-return-request, .raq-cancel-request) h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}
body.raqiyalbas-experience-active :is(.raq-return-request, .raq-cancel-request) p {
    margin: 0 0 18px;
    line-height: 1.65;
}
body.raqiyalbas-experience-active .raq-return-request form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
body.raqiyalbas-experience-active .raq-return-request :is(select, textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9b9b4;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}
body.raqiyalbas-experience-active .raq-return-request textarea { min-height: 120px; }
body.raqiyalbas-experience-active .raq-return-request :is(select, textarea):focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
body.raqiyalbas-experience-active .woocommerce-orders-table :is(.button.raq-request-return, .button.raq-cancel-ready) {
    white-space: normal;
    text-align: center;
}
