/* ==========================================================
   AL CLICK LO TENGO — Hoja de estilos
   Orden = cascada original del index.html. No reordenar bloques.
   ========================================================== */

/* ==========================================================
   1. Base / sistema de diseño (variables, tipografía, layout, componentes)
   ========================================================== */
::selection {
  background: #a3f3cf;
  color: #3f4547;
}
::-moz-selection {
  background: #a3f3cf;
  color: #3f4547;
}
:root {
  --ink: #20252a;
  --muted: #687078;
  --line: #e9e9e9;
  --soft: #f7f7f5;
  --accent: #a3f3cf;
  --dark: #172026;
  --white: #fff;
  --danger: #c53c3c;
  --shadow: 0 16px 45px rgba(20, 28, 35, 0.12);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1400px, calc(100% - 50px));
  margin: auto;
}
/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  width: 170px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav > a,
.nav-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4f5860;
  text-transform: uppercase;
  position: relative;
}
.nav > a:hover,
.nav-cat:hover {
  color: var(--accent);
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 10px;
}
.icon-btn {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e6e7;
  display: grid;
  place-items: center;
  position: relative;
  color: #4f5860;
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: #222;
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.cart-badge {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 20px;
  background: #222;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.hamb {
  display: none;
  background: none;
  border: 0;
  font-size: 0;
  width: 39px;
  height: 39px;
  padding: 7px;
  position: relative;
  cursor: pointer;
}
.hamb span {
  position: absolute;
  left: 8px;
  width: 23px;
  height: 2px;
  background: #4f5860;
  border-radius: 2px;
  transition: 0.25s;
}
.hamb span:nth-child(1) {
  top: 10px;
}
.hamb span:nth-child(2) {
  top: 18px;
}
.hamb span:nth-child(3) {
  top: 26px;
}
.hamb.open span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}
.hamb.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamb.open span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}
.search-panel {
  position: absolute;
  right: 75px;
  top: 70px;
  width: min(390px, calc(100vw - 30px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  display: none;
}
.search-panel.open {
  display: block;
}
.search-panel input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  outline: none;
}
.search-results {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
}
.search-result {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
/* HERO */
.hero {
  position: relative;
  background: #f4f4f2;
  overflow: hidden;
}
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active {
  display: block;
}
.hero picture img {
  width: 100%;
  height: min(48vw, 620px);
  min-height: 290px;
  object-fit: cover;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 20px #0001;
  font-size: 20px;
  z-index: 3;
}
.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff9;
  border: 1px solid #777;
}
.hero-dot.active {
  background: #222;
}
.hero-shop-btn {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 5;
  background: #a3f3cf;
  color: #3f4547;
  padding: 12px 28px;
  border: 1px solid rgba(63, 69, 71, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(20, 28, 35, 0.16);
  transition: 0.2s;
}
.hero-shop-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 11px 25px rgba(20, 28, 35, 0.2);
}
.scroll-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: #a3f3cf;
  color: #3f4547;
  z-index: 1200;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 25px #0003;
  border: 1px solid rgba(63, 69, 71, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}
.scroll-top:hover {
  transform: translateY(-2px);
}
/* CATEGORY BAR */
.category-section {
  padding: 55px 0 30px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b8389;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 31px;
  font-weight: 600;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  border: 1px solid #ececec;
  background: #fff;
  transition: 0.25s;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px #0000000d;
}
.cat-img {
  aspect-ratio: 1.3/1;
  background: #f1f2f1;
  overflow: hidden;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-name {
  text-align: center;
  padding: 14px 8px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}
.subcats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 10px 14px;
}
.subcats button {
  background: #f5f5f4;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 19px;
  color: #697078;
  font-weight: 600;
}
/* STORE */
.store {
  padding: 25px 0 85px;
}
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 30px;
  gap: 15px;
}
.crumb {
  font-size: 12px;
  color: #6c747a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.filter-select {
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: #fff;
  font-size: 12px;
  color: #555;
}
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding-right: 25px;
  align-self: start;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 17px;
}
.side-cat {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.side-cat > button {
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}
.side-cat > button:hover,
.side-cat.active > button {
  color: #111;
}
.side-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: none;
  transition: transform 0.25s ease;
}
.side-cat.has-subs > button .side-arrow {
  width: 26px;
  height: 26px;
  margin: -6px -6px -6px 0;
  border-radius: 50%;
  cursor: pointer;
}
.side-cat.has-subs > button .side-arrow:hover {
  background: #f2f2f2;
}
.side-cat.has-subs.open > button .side-arrow {
  transform: rotate(180deg);
}
/* Despliegue animado: una sola fuente de verdad (.open) */
.side-sub {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transition:
    grid-template-rows 0.28s ease,
    opacity 0.2s ease,
    padding-top 0.28s ease;
}
.side-cat.open > .side-sub {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 8px;
}
.side-sub-inner {
  min-height: 0;
  overflow: hidden;
}
.side-sub button {
  display: block;
  background: none;
  padding: 7px 0;
  font-size: 11px;
  color: #777;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.side-sub button:hover,
.side-sub button.active {
  color: #111;
}
.side-sub button.active {
  font-weight: 700 !important;
}
@supports not (grid-template-rows: 0fr) {
  .side-sub {
    display: none;
    opacity: 1;
  }
  .side-cat.open > .side-sub {
    display: block;
    padding-top: 8px;
  }
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 30px;
}
.product-card {
  min-width: 0;
}
.product-image {
  aspect-ratio: 1/1;
  background: #f3f3f1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.product-card:hover .product-image img {
  transform: scale(1.035);
}
.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #d10e12;
  color: #fff;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-info {
  text-align: center;
  padding-top: 13px;
}
.product-title {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-sub {
  font-size: 10px;
  color: #858b90;
  margin-top: 5px;
}
.price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}
.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  margin-right: 6px;
  font-weight: 400;
}
.product-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  padding: 10px 13px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #dfe2e3;
  background: #fff;
}
.btn.dark {
  background: #20252a;
  color: #fff;
  border-color: #20252a;
}
.btn:hover {
  transform: translateY(-1px);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 20px;
  color: #777;
  border: 1px dashed #ddd;
}
/* CART */
.overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 1500;
  display: none;
}
.overlay.show {
  display: block;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(450px, 100%);
  background: #fff;
  z-index: 1600;
  transform: translateX(100%);
  transition: 0.3s;
  box-shadow: -15px 0 45px #0002;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head h2 {
  font-family: "Playfair Display";
  font-size: 25px;
}
.close {
  background: none;
  font-size: 26px;
  color: #777;
}
.cart-items {
  padding: 18px;
  overflow: auto;
  flex: 1;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  transition: 0.2s;
}
.cart-item img:hover {
  opacity: 0.82;
  transform: scale(1.02);
}
.cart-item h4 {
  font-size: 12px;
  line-height: 1.35;
}
.cart-item p {
  font-size: 12px;
  margin-top: 5px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.qty button {
  width: 23px;
  height: 23px;
  border: 1px solid #ddd;
  background: #fff;
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 76px;
}
.cart-detail-btn {
  background: #60756f;
  color: #fff;
  border: 1px solid #60756f;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-detail-btn:hover {
  background: #536761;
  border-color: #536761;
  transform: translateY(-1px);
}
.remove {
  background: none;
  color: #a33;
  font-size: 10px;
  margin-top: 0;
  padding: 4px 0;
}
.cart-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 15px;
}
.wide {
  width: 100%;
  padding: 14px;
}
/* MODALS / ADMIN */
#editCategoryModal {
  z-index: 100001 !important;
}
#editCategoryModal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100001 !important;
}
.modal {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.show {
  display: flex;
}
.modal-box {
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}
.modal.small .modal-box {
  width: min(430px, 100%);
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modal-head h2 {
  font-family: "Playfair Display";
  font-size: 25px;
}
.modal-body {
  padding: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #5d666d;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #ddd;
  padding: 12px;
  background: #fff;
  outline: none;
  width: 100%;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
}
.file-note {
  font-size: 10px;
  color: #777;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid #eee;
  padding: 0 25px;
}
.admin-tab {
  padding: 14px 10px;
  background: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.admin-tab.active {
  border-color: var(--accent);
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.admin-list {
  margin-top: 25px;
  border-top: 1px solid #eee;
}
.admin-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.admin-row img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  background: #f2f2f2;
}
.admin-row h4 {
  font-size: 12px;
}
.admin-row p {
  font-size: 10px;
  color: #777;
  margin-top: 4px;
}
.danger {
  color: var(--danger);
  background: #fff;
}
.success {
  background: #e9fbf8;
  color: #14766d;
  padding: 10px;
  font-size: 11px;
  display: none;
  margin-bottom: 14px;
}
.success.show {
  display: block;
}
.login-box {
  padding: 30px;
}
.login-brand {
  text-align: center;
  margin-bottom: 25px;
}
.login-brand img {
  width: 150px;
  margin: 0 auto 10px;
}
.login-brand p {
  font-size: 11px;
  color: #777;
}
.login-error {
  color: #b32727;
  font-size: 11px;
  margin-top: 10px;
  display: none;
}
.login-error.show {
  display: block;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}
.summary {
  background: #f7f7f5;
  padding: 20px;
}
.summary h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e3e3e1;
  font-size: 12px;
}
.summary-total {
  font-size: 17px;
  font-weight: 700;
  padding-top: 15px;
}
.wompi-note {
  font-size: 10px;
  color: #777;
  line-height: 1.6;
  margin-top: 12px;
}
/* FOOTER */
footer {
  background: #161d22;
  color: #fff;
  margin-top: 0;
}
.footer-top {
  padding: 65px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 45px;
}
.footer-logo {
  width: 170px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-desc {
  font-size: 12px;
  color: #b9c0c4;
  line-height: 1.8;
  max-width: 390px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: #bdc3c7;
  margin: 11px 0;
}
.footer-col a:hover {
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.socials:empty {
  display: none;
}
.socials a {
  width: 35px;
  height: 35px;
  border: 1px solid #3b454b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid #30383d;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: #9fa7ac;
  font-size: 10px;
  text-align: center;
}
.footer-bottom a {
  color: #fff;
}
.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  z-index: 1200;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 25px #0003;
}
.wa svg {
  width: 28px;
  height: 28px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #20252a;
  color: #fff;
  padding: 12px 18px;
  font-size: 11px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* === ADMIN REDES SOCIALES V30 === */
.social-manager {
  border: 1px solid #e7e7e4;
  padding: 18px;
  background: #fbfbfa;
}
.social-manager-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.social-manager-head h4 {
  margin: 0 0 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.social-manager-head .admin-note {
  margin: 0;
}
.social-count {
  font-size: 10px;
  font-weight: 700;
  padding: 7px 10px;
  background: #a3f3cf;
  color: #20252a;
  border-radius: 20px;
  white-space: nowrap;
}
.social-icon-gallery {
  border-top: 1px solid #e9e9e6;
  padding-top: 15px;
}
.social-gallery-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #555e64;
}
.social-gallery-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}
.social-icon-option {
  border: 1px solid #ddd;
  background: #fff;
  min-height: 62px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: 0.2s;
}
.social-icon-option:hover,
.social-icon-option.selected {
  border-color: #7bd8ae;
  background: #effcf5;
  box-shadow: 0 0 0 2px rgba(163, 243, 207, 0.25);
}
.social-icon-option svg {
  width: 25px;
  height: 25px;
}
.social-icon-option span {
  font-size: 8px;
  color: #555;
  text-align: center;
}
.social-add-form {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 15px;
}
.social-add-form .field {
  margin: 0;
}
.social-add-form .btn {
  height: 42px;
  white-space: nowrap;
}
.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}
.social-admin-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3e3e0;
  background: #fff;
  padding: 10px;
}
.social-admin-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f1ef;
}
.social-admin-icon svg {
  width: 20px;
  height: 20px;
}
.social-admin-info strong {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}
.social-admin-info a {
  font-size: 10px;
  color: #747a7e;
  word-break: break-all;
}
.social-remove-btn {
  border: 1px solid #e4bcbc;
  background: #fff;
  color: #d64a4a;
  padding: 9px 12px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.social-remove-btn:hover {
  background: #fff5f5;
}
.social-empty {
  padding: 18px;
  text-align: center;
  border: 1px dashed #ddd;
  color: #888;
  font-size: 11px;
}
@media (max-width: 900px) {
  .social-gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .social-add-form {
    grid-template-columns: 1fr;
  }
  .social-add-form .btn {
    width: 100%;
  }
  .social-admin-row {
    grid-template-columns: 38px 1fr;
  }
  .social-remove-btn {
    grid-column: 2;
    justify-self: start;
  }
  .social-manager-head {
    flex-direction: column;
  }
}

/* RESPONSIVE */

.nav-store {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-store-toggle {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4f5860;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.nav-store-toggle:hover {
  color: var(--accent);
}
.nav-store-toggle span {
  display: none;
}
.mobile-store-menu {
  display: none;
}
@media (max-width: 900px) {
  .nav {
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    align-items: stretch;
  }
  .nav > a,
  .nav-store {
    width: 100%;
  }
  .nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-store {
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-store-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 13px 4px;
  }
  .nav-store-toggle span {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s;
  }
  .nav-store-toggle.open span {
    transform: rotate(180deg);
  }
  .mobile-store-menu {
    display: block;
    padding: 0 0 7px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .mobile-store-menu.open {
    max-height: 55vh;
    overflow-y: auto;
  }
  .mobile-menu-cat {
    border-top: 1px solid #f5f5f5;
  }
  .mobile-menu-cat-btn,
  .mobile-menu-sub {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
  }
  .mobile-menu-cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 8px 11px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
  }
  .mobile-menu-cat-btn span {
    font-size: 16px;
    color: #777;
  }
  .mobile-menu-sub {
    display: none;
    padding: 0 8px 6px 26px;
  }
  .mobile-menu-cat.open .mobile-menu-sub {
    display: block;
  }
  .mobile-menu-sub button {
    display: block;
    width: 100%;
    border: 0;
    background: #f8f8f7;
    margin: 3px 0;
    padding: 9px 10px;
    text-align: left;
    color: #5b6268;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
  }
  .mobile-menu-sub button:hover {
    background: #ede8df;
    color: #222;
  }
}
@media (max-width: 1100px) {
  .nav {
    gap: 17px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-layout {
    grid-template-columns: 180px 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-grid .footer-col:last-child {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    display: none !important;
  }
  .nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 70px;
    left: 10px;
    right: 10px;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    border: 1px solid rgba(63, 69, 71, 0.1);
    border-radius: 0 0 12px 12px;
    box-shadow:
      0 0 0 7px rgba(163, 243, 207, 0.34),
      0 16px 35px rgba(20, 28, 35, 0.16);
    z-index: 1001;
  }
  .container {
    width: min(100% - 28px, 700px);
  }
  .header-inner {
    height: 70px;
  }
  .logo {
    width: 145px;
  }
  .nav {
    display: none;
  }
  .actions {
    margin-left: auto;
  }
  .hamb {
    display: block;
  }
  .shop-layout {
    display: block;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }
  .product-title {
    font-size: 14px;
  }
  .hero-arrow {
    width: 35px;
    height: 35px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-col:last-child {
    display: block;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}
@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-section {
    padding-top: 35px;
  }
  .section-title {
    font-size: 25px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 10px;
  }
  .product-actions .btn {
    padding: 9px 6px;
    font-size: 8px;
  }
  .store-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    padding: 45px 0;
  }
  .search-panel {
    right: 12px;
  }
  .hero picture img {
    height: 55vw;
    min-height: 210px;
  }
  .hero-shop-btn {
    top: 41%;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 10px 22px;
    font-size: 10px;
  }
  .hero-shop-btn:hover {
    transform: translate(-50%, -50%);
  }
  .wa {
    right: 15px;
    bottom: 15px;
  }
  .scroll-top {
    left: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
  }
}

/* === MEJORAS ECOMMERCE V2 === */
:root {
  --beige: #e9dcc7;
  --beige-light: #f5eee3;
}
.announcement {
  height: 38px;
  background: #20252a;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.announcement-track {
  display: inline-flex;
  min-width: max-content;
  animation: announcementLoop 20s linear infinite;
}
.announcement-track span {
  padding: 0 38px;
}
.announcement-track b {
  font-weight: 700;
}
@keyframes announcementLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.hero picture,
.hero picture img {
  display: block;
  width: 100%;
}
.hero picture img {
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  margin: auto;
}
footer {
  background: var(--beige);
  color: #302b25;
}
footer .footer-desc {
  color: #5f574e;
}
footer .footer-col h4 {
  color: #302b25;
}
footer .footer-col a {
  color: #5f574e;
}
footer .footer-col a:hover {
  color: #111;
}
footer .socials a {
  border-color: #a99881;
  color: #302b25;
}
footer .footer-bottom {
  border-top-color: #cbbda8;
  color: #71675d;
}
footer .footer-bottom a {
  color: #302b25;
}
/* Product detail inspired by the supplied reference */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: start;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
}
.detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-thumb {
  width: 78px;
  height: 78px;
  border: 1px solid #ddd;
  background: #f5f3ef;
  overflow: hidden;
  padding: 0;
}
.detail-thumb.active {
  border: 2px solid #222;
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-main {
  position: relative;
  background: #f5f3ef;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-main img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}
.detail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #222;
  background: #fff9;
  font-size: 25px;
  z-index: 2;
}
.detail-prev {
  left: 15px;
}
.detail-next {
  right: 15px;
}
.detail-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
}
.detail-dot.active {
  background: #222;
  transform: scale(1.25);
}
.detail-fullscreen {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: #fff;
  padding: 11px;
  border-radius: 4px;
}
.detail-fullscreen svg {
  width: 17px;
  height: 17px;
}
.detail-image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 120000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.detail-image-viewer.show {
  display: flex;
}
.detail-image-viewer img {
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.detail-image-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #a3f3cf;
  color: #111;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px #0004;
}
.detail-image-close:hover {
  transform: scale(1.05);
}
@media (max-width: 500px) {
  .detail-image-viewer {
    padding: 18px;
  }
  .detail-image-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 27px;
  }
}
.detail-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 13px;
}
.detail-title {
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin-bottom: 12px;
}
.detail-viewers {
  font-size: 11px;
  margin-bottom: 24px;
}
.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 13px;
}
.detail-price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.stock {
  font-size: 11px;
  color: #3aa4ad;
}
.detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 20px 0 12px;
}
.design-options {
  display: flex;
  gap: 10px;
}
.design-option {
  width: 31px;
  height: 31px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
}
.design-option.active {
  background: #222;
  color: #fff;
  border-color: #222;
}
.detail-buy-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin-top: 24px;
}
.detail-qty {
  height: 42px;
  border: 1px solid #222;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.detail-qty button {
  background: none;
  font-size: 20px;
}
.detail-buy {
  height: 42px;
  border-radius: 24px;
}
.detail-buy-now {
  width: 100%;
  height: 44px;
  border-radius: 24px;
  margin-top: 12px;
}
.detail-description {
  margin-top: 20px;
  border: 1px solid #e2e2e2;
}
.detail-description-head {
  padding: 14px 20px;
  background: #f1f1f1;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.detail-description-head button {
  background: none;
  font-size: 20px;
}
.detail-description-body {
  padding: 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #5f666b;
  white-space: pre-line;
}
.payment-methods {
  margin-top: 18px;
  padding: 14px 0 4px;
  border-top: 1px solid #e5e1da;
}
.payment-methods-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f666b;
  margin-bottom: 10px;
}
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.payment-logo {
  height: 27px;
  min-width: 45px;
  padding: 5px 8px;
  border: 1px solid #dedbd5;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #555;
  box-shadow: 0 2px 6px #00000008;
}
.payment-logo.visa {
  font-size: 11px;
  font-style: italic;
}
.payment-logo.mc {
  font-size: 8px;
}
.payment-logo.amex {
  font-size: 8px;
}
.payment-logo.diners {
  font-size: 8px;
}
.payment-logo.pse {
  font-size: 10px;
}
.payment-logo.nequi {
  font-size: 9px;
}
.payment-logo.qr {
  font-size: 8px;
}
.detail-video {
  margin-top: 20px;
}
.detail-video video {
  width: 100%;
  max-height: 430px;
  background: #111;
}
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.admin-media-grid .field {
  min-width: 0;
}
.admin-media-grid input {
  font-size: 10px;
  padding: 9px;
}
.admin-sub-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admin-sub-chip {
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 5px 8px;
  font-size: 10px;
  background: #fff;
}
.admin-sub-chip button {
  background: none;
  color: #a33;
  margin-left: 4px;
}
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-main {
    min-height: 430px;
  }
  .admin-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .announcement {
    height: 34px;
    font-size: 9px;
  }
  .announcement-track span {
    padding: 0 22px;
  }
  .hero picture img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  .detail-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
  }
  .detail-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
  }
  .detail-main {
    min-height: 340px;
  }
  .detail-title {
    font-size: 17px;
  }
  .detail-buy-row {
    grid-template-columns: 105px 1fr;
  }
  .modal {
    padding: 0;
  }
  .modal-box {
    max-height: 100vh;
    height: 100%;
    width: 100% !important;
  }
}

