@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --brand-gold: #B8956A;
  --brand-gold-dark: #9A7848;
  --brand-gold-light: #E8D5B5;
  --brand-gold-soft: #F7F0E6;
  --brand-charcoal: #2A2A2A;
  --brand-charcoal-soft: #4A4A4A;
  --bg: #F9F7F4;
  --surface: #FFFFFF;
  --border: #E5DFD4;
  --text: #2A2A2A;
  --text-muted: #6B6560;
  --success: #2D6A4F;
  --danger: #B42318;
  --warn: #B45309;
  --shadow-sm: 0 1px 3px rgba(42, 42, 42, 0.06);
  --shadow: 0 8px 30px rgba(42, 42, 42, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.tienda-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-gold-dark); text-decoration: none; }
a:hover { color: var(--brand-charcoal); }

.tienda-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tienda-header-inner {
  max-width: 1680px; margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 16px 24px; min-height: var(--header-h);
}
.tienda-brand { display: flex; align-items: center; color: inherit; flex-shrink: 0; }
.tienda-brand img { height: 48px; width: auto; }

.tienda-search-wrap { position: relative; width: 100%; max-width: none; min-width: 0; }
.tienda-search-wrap input {
  width: 100%; padding: 12px 18px 12px 46px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); font-family: var(--font); font-size: 15px;
}
.tienda-search-wrap input:focus {
  outline: none; border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2); background: var(--surface);
}
.tienda-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.tienda-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-height: 520px; overflow-y: auto; z-index: 300; display: none;
  padding: 6px;
}
.tienda-search-results.is-open { display: block; }
.tienda-search-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px;
  border: none; color: inherit; width: 100%;
  background: transparent; font-family: var(--font); text-align: left;
  cursor: pointer; border-radius: 10px;
  appearance: none; -webkit-appearance: none;
  transition: background 0.15s;
}
.tienda-search-item + .tienda-search-item {
  margin-top: 2px;
  box-shadow: inset 0 1px 0 rgba(42, 42, 42, 0.14);
}
.tienda-search-item:hover,
.tienda-search-item:focus-visible {
  background: var(--brand-gold-soft);
  box-shadow: none;
}
.tienda-search-item:focus-visible {
  outline: 2px solid var(--brand-gold-light);
  outline-offset: -2px;
}
.tienda-search-item img, .tienda-search-item .ph {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.tienda-search-item .ph {
  background: var(--brand-gold-soft) url('../images/bruma-logo.png') center/65% no-repeat;
  opacity: 0.2;
}
.tienda-search-item .meta { flex: 1; min-width: 0; }
.tienda-search-item .meta strong {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--brand-charcoal);
}
.tienda-search-item .meta span { font-size: 13px; color: var(--text-muted); margin-top: 2px; display: block; }
.tienda-search-item .price {
  font-weight: 700; color: var(--brand-gold-dark); font-size: 1.1rem; flex-shrink: 0;
}
.tienda-search-empty {
  padding: 18px; color: var(--text-muted); font-size: 14px; text-align: center;
}

@media (min-width: 961px) {
  .tienda-search-wrap input {
    padding: 13px 20px 13px 48px;
    font-size: 16px;
  }
  .tienda-search-icon { width: 20px; height: 20px; left: 16px; }
  .tienda-search-results {
    top: calc(100% + 10px);
    padding: 8px;
    max-height: min(760px, 72vh);
  }
  .tienda-search-item {
    gap: 18px;
    padding: 14px 18px;
    border-radius: 12px;
  }
  .tienda-search-item img, .tienda-search-item .ph {
    width: 80px;
    height: 80px;
    border-radius: 12px;
  }
  .tienda-search-item .meta strong { font-size: 16px; }
  .tienda-search-item .meta span { font-size: 14px; margin-top: 4px; }
  .tienda-search-item .price { font-size: 1.2rem; }
}

