*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.main-wrap {
  display: flex;
  min-height: calc(100vh - var(--header-h));
  transition: padding-right .3s ease;
}
@media (min-width: 1025px) {
  .main-wrap.cart-open { padding-right: var(--cart-w); }
}

.catalog-main {
  flex: 1; padding: 36px 40px;
}

.catalog-top {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 24px; gap: 20px;
}

.page-title {
  font-family: var(--font-b); font-size: 32px;
  font-weight: 400; color: var(--ink); letter-spacing: -.5px;
}

.search-input-wrap, .catalog-search-wrap { position: relative; }
.search-input {
  width: 240px; height: 36px;
  border: 1px solid var(--gray-200); border-radius: 2px;
  padding: 0 36px 0 12px; font-size: 13px; color: var(--ink);
  background: var(--bg); outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--gray-400); }
.search-input::placeholder { color: var(--gray-400); }
.search-icon {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: var(--gray-400);
}

.filters-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.filter-label { font-size: 13px; color: var(--gray-600); }
.filter-sel {
  height: 34px; padding: 0 28px 0 10px;
  border: 1px solid var(--gray-200); border-radius: 20px;
  background: var(--bg); font-size: 13px; color: var(--ink);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .2s;
}
.filter-sel:focus { outline: none; border-color: var(--gray-400); }
.filter-right { margin-left: auto; }
.prod-count { font-size: 13px; color: var(--gray-400); }

.product-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 4px 0 16px;
}

.product-row {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.product-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-soft);
}
.product-row.hidden { display: none !important; }

.card-vial-wrap {
  background: var(--bg);
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  aspect-ratio: 3 / 4;
  max-height: 280px;
  overflow: hidden;
  transition: background .2s;
}
.product-row:hover .card-vial-wrap { background: var(--bg); }

.card-vial-glow {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-vial-svg2 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease, filter .25s ease;
}
.card-vial-wrap:hover .card-vial-svg2 {
  transform: scale(1.04);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
}

.card-vial-svg {
  width: 100px; height: 148px; position: relative; z-index: 2;
  transition: transform .3s ease;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)) drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.product-row:hover .card-vial-svg { transform: translateY(-5px); }

.card-frio-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(37,99,235,.9); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 12px;
  z-index: 3;
}

.card-body {
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}

.card-categoria {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
}

.card-nombre {
  font-size: 15px; font-weight: 600; color: var(--ink);
  line-height: 1.25; cursor: pointer; transition: color .15s;
}
.card-nombre:hover { color: var(--accent); }

.card-select {
  width: 100%; height: 34px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  background: var(--gray-100); color: var(--ink);
  font-size: 12px; padding: 0 24px 0 10px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color .2s;
}
.card-select:focus { outline: none; border-color: var(--accent); }

.card-price-tier {
  font-family: var(--font-d); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2px;
}

.card-price-locked { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-price-locked__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 1px;
}
.card-price-locked__link:hover { border-color: var(--accent); }

.pd-pres-price-locked {
  display: inline-block; font-family: var(--font-d); font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
.pd-pres-price-locked:hover { border-color: var(--accent); }
.card-price-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card-price {
  font-family: var(--font-d); font-size: 20px; font-weight: 700; color: var(--ink);
}
.card-price-original {
  font-size: 12px; color: var(--gray-400); text-decoration: line-through;
}
.card-stock-ok {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--green);
  background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.2);
  padding: 2px 7px; border-radius: 10px;
}
.card-stock-no {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--red);
  background: rgba(220,38,38,.06); border: 1px solid rgba(220,38,38,.2);
  padding: 2px 7px; border-radius: 10px;
}

.card-actions {
  display: flex; gap: 6px; align-items: center;
}
.card-actions .qty-wrap { flex-shrink: 0; }

.qty-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--gray-200); border-radius: 6px;
  overflow: hidden; height: 42px;
}
.qty-btn {
  width: 30px; height: 100%; border: none; background: var(--gray-100);
  font-size: 17px; color: var(--ink); cursor: pointer;
  transition: background .15s; line-height: 1;
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
  width: 38px; text-align: center; border: none;
  border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--bg); height: 100%; outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.btn-add {
  flex: 1; height: 42px; border: 1.5px solid var(--accent-soft); border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-d); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn-add:hover   { background: var(--accent-soft); border-color: var(--accent); }
.btn-add:active  { transform: scale(.98); }
.btn-add.loading { background: var(--bg); border-color: var(--gray-400); color: var(--gray-400); cursor: not-allowed; }
.btn-add.added   { background: rgba(22,163,74,0.15); border-color: var(--green); color: var(--green); }

.btn-notify {
  flex: 1; height: 42px; border: 1px solid var(--gray-200);
  border-radius: 6px; background: var(--bg); color: var(--gray-400);
  font-family: var(--font-d); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: not-allowed;
}

.btn-coa {
  width: 100%; height: 30px; background: transparent;
  border: 1px solid var(--gray-200); border-radius: 4px;
  color: var(--gray-500); font-family: var(--font-d);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 5px; transition: border-color .2s, color .2s;
  margin-top: 2px;
}
.btn-coa:hover { border-color: var(--accent); color: var(--accent); }

.badge-cold {
  display: inline-block; margin-top: 3px; font-size: 9px;
  letter-spacing: 1.2px; text-transform: uppercase;
  border: 1px solid rgba(37,99,235,.25); color: #2563eb;
  background: rgba(37,99,235,.06); padding: 1px 6px;
  border-radius: 10px; font-family: var(--font-d);
}

.cart-panel {
  position: fixed; top: var(--header-h); right: 0; bottom: 0;
  width: var(--cart-w);
  background: var(--bg); border-left: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 150;
  overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,.08);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-d); font-size: 18px;
  font-weight: 600; color: var(--ink); letter-spacing: .5px;
}
.cart-close {
  background: none; border: none; font-size: 16px;
  color: var(--gray-400); cursor: pointer; padding: 4px 8px;
  transition: color .2s;
}
.cart-close:hover { color: var(--ink); }

