@media(max-width:1050px){.header-main{grid-template-columns:170px 1fr}.brand img{width:150px}.account-nav{grid-column:1/-1;justify-content:flex-end;margin-top:-15px;padding-bottom:14px}.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.page-shell{width:min(100% - 28px,1420px)}.topbar{font-size:11px}.header-main{display:flex;flex-wrap:wrap;gap:12px;padding-block:12px}.brand{flex:1}.brand img{width:135px}.account-nav{margin:0;padding:0}.search-shell{order:3;width:100%}.search{width:100%;grid-template-columns:1fr 150px 52px}.hero,.hero>img{min-height:270px}.benefits{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.cart-body main.cart-page.page-shell{width:calc(100% - 28px)}}
@media(max-width:1100px){.recommendations{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.topbar-content{justify-content:center}.topbar-content nav{display:none}.recommendations{grid-template-columns:1fr}}
@media(max-width:600px){.recommendation-controls{grid-template-columns:repeat(5,minmax(0,1fr))}.recommendation-controls .quantity-control{grid-column:1/-1}.recommendation-controls .add-product{grid-column:1/5}.recommendation-controls .compact-view{grid-column:5/6;width:100%}}
@media(max-width:950px){.impact{grid-template-columns:38% 1fr 145px}.impact-copy{gap:7px}.impact-message-icon{font-size:40px}.impact-logo-slot{width:130px;height:114px;margin-right:12px}}
@media(max-width:520px){.page-shell{width:calc(100% - 24px)}.site-header{position:static}.account-nav{gap:9px;font-size:13px}.admin-link{display:none}.search{grid-template-columns:1fr 52px}.search select{display:none}.hero{border-radius:20px;min-height:210px}.hero>img{min-height:210px}.hero-actions{left:18px;bottom:18px}.hero-actions .button{padding:11px 13px;font-size:12px}.benefits article{min-height:76px;padding:12px 15px}.category-grid{gap:10px}.category-card{height:145px;padding:13px}.category-card strong{font-size:16px}.category-card small{display:none}.category-card img{height:110px}.section{padding-top:30px}.section-heading h2{font-size:21px}.product-grid{gap:10px}.product-card{padding:10px}.product-image{height:125px}.product-card h3{font-size:13px}.product-price{font-size:17px}.wellness-banner{min-height:260px;padding:25px;align-items:flex-start}.wellness-banner h2{font-size:27px;max-width:70%}.wellness-banner p{max-width:60%}.wellness-banner>img{width:65%;height:62%;right:-6%}.recommendation{grid-template-columns:76px 1fr}.recommendation>img{width:72px;height:90px}.recommendation>.quantity-control{grid-column:1/2}.compact-actions{grid-column:2/3}.promo-action{position:static;border-radius:0 0 14px 14px;justify-content:center;width:100%}.impact{display:grid;grid-template-columns:1fr;min-height:0}.impact-image{height:155px}.impact-image:after{background:linear-gradient(to top,#fff 0%,rgba(255,255,255,.55) 26%,transparent 60%)}.impact-copy{max-width:none;padding:8px 20px 18px!important}.impact-copy h2{font-size:19px}.impact-message-icon{font-size:40px}.impact-logo-slot{width:120px;height:105px;margin:0 auto 20px}.footer-grid{grid-template-columns:1fr 1fr;gap:26px 18px}.footer-grid>div:first-child{grid-column:1/-1}}
@media(max-width:520px){.cart-body main.cart-page.page-shell{width:calc(100% - 24px)}}

@media(max-width:800px){
  .orders-filter{grid-template-columns:1fr 1fr}
  .order-detail-layout{grid-template-columns:1fr}
  .order-products-card,.order-summary-card,.order-address-card,.order-documents-card{grid-column:1;grid-row:auto}
}

@media(max-width:520px){
  .simplified-navigation{order:3;width:100%;justify-content:flex-start}
  .simplified-navigation .catalog-back{width:100%;justify-content:center}
  .account-section-nav{display:grid;grid-template-columns:1fr 1fr}
  .account-section-nav a{justify-content:center;padding-inline:8px}
  .address-item{align-items:flex-start;flex-direction:column}
  .orders-filter{grid-template-columns:1fr}
  .order-item{grid-template-columns:1fr 1fr;padding:10px}
  .order-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .order-detail-hero{align-items:flex-start;flex-direction:column;padding:21px}
  .order-detail-hero h1{font-size:23px}
  .order-line{grid-template-columns:1fr auto}
  .order-line>strong{grid-column:2;grid-row:2}
  .order-document-actions{grid-template-columns:1fr}
}

@media(max-width:800px){
  .site-footer{padding-top:24px}
  .footer-brand{align-items:center;text-align:center}
  .footer-brand img{width:112px;object-position:center}
  .footer-social{align-items:center;text-align:center}
  .copyright{margin-top:18px}
}

@media(max-width:520px){
  .footer-grid{grid-template-columns:1fr;gap:22px}
  .footer-grid>div:first-child{grid-column:auto}
  .footer-grid>div{align-items:center;text-align:center}
}

@media(max-width:950px){
  .cart-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
  .cart-item{grid-template-columns:100px 1fr 170px}
  .cart-line-total{grid-column:2/4}
  .auth-main{grid-template-columns:1fr;gap:15px;max-width:720px}
  .auth-benefits{text-align:center;padding-bottom:8px}
  .auth-benefits h1,.auth-benefits>p{margin-inline:auto}
  .auth-benefit{display:none}
}

@media(max-width:700px){
  .cart-header-content{grid-template-columns:1fr auto;min-height:74px}
  .cart-header-status{display:none}
  .cart-header-brand img{width:145px;max-height:58px}
  .cart-back{font-size:12px}
  .cart-page{padding-block:26px 40px}
  .cart-title{align-items:start}
  .cart-title h1{font-size:28px}
  .cart-clear{font-size:0}
  .cart-clear .material-symbols-rounded{font-size:25px}
  .cart-item{grid-template-columns:82px 1fr;padding:13px 42px 15px 12px;gap:12px}
  .cart-item>img{width:78px;height:90px}
  .cart-quantity-form{grid-column:1/3;grid-template-columns:1fr 110px}
  .cart-line-total{grid-column:1/3;display:flex;justify-content:space-between;align-items:center}
  .cart-footer-trust{grid-template-columns:1fr 1fr 1fr}
  .cart-footer-trust>div{padding-inline:8px}
  .cart-footer-trust small{display:none}
  .cart-footer-content{grid-template-columns:1fr 1fr;gap:28px}
  .cart-footer-brand{grid-column:1/-1;align-items:center;text-align:center}
  .cart-footer-brand img{object-position:center}
  .cart-footer nav{justify-items:center;text-align:center}
  .auth-main{padding-block:26px}
  .auth-benefits{padding:10px}
  .auth-benefits h1{font-size:31px}
  .auth-benefits>p{font-size:14px;margin-bottom:10px}
  .auth-card{padding:20px;border-radius:17px}
  .logout-button span:last-child{display:none}
  .search-results-heading{padding:16px;gap:14px}
}

@media(max-width:420px){
  .cart-back{font-size:0}
  .cart-back .material-symbols-rounded{font-size:25px}
  .cart-title{gap:10px}
  .cart-item-info h2{font-size:14px}
  .cart-footer-trust{grid-template-columns:1fr}
  .cart-footer-trust>div{justify-content:flex-start;padding:9px 22px}
  .cart-footer-trust>div+div{border-left:0;border-top:1px solid rgba(255,255,255,.12)}
  .cart-footer-content{grid-template-columns:1fr;text-align:center;gap:24px}
  .cart-footer-brand{grid-column:auto}
  .cart-footer nav{grid-template-columns:1fr;justify-items:center}
  .auth-field-row{grid-template-columns:1fr}
  .auth-tabs button{padding-inline:6px;font-size:12px}
  .search-results-heading{display:grid}
  .clear-search{justify-self:start}
}

@media(max-width:950px){
  .public-header-main{grid-template-columns:150px 1fr}
  .public-navigation{order:3;grid-column:1/-1;padding-bottom:13px}
  .public-account-nav{justify-self:end}
  .account-favorites{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:620px){
  .public-header-main{grid-template-columns:1fr auto;gap:12px;padding-block:10px}
  .public-navigation{justify-content:flex-start;overflow:auto;gap:16px;white-space:nowrap}
  .public-header-main .brand img{width:135px}
  .public-account-nav>a:not(.cart-link){font-size:0}
  .public-account-nav>a:not(.cart-link) .material-symbols-rounded{font-size:24px}
  .account-welcome{align-items:flex-start}
  .account-welcome h1{font-size:27px}
  .account-grid{grid-template-columns:1fr}
  .account-wide{grid-column:auto}
  .account-data{grid-template-columns:1fr}
  .order-item{grid-template-columns:1fr 1fr}
  .order-item>strong{text-align:left}
  .account-favorites{grid-template-columns:1fr}
  .content-hero{padding:22px;min-height:125px}
  .content-hero>.material-symbols-rounded{font-size:40px}
  .content-hero h1{font-size:25px}
  .about-grid,.payment-grid,.shipping-grid{grid-template-columns:1fr}
  .about-main{grid-column:auto}
}


/* ==================================================
   ACM-PORTAL-UI-03
   Header fijo exclusivamente en celulares.
   No modifica las reglas de escritorio.
   ================================================== */

@media only screen and (max-width: 520px) {

    body > header.site-header,
    body > header.cart-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
        box-shadow: 0 3px 12px rgba(0, 49, 91, .10);
    }

    body > header.site-header {
        background: #ffffff !important;
    }

    body > header.cart-header {
        background: #004b93 !important;
    }

    /* La barra institucional no ocupa espacio movil. */
    body > header.site-header > .topbar {
        display: none !important;
    }

    /* Mantener visible el buscador junto al header. */
    body > header.site-header .search-shell {
        position: relative;
        z-index: 1;
    }

    /* Evitar que los saltos a secciones queden ocultos. */
    html {
        scroll-padding-top: 125px;
    }
}


/* ACM-PORTAL-UI-06 - Navegacion inferior movil */
.acm-mobile-nav{display:none}
@media only screen and (max-width:520px){
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .acm-mobile-nav{
    position:fixed;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    bottom:0;
    left:0;
    right:0;
    z-index:1150;
    background:#fff;
    border-top:1px solid #dce5ef;
    box-shadow:0 -3px 16px rgba(0,42,80,.09);
    padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px));
  }
  .acm-mobile-nav-item{
    min-width:0;
    min-height:54px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;
    text-align:center;
    color:#536579;
    text-decoration:none;
    border-radius:10px;
    font-size:11px;
    font-weight:600;
  }
  .acm-mobile-nav-item .material-symbols-rounded{
    font-size:24px;
    line-height:26px;
  }
  .acm-mobile-nav-item.is-active{
    color:#07549d;
    background:#eaf3fb;
  }
  .acm-mobile-nav-item:focus-visible{
    outline:2px solid #07549d;
    outline-offset:-2px;
  }
}


/* ACM-PORTAL-UI-09-R1 - Integracion visual del footer movil */
@media only screen and (max-width:520px){
  body:has(> .acm-mobile-nav){
    padding-bottom:0;
  }

  body:has(> .acm-mobile-nav) > .site-footer,
  body:has(> .acm-mobile-nav) > .cart-footer{
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));
  }
}


/* ACM-PORTAL-UI-11-R1 - Navegacion movil en acceso */
@media only screen and (max-width:520px){
    body.auth-body:has(> .acm-mobile-nav) > footer{
        padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));
    }
}


