/* Approved desktop header. Existing mobile layout and page content are preserved. */
#mall .pc-header-desktop{display:none}
@media(min-width:761px){
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar{min-height:62px;padding:10px max(28px,calc((100vw - 1800px)/2));gap:18px;flex-wrap:nowrap}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help{min-width:0;gap:23px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help a{font-size:13px;white-space:nowrap}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-topbar-controls{gap:18px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-tools{gap:19px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-field{font-size:13px;gap:8px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-field select,
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .language-trigger{height:40px;min-height:40px;font-size:14px;border-radius:6px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-login{display:none}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar nav:not(:has(.topbar-account-menu,.topbar-logout)){display:none}
 #mall.pc-header-layout:has(>.header .searchbar)>.header{background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 4px 14px #5f554608}
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{width:min(1800px,calc(100% - 56px));max-width:none;margin:0 auto;padding:0 0 24px;display:grid;grid-template-columns:202px minmax(0,1fr) auto;grid-template-rows:112px 54px;column-gap:28px;row-gap:0;align-items:center}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.brand{grid-column:1;grid-row:1;width:202px;padding:0}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.brand img{width:100%;height:auto}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav{grid-column:2;grid-row:1;display:flex;justify-content:center;align-items:center;min-width:0;gap:12px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 9px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-size:15px;font-weight:700;white-space:nowrap;line-height:1.4}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button+button::before{content:"";position:absolute;left:-7px;top:50%;width:1px;height:19px;background:var(--line);transform:translateY(-50%)}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button:hover,
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button.active{background:var(--tint)}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.header-actions{grid-column:3;grid-row:1;display:flex;gap:clamp(14px,1.6vw,26px);align-items:center}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 6px;border-radius:8px;font-size:14px;white-space:nowrap}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action:hover{background:var(--tint)}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action svg{width:25px;height:25px;flex:none}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .pc-header-login{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;margin:0;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .pc-header-login:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category{display:flex;grid-row:2;grid-column:1;width:152px;min-width:0;position:static;padding:0;background:transparent;border:0;height:54px;z-index:auto}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger{position:static;width:100%;height:54px;min-height:54px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;padding:0 15px;border:0;border-radius:8px;background:var(--accent);color:var(--on-accent);font-size:15px;font-weight:700;white-space:nowrap}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger:hover{background:var(--accent-hover)}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger>span:first-child{font-size:19px;line-height:1}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-saved{display:none}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.searchbar{grid-row:2;grid-column:1/-1;display:flex;margin:0 0 0 166px;width:calc(100% - 166px);min-width:0;height:54px;border:1px solid #ded7cc;border-radius:8px;background:var(--surface);overflow:hidden}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar:focus-within{border-color:#978671;box-shadow:0 0 0 3px #62574813}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.platform-select{flex:0 0 110px;width:110px;height:100%;min-height:0;padding:0 14px;background:var(--bg);border:0;border-right:1px solid var(--line);border-radius:0;color:#435448;font-size:15px;font-weight:700}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>svg{display:none}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>input[type=search]{flex:1;min-width:0;width:0;height:100%;padding:0 16px;font-size:15px;border:0;background:transparent}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>button{height:100%;min-height:0;margin:0;border:0;border-radius:0}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.image-search-button{display:grid;place-items:center;flex:0 0 56px;width:56px;padding:0;border-left:1px solid var(--line);background:var(--surface)}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.image-search-button:hover{background:var(--tint)}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.image-search-button svg{width:24px;height:24px}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>button[type=submit]{flex:0 0 auto;min-width:84px;padding:0 23px;font-size:15px;background:var(--accent);color:var(--on-accent)}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>button[type=submit]:hover{background:var(--accent-hover)}
 #mall.pc-header-layout:has(>.header .searchbar)>.ad-workspace-bar>.ad-workspace-links{display:none}
 #mall.pc-header-layout:has(>.header .searchbar)>.ad-workspace-bar:not(:has(>.balance-strip)){display:none}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button:focus-visible,
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions button:focus-visible,
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category button:focus-visible{outline:3px solid #b03a5f;outline-offset:3px}
}
@media(min-width:1680px){
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar{min-height:64px}
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{grid-template-columns:225px minmax(0,1fr) auto;grid-template-rows:124px 56px;column-gap:50px;padding-bottom:27px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.brand{width:225px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav{gap:28px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{font-size:17px;padding-inline:14px;gap:12px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button+button::before{left:-15px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action{font-size:16px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.searchbar,#mall.pc-header-layout:has(>.header .searchbar) .pc-header-category,#mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger{height:56px}
}
@media(min-width:761px) and (max-width:1250px){
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar{padding-inline:20px;gap:14px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help{gap:14px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help a{font-size:12px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help a:nth-child(3){display:none}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-tools{gap:12px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-field{font-size:12px}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-field select{font-size:13px;max-width:150px}
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{width:calc(100% - 40px);grid-template-columns:170px minmax(0,1fr) auto;grid-template-rows:100px 54px;column-gap:18px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.brand{width:170px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav{gap:8px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{font-size:13px;gap:6px;padding-inline:8px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button+button::before{left:-5px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action>span{display:none}
}
@media(min-width:761px) and (max-width:1100px){
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{grid-template-columns:150px minmax(0,1fr) auto;column-gap:14px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.brand{width:150px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav{gap:6px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{font-size:12px;gap:6px;padding-inline:5px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav svg{width:19px;height:19px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.header-actions{gap:10px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action{padding-inline:4px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .head-action svg{width:23px;height:23px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .pc-header-login{padding-inline:13px;font-size:13px}
}
@media(min-width:761px) and (max-width:940px){
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-help a:nth-child(2){display:none}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-locale-field>span{display:none}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{font-size:11px;gap:4px;padding-inline:3px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav svg{width:17px;height:17px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.header-actions{gap:6px}
 #mall.pc-header-layout:has(>.header .searchbar) .header-actions .pc-header-login{padding-inline:10px}
 html[lang="es"] #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav svg{display:none}
 html[lang="es"] #mall.pc-header-layout:has(>.header .searchbar) .pc-service-nav button{gap:0}
}

/* Approved PC release v105, 2026-11-07: compact search + adjacent wallet.
   All existing mobile rules and markup remain unchanged. */
@media(min-width:761px){
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{
  --pc-wallet-width:330px;
  --pc-search-start:166px;
  --pc-search-gap:20px;
  grid-template-rows:112px 48px;
  padding-bottom:20px;
 }
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.searchbar,
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category,
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger{
  height:48px;min-height:48px;
 }
 #mall.pc-header-layout:has(>.header .searchbar) .mast:has(>.pc-header-wallet)>.searchbar{
  margin-left:var(--pc-search-start);
  width:calc(100% - var(--pc-search-start) - var(--pc-wallet-width) - var(--pc-search-gap));
 }
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.pc-header-wallet{
  display:flex;grid-row:2;grid-column:1/-1;justify-self:end;
  width:var(--pc-wallet-width);height:48px;min-width:0;
  align-items:center;justify-content:space-between;gap:16px;
  padding-left:20px;border-left:1px solid var(--line);color:var(--ink);
 }
 #mall .pc-header-wallet .pc-wallet-value{display:flex;flex-direction:column;gap:3px;min-width:0}
 #mall .pc-header-wallet .pc-wallet-value>span{font-size:12px;line-height:16px;color:var(--muted)}
 #mall .pc-header-wallet .pc-wallet-value>strong{font-size:19px;font-weight:700;line-height:24px;white-space:nowrap;font-variant-numeric:tabular-nums}
 #mall .pc-header-wallet>button{
  display:flex;align-items:center;justify-content:center;gap:7px;flex:none;
  min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;
  background:var(--bg);color:var(--ink);font-size:13px;line-height:18px;white-space:nowrap;
 }
 #mall .pc-header-wallet>button>span:last-child{font-size:16px}
 #mall .pc-header-wallet>button:hover{background:var(--tint);border-color:var(--accent)}
 #mall .pc-header-wallet>button:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
 #mall.pc-header-layout:has(>.header .pc-header-wallet)>.ad-workspace-bar{display:none}
}
@media(min-width:1680px){
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{grid-template-rows:124px 48px}
}
@media(min-width:761px) and (max-width:1250px){
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{grid-template-rows:100px 48px}
}
@media(min-width:761px) and (max-width:1100px){
 #mall.pc-header-layout:has(>.header .searchbar)>.header .mast{--pc-wallet-width:282px;--pc-search-start:134px;--pc-search-gap:14px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category{width:120px}
 #mall.pc-header-layout:has(>.header .searchbar) .pc-header-category .cn-trigger{padding-inline:9px;gap:7px}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.platform-select{width:78px;flex-basis:78px;padding-inline:10px}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>.image-search-button{width:44px;flex-basis:44px}
 #mall.pc-header-layout:has(>.header .searchbar) .searchbar>button[type=submit]{min-width:64px;padding-inline:12px}
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.pc-header-wallet{padding-left:14px;gap:10px}
 #mall .pc-header-wallet .pc-wallet-value>strong{font-size:17px}
 #mall .pc-header-wallet>button{padding-inline:9px;font-size:12px;gap:5px;max-width:136px;white-space:normal}
}

/* PC spacing preview: inset only the three customer-marked groups. */
@media (min-width:761px) {
 #mall.pc-header-layout:has(>.header .searchbar) {--pc-controls-inset:clamp(28px,3vw,56px)}
 #mall.pc-header-layout:has(>.header .searchbar)>.reviewbar .home-topbar-controls,
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.header-actions {
  transform:translateX(calc(-1 * var(--pc-controls-inset)));
 }
 #mall.pc-header-layout:has(>.header .searchbar) .mast>.pc-header-wallet {
  margin-right:var(--pc-controls-inset);
 }
 #mall.pc-header-layout:has(>.header .searchbar) .mast:has(>.pc-header-wallet)>.searchbar {
  width:calc(100% - var(--pc-search-start) - var(--pc-wallet-width) - var(--pc-search-gap) - var(--pc-controls-inset));
 }
}
@media (min-width:761px) and (max-width:1250px) {
 #mall.pc-header-layout:has(>.header .searchbar) {--pc-controls-inset:20px}
}
@media (min-width:761px) and (max-width:1100px) {
 #mall.pc-header-layout:has(>.header .searchbar) {--pc-controls-inset:12px}
}