.cart-country {
  padding: 8px 20px; font-size: 12px; color: var(--gray-600);
  background: var(--gray-100); border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-d); letter-spacing: 1px; flex-shrink: 0;
}

.cart-items { flex: 1 1 auto; min-height: 180px; overflow-y: auto; overflow-x: hidden; padding: 8px 0; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 12px;
  color: var(--gray-400); font-size: 13px;
}

.cart-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; flex-shrink: 0;
  gap: 6px 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.cart-item:hover { background: var(--accent-soft); }

.ci-info { flex: 1 1 160px; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.ci-pres { font-size: 11px; color: var(--gray-600); margin-top: 2px; }
.ci-sku  { font-size: 10px; color: var(--gray-400); margin-top: 2px; font-family: var(--font-d); letter-spacing: .5px; }

.ci-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}

.ci-qty-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--gray-200); border-radius: 2px;
}
.ci-qty-btn {
  width: 26px; height: 26px; border: none; background: var(--gray-100);
  font-size: 16px; color: var(--ink); cursor: pointer; line-height: 1;
  transition: background .15s;
}
.ci-qty-btn:hover { background: var(--gray-200); }
.ci-qty {
  width: 32px; text-align: center; font-size: 13px; font-weight: 500;
  color: var(--ink);
}
.ci-price { font-size: 14px; font-weight: 600; color: var(--ink); }
.ci-del {
  background: none; border: none; font-size: 11px; color: var(--gray-400);
  cursor: pointer; padding: 2px; transition: color .2s;
}
.ci-del:hover { color: var(--red); }

.cart-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--bg);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.cart-total-lbl { font-size: 13px; color: var(--gray-600); }
.cart-total-val { font-size: 20px; font-weight: 700; color: var(--ink); }

.cart-subtotal-row, .cart-envio-row {
  margin-bottom: 8px;
}
.cart-subtotal-row .cart-total-val, .cart-envio-row .cart-total-val {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
}
.cart-envio-cajas {
  font-size: 11px; color: var(--gray-400); margin-left: 4px;
}
.cart-grand-total-row {
  padding-top: 10px;
  border-top: 1px solid var(--gray-200);
}

.cart-notes {
  width: 100%; height: 60px; resize: none;
  border: 1px solid var(--gray-200); border-radius: 2px;
  padding: 8px 10px; font-size: 12px; color: var(--ink);
  font-family: var(--font-b); outline: none; margin-bottom: 12px;
  transition: border-color .2s;
}
.cart-notes:focus { border-color: var(--gray-400); }
.cart-notes::placeholder { color: var(--gray-400); }

.btn-confirm {
  width: 100%; height: 44px;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 2px;
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
  margin-bottom: 8px;
  box-shadow: 0 0 20px var(--accent-soft), inset 0 0 14px var(--accent-soft);
}
.btn-confirm:hover:not(:disabled)  { background: var(--accent-soft); color: var(--accent); }
.btn-confirm:disabled { background: none; border-color: var(--gray-400); color: var(--gray-400); box-shadow:none; cursor: not-allowed; }

.btn-clear {
  width: 100%; height: 36px; background: none;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.btn-clear:hover { border-color: var(--gray-400); color: var(--ink); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg); color: var(--accent); border: 1px solid var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-soft);
  padding: 12px 24px; border-radius: 2px;
  font-size: 13px; font-family: var(--font-b);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

@media (max-width: 900px) {
  .product-row {
    grid-template-columns: 56px 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .prod-price-wrap { grid-column: 3; }
  .prod-pres-wrap  { grid-column: 1 / 3; }
  .qty-wrap        { grid-column: 3; }
  .add-wrap        { grid-column: 1 / 4; }
}

.add-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-coa {
  width: 100%; height: 32px;
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-family: var(--font-d);
  font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; cursor: pointer;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-coa:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.coa-overlay {
  position: fixed; inset: 0;
  background: var(--overlay); backdrop-filter: blur(3px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.coa-overlay.open {
  opacity: 1; pointer-events: all;
}

.coa-modal {
  background: linear-gradient(var(--bg), var(--bg)), var(--bg);
  border: 1px solid var(--accent-soft);
  width: min(90vw, 860px);
  height: min(90vh, 680px);
  border-radius: 4px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(16px);
  transition: transform .25s ease;
  overflow: hidden;
}
.coa-overlay.open .coa-modal {
  transform: translateY(0);
}

.coa-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--bg);
}
.coa-modal-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.coa-modal-actions {
  display: flex; align-items: center; gap: 12px;
}
.coa-download-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-d); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none; border: 1px solid var(--accent);
  padding: 6px 14px; border-radius: 2px;
  transition: background .2s, color .2s;
}
.coa-download-btn:hover {
  background: var(--accent-soft); color: var(--white);
}
.coa-close-btn {
  background: none; border: none; font-size: 18px;
  color: var(--gray-400); cursor: pointer; padding: 4px 8px;
  line-height: 1; transition: color .2s;
}
.coa-close-btn:hover { color: var(--ink); }

.coa-modal-body {
  flex: 1; position: relative; min-height: 0;
}
.coa-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; color: var(--gray-400);
  background: var(--bg); z-index: 2;
}
.coa-loading.hidden { display: none; }

.coa-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.coa-iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

.dir-section {
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.dir-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-d); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-600); background: var(--gray-100);
  padding: 8px 12px; border-bottom: 1px solid var(--gray-200);
}

.dir-list { padding: 4px 0; max-height: 200px; overflow-y: auto; }

