/* Keep intrinsic input/text widths from expanding flex and grid containers. */
.header-inner,.header-actions,.header .search,.header .search input{min-width:0}
.header .search{flex:1 1 0}
.header .search input{flex:1 1 0;width:0}
.header .search>svg,.header .search>button{flex-shrink:0}
main.wrap{width:100%;min-width:0}
.ms-banner-layout>*{min-width:0;max-width:100%}
.home-category-grid>*{min-width:0}
.home-category strong,.home-brand-grid a{overflow-wrap:anywhere}
@media(max-width:767px){
 .header .header-inner{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"logo actions" "search search";grid-template-rows:56px 42px;height:auto;min-height:0;gap:8px 12px;padding:8px 16px 12px;align-items:center;width:100%;}
 .header .logo{grid-area:logo;width:72px;height:56px;display:flex;align-items:center}
 .header .logo img{width:72px;height:56px;object-fit:contain}
 .header .header-actions{grid-area:actions;width:100%;height:auto;min-height:0;margin:0;justify-content:flex-end;gap:10px;align-items:center}
 .header .header-actions .language{font-size:12px;gap:5px}
 .header .header-actions .language svg{width:18px;height:18px}
 .header .header-actions .cart-trigger{gap:5px}
 .header .header-actions .cart-trigger svg{width:21px;height:21px}
 .header .ms-open-saved{width:30px;height:30px;font-size:20px;padding:0;display:grid;place-items:center}
 .header .search{grid-area:search;position:relative;inset:auto;width:100%;max-width:none;height:42px;margin:0;padding:0 12px;gap:10px;align-self:stretch;border-radius:10px;}
 .header .search input{font-size:14px;max-width:100%;height:100%;padding:0}
 .header .search>button{width:25px;min-width:25px}
 .header .nav{display:none}
 .announcement{width:100%;font-size:10px;line-height:1.5;padding:7px 12px;text-align:center;white-space:normal;overflow-wrap:anywhere}
 .ms-search-results{width:100%;max-width:100%;inset-inline:0;max-height:50dvh}
 .ms-search-results a{min-width:0}.ms-search-results a span{min-width:0;overflow-wrap:anywhere}.ms-search-results img{flex-shrink:0}
 .ms-save-actions{gap:4px;top:8px;inset-inline-end:8px}
 .ms-save-actions button{width:28px;height:28px}
}
@media(max-width:639px){
 main.wrap{padding-inline:16px}
 body[data-page=home] .ms-banner-layout{width:100%;max-width:100%;aspect-ratio:auto;min-height:340px}
 .ms-banner-copy,.ms-art-label{min-width:0;max-width:100%}
 .ms-art-label{width:100%;margin-inline:0;overflow-wrap:anywhere}
 .home-category-grid{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-page=home] .home-category-image.ms-category-placeholder{width:100%;min-width:0;aspect-ratio:1;padding:8px}
 .ms-category-placeholder>span:not(.ms-placeholder-cross){font-size:10px;overflow-wrap:anywhere}
 .ms-category-placeholder small{font-size:10px}
}
@media(max-width:359px){
 .header .header-inner{grid-template-columns:62px minmax(0,1fr);column-gap:8px;padding-inline:12px}
 .header .logo,.header .logo img{width:62px}
 .header .header-actions{gap:6px}
 .header .header-actions .language svg{display:none}
}

