/* =========================
   Prepago y Más — Modern UI
   ========================= */

/* ----- Base / Reset ----- */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  /* Professional palette */
  --bg: #0b1020;
  --bg2: #0f172a;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);

  --primary: #22c55e;     /* emerald */
  --primary2: #16a34a;
  --accent: #60a5fa;      /* blue */
  --warn: #ffb020;        /* amber */
  --danger: #ef4444;      /* red */
  --hot: #ff6b2c;         /* rose */
  --shadow: 0 14px 50px rgba(0,0,0,.45);

  --radius: 18px;
  --radius2: 24px;

  --container: 1120px;
}

html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 5%, rgba(96,165,250,.25), transparent 60%),
    radial-gradient(800px 500px at 90% 15%, rgba(34,197,94,.22), transparent 62%),
    radial-gradient(700px 450px at 50% 90%, rgba(251,113,133,.16), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.45;
  padding-top: 44px;  /* topbar */
}

main{
  padding-top: 72px;  /* header (ajusta) */
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, select{ font: inherit; }

/* ----- Utilities ----- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.sep{ opacity: .6; margin: 0 6px; }

/* ----- Topbar ----- */
/* TOPBAR fijo */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(15,23,42,.60);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.topbar__left{ display:flex; align-items:center; gap:10px; }
.topbar__hint{ color: var(--muted); font-size: 13px; }
.topbar__right{ display:flex; gap: 14px; }
.topbar__link{
  font-size: 13px;
  color: var(--muted);
}
.topbar__link:hover{ color: var(--text); }

/* ----- Header ----- */
/* HEADER fijo debajo de la topbar */
.header{
  position: fixed;
  top: 44px; left: 0; right: 0;  /* 44px = alto de topbar (ajústalo) */
  z-index: 1090;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(15,23,42,.60);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(96,165,250,.95), rgba(34,197,94,.90));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  font-weight: 900;
  letter-spacing: .5px;
}
.brand__name{ font-weight: 800; letter-spacing: .2px; }
.brand__tagline{ font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----- Buttons ----- */
.btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
}
.btn:active{ transform: translateY(0px); }
.btn:disabled{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary{
  border-color: rgba(34,197,94,.45);
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(22,163,74,.92));
  color: #061012;
  font-weight: 800;
}
.btn--primary:hover{
  border-color: rgba(34,197,94,.70);
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(22,163,74,1));
}
.btn--ghost{
  background: rgba(255,255,255,.04);
}

.pill{
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.pill--soft{
  background: rgba(96,165,250,.10);
  border-color: rgba(96,165,250,.25);
  color: rgba(255,255,255,.85);
}

/* ----- Badges ----- */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
}
.badge--safe{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.12);
}
.badge--star{
  border-color: rgba(96,165,250,.25);
  background: rgba(96,165,250,.14);
}
.badge--hot{
  border-color: rgba(251,113,133,.30);
  background: rgba(251,113,133,.14);
}
.badge--muted{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);
}

.badge-row{ display:flex; gap: 8px; flex-wrap: wrap; }

/* ----- Hero ----- */
.hero{
  padding: 34px 0 18px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.hero__title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}
.hero__lead{
  color: var(--muted);
  font-size: 15.5px;
  margin: 14px 0 18px;
  max-width: 60ch;
}
.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__meta{
  display:flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.stat{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 140px;
}
.stat__kpi{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2px;
}
.stat__label{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ----- Cards ----- */
.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
}
.card__header{ padding: 18px 18px 10px; }
.card__title{ margin: 0; font-size: 16px; font-weight: 900; }
.card__subtitle{ margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.card__content{ padding: 12px 18px 16px; }
.card__footer{
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.link{ color: rgba(96,165,250,.95); }
.link:hover{ text-decoration: underline; }

/* ----- Inputs ----- */
.field{ display:flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.field__label{ font-size: 12px; color: var(--muted); }

.input, .select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,16,32,.35);
  color: var(--text);
  outline: none;
}
.input:focus, .select:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 4px rgba(96,165,250,.15);
}
.select{ cursor: pointer; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ----- Chips ----- */
.chips{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  padding: 9px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); }
.chip--active{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.16);
}

/* ----- Notice ----- */
.notice{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
}
.notice--ok{
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.12);
  color: rgba(255,255,255,.88);
}
.notice--err{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.14);
  color: rgba(255,255,255,.92);
}