.dir-loading {
  padding: 14px 12px; font-size: 12px;
  color: var(--gray-400); text-align: center;
}

.dir-card {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s; position: relative;
}
.dir-card:last-child { border-bottom: none; }
.dir-card:hover { background: var(--accent-soft); }
.dir-card.selected { background: var(--accent-soft); }
.dir-card.selected .dir-card__radio { border-color: var(--accent); background: var(--accent); }

.dir-card__radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gray-300); background: transparent;
  flex-shrink: 0; margin-top: 2px; transition: .2s;
  position: relative;
}
.dir-card.selected .dir-card__radio::after {
  content: ''; position: absolute;
  inset: 3px; border-radius: 50%; background: var(--bg);
}

.dir-card__body { flex: 1; min-width: 0; }
.dir-card__alias {
  font-size: 12px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.dir-card__default {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-soft);
  padding: 1px 5px; border-radius: 2px;
}
.dir-card__dest { font-size: 11px; color: var(--gray-600); margin-top: 2px; }
.dir-card__addr { font-size: 11px; color: var(--gray-400); margin-top: 1px;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dir-card__actions {
  display: flex; gap: 4px; flex-shrink: 0; margin-top: 1px;
}
.dir-card__btn {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 11px; padding: 2px 4px;
  transition: color .2s;
}
.dir-card__btn:hover { color: var(--accent); }
.dir-card__btn.del:hover { color: var(--red); }

.btn-new-dir {
  width: 100%; padding: 9px; background: transparent;
  border: none; border-top: 1px solid var(--gray-100);
  color: var(--accent); font-family: var(--font-d);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 6px; transition: background .15s;
}
.btn-new-dir:hover { background: var(--accent-soft); }

.dir-overlay {
  position: fixed; inset: 0;
  background: var(--overlay); backdrop-filter: blur(3px); z-index: 600;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.dir-overlay.open { opacity: 1; pointer-events: all; }

.dir-modal {
  background: linear-gradient(var(--bg), var(--bg)), var(--bg);
  border: 1px solid var(--accent-soft);
  width: min(96vw, 620px);
  max-height: 90vh;
  border-radius: 3px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(16px);
  transition: transform .25s;
  overflow: hidden;
}
.dir-overlay.open .dir-modal { transform: translateY(0); }

.dir-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.dir-modal-title {
  font-family: var(--font-d); font-size: 14px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.dir-modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--gray-400); cursor: pointer; padding: 2px 8px;
}
.dir-modal-close:hover { color: var(--ink); }

.dir-form { overflow-y: auto; padding: 20px; flex: 1; }

.dir-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.dir-form-field { display: flex; flex-direction: column; gap: 5px; }
.dir-form-field--full { grid-column: 1 / -1; }

.dir-form-field label {
  font-family: var(--font-d); font-size: 9px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gray-600); font-weight: 600;
}
.req { color: var(--red); }

.ciudad-sugerencias {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: linear-gradient(var(--bg), var(--bg)), var(--bg);
  border: 1px solid var(--accent-soft); border-radius: 4px;
  margin-top: 2px; max-height: 220px; overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 20px var(--accent-soft);
}
.ciudad-sugerencias.open { display: block; }
.ciudad-sugerencias .cs-item {
  padding: 9px 12px; font-size: 13px; cursor: pointer; color: var(--ink);
  display: flex; justify-content: space-between; gap: 8px;
}
.ciudad-sugerencias .cs-item:hover,
.ciudad-sugerencias .cs-item.activo { background: var(--accent-soft); }
.ciudad-sugerencias .cs-item .cs-estado { color: var(--gray-400); font-size: 11px; flex-shrink: 0; }
.ciudad-sugerencias .cs-empty { padding: 9px 12px; font-size: 12px; color: var(--gray-400); }

.dir-form-field input,
.dir-form-field textarea {
  border: 1px solid var(--gray-200); border-radius: 2px;
  background: var(--bg);
  padding: 8px 10px; font-size: 13px; color: var(--ink);
  font-family: var(--font-b); outline: none;
  transition: border-color .2s;
}
.dir-form-field input:focus,
.dir-form-field textarea:focus { border-color: var(--accent); }
.dir-form-field input::placeholder,
.dir-form-field textarea::placeholder { color: var(--gray-400); font-size: 12px; }
.dir-form-field textarea { height: 64px; resize: none; }

.dir-default-wrap { justify-content: flex-end; }
.dir-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-600); cursor: pointer;
  padding-top: 18px;
}
.dir-check-label input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--accent); }

.dir-form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 16px; border-top: 1px solid var(--gray-100);
  margin-top: 4px;
}
.dir-btn-cancel {
  padding: 10px 20px; background: transparent;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: .2s;
}
.dir-btn-cancel:hover { border-color: var(--gray-400); color: var(--ink); }
.dir-btn-save {
  padding: 10px 24px; background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 2px; font-family: var(--font-d);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
  box-shadow: 0 0 16px var(--accent-soft);
}
.dir-btn-save:hover { background: var(--accent-soft); color: var(--bg); }
.dir-btn-save:hover { background: var(--bg); }
.dir-btn-save:disabled { background: var(--gray-400); cursor: not-allowed; }

.prod-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  padding: 20px;
}
.prod-overlay.open {
  opacity: 1; pointer-events: all;
}

.prod-detail-card {
  background: linear-gradient(var(--bg), var(--bg)), var(--bg);
  border: 1px solid var(--accent-soft);
  width: min(92vw, 680px);
  max-height: 90vh;
  border-radius: 4px;
  display: flex;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 40px var(--accent-soft);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
  position: relative;
}
.prod-overlay.open .prod-detail-card {
  transform: translateY(0) scale(1);
}

.prod-detail-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 20px;
  color: var(--gray-400); cursor: pointer; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.prod-detail-close:hover { background: var(--gray-100); color: var(--ink); }