/* Compact language control; URLs continue to come from WPML. */
.ms-language-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dce4d4;border-radius:99px;background:#f5f7f1;flex-shrink:0}
.ms-language-switch>a,.ms-language-switch>span{display:grid;place-items:center;min-width:32px;height:28px;padding:0 7px;border-radius:99px;font:600 11px/1 Arial,sans-serif;letter-spacing:.3px;color:#627354;text-decoration:none}
.ms-language-switch .is-active{background:#476626;color:#fff;box-shadow:0 1px 3px #24351d18}
.ms-language-switch a:hover{background:#e6ecdF;color:#304a20}
.ms-language-switch a:focus-visible{outline:2px solid #476626;outline-offset:2px}
@media(max-width:767px){
 .header .header-inner{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"logo search" "actions actions";grid-template-rows:48px 36px;gap:6px 12px;padding:8px 16px;}
 .header .logo,.header .logo img{width:64px;height:48px}
 .header .search{height:40px;align-self:center;padding-inline:10px;gap:8px}
 .header .header-actions{height:36px;justify-content:space-between;padding-top:4px;border-top:1px solid #edf0e7}
 .header .header-actions>.ms-open-saved{display:none}
 .header .header-actions .cart-trigger{min-height:32px;padding-inline:6px}
 .header .ms-language-switch{padding:2px}
 .header .ms-language-switch>a,.header .ms-language-switch>span{height:26px;min-width:32px}
}
@media(max-width:359px){
 .header .header-inner{grid-template-columns:56px minmax(0,1fr);gap:6px 10px;padding-inline:12px}
 .header .logo,.header .logo img{width:56px}
}
/* One-row mobile header: logo, flexible search, language and cart. */
@media(max-width:767px){
 .header .header-inner{grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"logo search actions";grid-template-rows:48px;gap:8px;padding:8px 12px}
 .header .logo,.header .logo img{width:52px;height:48px}
 .header .search{height:40px;padding-inline:8px;gap:6px}
 .header .search input{font-size:12px}
 .header .search>svg{width:16px;height:16px}
 .header .search>button{width:18px;min-width:18px}
 .header .header-actions{width:auto;height:40px;gap:6px;padding:0;border:0;justify-content:flex-end}
 .header .ms-language-switch{padding:2px;gap:0}
 .header .ms-language-switch>a,.header .ms-language-switch>span{min-width:25px;height:28px;padding-inline:4px;font-size:10px}
 .header .header-actions .cart-trigger{position:relative;width:30px;min-height:40px;padding:0;justify-content:center}
 .header .cart-trigger .cart-count{position:absolute;top:0;inset-inline-end:-3px;min-width:16px;height:16px;font-size:9px}
}
@media(max-width:359px){
 .header .header-inner{grid-template-columns:44px minmax(0,1fr) auto;gap:6px;padding-inline:8px}
 .header .logo,.header .logo img{width:44px}
 .header .search{padding-inline:6px;gap:4px}
 .header .search>svg{display:none}
 .header .header-actions{gap:4px}
}
/* Compact alternate-language link and mobile navigation trigger. */
.ms-menu-trigger{display:none}
.ms-language-switch{padding:0;background:transparent;border:0}
.ms-language-switch .is-active{display:none}
.ms-language-switch>a{min-width:32px;height:32px;padding:0 6px;border:1px solid #dce4d4;background:#f5f7f1;border-radius:9px;font-size:11px}
#ms-menu{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;margin:0;width:min(340px,88vw);max-width:88vw;height:100dvh;max-height:100dvh;border:0;border-radius:0 22px 22px 0;padding:24px;background:#fff;color:#24351d;overflow-y:auto;overscroll-behavior:contain}
[dir=rtl] #ms-menu{border-radius:22px 0 0 22px}
#ms-menu::backdrop{background:#14220e80}
.ms-menu-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.ms-menu-top h2{margin:0;font-size:23px}.ms-menu-close{width:40px;height:40px;border:1px solid #e1e7db;border-radius:50%;background:#f6f8f2;font-size:26px}
.ms-menu-links{display:grid;gap:4px}.ms-menu-links a{padding:14px 12px;border-radius:10px;border-bottom:1px solid #eef1e9;font-size:15px}.ms-menu-links a:hover,.ms-menu-links a:focus-visible{background:#edf3e4}.ms-menu-links a:focus-visible,.ms-menu-trigger:focus-visible{outline:2px solid #476626;outline-offset:2px}
@media(max-width:767px){
 .header .header-inner{grid-template-columns:28px 48px minmax(0,1fr) auto;grid-template-areas:"menu logo search actions";gap:6px;padding-inline:10px}
 .header .ms-menu-trigger{grid-area:menu;display:grid;place-items:center;width:28px;height:40px;padding:0;border:0;background:transparent;color:#304a20;cursor:pointer}
 .ms-menu-trigger svg{width:21px;height:21px}
 .header .logo,.header .logo img{width:48px}
 .header .ms-language-switch{padding:0;gap:0;border:0;background:none}
 .header .ms-language-switch>.is-active{display:none}
 .header .ms-language-switch>a{min-width:28px;width:28px;height:30px;padding:0;font-size:10px;border-radius:8px}
}
@media(max-width:359px){
 .header .header-inner{grid-template-columns:26px 40px minmax(0,1fr) auto;gap:4px;padding-inline:8px}
 .header .logo,.header .logo img{width:40px}
}