:root {
  --beige: #ede8df;
  --loop: #a3f3cf;
  --loop-text: #3f4547;
}
.offer-loop {
  background: var(--loop);
  color: var(--loop-text);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #d8eee4;
}
.offer-track {
  display: flex;
  width: max-content;
  animation: offerMove 24s linear infinite;
  will-change: transform;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 0;
}
@keyframes offerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.offer-track {
  animation-timing-function: linear;
}
.offer-loop:hover .offer-track {
  animation-play-state: running;
}
footer {
  background: var(--beige) !important;
  color: #3f4547 !important;
}
footer .footer-desc,
footer .footer-col a {
  color: #5d5a55 !important;
}
footer .footer-col h4 {
  color: #3f3d39 !important;
}
footer .socials a {
  border-color: #aaa298 !important;
  color: #3f3d39 !important;
  background: transparent;
}
.footer-logo {
  filter: none !important;
}
footer .footer-bottom {
  border-top-color: #cfc7bb !important;
  color: #69635b !important;
}
footer .footer-bottom a {
  color: #3f3d39 !important;
}
.billing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.billing-head h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.billing-periods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.billing-period {
  border: 1px solid #ddd;
  background: #fff;
  padding: 9px 13px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.billing-period.active {
  background: var(--loop);
  border-color: var(--loop);
  font-weight: 700;
}
.billing-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.billing-range {
  font-size: 10px;
  color: #777;
  background: #faf9f6;
  border: 1px solid #e8e4dd;
  padding: 10px 12px;
}
.billing-list-total {
  font-weight: 700;
}
.billing-empty {
  padding: 45px 15px;
  text-align: center;
  color: #777;
  border: 1px dashed #ddd;
}
@media (max-width: 900px) {
  .billing-head {
    display: block;
  }
  .billing-periods {
    margin-top: 12px;
  }
  .billing-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.stat-card {
  border: 1px solid #e8e4dd;
  background: #faf9f6;
  padding: 16px;
}
.stat-card small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin-bottom: 8px;
}
.stat-card strong {
  font-size: 22px;
}
.inventory-row {
  grid-template-columns: 70px 1fr 130px auto !important;
}
.stock-input {
  width: 85px;
  padding: 8px;
  border: 1px solid #ddd;
}
.sold-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 7px;
  background: #f2eee8;
  font-size: 9px;
}
.logo-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.logo-preview {
  border: 1px dashed #ddd;
  padding: 12px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.logo-preview img {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
}
.social-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.social-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}
.admin-note {
  font-size: 10px;
  color: #777;
  line-height: 1.6;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .admin-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-config,
  .social-config {
    grid-template-columns: 1fr;
  }
  .inventory-row {
    grid-template-columns: 60px 1fr !important;
  }
  .inventory-row .stock-control {
    grid-column: 2;
  }
  .offer-track {
    font-size: 10px;
  }
  .hero picture img {
    height: auto;
    min-height: 0;
    object-fit: contain;
    background: #f4f4f2;
  }
}
.stockout-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #c62828;
  color: #fff;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 12px #0002;
}
.new-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #7b8050;
  color: #fff;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 3;
  border-radius: 2px;
}
.offer-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #c62828;
  color: #fff;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 4;
  border-radius: 2px;
  box-shadow: 0 4px 12px #0002;
}
.stock-detail {
  font-size: 11px;
  color: #5f666b;
  margin-top: 10px;
}
#tienda {
  scroll-margin-top: 95px;
}
.subcategory-heading {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 29px;
  font-weight: 600;
  margin: -5px 0 24px;
  color: #20252a;
}
.admin-offer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f39a32;
  color: #171717;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.discount-circle {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7b8050;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px #0002;
}
.product-image {
  position: relative;
}
.checkout-wompi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 12px;
  background: #faf9f6;
  border: 1px solid #e8e4dd;
}
.checkout-wompi-brand img {
  max-width: 110px;
  max-height: 38px;
  object-fit: contain;
}
.edit-product-form {
  border: 1px solid #e8e4dd;
  background: #faf9f6;
  padding: 15px;
  margin-bottom: 18px;
}
.edit-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  margin-left: 8px;
}
.product-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-row .btn {
  white-space: nowrap;
}
.category-order {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.category-position {
  font-size: 9px;
  color: #697078;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 4px;
}
.category-order .btn {
  padding: 7px 9px;
  font-size: 9px;
}
.category-order .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.admin-logout-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.admin-logout-btn {
  color: #c53c3c;
  border-color: #d8dcde;
  background: #fff;
  font-weight: 700;
}
.admin-logout-btn:hover {
  background: #fff4f4;
  border-color: #c53c3c;
}
.banner-edit-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.banner-edit-preview .preview-box {
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 8px;
}
.banner-edit-preview .preview-box span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #666;
  margin-bottom: 7px;
}
.banner-edit-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #f1f1f1;
}
.banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.banner-actions .btn {
  white-space: nowrap;
}
.banner-order {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.banner-position {
  font-size: 9px;
  color: #697078;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 4px;
}
.banner-order .btn {
  padding: 7px 9px;
  font-size: 9px;
}
.banner-order .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .banner-edit-preview {
    grid-template-columns: 1fr;
  }
  .banner-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .product-admin-actions {
    grid-column: 2;
  }
  .discount-circle {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}
.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-actions .btn {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-actions .btn {
    width: 100%;
  }
}
.settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid #e8e4dd;
  background: #faf9f6;
  margin-top: 18px;
}
.switch {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  inset: 0;
  background: #d8d5cf;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}
.switch-slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.switch input:checked + .switch-slider {
  background: #a3f3cf;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(22px);
}
.billing-history-selectors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.billing-history-selectors label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.billing-history-selectors select {
  border: 1px solid #ddd;
  background: #fff;
  padding: 9px 12px;
  min-width: 190px;
}

/* ==========================================================
   2. Ajustes móviles: subcategorías y logos de pago
   ========================================================== */
@media (max-width: 700px) {
  .subcats button {
    font-size: 18px;
    padding: 10px 14px;
  }
  .subcategory-heading {
    font-size: 30px;
  }
  .payment-logos {
    gap: 6px;
  }
  .payment-logo {
    height: 26px;
    padding: 5px 7px;
  }
}

/* ==========================================================
   3. Ajustes de botones de compra y subcategorías
   ========================================================== */
.subcats button {
  font-size: 21px !important;
  line-height: 1.35;
  padding: 13px 16px !important;
}
@media (max-width: 900px) {
  .subcats button {
    font-size: 20px !important;
    padding: 13px 15px !important;
  }
  .detail-buy-row {
    grid-template-columns: 125px 1fr;
  }
  .detail-buy,
  .detail-buy-now {
    height: 52px !important;
    font-size: 14px !important;
    font-weight: 800;
  }
  .detail-qty {
    height: 52px !important;
  }
  .product-actions .btn {
    min-height: 50px !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
  }
}
@media (min-width: 901px) {
  .product-actions .btn {
    min-height: 50px !important;
    font-size: 13px !important;
    padding: 12px 20px !important;
  }
  .subcategory-heading {
    font-size: 34px !important;
  }
}
.discount-field-note {
  font-size: 10px;
  color: #777;
  margin-top: 5px;
  display: block;
}

/* ==========================================================
   4. V11 — refinamientos visuales
   ========================================================== */
/* V11 visual refinements */
.section-title,
.product-title,
.subcategory-heading,
.detail-title,
.drawer-head h2,
.modal-head h2 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 700 !important;
}
/* Subcategorías: tamaño legible pero compacto */
.subcats button {
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
}
@media (max-width: 900px) {
  .subcats button {
    font-size: 13px !important;
    padding: 8px 11px !important;
  }
  .product-actions {
    gap: 6px !important;
  }
  .product-actions .btn {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 10px !important;
    padding: 8px 10px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap;
  }
}