.pd-vial-wrap {
  width: 220px; flex-shrink: 0; max-height: 620px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.pd-vial-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pd-vial-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--accent-soft) 0%, transparent 70%);
}
.pd-vial-wrap svg {
  position: relative; z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.14))
          drop-shadow(0 2px 6px rgba(0,0,0,.08));
  transition: transform .4s ease;
}
.prod-overlay.open .pd-vial-wrap svg {
  transform: translateY(-4px);
}
.pd-vial-shadow {
  width: 80px; height: 12px; margin-top: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,.12) 0%, transparent 70%);
  border-radius: 50%; position: relative; z-index: 2;
}

.pd-info {
  flex: 1; padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  overflow-y: auto; min-width: 0;
}

.pd-categoria {
  font-family: var(--font-d); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.pd-nombre {
  font-size: 22px; font-weight: 600; color: var(--ink);
  line-height: 1.2; margin-bottom: 8px;
}
.pd-desc {
  font-size: 13px; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 10px;
}

.card-nfc-indicator {
  display: flex; align-items: center; gap: 6px; margin: 2px 0 8px;
  font-family: var(--font-d); font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; color: var(--accent);
}
.card-nfc-dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.card-nfc-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: cardNfcPulse 1.8s ease-out infinite;
}
@keyframes cardNfcPulse { to { transform: scale(3); opacity: 0; } }

.pd-verify-illustration { width: 100%; max-width: 160px; display: block; margin: 0 auto 2px; }

.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.pd-verify { background: var(--gray-100, #f7f7f7); border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }
.pd-verify-badge {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-d);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px 4px 8px; border-radius: 20px; margin-bottom: 6px;
}
.pd-verify-badge::before, .pd-verify-badge::after {
  content: ''; position: absolute; left: 15px; top: 50%; width: 13px; height: 13px;
  border: 1px solid var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3); opacity: .45;
  animation: pdVerifyPulse 2s ease-out infinite;
}
.pd-verify-badge::after { animation-delay: .6s; }
@keyframes pdVerifyPulse { to { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } }

.pd-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-verify-col-title {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--ink); margin-bottom: 2px;
}
.pd-verify-col-title svg { stroke: var(--accent); flex-shrink: 0; }
.pd-verify-sub { font-size: 10.5px; color: var(--gray-400); margin-bottom: 6px; }
.pd-verify-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pd-verify-steps li {
  counter-increment: pdstep; position: relative; padding-left: 20px;
  font-size: 11.5px; color: var(--gray-600); line-height: 1.35;
}
.pd-verify-steps { counter-reset: pdstep; }
.pd-verify-steps li::before {
  content: counter(pdstep); position: absolute; left: 0; top: 0;
  width: 15px; height: 15px; border-radius: 50%; background: #eff9ff; color: var(--accent);
  font-family: var(--font-d); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 480px) { .pd-verify-grid { grid-template-columns: 1fr; } }

.card-verify-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; color: var(--accent);
  background: #eff9ff; cursor: help; flex-shrink: 0;
}
.pd-badge {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
  font-weight: 600;
}
.pd-badge--cold  { background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; }
.pd-badge--uso   { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }

.pd-pres-title {
  font-family: var(--font-d); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 6px; margin-bottom: 10px;
}

.pd-pres-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; flex: 1; }

.pd-pres-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--gray-200);
  border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pd-pres-item:hover   { border-color: var(--accent); background: var(--accent-soft); }
