/* Native mobile app header. The existing search form and bottom navigation stay in place. */
@media (max-width:767px) {
 html.sd-app-enabled .sm-header-menu,
 html.sd-app-enabled .sm-header-account-column,
 html.sd-app-enabled .sm-header-basket-column { display:none!important; }
 html.sd-app-enabled .header.sm-site-header { height:auto;min-height:0;background:#fff; }
 html.sd-app-enabled .sm-site-header .tools { height:auto;min-height:0;padding:10px 0 12px; }
 html.sd-app-enabled .sm-header-logo-row { display:flex;align-items:center;justify-content:center; }
 html.sd-app-enabled .sm-header-logo-column { float:none;width:100%;margin:0;min-width:0; }
 html.sd-app-enabled .sm-site-header .logo { display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;margin:0 auto; }
 html.sd-app-enabled .sm-site-header .logo .img-logo { display:block;width:auto;height:54px;max-height:54px;max-width:190px;object-fit:contain;margin:0; }
 html.sd-app-enabled .sm-header-search-row .search-form { margin:10px 0 0; }
}

/* Recently viewed products use their container width instead of the legacy carousel's item count. */
.sm-recently-viewed { clear:both;min-width:0;max-width:100%;margin:24px 0 30px;padding-top:20px;border-top:1px solid #e2ece9;direction:rtl; }
.sm-recently-viewed>.inside-title { margin:0 0 16px;padding:0;background:transparent;border:0;color:#014a46;font-family:inherit;font-size:19px;font-weight:700;line-height:1.8; }
.sm-recently-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:16px;align-items:stretch;min-width:0;max-width:100%; }
.sm-recently-grid>.sm-store-card { width:auto;max-width:none;min-width:0;height:100%;margin:0;padding:14px;box-sizing:border-box; }
.sm-recently-viewed .sm-store-photo { height:180px;aspect-ratio:auto; }
.sm-recently-viewed .sm-store-photo img { width:100%;height:100%;object-fit:contain; }
.sm-recently-viewed .sm-store-title { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:80px;font-size:14px;line-height:1.9;overflow-wrap:break-word; }
.sm-recently-viewed .sm-store-price { font-size:14px;line-height:1.9; }
.sm-recently-viewed .sm-store-price strong { display:inline-block;font-size:16px;white-space:nowrap; }
.sm-recently-viewed .sm-store-before { font-size:12px; }
.sm-recently-viewed .sm-store-buy { width:100%;min-height:44px;padding:10px 8px;box-sizing:border-box;white-space:normal;line-height:1.7; }
.sm-recently-viewed a:focus-visible { outline:3px solid #e8ac37;outline-offset:3px; }
@media (max-width:767px) {
 .sm-recently-viewed { margin:20px 0 24px;padding:16px 15px 0;box-sizing:border-box; }
 .sm-recently-viewed>.inside-title { font-size:17px; }
 .sm-recently-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
 .sm-recently-grid>.sm-store-card { padding:10px;gap:9px; }
 .sm-recently-viewed .sm-store-photo { height:140px; }
 .sm-recently-viewed .sm-store-title { min-height:74px;font-size:13px; }
 .sm-recently-viewed .sm-store-price { font-size:12px; }
 .sm-recently-viewed .sm-store-price strong { font-size:14px; }
 .sm-recently-viewed .sm-store-buy { font-size:12px;padding:9px 6px; }
}