.tienda-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tienda-nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--brand-charcoal);
}
.tienda-nav-btn:hover { border-color: var(--brand-gold); background: var(--brand-gold-soft); text-decoration: none; }
.tienda-nav-btn.is-active { background: var(--brand-gold-soft); border-color: var(--brand-gold); }
.tienda-nav-btn--primary { background: var(--brand-charcoal); border-color: var(--brand-charcoal); color: #fff; }
.tienda-nav-btn--primary:hover { background: #1a1a1a; color: #fff; }
.cart-badge {
  background: var(--brand-gold); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}

.tienda-hamburger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.tienda-hamburger span { display: block; width: 20px; height: 2px; background: var(--brand-charcoal); transition: 0.25s; }
.tienda-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tienda-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tienda-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tienda-drawer-overlay {
  position: fixed; inset: 0; background: rgba(42,42,42,0.4); z-index: 400;
  opacity: 0; visibility: hidden; transition: 0.28s;
}
.tienda-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.tienda-drawer {
  position: fixed; top: 0; right: 0; width: min(320px, 88vw); height: 100vh;
  background: var(--surface); z-index: 401; transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  padding: 24px 20px; display: flex; flex-direction: column;
}
.tienda-drawer.is-open { transform: translateX(0); }
.tienda-drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.tienda-drawer-nav a { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; color: var(--brand-charcoal); }
.tienda-drawer-nav a:hover { background: var(--brand-gold-soft); }

.tienda-main {
  flex: 1; width: 100%; max-width: 1680px; margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 48px;
}

.tienda-catalog-head { margin-bottom: 18px; }
.tienda-catalog-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--brand-charcoal); line-height: 1.15; margin-bottom: 4px;
}
.tienda-catalog-count { font-size: 14px; color: var(--text-muted); }

.tienda-toolbar {
  margin-bottom: 16px; padding: 0;
  background: transparent; border: none; box-shadow: none;
}
.tienda-filters-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 768px) {
  .tienda-filters-wrap {
    background: linear-gradient(180deg, var(--brand-gold-soft) 0%, var(--surface) 100%);
    border-color: var(--brand-gold-light);
  }
}
.tienda-filters-summary {
  display: none; list-style: none; cursor: pointer;
  padding: 14px 16px; font-weight: 600; font-size: 14px;
  color: var(--brand-charcoal); align-items: center; gap: 10px;
  border-bottom: 1px solid transparent;
}
.tienda-filters-summary::-webkit-details-marker { display: none; }
.tienda-filters-wrap[open] .tienda-filters-summary { border-bottom-color: var(--border); }
.tienda-filters-summary-icon { color: var(--brand-gold-dark); display: flex; }
.tienda-filters-summary-text { flex: 1; }
.tienda-filters-summary-count {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  display: none;
}
@media (max-width: 767px) {
  .tienda-filters-summary-count { display: inline; }
  .tienda-catalog-head { display: none; }
}
.tienda-filters-active-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--brand-gold-soft); color: var(--brand-gold-dark);
  padding: 3px 8px; border-radius: 999px;
}
.tienda-filters-chevron {
  width: 8px; height: 8px; border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
  transition: transform 0.2s; margin-top: -3px;
}
.tienda-filters-wrap[open] .tienda-filters-chevron { transform: rotate(-135deg); margin-top: 3px; }
.tienda-toolbar-grid {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 14px 18px; padding: 16px 20px;
}
@media (min-width: 768px) {
  .tienda-toolbar-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr 0.55fr;
    gap: 12px 14px; padding: 14px 18px; align-items: end;
  }
  .tienda-toolbar-field--compact { max-width: none; }
}
.tienda-toolbar-field { min-width: 0; }
.tienda-toolbar-field label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; display: block;
}
.tienda-toolbar-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 14px;
  background: var(--surface); min-width: 160px;
  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='%236B6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.tienda-filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center;
}
.tienda-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--brand-gold-soft); color: var(--brand-charcoal);
  border: 1px solid var(--brand-gold-light); text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.tienda-filter-chip:hover {
  background: var(--brand-gold-light); border-color: var(--brand-gold); color: var(--brand-charcoal);
}
.tienda-filter-chip-x { font-size: 15px; line-height: 1; color: var(--brand-gold-dark); }
.tienda-filter-chip--clear {
  background: transparent; border-style: dashed; color: var(--text-muted);
}
.tienda-filter-chip--clear:hover { background: var(--surface); color: var(--brand-charcoal); }

@media (max-width: 767px) {
  .tienda-filters-summary { display: flex; }
  .tienda-toolbar-grid {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    padding: 16px;
  }
  .tienda-toolbar-field--compact { max-width: 160px; }
  .tienda-toolbar-field select {
    min-width: 0; min-height: 44px; font-size: 15px;
  }
}