/* ==========================================================
   5. V12 — legibilidad de subcategorías y footer  (antes: <style id="v12-typography-fix">)
   ========================================================== */
/* V12: legibilidad de subcategorías y footer */
.sidebar .side-sub button {
  font-size: 16px !important;
  line-height: 1.45 !important;
  padding: 9px 0 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 500 !important;
}
.sidebar .side-cat > button {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.sidebar .side-cat.active > button {
  font-weight: 800 !important;
}
footer .footer-desc {
  font-size: 14px !important;
  line-height: 1.75 !important;
}
footer .footer-col h4 {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
footer .footer-col a {
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 12px 0 !important;
}
footer .footer-bottom {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
@media (max-width: 900px) {
  .mobile-menu-cat-btn {
    font-size: 15px !important;
    padding: 13px 8px 13px 16px !important;
    line-height: 1.4 !important;
  }
  .mobile-menu-sub button {
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 11px 12px !important;
    margin: 4px 0 !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-weight: 500 !important;
  }
  footer .footer-desc {
    font-size: 14px !important;
  }
  footer .footer-col h4 {
    font-size: 13px !important;
  }
  footer .footer-col a {
    font-size: 14px !important;
  }
}

/* ==========================================================
   6. Logos de medios de pago
   ========================================================== */
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.payment-logo-img {
  height: 42px;
  min-width: 58px;
  max-width: 92px;
  padding: 4px 7px;
  border: 1px solid #dedbd5;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px #00000008;
}
.payment-logo-img img {
  display: block;
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.payment-logo-img:nth-child(3) {
  max-width: 105px;
}
.payment-logo-img:nth-child(4) {
  max-width: 62px;
}
.payment-logo-img:nth-child(5) {
  max-width: 62px;
}
.payment-logo-img:nth-child(6) {
  max-width: 70px;
}
.payment-logo-img:nth-child(7) {
  max-width: 86px;
}
.checkout-wompi-brand {
  flex-wrap: wrap;
}
.checkout-wompi-brand img {
  max-width: 125px;
  max-height: 44px;
  object-fit: contain;
  border-radius: 4px;
}
.checkout-payment-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  font-weight: 700;
}
.checkout-payment-name {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #333;
}
@media (max-width: 700px) {
  .payment-logos {
    gap: 7px;
  }
  .payment-logo-img {
    height: 36px;
    min-width: 52px;
    max-width: 78px;
    padding: 3px 5px;
  }
  .payment-logo-img img {
    max-height: 28px;
  }
  .checkout-wompi-brand {
    gap: 7px;
    padding: 10px;
  }
  .checkout-wompi-brand img {
    max-width: 105px;
    max-height: 36px;
  }
  .checkout-payment-name {
    font-size: 10px;
  }
}

/* ==========================================================
   7. V18 — editor de banners del admin  (antes: <style id="admin-banner-v18-css">)
   ========================================================== */
.admin-banner-editor {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #faf9f6;
}
.admin-banner-editor[hidden] {
  display: none !important;
}
.admin-banner-editor h5 {
  margin: 0 0 12px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}
.admin-banner-editor__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.admin-banner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3e0da;
  border-radius: 12px;
  margin: 8px 0;
  background: #fff;
}
.admin-banner-thumb {
  width: 130px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.admin-banner-row__info {
  flex: 1;
  min-width: 0;
}
.admin-banner-row__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}
.admin-banner-row__actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .admin-banner-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .admin-banner-thumb {
    width: 100%;
    height: 90px;
  }
  .admin-banner-row__info {
    width: 100%;
  }
  .admin-banner-row__actions {
    width: 100%;
  }
  .admin-banner-row__actions button {
    flex: 1;
  }
}

<style id="edit-banner-modal-fix">
/* Ventana de modificación de banners: siempre por encima del panel de administración */
#editBannerModal {
  z-index: 100001 !important;
  padding: 18px;
}
#editBannerModal.show {
  display: flex !important;
  z-index: 100001 !important;
}
#editBannerModal .modal-box {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  position: relative;
}
#editBannerModal .modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}
#editBannerModal .modal-body {
  padding: 25px;
}
#editBannerModal .banner-edit-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
#editBannerModal .preview-box {
  border: 1px solid #e3e0da;
  background: #faf9f6;
  padding: 10px;
  min-width: 0;
}
#editBannerModal .preview-box span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}
#editBannerModal .preview-box img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: #f1f1ef;
  border: 1px solid #ece9e3;
}
#editBannerModal .field input[type="file"] {
  padding: 10px;
  background: #fafafa;
}
#editBannerModal .edit-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
#editBannerModal .edit-banner-actions .btn {
  min-width: 145px;
}
@media (max-width: 650px) {
  #editBannerModal {
    padding: 0;
  }
  #editBannerModal .modal-box {
    width: 100% !important;
    height: 100%;
    max-height: 100vh;
  }
  #editBannerModal .modal-body {
    padding: 18px;
  }
  #editBannerModal .banner-edit-preview {
    grid-template-columns: 1fr;
  }
  #editBannerModal .preview-box img {
    height: 150px;
  }
  #editBannerModal .edit-banner-actions {
    justify-content: stretch;
  }
  #editBannerModal .edit-banner-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ==========================================================
   8. V28 — subcategoría en móvil  (antes: <style id="v28-mobile-subcategory">)
   ========================================================== */
