:root {
  --dt-orange: #F06292;
  --dt-orange-solid: #FF7A2F;
  --dt-orange-dark: #e67829;
  --dt-blue: #EC407A;
  --dt-blue-dark: #16357c;
  --dt-red: #E91E63;
  --dt-white: #ffffff;
  --dt-gray-bg: #F7F7F7;
  --dt-gray-card: #FAFAFA;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow: 0 6px 18px rgba(0,0,0,.12);
  --shadow-hover: 0 10px 22px rgba(0,0,0,.18);
  --speed: .22s;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: var(--dt-gray-bg);
  font-family: "Poppins", sans-serif;
}
body.modal-open { overflow: hidden; }

.app {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 84px;
}

.hero {
  background: var(--dt-orange-solid);
  text-align: center;
  padding: 18px 18px 22px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.hero-top-row {
  display: block;
}
.hero-brand {
  display: block;
}
.hero-box img { width: 158px; }
.subtitulo {
  font-size: .9rem;
  color: white;
  opacity: .98;
  font-weight: 700;
  margin: 8px 0 0;
}
.hero-search-panel {
  width: 100%;
}
.hero-contact {
  display: none;
}

.search-box { padding: 0 18px; margin-top: 12px; }
.input-search {
  position: relative;
  background: #fff;
  padding: 12px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 9px rgba(0,0,0,0.1);
  transition: var(--speed);
}
.input-search:hover { transform: translateY(-1px); }
.search-icon { font-size: .95rem; }
.input-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: .88rem;
  background: transparent;
}
.clear-search {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  color: #6e737f;
  cursor: pointer;
  font-size: .85rem;
}
.results-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.results-info {
  color: rgba(255,255,255,.92);
  font-size: .78rem;
  text-align: left;
  min-height: 18px;
}
.quick-clear {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .74rem;
  font-weight: 700;
}

.carousel-wrapper { overflow: hidden; margin-top: 14px; }
.carousel-cats {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 0 18px;
  white-space: nowrap;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
}
.chip {
  flex: 0 0 auto;
  padding: 7px 15px;
  background: #FFEDE0;
  border-radius: 40px;
  font-size: .82rem;
  border: 1px solid #FFC8A4;
  color: #AC4A11;
  transition: var(--speed);
  cursor: pointer;
  font-weight: 600;
}
.chip:hover { background: #FFDCC2; }
.chip--active { background: var(--dt-blue); border-color: var(--dt-blue); color: white; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--speed);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-media {
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
}
.product-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: transparent;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(231,54,46,.92);
  color: white;
  font-size: .66rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 5px 14px rgba(231,54,46,.25);
}
.product-body { padding: 14px; }
.product-name {
  font-size: .92rem;
  font-weight: 800;
  color: #222;
  line-height: 1.22;
  min-height: 45px;
}
.product-price {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dt-red);
}
.product-tag-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--dt-blue);
  background: #edf3ff;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-code {
  font-size: .68rem;
  color: #808080;
  font-weight: 600;
}
.btn-add {
  width: 100%;
  padding: 11px;
  margin-top: 12px;
  background: var(--dt-blue);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: .84rem;
  transition: var(--speed);
}
.btn-add:hover { background: var(--dt-blue-dark); transform: scale(1.03); }

.empty-state {
  margin: 0 18px 10px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}