.pd-pres-item.active  {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}
.pd-pres-radio {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  transition: border-color .15s;
  position: relative;
}
.pd-pres-item.active .pd-pres-radio {
  border-color: var(--accent);
}
.pd-pres-item.active .pd-pres-radio::after {
  content: ''; position: absolute; inset: 2px;
  border-radius: 50%; background: var(--accent);
}
.pd-pres-body   { flex: 1; min-width: 0; }
.pd-pres-name   { font-size: 13px; font-weight: 500; color: var(--ink); }
.pd-pres-sub    { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.pd-pres-price  {
  font-family: var(--font-d); font-size: 17px;
  font-weight: 700; color: var(--ink); flex-shrink: 0;
}
.pd-pres-price.promo { color: var(--accent); }
.pd-pres-stock-ok  { font-size: 10px; color: #16a34a; margin-top: 2px; }
.pd-pres-stock-no  { font-size: 10px; color: #dc2626; margin-top: 2px; }

.pd-actions {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--gray-100); padding-top: 16px;
  flex-shrink: 0;
}
.pd-btn-add {
  width: 100%; height: 42px; border: 1.5px solid var(--accent-soft); border-radius: 2px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-d); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pd-btn-add:hover   { background: var(--accent-soft); border-color: var(--accent); }
.pd-btn-add:disabled { background: var(--bg); border-color: var(--gray-400); color: var(--gray-400); cursor: not-allowed; }

.pd-btn-coa {
  width: 100%; height: 38px;
  background: transparent;
  border: 1px solid var(--gray-200); border-radius: 2px;
  color: var(--gray-600); font-family: var(--font-d);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: border-color .2s, color .2s;
}
.pd-btn-coa:hover { border-color: var(--accent); color: var(--accent); }

.prod-img:hover svg { opacity: .8; }
.prod-info .prod-name { transition: color .15s; }
.prod-info:hover .prod-name { color: var(--accent); }

@media (max-width: 760px) {
  .prod-detail-card { flex-direction: column; max-height: 88vh; overflow-y: auto; width: min(94vw, 420px); }
  .pd-vial-wrap { width: 100%; height: 160px; padding: 16px 20px; }
  .pd-vial-wrap img { object-fit: contain; }
  .pd-vial-wrap svg { width: 80px; height: 110px; }
  .pd-info { padding: 20px; }
}

.cat-pag-wrap {
  padding: 16px 20px 8px;
}
.cat-pag-inner {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.cpag-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 32px; padding: 0 10px;
  border: 1px solid var(--gray-200); border-radius: 2px;
  background: var(--bg); font-family: var(--font-d);
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray-600); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.cpag-btn:hover     { border-color: var(--accent); color: var(--accent); }
.cpag-btn.active    { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cpag-btn.disabled  { color: var(--gray-600); border-color: var(--accent-soft); cursor: default; pointer-events: none; }
.cpag-showall {
  margin-left: auto; font-weight: 600; color: var(--accent); border-color: var(--accent);
}
.cpag-showall:hover { background: var(--accent-soft); color: #fff; }
.cpag-dots          { font-size: 13px; color: var(--gray-400); padding: 0 2px; }
.cpag-info          {
  margin-left: auto; font-family: var(--font-d);
  font-size: 10px; letter-spacing: 1.5px; color: var(--gray-400);
}

.cart-item-promo {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
}
.ci-gratis-badge {
  font-family:var(--font-b);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.ci-price-free {
  color: #16a34a;
  font-weight: 600;
}
.ci-promo-tag {
  font-size: 10px;
  color: #16a34a;
  font-family:var(--font-b);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}
.toast.promo {
  background: #15803d;
}

.vial-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 25%,
    var(--bg) 50%,
    var(--bg) 75%
  );
  background-size: 300% 100%;
  animation: vialShimmer 1.5s ease infinite;
  z-index: 1;
  pointer-events: none;
  transition: opacity .3s ease;
}
@keyframes vialShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-vial-lazy {
  opacity: 0;
  transition: opacity .4s ease;
  position: relative;
  z-index: 2;
}

.card-vial-lazy.vial-loaded {
  opacity: 1;
}
.card-vial-lazy.vial-loaded + .vial-skeleton,
.vial-skeleton:has(+ .card-vial-lazy.vial-loaded) {
  display: none;
}

.card-vial-wrap:has(.vial-loaded) .vial-skeleton {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .product-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .catalog-main { padding: 20px 14px 28px; }
  .catalog-top { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .page-title { font-size: 26px; }
  .catalog-search-wrap { width: 100%; }
  .catalog-search-wrap .search-input { width: 100%; }
  .filters-bar { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .filter-label { display: none; }
  .filter-sel { flex: 1 1 0; min-width: 0; }
  .filter-right { width: 100%; margin-left: 0; }
}

@media (max-width: 1024px) {
  .cart-panel.open { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .65); }
  body.cart-abierto { overflow: hidden; }
}
@media (max-width: 640px) {
  .cart-panel { width: 100%; left: 0; border-left: none; }
}

.ci-promo-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.ci-cambiar-btn {
  font-family:var(--font-b);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  border-radius: 2px;
  padding: 2px 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ci-cambiar-btn:hover {
  background: var(--accent-soft);
}
.ci-del-gratis {
  color: rgba(220,38,38,.4) !important;
}
.ci-del-gratis:hover {
  color: #dc2626 !important;
}

.hot-sale-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: #E24B4A; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px 4px 7px; border-radius: 12px;
  animation: hotsale-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hotsale-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,75,74,.55); }
  50%      { box-shadow: 0 0 12px 3px rgba(226,75,74,.45); }
}

.promo-invitado {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg); border: 1px solid #E24B4A; border-radius: 4px;
  padding: 12px 16px; margin: 0 0 18px; text-decoration: none;
  transition: background .2s ease;
}
.promo-invitado:hover { background: var(--bg); }
.promo-invitado__texto { display: flex; align-items: center; gap: 12px; color: #fff; }
.promo-invitado__texto strong { display: block; font-size: 15px; letter-spacing: .5px; }
.promo-invitado__sub { display: block; font-size: 12.5px; color: #F7C1C1; margin-top: 2px; }
.promo-invitado__cta {
  white-space: nowrap; background: #E24B4A; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  padding: 9px 16px; border-radius: 4px;
}
.promo-invitado:hover .promo-invitado__cta { background: #c93a39; }
@media (max-width: 640px) {
  .promo-invitado { flex-direction: column; align-items: stretch; }
  .promo-invitado__cta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hot-sale-badge { animation: none; }
}

html.js-anim .product-row:not(.is-revealed) { opacity: 0; }
.product-row.anim-in {
  animation: card-in .55s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--anim-delay, 0ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .product-row {
    transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .7, .2, 1);
  }
  .product-row:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5),
                0 0 0 1px var(--accent-soft),
                0 0 24px var(--accent-soft);
  }
}

.fly-clone {
  position: fixed; z-index: 10000; margin: 0;
  pointer-events: none; object-fit: contain; max-width: none;
  transform-origin: center center; will-change: transform, opacity;
  filter: drop-shadow(0 0 10px var(--accent-soft));
}
.cart-badge.bump { animation: badge-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes badge-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.7); }
  100% { transform: scale(1); }
}
.cart-btn.bump { animation: cart-shake .5s ease-in-out; }
@keyframes cart-shake {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-14deg); }
  50%      { transform: rotate(10deg); }
  75%      { transform: rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .product-row.anim-in, .cart-badge.bump, .cart-btn.bump { animation: none; }
  .product-row:hover { transform: none; }
}

html, body { background: var(--bg); color: var(--ink); }
.main-wrap { background: var(--bg); }
.catalog-main { padding: 36px 40px 0; min-width: 0; }