@media (max-width: 900px) {
  #subcategoryHeading {
    display: none;
    text-align: center;
    margin: 0 0 18px !important;
    padding: 12px 10px !important;
    position: relative;
    z-index: 2;
  }
  #subcategoryHeading[style*="display: block"] {
    display: block !important;
  }
  .store .container {
    scroll-margin-top: 78px;
  }
  .subcategory-heading {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
}

/* ==========================================================
   9. Sección Últimas unidades / ofertas  (antes: <style id="last-units-offers-styles">)
   ========================================================== */
.last-units-section {
  padding: 50px 0 58px;
  background: #faf9f6;
  border-top: 1px solid #eee9e1;
}
.last-units-head {
  text-align: center;
  margin-bottom: 28px;
}
.last-units-head .eyebrow {
  margin-bottom: 7px;
}
.last-units-head .section-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.12em;
}
.last-units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.last-unit-card {
  background: #fff;
  border: 1px solid #e7e4de;
  box-shadow: 0 8px 24px rgba(20, 28, 35, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.last-unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 28, 35, 0.11);
}
.last-unit-image {
  position: relative;
  aspect-ratio: 1/1;
  background: #f2f2f0;
  overflow: hidden;
}
.last-unit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.last-unit-info {
  padding: 14px 15px 17px;
}
.last-unit-name {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #303638;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.last-unit-price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #3f4547;
  margin-top: 8px;
}
.last-unit-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .last-units-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .last-units-section {
    padding: 40px 0 46px;
  }
}
@media (max-width: 500px) {
  .last-units-grid {
    gap: 12px;
  }
  .last-units-head .section-title {
    font-size: 22px;
  }
  .last-unit-info {
    padding: 11px 10px 13px;
  }
  .last-unit-name {
    font-size: 12px;
  }
  .last-unit-price {
    font-size: 13px;
  }
  .last-unit-old {
    font-size: 9px;
  }
}

