/* Menú hamburguesa + cesta (chat herbolario msg 44-45). Colores de cada tienda: --t-ac */
body { --t-ac: #1f3d2b; --t-fondo: #f6efdf; }
body:has(.cab .logo span) { --t-ac: #b03a7a; --t-fondo: #ffe6ef; }   /* K-Beauty (logo con 뷰티) */
.cab { position: sticky; }
.cab-menu { order: -1; width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; margin-right: 6px; flex: none; }
.cab-menu span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.cab-cesta { order: 99; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: inherit; display: grid; place-items: center; flex: none; margin-left: 6px; }
.cab-num { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--t-ac); color: #fff; font-size: 11px; line-height: 19px; text-align: center; padding: 0 5px; }
.sin-scroll { overflow: hidden; }
.panel-velo { position: fixed; inset: 0; background: rgba(20, 20, 15, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.panel-velo.on { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 91; display: flex; flex-direction: column; transition: transform .28s ease; box-shadow: 0 0 40px rgba(0,0,0,.18); color: #2b2a24; font-size: 15px; }
.panel-izq { left: 0; transform: translateX(-102%); } .panel-der { right: 0; transform: translateX(102%); width: min(420px, 94vw); }
.panel.on { transform: none; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eee6d6; }
.panel-cab b { font-size: 18px; }
.panel-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--t-fondo); font-size: 22px; cursor: pointer; color: inherit; }
.menu-lista { overflow-y: auto; padding: 8px 0 30px; }
.menu-lista h4 { margin: 16px 18px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8a877c; font-weight: 600; }
.menu-lista > a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: inherit; text-decoration: none; }
.menu-lista > a:hover { background: var(--t-fondo); }
.menu-lista > a span { flex: 1; } .menu-lista > a i { font-style: normal; color: #b1ad9f; font-size: 20px; }
.menu-lista > a svg { color: var(--t-ac); flex: none; }
.menu-otra { color: var(--t-ac) !important; font-weight: 600; }
.menu-idiomas { display: flex; gap: 8px; padding: 4px 18px; flex-wrap: wrap; }
.menu-idiomas a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #e4dcc9; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: 13px; }
.menu-idiomas a.on { background: var(--t-ac); color: #fff; border-color: var(--t-ac); }
.menu-idiomas .bandera svg { width: 20px; height: 14px; display: block; border-radius: 2px; }
/* Cesta */
.cesta-cuerpo { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cesta-vacia { padding: 30px 18px 12px; color: #6b6a63; text-align: center; }
.cesta-lineas { list-style: none; margin: 0; padding: 0 18px; flex: 1; }
.cesta-lineas li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee6d6; align-items: start; }
.cl-foto { width: 72px; height: 72px; border-radius: 10px; background: var(--t-fondo); overflow: hidden; display: block; }
.cl-foto img { width: 100%; height: 100%; object-fit: cover; }
.cl-info small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #8a877c; }
.cl-info > a { color: inherit; text-decoration: none; font-weight: 600; line-height: 1.3; display: block; margin: 2px 0 8px; }
.cl-cant { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-cant [data-d] { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd3bf; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.cl-cant span { min-width: 18px; text-align: center; font-weight: 700; }
.cl-quitar { border: 0; background: none; color: #a0522d; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0 4px; }
.cesta-pie { padding: 16px 18px 22px; border-top: 1px solid #eee6d6; background: #fffdf8; display: grid; gap: 10px; }
.cesta-sub { display: flex; justify-content: space-between; font-size: 17px; } .cesta-sub b { font-size: 20px; }
.cesta-tramitar { padding: 14px; border-radius: 999px; border: 0; background: var(--t-ac); color: #fff; font-weight: 700; font-size: 16px; opacity: .55; cursor: not-allowed; }
.cesta-nota { margin: 0; font-size: 12.5px; color: #7d7a70; text-align: center; }
.cesta-seguir { padding: 12px; border-radius: 999px; border: 1px solid #ddd3bf; background: #fff; cursor: pointer; font-weight: 600; margin: 0 18px 18px; }
.cesta-pie .cesta-seguir { margin: 0; }
.cesta-aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #2b2a24; color: #fff; padding: 12px 14px 12px 18px; border-radius: 999px; z-index: 95; display: flex; gap: 12px; align-items: center; transition: transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; white-space: nowrap; }
.cesta-aviso.on { transform: translate(-50%, 0); }
.cesta-aviso button { border: 0; border-radius: 999px; background: #fff; color: #2b2a24; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.pag-producto .cesta-aviso { bottom: 90px; }
/* Botón en las tarjetas */
.prod-add { margin: 10px 0 0; width: 100%; padding: 10px; border-radius: 999px; border: 1px solid var(--t-ac); background: #fff; color: var(--t-ac); font-weight: 700; cursor: pointer; font-size: 14px; }
.prod-add:hover { background: var(--t-ac); color: #fff; }
@media (max-width: 600px) { .prod-add { font-size: 12.5px; padding: 8px 4px; } .cab-menu { margin-right: 0; } }
@media (max-width: 760px) {   /* móvil: ☰ logo … 🛍 en la primera fila; idiomas debajo; el enlace a la otra tienda está en el menú */
  .cab nav { display: none !important; } .cab .logo { flex: 1; } .cab-cesta { order: 2; } .cab .idiomas { order: 3; }
}
.cab-cuenta { order: 98; width: 44px; height: 44px; display: grid; place-items: center; color: inherit; flex: none; position: relative; }
.cab-cuenta.dentro::after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 9px; height: 9px; border-radius: 50%; background: #4c9a5b; border: 2px solid #fff; }
@media (max-width: 760px) { .cab-cuenta { order: 2; } .cab-cesta { order: 2; } .cab-cuenta { margin-left: auto; } .cab .logo { flex: 0 1 auto; } }
.cesta-aviso:not(.on) { visibility: hidden; transform: translate(-50%, 200%); transition: transform .25s, visibility 0s .25s; }

/* Buscador (chat herbolario msg 67) */
.cab-buscar { order: 50; position: relative; flex: 0 1 320px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border: 1px solid #ddd3bf; border-radius: 999px; background: #fff; color: #7d7a70; }
.cab-buscar:focus-within { border-color: var(--t-ac); box-shadow: 0 0 0 3px rgba(31,61,43,.12); }
.cab-buscar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: #2b2a24; }
.cab-buscar input::-webkit-search-cancel-button { cursor: pointer; }
.cab-lupa { display: none; order: 97; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; place-items: center; cursor: pointer; flex: none; }
.bus-lista { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 8px; z-index: 60; max-height: 70vh; overflow-y: auto; }
.bus-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: #2b2a24; }
.bus-item:hover, .bus-item:focus { background: var(--t-fondo); outline: 0; }
.bus-foto { width: 52px; height: 52px; border-radius: 8px; background: var(--t-fondo); overflow: hidden; } .bus-foto img { width: 100%; height: 100%; object-fit: cover; }
.bus-txt small { display: block; font-size: 11px; color: #8a877c; text-transform: uppercase; letter-spacing: .06em; } .bus-txt b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.bus-item em { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; }
.bus-todos { width: 100%; margin-top: 4px; padding: 11px; border: 0; border-radius: 10px; background: var(--t-fondo); color: var(--t-ac); font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; }
.bus-nada { margin: 0; padding: 14px; color: #7d7a70; text-align: center; }
.bus-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 16px; border-radius: 14px; background: #fff; border: 1px solid #ece3cc; }
.bus-barra a { color: var(--t-ac); font-weight: 700; text-decoration: none; }
@media (max-width: 1100px) { .cab-buscar { flex-basis: 220px; } }
@media (max-width: 900px) {
  .cab-lupa { display: grid; order: 2; } .cab-buscar { display: none; }
  .cab.buscando .cab-buscar { display: flex; order: 4; flex: 1 1 100%; }
  .bus-lista { min-width: 0; }
}
@media (max-width: 760px) { .cab-lupa { margin-left: auto; } .cab-cuenta { margin-left: 0; } }
.bus-barra { scroll-margin-top: 160px; }