.empty-state-icon { font-size: 2rem; }
.empty-state-title { font-weight: 800; color: #222; margin-top: 8px; }
.empty-state-text { font-size: .84rem; color: #666; margin-top: 8px; line-height: 1.45; }
.btn-empty { margin-top: 14px; width: 100%; }

.cart-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  min-width: 78px;
  height: 68px;
  border-radius: 999px;
  background: var(--dt-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.30);
  z-index: 999;
  transition: var(--speed);
  border: none;
  padding: 0 16px;
}
.cart-btn:hover { transform: scale(1.05); }
.cart-icon { font-size: 28px; }
.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
#cartCount { font-size: .95rem; }
#cartMiniTotal { font-size: .75rem; opacity: .95; }
.cart-btn.is-empty { opacity: .78; }

.cart-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: auto;
  background: white;
  border-radius: 30px 30px 0 0;
  padding: 30px 24px 38px;
  display: none;
  animation: fadeIn .35s ease;
  box-shadow: 0 -12px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  max-height: 92vh;
  overflow-y: auto;
  z-index: 1000;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-header {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #efefef;
}
.wizard-header-mini { font-size: .95rem; font-weight: 700; opacity: .75; margin-bottom: 16px; }
.wizard-title { margin: 0 0 12px; }
.cart-items-box { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
  gap: 12px;
}
.cart-item-name { font-weight: 700; color: #222; }
.cart-item-price { font-size: .82rem; color: #787878; margin-top: 4px; }
.cart-empty {
  padding: 18px 10px;
  text-align: center;
  color: #777;
  background: #fafafa;
  border-radius: 14px;
}
.qty-box { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 34px;
  height: 34px;
  background: var(--dt-blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--speed);
}
.qty-btn:hover { background: var(--dt-blue-dark); transform: scale(1.04); }
.total-box { margin-top: 18px; font-size: 1.15rem; font-weight: 800; }
.cart-helper { margin-top: 8px; font-size: .8rem; color: #6e6e6e; }

.input-field {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1.6px solid #d8d8d8;
  background: white;
  font-size: .95rem;
  transition: var(--speed);
  box-sizing: border-box !important;
  display: block;
}
.input-field:focus { border-color: var(--dt-blue); box-shadow: 0 0 0 4px rgba(27,63,146,.14); outline: none; }
#pago {
  appearance: none;
  background: white url('data:image/svg+xml;utf8,<svg fill="%231B3F92" height="20" width="20" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 18px center;
  padding-right: 40px;
}

.btn-row { display: flex; gap: 12px; margin-top: 18px; }
.btn-secondary {
  flex: 1;
  background: #E9F0FF;
  color: var(--dt-blue);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #C7D7FF;
  font-weight: 700;
  height: 52px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--speed);
}
.btn-secondary:hover { background: #dfe9ff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.10); }
.btn-primary {
  flex: 1;
  background: var(--dt-orange);
  color: white;
  padding: 14px;
  border-radius: 16px;
  font-weight: 700;
  height: 52px;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--speed);
}
.btn-primary:hover { background: var(--dt-orange-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,140,70,.35); }
.whatsapp-btn {
  flex: 1;
  background: #25D366;
  color: white;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--speed);
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.whatsapp-btn img { width: 20px; height: 20px; }

.wizard-step { display: none !important; }
.active-step { display: block !important; }

.toast-add {
  position: fixed;
  left: 50%;
  bottom: 98px;
  transform: translateX(-50%) translateY(12px);
  width: auto;
  max-width: min(360px, calc(100% - 36px));
  background: rgba(27,63,146,.96);
  color: white;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  z-index: 1001;
  opacity: 0;
  transition: .22s ease;
  text-align: center;
}
.toast-add.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-title { display:none; }
.toast-text { margin-top: 0; font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .cart-btn { right: 12px; bottom: 12px; }
}


@media (min-width: 992px) {
  body { background: #ececec; }

  .app {
    max-width: 1040px;
    width: min(1040px, calc(100% - 64px));
    margin: 0 auto;
    padding-bottom: 110px;
    overflow-x: hidden;
  }

  .hero {
    position: sticky;
    top: 0;
    z-index: 990;
    padding: 10px 20px 12px;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
  }

  .hero-top-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 206px;
    align-items: center;
    gap: 16px;
  }

  .hero-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    text-align: left;
  }

  .hero-box {
    display: flex;
    align-items: center;
    min-height: 54px;
  }

  .hero-box img { width: 160px; }

  .subtitulo {
    font-size: .76rem;
    line-height: 1.15;
    margin: 0;
    max-width: 165px;
    opacity: .92;
    letter-spacing: -.01em;
  }

  .hero-search-panel {
    min-width: 0;
  }

  .search-box {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .input-search {
    min-height: 50px;
    padding: 8px 16px;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
  }

  .input-search input {
    font-size: .98rem;
    font-weight: 500;
  }

  .results-row {
    margin-top: 6px;
    min-height: 18px;
    justify-content: flex-start;
    gap: 12px;
  }

  .results-info {
    font-size: .78rem;
    text-align: left;
    opacity: .96;
  }

  .quick-clear {
    font-size: .74rem;
    padding: 5px 12px;
    background: rgba(255,255,255,.14);
  }

  .hero-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 66px;
    padding: 11px 14px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #2dd66c 0%, #19b554 100%);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 12px 24px rgba(17,94,44,.22);
    transition: transform var(--speed), box-shadow var(--speed), filter var(--speed);
  }

  .hero-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17,94,44,.28);
    filter: saturate(1.05);
  }

  .hero-contact-label {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .94;
  }

  .hero-contact-number {
    font-size: 1.62rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
  }

  .hero-contact-text {
    font-size: .76rem;
    font-weight: 700;
    opacity: .98;
  }

  .carousel-wrapper {
    margin-top: 8px;
    overflow: hidden;
  }

  .carousel-cats {
    padding: 2px 0 2px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .carousel-cats::-webkit-scrollbar { display: none; }
  .carousel-cats.dragging { cursor: grabbing; }
  .chip {
    padding: 8px 15px;
    font-size: .84rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0,0,0,.06);
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 4px 0;
  }

  .product-card { border-radius: 22px; }
  .product-card img { height: 160px; }
  .product-badge { top: 12px; left: 12px; font-size: .72rem; padding: 6px 10px; }
  .product-body { padding: 14px; }
  .product-name { font-size: .95rem; min-height: 44px; }
  .product-price { font-size: 1.2rem; margin-top: 7px; }
  .product-tag { font-size: .74rem; padding: 4px 9px; }
  .product-code { font-size: .72rem; }
  .btn-add { font-size: .86rem; padding: 11px; margin-top: 12px; }

  .empty-state {
    max-width: 720px;
    margin: 12px auto 0;
    padding: 28px 24px;
  }

  .cart-btn {
    right: 28px;
    bottom: 26px;
    min-width: 120px;
    height: 72px;
    padding: 0 18px;
  }

  .cart-modal {
    max-width: 560px;
    border-radius: 26px 26px 0 0;
  }
}