.catalog-top { align-items: flex-end; margin-bottom: 26px; flex-wrap: wrap; }
.catalog-heading { max-width: 68ch; }
.page-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.05; letter-spacing: 0; color: var(--ink); }
.page-subtitle { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.search-input {
  width: 300px; height: 48px; border: 0; border-radius: var(--r-md); padding: 0 42px 0 16px;
  background: var(--bg); box-shadow: var(--sh-pressed-sm); font-size: 15px; color: var(--ink);
}
.search-input:focus { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
.search-input::placeholder { color: var(--muted); }
.search-icon { right: 14px; color: var(--muted); }

.filters-bar { border-bottom: 0; padding-bottom: 0; margin-bottom: 30px; gap: 14px; flex-wrap: wrap; }
.filter-label { color: var(--muted); font-size: 14px; }
.filter-sel {
  height: 44px; border: 0; border-radius: var(--r-pill); padding: 0 38px 0 18px;
  background-color: var(--bg); box-shadow: var(--sh-raised-sm); font-size: 14px; color: var(--ink);
  background-position: right 14px center;
}
.filter-sel:focus { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
.prod-count { color: var(--muted); font-size: 14px; }

.product-list { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px; padding: 6px 4px 24px; }
.product-row {
  background: var(--bg); border: 0; border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--sh-raised); overflow: visible;
}
.product-row:hover { border-color: transparent; box-shadow: var(--sh-raised-lg); }
@media (hover: hover) and (pointer: fine) {
  .product-row { transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
  .product-row:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--sh-raised-lg); }
}
.card-vial-wrap {
  background: var(--bg); box-shadow: var(--sh-pressed); border-radius: var(--r-md);
  padding: 8px; aspect-ratio: 3 / 5; max-height: none;
}
.card-vial-wrap .card-vial-svg2 { object-fit: cover; object-position: 50% 50%; }
.product-row:hover .card-vial-wrap { background: var(--bg); }
.card-vial-svg2 { border-radius: 10px; background: radial-gradient(ellipse at 50% 42%, #1b1f26 0%, #08090B 70%); }
.card-vial-wrap:hover .card-vial-svg2 { transform: scale(1.03); filter: none; }
.card-vial-glow { display: none; }
.vial-skeleton { inset: 8px; border-radius: 10px; background: linear-gradient(90deg, #0b0d10 25%, #1a1e25 50%, #0b0d10 75%); background-size: 300% 100%; }
.card-frio-badge { top: 16px; right: 16px; background: var(--bg); color: var(--accent); box-shadow: var(--sh-raised-sm); border-radius: var(--r-pill); padding: 3px 9px; }

.card-body { padding: 14px 4px 2px; gap: 10px; }
.card-categoria { font-family: var(--font-b); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.card-nombre { font-family: var(--font-d); font-size: 23px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.card-nombre:hover { color: var(--accent); }
.card-select {
  height: 44px; border: 0; border-radius: var(--r-md); padding: 0 34px 0 14px;
  background-color: var(--bg); box-shadow: var(--sh-pressed-sm); color: var(--ink); font-size: 14px;
  background-position: right 12px center;
}
.card-select:focus { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.card-price-row { gap: 8px 10px; align-items: baseline; }
.card-price { font-family: var(--font-d); font-size: 27px; font-weight: 700; color: var(--accent); }
.card-price-original { color: var(--muted); font-size: 13px; }
.card-price-tier { font-family: var(--font-b); letter-spacing: 0; text-transform: none; color: var(--muted); }
.card-stock-ok, .card-stock-no {
  font-family: var(--font-b); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  background: transparent; border: 0; padding: 0; margin-left: auto;
}
.card-stock-ok { color: var(--ok); }
.card-stock-no { color: var(--danger); }
.card-price-locked__link, .pd-pres-price-locked {
  font-family: var(--font-b); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--accent); border-bottom: 1px solid var(--accent-soft);
}
.btn-view {
  width: 100%; height: 46px; margin-top: 2px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 15px var(--font-b); box-shadow: var(--sh-btn);
  transition: transform .15s var(--ease), filter .2s var(--ease), background-color .4s var(--ease);
}
.btn-view:hover { background: var(--accent-hover); filter: none; }
.btn-view:active { transform: translateY(1px); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, .25); }

.catalog-notice {
  margin: 10px 4px 0; padding: 22px 26px; border-radius: var(--r-lg);
  background: var(--bg); box-shadow: var(--sh-pressed); color: var(--muted); font-size: 13.5px; line-height: 1.65;
}
.catalog-notice h2 { font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.catalog-notice p { max-width: 110ch; }
.catalog-main .site-footer { padding-left: 4px; padding-right: 4px; margin-top: 28px; }

.cpag-btn {
  height: 38px; min-width: 38px; border: 0; border-radius: var(--r-pill); background: var(--bg);
  box-shadow: var(--sh-raised-sm); color: var(--ink); font: 500 14px var(--font-b); letter-spacing: 0;
}
.cpag-btn:hover { color: var(--accent); border-color: transparent; }
.cpag-btn.active { box-shadow: var(--sh-pressed-sm); color: var(--accent); background: var(--bg); border-color: transparent; }
.cpag-btn.disabled { color: var(--muted); opacity: .5; box-shadow: none; }
.cpag-showall { color: var(--accent); border: 0; }
.cpag-showall:hover { background: var(--bg); color: var(--accent); }
.cpag-info { font-family: var(--font-b); letter-spacing: 0; color: var(--muted); }

.cart-panel { background: var(--bg); border-left: 0; box-shadow: -12px 0 28px -14px var(--d); }
.cart-header { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); padding: 20px 22px 16px; }
.cart-title { font-family: var(--font-d); font-size: 25px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.cart-close, .coa-close-btn, .dir-modal-close, .prod-detail-close {
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--ink); font-size: 16px;
}
.cart-close:hover, .coa-close-btn:hover, .dir-modal-close:hover, .prod-detail-close:hover { color: var(--accent); background: var(--bg); }
.cart-close:active, .coa-close-btn:active, .dir-modal-close:active, .prod-detail-close:active { box-shadow: var(--sh-pressed-sm); }
.cart-country { background: transparent; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); font-family: var(--font-b); font-size: 13px; letter-spacing: 0; color: var(--muted); padding: 10px 22px; }
.cart-items { padding: 14px 16px; }
.cart-item { margin-bottom: 12px; padding: 12px 14px; border-bottom: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-pressed-sm); }
.cart-item:hover { background: var(--bg); }
.ci-name { color: var(--ink); font-weight: 600; font-size: 14px; }
.ci-pres, .ci-sku { color: var(--muted); font-family: var(--font-b); letter-spacing: 0; }
.ci-qty-wrap { border: 0; border-radius: var(--r-pill); padding: 3px; gap: 4px; background: var(--bg); box-shadow: var(--sh-pressed-sm); }
.ci-qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--ink); }
.ci-qty-btn:hover { background: var(--bg); color: var(--accent); }
.ci-qty-btn:active { box-shadow: var(--sh-pressed-sm); }
.ci-qty, .ci-price { color: var(--ink); }
.ci-del { color: var(--muted); }
.cart-empty { color: var(--muted); }
.cart-footer { background: var(--bg); border-top: 0; box-shadow: inset 0 1px 0 var(--line); padding: 18px 22px; }
.cart-total-lbl { color: var(--muted); }
.cart-total-val { color: var(--ink); }
.cart-grand-total-row { border-top: 0; box-shadow: inset 0 1px 0 var(--line); padding-top: 12px; }
.cart-grand-total-row .cart-total-val { font-family: var(--font-d); font-size: 28px; }
.cart-notes { border: 0; border-radius: var(--r-md); padding: 10px 12px; background: var(--bg); box-shadow: var(--sh-pressed-sm); color: var(--ink); }
.cart-notes:focus { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.btn-confirm {
  height: 50px; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent);
  font: 600 16px var(--font-b); letter-spacing: 0; text-transform: none; box-shadow: var(--sh-btn);
}
.btn-confirm:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); filter: brightness(1.06); }
.btn-confirm:disabled { background: var(--bg); color: var(--muted); box-shadow: var(--sh-pressed-sm); border: 0; }
.btn-clear { height: 42px; border: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--muted); font: 500 14px var(--font-b); letter-spacing: 0; text-transform: none; }
.btn-clear:hover { color: var(--ink); }