/* ==========================================================
   10. Sección Novedades (loop)  (antes: <style id="novelties-loop-styles">)
   ========================================================== */
.novelties-section {
  padding: 42px 0 38px;
  background: #fff;
  overflow: hidden;
}
.novelties-head {
  text-align: center;
  margin-bottom: 24px;
}
.novelties-head .eyebrow {
  margin-bottom: 7px;
}
.novelties-head .section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.12em;
}
.novelties-loop {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.novelties-track {
  display: flex;
  width: max-content;
  max-width: none;
  animation: noveltiesMarquee 32s linear infinite;
  will-change: transform;
}
.novelties-loop:hover .novelties-track {
  animation-play-state: paused;
}
.novelties-set {
  width: max-content;
  flex: 0 0 auto;
  display: flex;
  gap: 22px;
  padding: 4px 11px;
  box-sizing: border-box;
  min-width: 0;
}
.novelty-card {
  flex: 0 0 245px;
  min-width: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ececea;
  box-shadow: 0 8px 24px rgba(20, 28, 35, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.novelty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 28, 35, 0.1);
}
.novelty-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f2f2f0;
}
.novelty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.novelty-info {
  padding: 12px 13px 15px;
}
.novelty-name {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #303638;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novelty-price {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3f4547;
  margin-top: 7px;
}
.novelty-old {
  font-size: 10px;
  color: #9a9a9a;
  text-decoration: line-through;
  margin-right: 5px;
  font-weight: 500;
}
.novelty-empty {
  text-align: center;
  padding: 28px;
  color: #777;
  font-size: 13px;
  width: 100%;
}
@keyframes noveltiesMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) {
  .novelties-section {
    padding: 30px 0 28px;
  }
  .novelties-head {
    margin-bottom: 17px;
  }
  .novelties-head .section-title {
    font-size: 22px;
  }
  .novelties-set {
    gap: 12px;
    padding: 3px 7px;
  }
  .novelty-card {
    flex-basis: 185px;
  }
  .novelty-info {
    padding: 10px 10px 12px;
  }
  .novelty-name {
    font-size: 11px;
  }
  .novelty-price {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .novelties-track {
    animation: none;
    width: 100%;
  }
  .novelties-set:last-child {
    display: none;
  }
}

/* ==========================================================
   11. Sección Kushi Cacao
   ========================================================== */
.kushi-section {
  padding: 48px 0 46px;
  background: #f8f5ef;
  overflow: hidden;
}
.kushi-head {
  text-align: center;
  margin-bottom: 24px;
}
.kushi-head .eyebrow {
  margin-bottom: 7px;
}
.kushi-head .section-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.12em;
}
.kushi-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #2b1a12;
}
.kushi-slide {
  display: none;
}
.kushi-slide.active {
  display: block;
}
.kushi-slide a,
.kushi-slide picture {
  display: block;
  width: 100%;
}
.kushi-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1600/500;
  object-fit: cover;
}
.kushi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #2d2925;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
}
.kushi-prev {
  left: 18px;
}
.kushi-next {
  right: 18px;
}
.kushi-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.kushi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
}
.kushi-dot.active {
  background: #a3f3cf;
}
.kushi-products-wrap {
  margin-top: 34px;
}
.kushi-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.kushi-empty {
  text-align: center;
  padding: 30px;
  color: #777;
  font-size: 13px;
  background: #fff;
  border: 1px solid #ece8df;
}
.kushi-admin-banner-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.kushi-admin-banner-preview .preview-box {
  border: 1px solid #eee;
  padding: 8px;
  background: #fafafa;
}
.kushi-admin-banner-preview span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 7px;
}
.kushi-admin-banner-preview img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.kushi-admin-products {
  margin-top: 25px;
}
.kushi-product-form-title {
  font-size: 13px;
  margin: 0 0 14px;
}
.settings-toggle-card.kushi-toggle {
  margin: 0 0 20px;
}
@media (max-width: 900px) {
  .kushi-section {
    padding: 34px 0;
  }
  .kushi-head {
    margin-bottom: 18px;
  }
  .kushi-head .section-title {
    font-size: 23px;
  }
  .kushi-slide img {
    aspect-ratio: 480/650;
    object-fit: cover;
  }
  .kushi-arrow {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
  .kushi-prev {
    left: 10px;
  }
  .kushi-next {
    right: 10px;
  }
  .kushi-dots {
    bottom: 10px;
  }
  .kushi-products-wrap {
    margin-top: 24px;
  }
  .kushi-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .kushi-admin-banner-preview {
    grid-template-columns: 1fr;
  }
  .kushi-admin-banner-preview img {
    height: 160px;
  }
}

/* ==========================================================
   10. Ajustes iOS / iPadOS (iPhone y iPad)
   ========================================================== */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
}
button,
a,
.icon-btn,
.hamb {
  -webkit-tap-highlight-color: transparent;
}
/* Safari necesita el prefijo para el desenfoque del header */
.header {
  -webkit-backdrop-filter: blur(12px);
}
/* Zonas con scroll: inercia nativa en iOS */
.nav,
.mobile-store-menu,
.sidebar,
.drawer,
.drawer-body,
.modal-box,
.search-results {
  -webkit-overflow-scrolling: touch;
}
/* Alturas reales en Safari móvil (la barra de direcciones altera 100vh) */
@supports (height: 100dvh) {
  .drawer {
    height: 100dvh;
  }
  .modal-box {
    max-height: 92dvh;
  }
  .sidebar {
    max-height: calc(100dvh - 120px);
  }
  @media (max-width: 900px) {
    .nav {
      max-height: calc(100dvh - 90px);
    }
    .mobile-store-menu.open {
      max-height: 55dvh;
    }
  }
}
/* Botones flotantes por encima del área segura (notch / barra inferior) */
.wa {
  bottom: calc(22px + env(safe-area-inset-bottom));
}
.scroll-top {
  bottom: calc(22px + env(safe-area-inset-bottom));
}
.toast {
  bottom: calc(28px + env(safe-area-inset-bottom));
}
@media (max-width: 900px) {
  .wa,
  .scroll-top {
    bottom: calc(15px + env(safe-area-inset-bottom));
  }
  /* iOS hace zoom al enfocar campos de menos de 16px */
  input,
  select,
  textarea {
    font-size: 16px;
  }
  /* Áreas táctiles cómodas */
  .icon-btn,
  .hamb,
  .nav-store-toggle,
  .mobile-menu-cat-btn {
    min-height: 44px;
  }
  .drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
/* El :hover se queda "pegado" en pantallas táctiles */
@media (hover: none) {
  .side-cat > button:hover,
  .side-sub button:hover,
  .mobile-menu-sub button:hover,
  .nav-store-toggle:hover {
    color: inherit;
    background: inherit;
  }
  .side-cat.active > button,
  .side-sub button.active {
    color: #111;
  }
}
/* iPad en vertical: dos columnas cómodas */
@media (min-width: 700px) and (max-width: 900px) {
  .products-grid,
  .category-grid,
  .last-units-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .container {
    width: min(100% - 44px, 900px);
  }
}

/* ==========================================================
   LOOP INFINITO + PUBLICIDAD FLOTANTE CONFIGURABLE
   ========================================================== */
.offer-loop.is-disabled {
  display: none !important;
}
.offer-loop .offer-group {
  display: flex;
  align-items: center;
  gap: 58px;
  padding-right: 58px;
}
.settings-field-spaced {
  margin-top: 14px;
}
.floating-ad-config-card {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fafafa;
}
.floating-ad-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.floating-ad-admin-preview {
  width: 250px;
  height: 400px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  display: none;
  position: relative;
}
.floating-ad-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.floating-ad {
  position: fixed;
  left: 22px;
  bottom: 94px;
  width: 250px;
  height: 400px;
  z-index: 1190;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 12px 35px rgba(0,0,0,.20);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-125%);
  pointer-events: none;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .4s ease, visibility 0s linear .55s;
}
.floating-ad.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.floating-ad.hiding {
  opacity: 0;
  transform: translateX(-125%);
}
.floating-ad img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.floating-ad-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
}
.floating-ad-close:hover {
  transform: scale(1.06);
}
@media (max-width: 700px) {
  .floating-ad {
    left: 12px;
    bottom: 82px;
    width: 175px;
    height: 280px;
    border-radius: 10px;
  }
  .floating-ad img { border-radius: 10px; }
  .floating-ad-close {
    width: 27px;
    height: 27px;
    top: -8px;
    right: -8px;
    font-size: 19px;
  }
  .floating-ad-admin-preview {
    width: 175px;
    height: 280px;
  }
  .floating-ad-config-head {
    align-items: flex-start;
  }
}