.tienda-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 768px) { .tienda-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .tienda-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1600px) { .tienda-grid { grid-template-columns: repeat(5, 1fr); } }

.tienda-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s;
}
.tienda-card:hover {
  border-color: var(--brand-gold-light);
  box-shadow: 0 10px 28px rgba(184, 149, 106, 0.2);
  transform: translateY(-3px);
}
.tienda-card--clickable { cursor: pointer; }
.tienda-card--clickable:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.tienda-card--clickable.is-loading { opacity: 0.7; pointer-events: none; }
.tienda-card.out { opacity: 0.78; }
.tienda-card.out:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184, 149, 106, 0.12); }
.tienda-card-image { position: relative; aspect-ratio: 1; background: var(--brand-gold-soft); overflow: hidden; }
.tienda-card-image img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-logo {
  width: 100%; height: 100%;
  background: var(--brand-gold-soft) url('../images/bruma-logo.png') center/55% no-repeat;
  opacity: 0.12;
}
.tienda-card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.tienda-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.tienda-badge--promo { background: var(--warn); color: #fff; }
.tienda-badge--last { background: var(--danger); color: #fff; }
.tienda-badge--virtual { background: var(--brand-gold-dark, #8b6914); color: #fff; }
.tienda-card-body { padding: 16px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tienda-card .name {
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--brand-charcoal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.tienda-card .sku {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.tienda-card .price {
  font-size: 1.35rem; font-weight: 700; color: var(--brand-gold-dark);
  margin-top: auto; letter-spacing: -0.02em;
}
.tienda-card .stock-line { font-size: 12px; color: var(--text-muted); }
.tienda-card-actions { padding: 0 16px 16px; margin-top: auto; }
.btn-tienda {
  width: 100%; padding: 12px 14px; border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
  min-height: 44px; transition: filter 0.15s, transform 0.15s;
}
.btn-tienda--gold {
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dark)); color: #fff;
  box-shadow: 0 2px 8px rgba(154, 120, 72, 0.25);
}
.btn-tienda--gold:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-tienda--muted {
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border); cursor: not-allowed;
}
.btn-tienda:disabled { cursor: not-allowed; pointer-events: none; }
a.btn-tienda { text-decoration: none; display: inline-block; text-align: center; }
a.btn-tienda--gold { color: #fff; }

.pagination-wrap { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.pagination-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pagination {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; width: 100%;
}
.pagination-nav {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
}
.pagination-pages {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; width: 100%; max-width: 100%;
}
.pagination-btn, .pagination-page {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--brand-charcoal);
  text-decoration: none;
}
.pagination-page.is-active { background: var(--brand-charcoal); color: #fff; border-color: var(--brand-charcoal); }
.pagination-btn.disabled { opacity: 0.4; pointer-events: none; }
.pagination-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 40px; color: var(--text-muted); font-size: 14px;
}
.pagination-summary { text-align: center; font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }

.tienda-page-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--brand-charcoal); margin-bottom: 20px;
}
.tienda-card-title {
  font-size: 1.1rem; font-weight: 600; color: var(--brand-charcoal);
  margin-bottom: 20px;
}
.tienda-loading-inline {
  text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 14px;
}
.tienda-cart-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; width: 100%;
}
@media (max-width: 900px) { .tienda-cart-layout { grid-template-columns: 1fr; } }
.tienda-cart-layout.is-syncing { opacity: 0.65; pointer-events: none; transition: opacity 0.15s; }
.tienda-cart-lines { width: 100%; }
.tienda-cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  width: 100%; padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
}
.tienda-cart-line img, .tienda-cart-line .ph {
  width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; display: block;
}
.tienda-cart-line .ph {
  background: var(--brand-gold-soft) url('../images/bruma-logo.png') center/70% no-repeat; opacity: 0.12;
}
.tienda-cart-line-info { min-width: 0; }
.tienda-cart-line-info strong {
  display: block; font-size: 14px; line-height: 1.35; color: var(--brand-charcoal);
}
.tienda-cart-line-sku { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tienda-cart-line-price { text-align: right; flex-shrink: 0; white-space: nowrap; }
.tienda-cart-line-total { font-weight: 700; font-size: 1rem; color: var(--brand-gold-dark); }
.tienda-cart-line-unit { font-size: 12px; color: var(--text-muted); }
.tienda-qty-control {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
}
.tienda-qty-control button {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); cursor: pointer; flex-shrink: 0;
}
.tienda-qty-control input {
  width: 48px; text-align: center; padding: 6px;
  border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0;
}
.tienda-cart-remove {
  display: block; margin-top: 6px; border: none; background: none; color: var(--danger);
  cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; text-align: left;
}
.tienda-cart-summary {
  position: sticky; top: calc(var(--header-h) + 16px); align-self: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.tienda-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; width: 100%; }
.tienda-summary-row.total {
  border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px;
  font-weight: 700; font-size: 1.2rem;
}
.tienda-summary-row.discount { color: var(--success); }
.tienda-summary-items { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tienda-summary-item {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 6px 0; color: var(--text-muted);
}
.tienda-summary-item strong { color: var(--brand-charcoal); font-weight: 600; }

.tienda-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; width: 100%; }
@media (max-width: 900px) { .tienda-checkout-grid { grid-template-columns: 1fr; } }
.tienda-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.tienda-form-error {
  background: #FEE4E2; color: var(--danger); padding: 12px 14px;
  border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; width: 100%;
}
.tienda-field { margin-bottom: 16px; width: 100%; }
.tienda-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.tienda-field input, .tienda-field select, .tienda-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 15px;
  min-height: 46px;
}
.tienda-field textarea { min-height: 88px; resize: vertical; }
.tienda-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
@media (max-width: 600px) { .tienda-form-grid { grid-template-columns: 1fr; } }
.tienda-form-card .btn-tienda,
.tienda-cart-summary .btn-tienda { width: 100%; }
.tienda-checkout-note {
  font-size: 12px; color: var(--text-muted); margin-top: 16px;
  line-height: 1.5; width: 100%;
}