/* ACM-PORTAL-UI-12 - Distintivo reCAPTCHA */
body.auth-body .grecaptcha-badge {
    visibility: hidden !important;
}
.acm-recaptcha-notice {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin: 18px auto;
    padding: 0 12px;
}


/* ACM-PORTAL-UI-16 - Cuenta personalizada y bienvenida */
.account-nav .acm-user-menu {position:relative;min-width:0}
.acm-user-menu summary {
  display:flex;align-items:center;gap:6px;cursor:pointer;
  border:1px solid #d6e7f0;border-radius:28px;
  background:#eef7fb;color:#07549d;padding:9px 12px;
  font-size:13px;font-weight:700;list-style:none;
}
.acm-user-menu summary::-webkit-details-marker {display:none}
.acm-user-menu summary:focus-visible {outline:2px solid #07549d;outline-offset:3px}
.acm-user-chevron {font-size:18px!important}
.acm-user-dropdown {
  position:absolute;top:calc(100% + 8px);right:0;width:225px;
  background:#fff;border:1px solid #dce5ef;border-radius:14px;
  padding:10px;box-shadow:0 12px 30px rgba(0,40,75,.16);
  z-index:1300;display:flex;flex-direction:column;gap:3px;
}
.acm-user-dropdown a,.acm-user-dropdown button {
  display:flex;align-items:center;gap:8px;width:100%;
  text-align:left;padding:10px;border:0;border-radius:8px;
  background:transparent;font-size:13px;color:#23384e;
  text-decoration:none;cursor:pointer;
}
.acm-user-dropdown a:hover,.acm-user-dropdown button:hover {background:#edf5fc}
.acm-user-status {font-size:11px;color:#1b8549;padding:5px 10px}
.acm-user-dropdown .logout-form {width:100%;margin:0}
.acm-login-welcome {
  border:0;border-radius:20px;padding:28px;
  width:min(390px,calc(100% - 32px));max-width:100%;
  text-align:center;box-shadow:0 20px 65px rgba(0,35,70,.25);
}
.acm-login-welcome::backdrop {background:rgba(10,32,54,.45)}
.acm-welcome-icon {color:#229756}
.acm-welcome-icon .material-symbols-rounded {font-size:52px}
.acm-login-welcome h2 {color:#07549d;margin:10px 0;font-size:23px}
.acm-login-welcome p {color:#526477;line-height:1.5;font-size:14px}
.acm-login-welcome button {
  margin-top:12px;background:#07549d;color:#fff;
  border:0;border-radius:10px;padding:13px 20px;
  font-weight:700;cursor:pointer;min-height:44px;
}
@media(max-width:520px) {
  .acm-user-menu summary {font-size:12px;padding:8px}
  .acm-user-dropdown {right:0}
  body.account-body .account-welcome {
    display:flex;flex-direction:column;align-items:flex-start;
    gap:12px;padding:18px 16px;
  }
  body.account-body .account-welcome h1 {
    font-size:clamp(23px,6vw,29px);line-height:1.2;
    overflow-wrap:anywhere;
  }
  body.account-body .account-section-nav {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;overflow:visible;
  }
  body.account-body .account-section-nav a {
    display:flex;justify-content:center;align-items:center;
    min-height:48px;padding:10px 8px;text-align:center;
    font-size:12px;
  }
  body.account-body .account-grid {
    grid-template-columns:minmax(0,1fr);gap:12px;
  }
  body.account-body .account-card {
    min-width:0;padding:16px;border-radius:14px;
  }
  body.account-body .account-card-heading h2 {font-size:17px}
  body.account-body .account-data dd {overflow-wrap:anywhere}
}


/* ACM-PORTAL-UI-18
   Correccion focalizada del header y bienvenida.
*/

@media only screen and (max-width:520px) {

  /* Ocultar solamente el texto del carrito. */
  body > header.site-header:not(.internal-site-header)
  .account-nav .cart-link .acm-cart-label {
    display:none !important;
  }

  /* Icono y contador permanecen visibles. */
  body > header.site-header:not(.internal-site-header)
  .account-nav .cart-link {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:5px !important;
    padding:7px 10px !important;
    min-width:52px !important;
    min-height:42px !important;
    width:auto !important;
  }

  body > header.site-header:not(.internal-site-header)
  .account-nav .cart-link > .material-symbols-rounded {
    display:inline-block !important;
    font-size:23px !important;
  }

  body > header.site-header:not(.internal-site-header)
  .account-nav .cart-link > strong {
    display:grid !important;
    place-items:center !important;
    flex-shrink:0 !important;
  }

  /* Orden de referencia: carrito antes de la cuenta. */
  body > header.site-header:not(.internal-site-header)
  .account-nav {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:7px !important;
  }

  body > header.site-header:not(.internal-site-header)
  .account-nav > .cart-link {
    order:1 !important;
  }

  body > header.site-header:not(.internal-site-header)
  .account-nav > a:not(.cart-link),
  body > header.site-header:not(.internal-site-header)
  .account-nav > .acm-user-menu {
    order:2 !important;
  }

  /* Mantener buscador en segunda fila. */
  body > header.site-header:not(.internal-site-header)
  .header-main > .search-shell {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
  }
}

/* Modal: fondo oscuro y difuminado. */
dialog#acmLoginWelcome::backdrop {
  background:rgba(8,28,52,.35) !important;
  backdrop-filter:blur(7px) !important;
  -webkit-backdrop-filter:blur(7px) !important;
}

/* Desenfocar el contenido real mientras esta abierto. */
body:has(dialog#acmLoginWelcome[open]) > header,
body:has(dialog#acmLoginWelcome[open]) > main,
body:has(dialog#acmLoginWelcome[open]) > footer,
body:has(dialog#acmLoginWelcome[open]) > .acm-mobile-nav {
  filter:blur(7px) !important;
}

/* El modal debe permanecer completamente nitido. */
dialog#acmLoginWelcome[open] {
  filter:none !important;
}


/* ACM-PORTAL-UI-20 - Estandar visual de desenfoque */
:root {
    --acm-overlay-blur: 3px;
    --acm-overlay-backdrop: rgba(8,28,52,.20);
}

/* Modal de bienvenida */
dialog#acmLoginWelcome::backdrop {
    background:var(--acm-overlay-backdrop) !important;
    backdrop-filter:blur(var(--acm-overlay-blur)) !important;
    -webkit-backdrop-filter:blur(var(--acm-overlay-blur)) !important;
}

/* Contenido bajo el modal */
body:has(dialog#acmLoginWelcome[open]) > header,
body:has(dialog#acmLoginWelcome[open]) > main,
body:has(dialog#acmLoginWelcome[open]) > footer,
body:has(dialog#acmLoginWelcome[open]) > .acm-mobile-nav {
    filter:blur(var(--acm-overlay-blur)) !important;
}


/* ACM-PORTAL-UI-22
   Cargador visual unificado para operaciones del portal.
   No modifica la logica del bloqueo.
*/

.processing-overlay {
    background:rgba(244,248,252,.40) !important;
    backdrop-filter:blur(3px) !important;
    -webkit-backdrop-filter:blur(3px) !important;
}

.processing-box img {
    display:block;
    width:92px !important;
    height:92px !important;
    max-width:100%;
    object-fit:contain;
}

@media(max-width:600px) {
    .processing-box img {
        width:78px !important;
        height:78px !important;
    }
}

@media(prefers-reduced-motion:reduce) {
    .processing-overlay {
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }
}


/* ACM-PORTAL-UI-23 - Loader sin tarjeta blanca */
.processing-overlay .processing-box {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:16px !important;
    min-width:0 !important;
    width:min(340px,calc(100vw - 40px)) !important;
}

.processing-overlay .processing-box strong {
    font-size:20px !important;
    font-weight:700 !important;
    line-height:1.3 !important;
    color:#003f73 !important;
    text-shadow:0 1px 2px rgba(255,255,255,.65);
}

.processing-overlay .processing-box span {
    font-size:15px !important;
    font-weight:500 !important;
    line-height:1.5 !important;
    color:#29465f !important;
    text-shadow:0 1px 2px rgba(255,255,255,.65);
}


/* ==================================================
   ACM-PORTAL-UI-24
   Tarjeta translucida estandar del cargador.
   Solo presentacion visual.
   ================================================== */

.processing-overlay .processing-box {
    background:rgba(255,255,255,.82) !important;
    border:1px solid rgba(255,255,255,.55) !important;
    border-radius:18px !important;
    box-shadow:0 12px 32px rgba(0,40,80,.12) !important;

    width:min(350px,calc(100vw - 40px)) !important;
    min-width:0 !important;

    padding:24px 20px !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;

    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}

.processing-overlay .processing-box img {
    width:92px !important;
    height:92px !important;
    object-fit:contain !important;
    margin-bottom:14px !important;
}

.processing-overlay .processing-box strong {
    font-size:20px !important;
    font-weight:700 !important;
    line-height:1.3 !important;
    color:#003f73 !important;
    text-shadow:none !important;
}

.processing-overlay .processing-box span {
    font-size:15px !important;
    font-weight:400 !important;
    line-height:1.45 !important;
    color:#52677a !important;
    text-shadow:none !important;
    margin-top:6px !important;
}

@media(max-width:600px) {
    .processing-overlay .processing-box {
        padding:22px 18px !important;
    }

    .processing-overlay .processing-box img {
        width:78px !important;
        height:78px !important;
    }
}


/* ACM-PORTAL-UI-25 - Estilo final propuesto del cargador */
.processing-overlay .processing-box {
    background:rgba(255,255,255,.92) !important;
    width:min(380px,calc(100vw - 32px)) !important;
    max-width:380px !important;
}

@media (max-width:600px) {
    .processing-overlay .processing-box {
        width:min(380px,calc(100vw - 32px)) !important;
        padding:22px 16px !important;
    }
}


/* ACM-PORTAL-UI-26-R1 - Header para tabletas */
@media (min-width:521px) and (max-width:1100px) {

  body > header.site-header:not(.internal-site-header)
  .header-main.page-shell {
    display:grid !important;
    grid-template-columns:minmax(130px,1fr) auto !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    column-gap:16px !important;
    row-gap:10px !important;
    padding-block:12px !important;
  }

  body > header.site-header:not(.internal-site-header)
  .header-main > .brand {
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }

  body > header.site-header:not(.internal-site-header)
  .brand img {
    width:145px !important;
    max-width:100% !important;
    height:auto !important;
  }

  body > header.site-header:not(.internal-site-header)
  .header-main > .account-nav {
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    gap:10px !important;
  }

  body > header.site-header:not(.internal-site-header)
  .header-main > .search-shell {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  body > header.site-header:not(.internal-site-header)
  .search select {
    display:block;
  }
}

/* ACM-PORTAL-UI-27: logo + carrito + cuenta en una fila */
@media (max-width:520px) {

  body > header.site-header
  .header-main.page-shell {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    justify-content:stretch !important;
    column-gap:6px !important;
    row-gap:10px !important;
    padding:10px 12px !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  body > header.site-header
  .header-main > .brand {
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    align-self:center !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }

  body > header.site-header
  .header-main > .brand img {
    width:clamp(86px,27vw,114px) !important;
    max-width:100% !important;
    height:auto !important;
  }

  body > header.site-header
  .header-main > .account-nav {
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:end !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  body > header.site-header
  .account-nav > .cart-link {
    order:0 !important;
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    min-height:44px !important;
    padding:0 9px !important;
    margin:0 !important;
    border-radius:12px !important;
    white-space:nowrap !important;
  }

  body > header.site-header
  .account-nav > .acm-user-menu,
  body > header.site-header
  .account-nav > a:not(.cart-link) {
    order:1 !important;
    flex:0 1 auto !important;
    min-width:0 !important;
    margin:0 !important;
  }

  body > header.site-header
  .account-nav > .acm-user-menu > summary,
  body > header.site-header
  .account-nav > a:not(.cart-link) {
    min-height:44px !important;
    padding:0 8px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    white-space:nowrap !important;
    border-radius:12px !important;
    font-size:12px !important;
    box-sizing:border-box !important;
  }

  body > header.site-header
  .account-nav .acm-user-menu summary
  .material-symbols-rounded {
    font-size:18px !important;
  }

  body > header.site-header
  .account-nav .acm-user-menu summary span:nth-child(2) {
    display:inline-block !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    max-width:82px !important;
  }

  body > header.site-header
  .header-main > .search-shell {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }
}

@media (max-width:360px) {
  body > header.site-header
  .header-main > .brand img {
    width:86px !important;
  }

  body > header.site-header
  .account-nav {
    gap:4px !important;
  }

  body > header.site-header
  .account-nav > .cart-link {
    padding:0 7px !important;
  }

  body > header.site-header
  .account-nav > .acm-user-menu > summary,
  body > header.site-header
  .account-nav > a:not(.cart-link) {
    padding:0 5px !important;
    font-size:11px !important;
  }

  body > header.site-header
  .account-nav .acm-user-menu summary span:nth-child(2) {
    max-width:66px !important;
  }
}