/* ==========================================================
   CATEGORÍAS EN TIENDA — SOLO MÓVIL
   ========================================================== */
.mobile-store-category-wrap {
  display: none;
  position: relative;
  width: 100%;
  z-index: 20;
}
.mobile-store-category-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  cursor: pointer;
}
.mobile-store-category-arrow {
  font-size: 16px;
  transition: transform .2s ease;
}
.mobile-store-category-wrap.open .mobile-store-category-arrow {
  transform: rotate(180deg);
}
.mobile-store-category-panel {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  max-height: 60vh;
  overflow-y: auto;
}
.mobile-store-category-panel.open { display: block; }
.mobile-store-category-panel button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  text-align: left;
  padding: 12px 14px;
  color: #555;
  font-size: 11px;
  cursor: pointer;
}
.mobile-store-category-panel .mobile-picker-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mobile-picker-cat.open > .mobile-picker-cat-btn { color: #111; }
.mobile-picker-arrow { font-size: 15px; transition: transform .2s ease; }
.mobile-picker-cat.open .mobile-picker-arrow { transform: rotate(180deg); }
.mobile-picker-subs { display: none; background: #fafafa; }
.mobile-picker-cat.open .mobile-picker-subs { display: block; }
.mobile-picker-subs button { padding-left: 28px; color: #777; }
.mobile-picker-subs button.active,
.mobile-store-category-panel .mobile-picker-all.active { color: #111; font-weight: 700; }

@media (max-width: 900px) {
  .mobile-store-category-wrap { display: block; }
  .store-toolbar { position: relative; }
  .store-toolbar > .crumb { display: none; }
}
@media (min-width: 901px) {
  .mobile-store-category-wrap { display: none !important; }
}

/* Las subcategorías ya no aparecen dentro de las tarjetas de Compra por Categorías. */
.category-grid .subcats { display: none !important; }


/* Panel de administración: el scroll queda aislado dentro del panel */
html.admin-open, body.admin-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
#adminModal {
  overscroll-behavior: contain;
  touch-action: none;
}
#adminModal .modal-box {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
#adminModal .modal-head,
#adminModal .admin-tabs {
  touch-action: pan-x;
}
@supports (height: 100dvh) {
  #adminModal .modal-box { max-height: 92dvh; }
}


/* ==========================================================
   AJUSTES SOLICITADOS — HERO + ICONOS MÓVILES + BUSCADOR
   ========================================================== */

/* Botón TIENDA siempre centrado en el hero, en PC y móvil */
.hero-shop-btn {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-shop-btn:hover {
  transform: translate(-50%, calc(-50% - 2px));
}

/* Los círculos de lupa, usuario y carrito conservan su forma */
.actions {
  flex-shrink: 0;
}

.icon-btn {
  flex: 0 0 39px;
  width: 39px;
  min-width: 39px;
  max-width: 39px;
  height: 39px;
  min-height: 39px;
  max-height: 39px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  box-sizing: border-box;
}

.icon-btn svg {
  flex: 0 0 auto;
}

/* La lupa se convierte en X cuando el buscador está abierto */
.search-icon-btn {
  position: relative;
}

.search-icon-btn::after {
  content: "×";
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  color: currentColor;
}

.search-icon-btn.search-open svg {
  display: none;
}

.search-icon-btn.search-open::after {
  display: flex;
}

/* Ajuste específico para móvil: no comprimir ni deformar los círculos */
@media (max-width: 900px) {
  .header-inner {
    gap: 8px;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .actions {
    margin-left: auto;
    gap: 7px;
    flex: 0 0 auto;
    align-items: center;
  }

  .actions .icon-btn,
  .actions .hamb {
    flex-shrink: 0;
  }

  .hamb {
    flex: 0 0 39px;
    width: 39px;
    min-width: 39px;
    max-width: 39px;
    height: 39px;
    min-height: 39px;
    padding: 0;
  }

  .hero-shop-btn {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-shop-btn:hover {
    transform: translate(-50%, calc(-50% - 2px));
  }
}

@media (max-width: 500px) {
  .actions {
    gap: 5px;
  }

  .icon-btn {
    flex-basis: 39px;
    width: 39px;
    min-width: 39px;
    max-width: 39px;
  }

  .hamb {
    flex-basis: 39px;
    width: 39px;
    min-width: 39px;
    max-width: 39px;
  }
}


/* Centrado del aviso legal del pie de página */
footer .footer-bottom {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
@media (max-width: 900px) {
  footer .footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }
}

.delivery-options { display:flex; gap:18px; flex-wrap:wrap; margin-top:8px; }
.delivery-options label { display:flex; align-items:center; gap:7px; border:1px solid #ddd; padding:11px 14px; cursor:pointer; text-transform:none; letter-spacing:0; font-size:12px; font-weight:600; }
.delivery-options input { width:auto; }
.shipping-auto-note { font-size:10px; color:#777; margin-top:8px; line-height:1.5; }
.shipping-config-card { background:#f7f7f5; border:1px solid #eee; padding:18px; margin-bottom:4px; }
.shipping-config-card h3 { font-size:13px; margin-bottom:8px; }
@media (max-width:700px){ .delivery-options { gap:8px; } .delivery-options label { flex:1; justify-content:center; } }


/* Checkout siempre por encima del carrito/overlay y correctamente centrado. */
#checkoutModal { z-index: 100500; }
#checkoutModal.show { display: flex !important; visibility: visible !important; opacity: 1 !important; }
body.checkout-open { overflow: hidden; }
#checkoutModal .modal-box { z-index: 100501; }
.pickup-address-checkout .pickup-address-box{padding:12px 14px;border:1px solid #ddd;border-radius:10px;background:#f8f8f6;font-weight:600;line-height:1.5}
#checkoutForm select{width:100%;min-height:44px;border:1px solid #ddd;border-radius:10px;padding:0 12px;background:#fff;font:inherit;color:inherit}


/* Gestión de pedidos: pago, preparación, envío y guía */
.sale-order-row{align-items:flex-start!important}
.sale-order-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sale-order-controls select,.sale-order-controls input{min-height:38px;border:1px solid #ddd;border-radius:9px;padding:8px 10px;background:#fff;font:inherit}
.sale-order-controls input{min-width:180px}
@media(max-width:600px){.sale-order-controls select,.sale-order-controls input,.sale-order-controls .btn{width:100%}}

/* ==========================================================
   PANEL ADMIN — VENTANA MÁS ANCHA Y PESTAÑAS ADAPTATIVAS
   ========================================================== */
#adminModal .modal-box {
  width: min(1180px, calc(100vw - 32px));
  overflow-x: hidden;
}

#adminModal .admin-tabs {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 0;
  padding: 0 25px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#adminModal .admin-tabs::-webkit-scrollbar {
  display: none;
}
#adminModal .admin-tab {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  #adminModal .modal-box {
    width: min(100%, calc(100vw - 20px));
  }
  #adminModal .admin-tabs {
    flex-wrap: wrap;
    padding: 0 15px;
  }
  #adminModal .admin-tab {
    padding: 12px 9px;
    font-size: 10px;
  }
}

/* ==========================================================
   PANEL ADMIN — OPCIÓN ACTIVA EN COLOR MENTA
   ========================================================== */
#adminModal .admin-tab {
  border: 1px solid transparent;
  border-radius: 9px;
  margin: 6px 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

#adminModal .admin-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #18352b;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

#adminModal .admin-tab:hover:not(.active) {
  border-color: var(--accent);
}


/* Ajustes de referencias y navegación del panel */
.admin-tab { font-weight: 800 !important; }
.variant-admin-list { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.variant-admin-row { display:grid; grid-template-columns:140px 1fr; gap:8px; align-items:center; padding:8px 10px; border:1px solid #e7e7e7; border-radius:10px; background:#fafafa; }
.variant-ref { font-weight:800; font-size:12px; }
.variant-admin-row input, .variant-admin-row select { width:100%; }
.detail-reference { margin:8px 0 12px; font-weight:800; font-size:12px; }
@media (max-width:600px){ .variant-admin-row{grid-template-columns:1fr;} }

/* Selección de colores y empresas de envío */
.variant-color-picker{display:flex;align-items:center;gap:10px}
.color-preview{display:inline-block;width:28px;height:28px;border-radius:50%;border:1px solid #d7d7d7;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);flex:0 0 28px}
.color-option{padding:3px!important;display:inline-flex;align-items:center;justify-content:center}
.color-option span{width:23px;height:23px;border-radius:50%;display:block;border:1px solid #ddd}
.checkout-shipping-company{font-size:11px;color:#666;margin:4px 0 8px;text-align:right}
.shipping-companies-manager{padding:15px;background:#f8f8f6;border:1px solid #ececea;border-radius:12px;margin-bottom:16px}
.shipping-company-add{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.shipping-company-add input{flex:1;min-width:180px;min-height:38px;border:1px solid #ddd;border-radius:9px;padding:8px 10px;font:inherit}
.shipping-company-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.shipping-company-row{display:flex;align-items:center;gap:8px;padding:7px 9px;background:#fff;border:1px solid #e5e5e5;border-radius:9px}
.shipping-company-row span{font-weight:700;font-size:11px}