@media (min-width:992px){

  .carousel-wrapper.is-sticky-desktop{
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    width:100%;
    max-width:1040px;
    margin:auto;

    z-index:989;
    background:var(--dt-orange-solid);

    padding:10px 20px 8px;
    border-radius:0 0 18px 18px;
    box-shadow:0 12px 22px rgba(0,0,0,.12);
  }

  body.has-sticky-cats .products-grid,
  body.has-sticky-cats .empty-state{
    margin-top:72px;
  }

}

@media (min-width: 1280px) {
  .app {
    max-width: 1040px;
    width: min(1040px, calc(100% - 88px));
  }

  .carousel-wrapper.is-sticky-desktop {
    max-width: 1040px;
  }

  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}



/* === DETODITO CLEAN FINAL DESKTOP === */
@media (min-width: 1024px) {

  body{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .app{
    max-width: 1040px;
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 0 !important;
  }

  .hero.hero-compact,
  .hero{
    position: relative;
    top: 0 !important;
    margin-top: 0 !important;
    padding: 10px 16px 14px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    box-shadow: none !important;
  }

  .hero-top-row{
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 200px !important;
    align-items: center !important;
    gap: 16px !important;
    max-width: 100%;
    margin: 0 auto !important;
  }

  .hero-brand{
    width: 220px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }

  .hero-box img{
    width: 160px !important;
  }

  .subtitulo{
    max-width: 220px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }

  .hero-search-panel,
  .hero-search,
  .search-box{
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .input-search{
    width: 100% !important;
    max-width: 690px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    border-radius: 28px !important;
    box-shadow: none !important;
    gap: 12px !important;
  }

  .input-search input{
    font-size: 14px !important;
  }

  .results-row,
  .hero-products-count{
    width: 100% !important;
    max-width: 690px !important;
    margin: 8px auto 0 auto !important;
    text-align: left !important;
  }

  .hero-contact,
  .whatsapp-box{
    min-height: 72px !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .hero-contact-number,
  .whatsapp-number{
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .carousel-wrapper{
    margin-top: 8px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .carousel-wrapper.is-sticky-desktop{
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(1040px, calc(100% - 48px)) !important;
    margin: 0 !important;
    padding: 8px 12px 8px !important;
    background: #ff7a2f !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: none !important;
    z-index: 1400 !important;
  }

  body.has-sticky-cats .products-grid,
  body.has-sticky-cats .empty-state{
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  .carousel-cats{
    padding: 0 !important;
  }

  .chip{
    box-shadow: none !important;
  }
}


/* === DETODITO CARD REDESIGN v2 (solo cards, sin tocar flujo) === */
.product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.05);
  box-shadow:0 8px 18px rgba(15,23,42,.10);
  overflow:hidden;
  background:#fff;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(15,23,42,.14);
}

.product-media{
  min-height:132px;
  padding:12px 12px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fbfbfb 0%,#f3f3f3 100%);
}

.product-card img{
  width:100%;
  height:112px;
  object-fit:contain;
  display:block;
}

.product-badge{
  top:10px;
  left:10px;
  font-size:.68rem;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(231,54,46,.22);
}

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

.product-name{
  margin:0;
  font-size:.92rem;
  font-weight:800;
  line-height:1.22;
  color:#152033;
  min-height:44px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-price{
  margin:0;
  font-size:1.34rem;
  line-height:1;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--dt-red);
}

.product-tag-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  margin-top:0;
}

.product-tag{
  max-width:100%;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.01em;
  text-transform:uppercase;
  color:var(--dt-blue);
  background:#eef3ff;
  border:1px solid #dbe6ff;
  padding:4px 9px;
  border-radius:999px;
}

.product-code{
  font-size:.69rem;
  line-height:1.15;
  color:#7b8494;
  font-weight:700;
}

.btn-add{
  margin-top:auto;
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:-.01em;
  background:linear-gradient(135deg,var(--dt-blue) 0%, #2d57c7 100%);
  box-shadow:0 8px 16px rgba(27,63,146,.18);
}

.product-card:hover .btn-add{
  background:linear-gradient(135deg,#214db3 0%, #3d68d5 100%);
  transform:none;
}

@media (max-width: 991px){
  .products-grid{
    gap:12px;
    padding:16px;
  }

  .product-media{
    min-height:126px;
    padding:11px 11px 4px;
  }

  .product-card img{
    height:104px;
  }

  .product-name{
    font-size:.88rem;
    min-height:42px;
  }

  .product-price{
    font-size:1.18rem;
  }

  .btn-add{
    min-height:40px;
    font-size:.81rem;
    padding:10px 10px;
  }
}

@media (min-width: 992px){
  .product-card{
    border-radius:20px;
  }

  .product-media{
    min-height:146px;
    padding:13px 13px 6px;
  }

  .product-card img{
    height:118px;
  }

  .product-badge{
    top:11px;
    left:11px;
    font-size:.7rem;
    padding:6px 11px;
  }

  .product-body{
    padding:13px 14px 14px;
    gap:8px;
  }

  .product-name{
    font-size:.95rem;
    min-height:46px;
  }

  .product-price{
    font-size:1.42rem;
  }

  .product-tag{
    font-size:.69rem;
  }

  .product-code{
    font-size:.7rem;
  }

  .btn-add{
    min-height:42px;
    font-size:.83rem;
  }
}

@media (min-width: 1280px){
  .product-media{
    min-height:154px;
  }

  .product-card img{
    height:124px;
  }
}


/* === FASE 2: card premium + fix alineación WhatsApp (sin tocar flujo) === */
@media (min-width: 1024px){
  .hero-contact,
  .whatsapp-box{
    align-items:center !important;
    justify-self:center !important;
    width:100% !important;
    max-width:154px !important;
    margin:0 auto !important;
    text-align:center !important;
  }

  .hero-contact-label,
  .hero-contact-number,
  .hero-contact-text,
  .whatsapp-label,
  .whatsapp-number,
  .whatsapp-text{
    width:100% !important;
    text-align:center !important;
  }
}

.product-card{
  position:relative;
  isolation:isolate;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.product-media{
  position:relative;
  overflow:hidden;
}

.product-media::before{
  content:"";
  position:absolute;
  inset:-20% auto auto -10%;
  width:88px;
  height:88px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,143,76,.12) 0%, rgba(255,143,76,0) 68%);
  pointer-events:none;
}

.product-media::after{
  content:"";
  position:absolute;
  right:-8px;
  bottom:-8px;
  width:92px;
  height:92px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(27,63,146,.09) 0%, rgba(27,63,146,0) 72%);
  pointer-events:none;
}

.product-card img{
  transition:transform .24s ease;
}

.product-card:hover{
  border-color:rgba(27,63,146,.10);
  box-shadow:0 16px 30px rgba(15,23,42,.15);
}

.product-card:hover img{
  transform:scale(1.035);
}

.product-badge{
  background:linear-gradient(135deg, #ff5a46 0%, #ef3c2f 100%);
  border:1px solid rgba(255,255,255,.30);
  font-weight:800;
  z-index:2;
}

.product-body{
  position:relative;
}

.product-name{
  letter-spacing:-.01em;
}

.product-price{
  display:flex;
  align-items:flex-end;
  gap:4px;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}

.product-tag-row{
  gap:6px;
}

.product-tag{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}

.product-code{
  opacity:.9;
}

.btn-add{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}

.btn-add::before{
  content:"";
  position:absolute;
  top:0;
  left:-130%;
  width:58%;
  height:100%;
  transform:skewX(-24deg);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.24) 55%, rgba(255,255,255,0) 100%);
  transition:left .34s ease;
  pointer-events:none;
}

.product-card:hover .btn-add::before{
  left:140%;
}

@media (max-width: 991px){
  .product-card{
    border-radius:17px;
    box-shadow:0 7px 16px rgba(15,23,42,.10);
  }

  .product-media{
    min-height:122px;
    padding:10px 10px 4px;
  }

  .product-card img{
    height:100px;
  }

  .product-body{
    gap:7px;
    padding:11px 11px 12px;
  }

  .product-name{
    font-size:.85rem;
    min-height:40px;
  }

  .product-price{
    font-size:1.12rem;
  }

  .product-tag{
    font-size:.64rem;
    padding:4px 8px;
  }

  .product-code{
    font-size:.66rem;
  }

  .btn-add{
    min-height:39px;
    border-radius:11px;
    font-size:.79rem;
  }
}

@media (min-width: 992px){
  .product-card{
    border-radius:21px;
  }

  .product-media{
    min-height:150px;
    padding:14px 14px 6px;
  }

  .product-card img{
    height:120px;
  }

  .product-body{
    gap:9px;
    padding:13px 14px 15px;
  }

  .product-name{
    font-size:.96rem;
    min-height:47px;
  }

  .product-price{
    font-size:1.46rem;
  }

  .btn-add{
    min-height:43px;
    border-radius:13px;
    font-size:.84rem;
  }
}


/* === FASE 3: optimización de conversión (micro UX + estímulos visuales) === */
.product-card{
  cursor:pointer;
}

.product-card--top{
  border:1px solid rgba(255,143,76,.30);
}

.product-card--top::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(135deg, rgba(255,143,76,.55), rgba(255,143,76,0), rgba(27,63,146,.18));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:.9;
}

.product-card::before{
  transition:opacity .22s ease, transform .22s ease;
}

.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 34px rgba(15,23,42,.16);
}