/* ----- Sections ----- */
.section{ padding: 22px 0; }
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section__title{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.section__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ----- Toolbar ----- */
.toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}
.toolbar__right{ display:flex; gap: 10px; }

/* ----- Product Grid / Cards ----- */
.grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pcard{
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.pcard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}

.pcard__media{
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.pcard__media img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: rgba(255,255,255,.05);
}

.pcard__body{ padding: 14px 14px 16px; }
.pcard__badges{ display:flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pcard__title{
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.pcard__meta{
  margin: 6px 0 0;
  color: var(--muted2);
  font-size: 12.5px;
}
.pcard__brand{ color: rgba(255,255,255,.82); }
.pcard__sku{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.pcard__desc{
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  min-height: 36px;
}

.price{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.price__now{
  font-weight: 900;
  font-size: 18px;
}
.price__was{
  color: rgba(255,255,255,.55);
  text-decoration: line-through;
  font-size: 13px;
}

.pcard__actions{
  display:flex;
  gap: 10px;
}

/* ----- Empty State ----- */
.empty{
  margin: 16px 0;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.04);
}
.empty__title{ margin: 0 0 6px; font-weight: 900; }
.empty__text{ margin: 0 0 12px; color: var(--muted); }

/* ----- FAQ ----- */
.faq{ display:flex; flex-direction: column; gap: 10px; }
.faq__item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 12px 14px;
}
.faq__q{
  cursor: pointer;
  font-weight: 800;
}
.faq__a{
  color: var(--muted);
  font-size: 13.5px;
  padding-top: 10px;
}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}

/* ----- Footer ----- */
.footer{
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(11,16,32,.35);
}
.footer__inner{
  padding: 16px 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.footer__brand{ font-weight: 900; }
.footer__muted{ color: var(--muted); font-size: 13px; }

/* ----- Modal (Product) ----- */
.modal{
  width: min(980px, calc(100% - 22px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}
.modal::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.modal__panel{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(11,16,32,.96));
  box-shadow: var(--shadow);
}
.modal__content{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.modal__media{
  background: rgba(255,255,255,.04);
}
.modal__media img{
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.modal__info{
  padding: 18px 18px 18px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.modal__title{
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.modal__subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.pricebox{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 14px;
}
.pricebox__prices{
  display:flex;
  align-items: baseline;
  gap: 10px;
}
.pricebox__now{ font-weight: 900; font-size: 22px; }
.pricebox__was{ color: rgba(255,255,255,.55); text-decoration: line-through; }
.pricebox__meta{ margin-top: 8px; color: var(--muted); font-size: 13px; }
.modal__actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.modal__fineprint{ color: var(--muted); font-size: 13px; }

/* close button (on backdrop form) */
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  padding: 0;
}
.modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}
.modal__close:hover{ background: rgba(255,255,255,.12); }

/* ----- Drawer (Cart) ----- */
.drawer{
  width: min(520px, calc(100% - 14px));
  border: 0;
  padding: 0;
  background: transparent;
}
.drawer::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.drawer__panel{
  margin-left: auto;
  height: min(92vh, 820px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(11,16,32,.96));
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
}
.drawer__header{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.drawer__title{ margin: 0; font-weight: 900; }
.drawer__body{
  padding: 14px;
  overflow: auto;
  flex: 1;
}
.drawer__footer{
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.drawer__cta{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.drawer__note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.8px;
}

/* cart rows */
.cartrow{
  display:grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  margin-bottom: 10px;
}
.cartrow__img img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.cartrow__title{ font-weight: 900; }
.cartrow__meta{ color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cartrow__price{ margin-top: 6px; font-weight: 800; }
.cartrow__qty{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 10px;
}
.cartrow__qtynum{
  min-width: 28px;
  text-align:center;
  font-weight: 900;
}

/* totals */
.totals{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 12px;
}
.totals__row{
  display:flex;
  justify-content: space-between;
  padding: 6px 0;
  color: rgba(255,255,255,.88);
}
.totals__row--muted{ color: var(--muted); }
.totals__row--grand{
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
}

/* ----- Responsive ----- */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal__content{ grid-template-columns: 1fr; }
  .modal__media img{ height: 320px; }
}

@media (max-width: 720px){
  .topbar__right{ display:none; }
  .header__inner{ flex-direction: column; align-items: stretch; }
  .header__actions{ justify-content: space-between; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard__media img{ height: 180px; }
}

@media (max-width: 420px){
  .grid{ grid-template-columns: 1fr; }
}

/* ----- Smooth scroll + selection ----- */
html{ scroll-behavior: smooth; }
::selection{ background: rgba(34,197,94,.35); }



/* ====== FIX DE PRECIO (muy importante) ====== */

/* Precio normal en cards */
.price__now {
  color: #ffffff !important;
}

/* Precio dentro del modal */
#modalPriceNow {
  color: #ffffff !important;
  font-weight: 900;
}

/* Evita que cambie de color al hacer clic o seleccionar */
.price__now:focus,
.price__now:active,
#modalPriceNow:focus,
#modalPriceNow:active {
  color: #ffffff !important;
}

/* También el precio tachado (el anterior) para que sea legible */
.price__was,
#modalPriceWas {
  color: rgba(255,255,255,.65) !important;
}
.pricebox__now {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(255,255,255,.15);
}


/* ====== FIX DE TEXTO NEGRO EN MODAL ====== */

/* Línea: "JBL • PYMAS-... • Audífonos" */
.modal__subtitle {
  color: rgba(255,255,255,.80) !important;
}

/* También el texto fino debajo del precio */
.modal__fineprint {
  color: rgba(255,255,255,.75) !important;
}

/* Y el texto de metadatos (Nuevo • Garantía • Stock) */
.pricebox__meta {
  color: rgba(255,255,255,.80) !important;
}
.modal__subtitle {
  letter-spacing: 0.2px;
}





/* ====== FIX DEFINITIVO: TEXTO NEGRO EN MODAL ====== */

/* Fuerza color claro a TODO dentro del panel del modal */
#productModal .modal__panel,
#productModal .modal__panel * {
  color: rgba(255,255,255,.92);
}

/* Título principal del modal (el que te sale negro) */
#modalTitle,
.modal__title {
  color: #ffffff !important;
}

/* Línea debajo del título */
#productModal .modal__subtitle {
  color: rgba(255,255,255,.78) !important;
}

#modalTitle { text-shadow: 0 6px 22px rgba(0,0,0,.35); }

.modal__title {
  margin-bottom: 6px;
}
.pricebox__meta {
  opacity: 0.85;
}




/* ====== FIX DE TEXTO NEGRO EN CARRITO ====== */

/* Fuerza color claro a TODO el panel del carrito */
#cartDrawer .drawer__panel,
#cartDrawer .drawer__panel * {
  color: rgba(255,255,255,.92);
}

/* Títulos de productos en carrito */
.cartrow__title {
  color: #ffffff !important;
  font-weight: 800;
}

/* Línea PYMAS-SKU • Marca */
.cartrow__meta {
  color: rgba(255,255,255,.78) !important;
}

/* Precio por unidad */
.cartrow__price {
  color: #ffffff !important;
  font-weight: 800;
}

/* Subtotal, descuentos y total */
.totals__row {
  color: rgba(255,255,255,.90) !important;
}

.totals__row--grand {
  color: #ffffff !important;
  font-weight: 900;
}

.totals__row--grand {
  text-shadow: 0 0 6px rgba(255,255,255,.15);
}






/* ====== FIX CORRECTO DEL MODAL ====== */

/* El fondo sí puede recibir clics */
.modal__backdrop {
  pointer-events: auto;
}

/* La X siempre visible y clickeable */
.modal__close {
  pointer-events: auto;
  z-index: 10;
}

/* El panel debe estar por encima del fondo */
.modal__panel {
  position: relative;
  z-index: 2;
}





.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .2s ease;
  z-index: 9999;
}

.wa-float:hover {
  transform: scale(1.1);
}




.toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 9999;
}

.toast--show {
  opacity: 1;
  transform: translateY(0);
}





.cart-bounce {
  animation: bounce .3s ease;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}



.skeleton-card {
  height: 320px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}





/* Skeleton cards */
.skeleton-card{
  height: 260px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}

.skeleton-card::after{
  content:"";
  position:absolute;
  inset:0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.10),
    transparent
  );
  animation: shimmer 1.1s infinite;
}

@keyframes shimmer{
  100%{ transform: translateX(100%); }
}











.cart-bounce{
  animation: cartBounce .35s ease;
}
@keyframes cartBounce{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.25); }
  100%{ transform: scale(1); }
}