.cart-item-promo { background: var(--bg); border-left: 0; box-shadow: var(--sh-pressed-sm), inset 3px 0 0 var(--ok); }
.ci-gratis-badge { background: var(--ok-bg); color: var(--ok); font-family: var(--font-b); letter-spacing: 0; text-transform: none; border-radius: var(--r-pill); }
.ci-price-free { color: var(--ok); }
.ci-promo-tag { color: var(--ok); font-family: var(--font-b); letter-spacing: 0; text-transform: none; }
.ci-cambiar-btn { border: 0; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--accent); font-family: var(--font-b); letter-spacing: 0; text-transform: none; font-size: 12px; padding: 4px 10px; }

.toast { background: var(--bg); color: var(--ink); border: 0; border-radius: var(--r-md); box-shadow: var(--sh-raised-lg); font: 500 14px var(--font-b); padding: 14px 22px; }
.toast.success, .toast.promo { background: var(--bg); color: var(--ok); }
.toast.error { background: var(--bg); color: var(--danger); }

.coa-overlay, .dir-overlay, .prod-overlay { background: var(--overlay); backdrop-filter: blur(4px); }
.coa-modal, .dir-modal, .prod-detail-card { background: var(--bg); border: 0; border-radius: 24px; box-shadow: var(--sh-raised-lg); }
.coa-modal-header, .dir-modal-header { background: transparent; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.coa-modal-title, .dir-modal-title { font-family: var(--font-d); font-size: 21px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.coa-download-btn { border: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--accent); font: 600 13px var(--font-b); letter-spacing: 0; text-transform: none; padding: 8px 14px; }
.coa-download-btn:hover { background: var(--bg); color: var(--accent); }
.coa-loading { background: var(--bg); color: var(--muted); }
.coa-spinner { border-color: var(--line); border-top-color: var(--accent); }

.pd-vial-wrap { margin: 16px 0 16px 16px; border-radius: 18px; background: radial-gradient(ellipse at 50% 42%, #1b1f26 0%, #08090B 72%); box-shadow: var(--sh-pressed); }
.pd-vial-bg { display: none; }
.pd-info { padding: 28px; }
.pd-categoria { font-family: var(--font-b); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pd-nombre { font-family: var(--font-d); font-size: 32px; font-weight: 700; color: var(--ink); }
.pd-desc { color: var(--muted); font-size: 14px; }
.pd-verify { background: var(--bg); box-shadow: var(--sh-pressed-sm); border-radius: var(--r-md); padding: 12px 14px; }
.pd-verify-badge { background: var(--accent-soft); color: var(--accent); font-family: var(--font-b); letter-spacing: 0; text-transform: none; border-radius: var(--r-pill); }
.pd-verify-col-title { color: var(--ink); }
.pd-verify-sub, .pd-verify-steps li { color: var(--muted); }
.pd-verify-steps li::before, .card-verify-mini { background: var(--accent-soft); color: var(--accent); font-family: var(--font-b); }
.pd-badge { font-family: var(--font-b); letter-spacing: 0; text-transform: none; border-radius: var(--r-pill); }
.pd-pres-title { font-family: var(--font-b); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); border-bottom: 0; }
.pd-pres-list { gap: 10px; }
.pd-pres-item { border: 0; border-radius: var(--r-md); padding: 12px 14px; background: var(--bg); box-shadow: var(--sh-raised-sm); }
.pd-pres-item:hover { background: var(--bg); border-color: transparent; }
.pd-pres-item.active { background: var(--bg); box-shadow: var(--sh-pressed-sm); }
.pd-pres-radio { border-color: var(--gray-300); }
.pd-pres-name { color: var(--ink); font-weight: 600; font-size: 14px; }
.pd-pres-sub { color: var(--muted); }
.pd-pres-price { font-family: var(--font-d); font-size: 21px; color: var(--ink); }
.pd-pres-price.promo { color: var(--accent); }
.pd-pres-stock-ok { color: var(--ok); }
.pd-pres-stock-no { color: var(--danger); }
.pd-actions { border-top: 0; box-shadow: inset 0 1px 0 var(--line); gap: 12px; }
.pd-qty { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 4px; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--sh-pressed-sm); }
.pd-qty-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--ink); font-size: 18px; line-height: 1; }
.pd-qty-btn:active { box-shadow: var(--sh-pressed-sm); }
.pd-qty-input { width: 52px; text-align: center; border: 0; background: transparent; color: var(--ink); font: 600 16px var(--font-b); -moz-appearance: textfield; }
.pd-qty-input::-webkit-inner-spin-button, .pd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pd-btn-add {
  height: 50px; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent);
  font: 600 16px var(--font-b); letter-spacing: 0; text-transform: none; box-shadow: var(--sh-btn);
}
.pd-btn-add:hover { background: var(--accent); border-color: transparent; filter: brightness(1.06); }
.pd-btn-add:disabled { background: var(--bg); color: var(--muted); box-shadow: var(--sh-pressed-sm); filter: none; }
.pd-btn-coa { height: 44px; border: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--ink); font: 500 14px var(--font-b); letter-spacing: 0; text-transform: none; }
.pd-btn-coa:hover { color: var(--accent); border-color: transparent; }
@media (max-width: 760px) { .pd-vial-wrap { margin: 16px 16px 0; width: auto; } }