.product-body{
  gap:10px;
}

.product-name{
  font-weight:800;
}

.product-price{
  font-size:1.62rem;
  font-weight:900;
  letter-spacing:-.03em;
  color:#eb372d;
  line-height:1;
}

.product-price::after{
  content:"";
  display:block;
  width:38px;
  height:3px;
  margin-left:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,143,76,.9), rgba(255,143,76,0));
}

.product-tag-row{
  align-items:center;
  flex-wrap:wrap;
}

.product-tag{
  font-weight:800;
  border:1px solid rgba(27,63,146,.10);
}

.product-code{
  font-size:.72rem;
  font-weight:700;
  color:#7b879c;
}

.btn-add{
  min-height:44px;
  font-weight:800;
  box-shadow:0 10px 18px rgba(32,76,191,.22);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.product-card:hover .btn-add{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 14px 22px rgba(255,143,76,.25);
  background:linear-gradient(135deg, #ff8f4c 0%, #ff7b22 100%);
}

.btn-add.added{
  background:linear-gradient(135deg, #34b45e 0%, #24984a 100%) !important;
  box-shadow:0 12px 22px rgba(52,180,94,.28) !important;
}

.product-card.cart-added{
  box-shadow:0 18px 34px rgba(52,180,94,.18), 0 0 0 2px rgba(52,180,94,.14);
}

.product-card.cart-added .product-price{
  color:#d92d20;
}

.product-badge{
  box-shadow:0 10px 18px rgba(239,60,47,.24);
}

@media (max-width: 991px){
  .product-card:hover{
    transform:none;
    box-shadow:0 8px 16px rgba(15,23,42,.10);
  }

  .product-price{
    font-size:1.28rem;
  }

  .product-price::after{
    width:30px;
    height:2px;
  }

  .btn-add{
    min-height:40px;
    box-shadow:0 8px 14px rgba(32,76,191,.18);
  }

  .product-card--top::before{
    opacity:.75;
  }
}

/* === DULCE RUTH GLASS iOS / SHOPIFY REFRESH === */
:root{
  --dt-orange: #ff5f9a;
  --dt-orange-solid: #ff7fb1;
  --dt-orange-dark: #f3488c;
  --dt-blue: #ffd34f;
  --dt-blue-dark: #f4be1b;
  --dt-red: #f04a93;
  --dt-white: #ffffff;
  --dt-gray-bg: #fff5f8;
  --dt-gray-card: rgba(255,255,255,.76);
  --glass-bg: rgba(255,255,255,.36);
  --glass-strong: rgba(255,255,255,.64);
  --glass-border: rgba(255,255,255,.46);
  --text-strong: #7c2453;
  --text-soft: #a8557a;
  --chip-bg: rgba(255,248,250,.82);
  --chip-border: rgba(255,209,225,.95);
  --shadow: 0 12px 30px rgba(233, 86, 146, .14);
  --shadow-hover: 0 18px 34px rgba(233, 86, 146, .22);
}

body{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), rgba(255,255,255,0) 22%),
    linear-gradient(180deg, #fff8fb 0%, #fff1f6 100%);
  color: var(--text-strong);
}

.hero,
.hero.hero-compact{
  background:
    linear-gradient(135deg, rgba(255,138,184,.92) 0%, rgba(255,165,196,.88) 38%, rgba(255,197,175,.88) 100%) !important;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 16px 42px rgba(240, 90, 150, .18) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-box{
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.subtitulo,
.results-info{
  color: rgba(255,255,255,.98) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.input-search{
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72)) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 12px 28px rgba(225, 92, 149, .14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.input-search input{
  color: var(--text-strong);
  font-weight: 500;
}
.input-search input::placeholder{ color: #be7e9a; }
.search-icon{ color: #f15b97; }

.clear-search{
  background: rgba(255, 95, 154, .10);
  color: #e84b8f;
}

.quick-clear{
  background: rgba(255,255,255,.24) !important;
  border-color: rgba(255,255,255,.48) !important;
  color: #fff !important;
}

.hero-contact,
.whatsapp-box{
  background: linear-gradient(135deg, #22d96f 0%, #17bf5c 100%) !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  box-shadow: 0 14px 30px rgba(19, 144, 65, .20) !important;
}

.carousel-wrapper,
.carousel-wrapper.is-sticky-desktop{
  background: transparent !important;
}

.chip{
  background: linear-gradient(180deg, var(--chip-bg), rgba(255,255,255,.72)) !important;
  border: 1px solid var(--chip-border) !important;
  color: #9b4671 !important;
  box-shadow: 0 6px 14px rgba(241, 105, 160, .10);
}

.chip:hover{
  background: linear-gradient(180deg, #fff6f9, #ffeaf2) !important;
  border-color: rgba(255,178,207,.98) !important;
}

.chip--active{
  background: linear-gradient(135deg, #ff5f9a, #ff8abb) !important;
  border-color: rgba(255,255,255,.4) !important;
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(241, 84, 145, .24);
}

.products-grid{ padding-top: 22px; }

.product-card{
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.7)) !important;
  border: 1px solid rgba(247, 186, 212, .78);
  box-shadow: 0 12px 24px rgba(222, 96, 153, .12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-card:hover{
  box-shadow: 0 18px 32px rgba(222, 96, 153, .18) !important;
}

.product-media{
  background: radial-gradient(circle at top, rgba(255,255,255,.9), rgba(255,240,246,.8) 60%, rgba(255,233,242,.75) 100%) !important;
}

.product-badge{
  background: linear-gradient(135deg, #ff5b98, #ff8abb) !important;
  box-shadow: 0 8px 18px rgba(241, 74, 147, .24) !important;
}

.product-name{
  color: var(--text-strong) !important;
}

.product-price{
  color: #f04a93 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.product-tag{
  color: #b26a00 !important;
  background: linear-gradient(180deg, #fff4cc, #ffe69a) !important;
  border: 1px solid rgba(244, 190, 27, .52);
}

.product-code{
  color: #9a86a1 !important;
}

.btn-add{
  background: linear-gradient(135deg, #ffd95d, #ffc93b) !important;
  color: #864800 !important;
  box-shadow: 0 10px 20px rgba(255, 201, 59, .26);
}

.btn-add:hover{
  background: linear-gradient(135deg, #ffd24b, #f4be1b) !important;
  color: #7a4000 !important;
}

.cart-btn{
  background: linear-gradient(135deg, #f35c99, #ff86b7) !important;
  box-shadow: 0 16px 30px rgba(239, 77, 145, .28) !important;
}

.btn-secondary{
  background: rgba(255, 240, 246, .94) !important;
  border-color: rgba(247, 186, 212, .92) !important;
  color: #b14578 !important;
}

.btn-primary{
  background: linear-gradient(135deg, #ff5f9a, #ff85b6) !important;
  box-shadow: 0 10px 20px rgba(241, 84, 145, .20);
}

.toast-add{
  background: linear-gradient(135deg, rgba(243,92,153,.98), rgba(255,134,183,.96)) !important;
}

.cart-modal{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,248,251,.94)) !important;
}

.input-field:focus{
  border-color: #ff79ad !important;
  box-shadow: 0 0 0 4px rgba(255, 121, 173, .14) !important;
}

#pago{
  background: white url('data:image/svg+xml;utf8,<svg fill="%23f04a93" height="20" width="20" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 18px center !important;
}

@media (min-width: 1024px){
  .hero.hero-compact,
  .hero{
    padding: 14px 18px 16px !important;
    border-bottom-left-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    box-shadow: 0 18px 38px rgba(240, 90, 150, .16) !important;
  }

  .hero-top-row{
    grid-template-columns: 230px minmax(0,1fr) 196px !important;
    gap: 18px !important;
  }

  .hero-brand{
    width: 230px !important;
  }

  .hero-box{
    min-height: 72px;
    padding: 8px 14px;
  }

  .hero-box img{
    width: 148px !important;
  }

  .search-box,
  .hero-search-panel{
    align-items: stretch !important;
  }

  .input-search{
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 30px !important;
    padding: 0 18px !important;
  }

  .results-row,
  .hero-products-count{
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .hero-contact,
  .whatsapp-box{
    min-height: 74px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 28px rgba(19, 144, 65, .18) !important;
  }

  .carousel-wrapper{
    margin-top: 12px !important;
  }

  .carousel-wrapper.is-sticky-desktop{
    top: 0 !important;
    background: linear-gradient(135deg, rgba(255,138,184,.96), rgba(255,191,174,.96)) !important;
    border: 1px solid rgba(255,255,255,.36);
    box-shadow: 0 14px 26px rgba(240, 90, 150, .16) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .carousel-cats{
    padding: 4px 2px !important;
    gap: 10px !important;
  }
}

/* === DULCE RUTH APP BRAND REFRESH 2026 === */
:root {
  --dt-orange: #F35D93;
  --dt-orange-solid: #F471A5;
  --dt-orange-dark: #E94684;
  --dt-blue: #E94684;
  --dt-blue-dark: #C9346D;
  --dt-red: #E94A86;
  --dt-white: #ffffff;
  --dt-gray-bg: #FFF7F4;
  --dt-gray-card: #FFFFFF;
  --dt-cream: #FFF7F4;
  --dt-cream-soft: #FFF0F4;
  --dt-peach: #F6C1B3;
  --dt-peach-soft: #F9D8CD;
  --dt-chip: #FFF5F7;
  --dt-chip-border: rgba(233,70,132,.18);
  --dt-chip-text: #8C3357;
  --dt-text: #6B2E46;
  --dt-accent: #FFD76A;
  --dt-accent-strong: #FFC94D;
}

body {
  background:
    radial-gradient(circle at top left, rgba(246,193,179,.34), transparent 22%),
    linear-gradient(180deg, #FFF8FA 0%, #FFF3F6 38%, #FFF7F4 100%);
  color: var(--dt-text);
}

.hero,
.hero.hero-compact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(243,93,147,.94) 0%, rgba(244,113,165,.90) 48%, rgba(246,193,179,.88) 100%) !important;
  box-shadow: 0 14px 34px rgba(233,70,132,.20) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-box img {
  filter: drop-shadow(0 10px 20px rgba(255,255,255,.14));
}

.subtitulo,
.results-info {
  color: rgba(255,255,255,.96) !important;
}

.input-search {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(255,255,255,.40) !important;
  box-shadow: 0 14px 28px rgba(137, 35, 78, .12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.input-search input,
.input-search input::placeholder,
.search-icon {
  color: #9B6179;
}

.clear-search {
  background: #FFF1F5;
  color: var(--dt-blue);
}

.quick-clear {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.34) !important;
}

.chip {
  background: rgba(255,255,255,.74) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  color: var(--dt-chip-text) !important;
  box-shadow: 0 8px 18px rgba(152, 53, 92, .08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip:hover {
  background: rgba(255,255,255,.92) !important;
}

.chip--active {
  background: linear-gradient(135deg, #E94684 0%, #F35D93 100%) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(233,70,132,.26) !important;
}

.product-card {
  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(233,70,132,.14) !important;
  box-shadow: 0 10px 28px rgba(131, 37, 70, .08), inset 0 1px 0 rgba(255,255,255,.72) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 34px rgba(131, 37, 70, .12), inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.product-media {
  background: linear-gradient(180deg, #FFF9FB 0%, #FFF1F5 100%) !important;
}

.product-badge {
  background: linear-gradient(135deg, #F35D93 0%, #E94684 100%) !important;
  box-shadow: 0 10px 22px rgba(233,70,132,.22) !important;
}

.product-name {
  color: var(--dt-text) !important;
}

.product-price {
  color: var(--dt-red) !important;
  font-size: 1.22rem !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.product-tag {
  color: var(--dt-chip-text) !important;
  background: #FFF5F7 !important;
  border: 1px solid rgba(233,70,132,.18);
}

.product-code {
  color: #A78A96 !important;
}

.btn-add {
  background: linear-gradient(135deg, #FFD76A 0%, #FFC94D 100%) !important;
  color: #744B00 !important;
  box-shadow: 0 12px 22px rgba(255, 201, 77, .28) !important;
  font-weight: 800 !important;
}

.btn-add:hover {
  background: linear-gradient(135deg, #FFD24D 0%, #FFBE2E 100%) !important;
}

.cart-btn {
  background: linear-gradient(135deg, #E94684 0%, #F35D93 100%) !important;
  box-shadow: 0 16px 34px rgba(233,70,132,.30) !important;
}

.cart-modal {
  background: rgba(255,255,255,.96) !important;
}

.qty-btn,
.btn-primary {
  background: linear-gradient(135deg, #F35D93 0%, #E94684 100%) !important;
}

.btn-secondary {
  background: #FFF2F6 !important;
  color: var(--dt-blue) !important;
  border-color: rgba(233,70,132,.16) !important;
}

.input-field:focus {
  border-color: var(--dt-blue) !important;
  box-shadow: 0 0 0 4px rgba(233,70,132,.12) !important;
}

.toast-add {
  background: rgba(107,46,70,.96) !important;
}

@media (min-width: 1024px) {
  .hero.hero-compact,
  .hero {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    box-shadow: 0 16px 36px rgba(233,70,132,.18) !important;
  }

  .input-search {
    box-shadow: 0 16px 32px rgba(137,35,78,.10) !important;
  }

  .carousel-wrapper.is-sticky-desktop {
    background: linear-gradient(135deg, rgba(243,93,147,.96) 0%, rgba(244,113,165,.92) 48%, rgba(246,193,179,.90) 100%) !important;
    box-shadow: 0 16px 30px rgba(233,70,132,.16) !important;
  }

  .products-grid {
    padding-top: 20px !important;
  }
}