.order-ticket {
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left; max-width: 360px; margin: 0 auto 20px; font-size: 13px;
}
.order-ticket-head { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.order-ticket-head img { height: 36px; margin-bottom: 8px; }
.order-ticket-line { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.order-ticket-total { border-top: 2px solid var(--brand-charcoal); margin-top: 10px; padding-top: 10px; font-weight: 700; }
@media print {
  body * { visibility: hidden !important; }
  #order-ticket, #order-ticket * { visibility: visible !important; }
  #order-ticket { position: fixed; left: 0; top: 0; width: 80mm; margin: 0; padding: 8mm; border: none; }
  .no-print { display: none !important; }
}

.tienda-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: auto; padding: 28px clamp(16px, 3vw, 40px) 22px;
}
.tienda-footer-inner {
  max-width: 1680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
}
.tienda-footer-copy { font-size: 13px; color: var(--text-muted); }
.tienda-footer-credits { font-size: 12px; color: var(--text-muted); }
.tienda-pendvlo-link {
  color: #e37e01; font-weight: 700; text-decoration: none;
}
.tienda-pendvlo-link:hover { color: #c96d01; text-decoration: underline; }
.tienda-fb-link {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: #1877F2; color: #fff;
}
.tienda-fb-link svg { width: 20px; height: 20px; fill: currentColor; }

.tienda-wa-bubble {
  position: fixed; bottom: 22px; right: 22px; z-index: 480;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.tienda-wa-bubble:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.tienda-wa-bubble-icon { display: flex; width: 30px; height: 30px; }
.tienda-wa-bubble-icon svg { width: 100%; height: 100%; }
.tienda-wa-bubble-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0.45;
  animation: tienda-wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes tienda-wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 640px) {
  .tienda-wa-bubble { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .tienda-wa-bubble-icon { width: 28px; height: 28px; }
}

.tienda-toast {
  position: fixed; bottom: 96px; right: 22px; left: 22px; z-index: 500;
  max-width: 360px; margin-left: auto;
  background: var(--brand-charcoal); color: #fff;
  padding: 14px 18px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(42, 42, 42, 0.22);
  transform: translateY(24px); opacity: 0; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
}
.tienda-toast.is-visible { transform: translateY(0); opacity: 1; }
.tienda-toast.success {
  background: var(--surface); color: var(--brand-charcoal);
  border: 1px solid var(--brand-gold-light);
  box-shadow: 0 12px 36px rgba(184, 149, 106, 0.22);
}
.tienda-toast.error { background: var(--danger); border: none; color: #fff; }
.tienda-toast-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.tienda-toast.success .tienda-toast-icon {
  background: var(--brand-gold-soft); color: var(--brand-gold-dark);
}
.tienda-toast.error .tienda-toast-icon { background: rgba(255,255,255,0.2); }
.tienda-toast-text { flex: 1; line-height: 1.35; }
.tienda-empty { text-align: center; padding: 48px; color: var(--text-muted); }

.tienda-modal-overlay {
  position: fixed; inset: 0; background: rgba(42, 42, 42, 0.5); z-index: 600;
  opacity: 0; visibility: hidden; transition: 0.25s;
}
.tienda-modal-overlay.is-open { opacity: 1; visibility: visible; }
.tienda-product-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.96);
  width: min(720px, 94vw); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); z-index: 601;
  opacity: 0; visibility: hidden; transition: 0.25s;
  padding: 28px;
}
.tienda-product-modal.is-open {
  opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1);
}
.tienda-modal-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
  border: none; background: var(--bg); border-radius: 50%; font-size: 22px;
  line-height: 1; cursor: pointer; color: var(--text-muted);
}
.tienda-modal-close:hover { background: var(--brand-gold-soft); color: var(--brand-charcoal); }
.tienda-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tienda-modal-image {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--brand-gold-soft);
}
.tienda-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.tienda-modal-image .placeholder-logo { min-height: 100%; }
.tienda-product-modal.is-loading .tienda-modal-body > *:not(.tienda-modal-skeleton-wrap) { display: none !important; }
.tienda-modal-skeleton-wrap { display: none; }
.tienda-product-modal.is-loading .tienda-modal-skeleton-wrap { display: block; }
.tienda-modal-skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--brand-gold-soft) 50%, var(--bg) 75%);
  background-size: 200% 100%; animation: tienda-shimmer 1.2s infinite;
  border-radius: 8px;
}
.tienda-modal-image .tienda-modal-skeleton { width: 100%; aspect-ratio: 1; }
.tienda-skel-line { display: block; height: 14px; margin-bottom: 10px; border-radius: 6px; }
.tienda-skel-line--lg { height: 22px; width: 70%; }
.tienda-skel-line--price { height: 28px; width: 40%; margin-top: 16px; }
.tienda-skel-btn { height: 44px; width: 100%; margin-top: 20px; border-radius: var(--radius); }
@keyframes tienda-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tienda-modal-meta { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tienda-modal-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--brand-charcoal); margin: 8px 0 12px; line-height: 1.2;
}
.tienda-modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tienda-modal-price { font-size: 1.75rem; font-weight: 700; color: var(--brand-gold-dark); margin-bottom: 8px; }
.tienda-modal-stock { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.tienda-modal-actions { display: flex; gap: 12px; align-items: flex-end; }
.tienda-modal-actions .btn-tienda { flex: 1; }
.tienda-modal-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; }

@media (max-width: 960px) {
  .tienda-header-inner { grid-template-columns: auto 1fr auto; }
  .tienda-header .tienda-search-wrap { display: none; }
  .tienda-header-actions .tienda-nav-btn:not(.tienda-nav-btn--cart) { display: none; }
  .tienda-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .tienda-product-detail { grid-template-columns: 1fr !important; }
  .tienda-modal-grid { grid-template-columns: 1fr; }
  .tienda-product-modal { padding: 20px 16px; }

  .pagination-wrap { padding-top: 20px; margin-top: 28px; }
  .pagination-summary { font-size: 12px; margin-bottom: 14px; }
  .pagination-nav {
    justify-content: space-between;
    max-width: 300px; margin: 0 auto;
  }
  .pagination-nav .pagination-btn { flex: 1; max-width: 140px; }
  .pagination-pages { gap: 5px; padding: 0 4px; }
  .pagination-btn, .pagination-page {
    min-width: 34px; height: 34px; padding: 0 8px; font-size: 12px;
  }
  .pagination-ellipsis { min-width: 20px; height: 34px; }

  .tienda-footer { padding: 24px 16px 20px; }
  .tienda-footer-copy, .tienda-footer-credits { font-size: 11px; }
}
