/* iphone-refinements-v230.css */
/* BLUE STORE: shared storefront refinements, preserving the current banner and palette. */
:root{--muted:#595751}
.catalog-loading{grid-column:1/-1;padding:32px;text-align:center;font-size:16px;color:var(--muted)}
.brand-filter{display:grid;gap:5px;min-width:0;font-size:13px;font-weight:600}
.brand-filter select{width:100%;min-height:48px;padding:8px 12px;border:1px solid var(--line);background:var(--white);color:var(--black);font:inherit;font-size:16px;border-radius:0}
.catalog-tools-main{align-items:end}
.catalog-tools-main.has-brand-filter{grid-template-columns:minmax(170px,.75fr) minmax(220px,1fr) auto auto}
.search-box input{font-size:16px}
.catalog-empty{padding:28px 20px;margin:12px 0 24px;text-align:center;border:1px solid var(--line);background:var(--white)}
.catalog-empty strong{font-size:22px}
.catalog-empty p{font-size:15px;line-height:1.8;max-width:520px;margin:10px auto 20px;color:var(--muted)}
.catalog-empty__actions button{min-height:48px;padding:10px 20px;font-size:15px}
.catalog-empty__actions{justify-content:center}
.product-card{border-color:#d8d2c9;transition:border-color .15s ease,box-shadow .15s ease}
.product-card:hover{border-color:#777166;box-shadow:0 5px 18px rgba(35,30,20,.08)}
.product-card__media{background:#eae6df}
.product-card__media img{width:100%;height:100%;object-fit:contain}
.product-card__color{color:#595751;line-height:1.6}
.product-card__action{min-height:44px;font-size:12px}
.brand-gateway-grid>a{min-width:0}
.footer-links a,.section-link,.cart-remove{min-height:44px;display:inline-flex;align-items:center}
.cart-qty button{min-width:44px;min-height:44px}
button:disabled{cursor:wait;opacity:.62}
:is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #806a42;outline-offset:3px}
:is(input,textarea,select){scroll-margin-block:100px}
@media(max-width:1100px){
  .catalog-tools-main.has-brand-filter{grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .has-brand-filter .brand-filter{grid-column:1;grid-row:1}
  .has-brand-filter .size-filter{grid-column:2;grid-row:1}
  .has-brand-filter .search-box{grid-column:1/-1;grid-row:2}
  .has-brand-filter .category-tabs{grid-column:1/-1;grid-row:3}
}
@media(max-width:767px){
  .catalog-section{padding-top:30px}
  .catalog-tools-main{grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .brand-filter{grid-column:1;grid-row:1}
  .size-filter{grid-column:2;grid-row:1;min-width:112px}
  .search-box{grid-column:1/-1;grid-row:2}
  .search-box input{padding-inline-start:44px;padding-inline-end:12px}
  .category-tabs{grid-row:3}
  .product-card__body{padding:12px}
  .product-card__brand{font-size:10px;line-height:1.6}
  .product-card__title{font-size:14px;line-height:1.55;min-height:3.1em}
  .product-card__color{font-size:12px}
  .product-card__price{font-size:17px}
  .product-card__meta{align-items:start;gap:5px;flex-wrap:wrap}
  .product-card__action{margin:12px -12px -12px;padding:0 12px}
  .sales-entry{padding-block:24px}
  .sales-entry h1{font-size:clamp(22px,6vw,28px);line-height:1.4}
  .section-link{display:inline-flex;font-size:12px}
  .cart-drawer{max-height:100dvh}
  .checkout-box input,.checkout-box textarea,.checkout-box select{font-size:16px}
  .checkout-box{max-height:96dvh}
}
@media(prefers-reduced-motion:reduce){.product-card{transition:none}}

/* Round 2: complete the touch targets, including narrow headers and cart edit. */
.skip-link,.header-inner>.brand{min-height:44px}
.header-inner>.brand{display:flex;flex-direction:column;justify-content:center}
.footer-links a{min-width:44px}
.checkout-review-head button{min-height:44px;padding-inline:10px}
@media(max-width:760px){
 .header-inner{grid-template-columns:44px minmax(0,1fr) auto}
 .mobile-menu>summary{width:44px;min-width:44px}
}
@media(max-width:480px){
 body[data-home="false"] .catalog{padding-top:20px}
 body[data-home="false"] .catalog .section-head{margin-bottom:14px}
 body[data-home="false"] .catalog .sales-catalog-title{font-size:22px;line-height:1.4}
}
@media(max-width:767px){
 .catalog-tools-main:not(.has-brand-filter) .search-box{grid-column:1;grid-row:1;min-width:0}
 .catalog-tools-main:not(.has-brand-filter) .category-tabs{grid-row:2}
}

/* image-states-v230.css */
/* Product media reserves its existing dimensions throughout loading and failure. */
.product-card__media,.modal-media{position:relative}
[data-image-state="loading"]>img,[data-image-state="error"]>img{opacity:0}
.product-image-state{position:absolute;inset-inline:10px;bottom:12px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px 10px;color:#49453e;background:rgba(251,250,247,.96);font:400 12px/1.6 "BS Arabic",Arial,sans-serif;text-align:center}
.product-image-state[hidden],.product-image-retry[hidden]{display:none}
[data-image-state="error"]>.product-image-state{top:0;bottom:0;justify-content:center;background:transparent}
.modal-media .product-image-state{font-size:16px}
.product-image-retry{min-height:44px;min-width:44px;padding:9px 14px;border:1px solid #625b50;background:#fbfaf7;color:#292621;font:600 16px/1.4 "BS Arabic",Arial,sans-serif;cursor:pointer}
.product-image-retry:focus-visible{outline:3px solid #806a42;outline-offset:3px}
.modal-media[data-image-state="loading"] .bs-blue-lens-launch,.modal-media[data-image-state="error"] .bs-blue-lens-launch{display:none}