.dir-section { border: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-pressed-sm); }
.dir-label { background: transparent; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); font-family: var(--font-b); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.dir-card { border-bottom: 0; }
.dir-card:hover, .dir-card.selected { background: var(--accent-soft); }
.dir-card__alias { color: var(--ink); }
.dir-card__dest, .dir-card__addr { color: var(--muted); }
.dir-card__default { border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); letter-spacing: 0; text-transform: none; font-size: 11px; padding: 2px 8px; }
.btn-new-dir { border-top: 0; box-shadow: inset 0 1px 0 var(--line); color: var(--accent); font-family: var(--font-b); font-size: 14px; letter-spacing: 0; text-transform: none; }
.btn-new-dir:hover { background: var(--accent-soft); }
.dir-form-field label { font-family: var(--font-b); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.dir-form-field input, .dir-form-field textarea { border: 0; border-radius: var(--r-md); padding: 12px 14px; background: var(--bg); box-shadow: var(--sh-pressed-sm); color: var(--ink); font-size: 15px; }
.dir-form-field input:focus, .dir-form-field textarea:focus { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.dir-form-actions { border-top: 0; box-shadow: inset 0 1px 0 var(--line); }
.ciudad-sugerencias { background: var(--bg); border: 0; border-radius: var(--r-md); box-shadow: var(--sh-raised); }
.ciudad-sugerencias .cs-item:hover, .ciudad-sugerencias .cs-item.activo { background: var(--accent-soft); }
.dir-btn-cancel { border: 0; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-raised-sm); color: var(--ink); font: 500 14px var(--font-b); letter-spacing: 0; text-transform: none; }
.dir-btn-save { border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); font: 600 14px var(--font-b); letter-spacing: 0; text-transform: none; box-shadow: var(--sh-btn); }
.dir-btn-save:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.06); }
.dir-btn-save:disabled { background: var(--bg); color: var(--muted); box-shadow: var(--sh-pressed-sm); }

.promo-invitado { background: var(--bg); border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-raised); }
.promo-invitado:hover { background: var(--bg); }
.promo-invitado__texto { color: var(--ink); }
.promo-invitado__sub { color: var(--muted); }
.promo-invitado__cta { background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); }
.promo-invitado:hover .promo-invitado__cta { background: var(--accent); filter: brightness(1.06); }

body .premio-overlay { background: var(--overlay); }
body .premio-modal { background: var(--bg); border: 0; border-radius: 24px; box-shadow: var(--sh-raised-lg); color: var(--ink); }
body .premio-modal__header, body .premio-modal__footer { background: transparent; border-color: var(--line); }
body .premio-modal__title { font-family: var(--font-d); letter-spacing: 0; text-transform: none; color: var(--ink); }
body .premio-modal__hint, body .premio-opcion__pres, body .premio-opcion__sku { color: var(--muted); }
body .premio-opcion { background: var(--bg); border-color: transparent; border-radius: var(--r-md); box-shadow: var(--sh-raised-sm); color: var(--ink); }
body .premio-btn-confirm { background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--r-md); }
body .premio-btn-skip { background: var(--bg); color: var(--ink); border: 0; border-radius: var(--r-md); box-shadow: var(--sh-raised-sm); }
body .gift-banner { background: var(--bg); border: 0; border-radius: var(--r-md); box-shadow: var(--sh-pressed-sm); color: var(--ink); }
body .gift-banner__sub { color: var(--muted); }
body .gift-banner__btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--r-sm); }

.fly-clone { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); border-radius: 10px; }

@media (max-width: 640px) {
  .catalog-main { padding: 20px 14px 0; }
  .search-input { width: 100%; }
  .product-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
  .card-nombre { font-size: 20px; }
  .card-price { font-size: 23px; }
}

a.card-nombre { display: block; text-decoration: none; color: var(--ink); }
a.card-nombre:hover { color: var(--accent); }
a.btn-view { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.cart-aviso { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-pressed-sm); color: var(--muted); font-size: 12px; line-height: 1.55; }
.cart-aviso strong { color: var(--ink); }
