/* Aldo Jewelry skin over the Firenze feed — two colors only: black #000 and ivory #FAF7F2 (plus their tints). */
:root {
  --black: #000000;
  --ivory: #FAF7F2;
  --ivory-70: rgba(250, 247, 242, 0.7);
  --ivory-20: rgba(250, 247, 242, 0.2);
  --black-60: rgba(0, 0, 0, 0.6);
  --black-12: rgba(0, 0, 0, 0.12);
  --bg: #000000;
  --bg-elevated: #000000;
  --bg-card: #FAF7F2;
  --bg-panel: #FAF7F2;
  --gold: #000000;
  --gold-soft: #000000;
  --gold-bright: #000000;
  --gold-dim: rgba(0, 0, 0, 0.06);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.6);
  --border: rgba(0, 0, 0, 0.14);
  --header-h: 56px;
  --chips-h: 46px;
  --nav-h: 0px;
  --font: "Raleway", Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --feed-chrome: calc(var(--header-h) + var(--chips-h) + var(--safe-top) + var(--safe-bottom));
}
html, body { background: #000; font-family: var(--font); }
#app { background: #000; box-shadow: none; }

/* header: filter icon left, ALDO logo centered */
.app-header {
  height: calc(var(--header-h) + var(--safe-top));
  background: #000;
  pointer-events: auto;
  justify-content: center;
}
.aldo-brand { display: flex; align-items: center; gap: 8px; color: var(--ivory); text-decoration: none; }
.aldo-brand-mark { width: 28px; height: 28px; }
.aldo-brand-word { font-family: var(--serif); font-size: 28px; letter-spacing: 0.5px; line-height: 1; color: var(--ivory); }
.aldo-filter-btn {
  position: absolute; left: 8px; top: calc(var(--safe-top) + 6px);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ivory);
  display: grid; place-items: center; cursor: pointer;
}
.aldo-filter-btn.has-filter::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 0 2px #000;
}

/* category chips across the top of the feed */
.aldo-cats {
  position: absolute; left: 0; right: 0; z-index: 29;
  top: calc(var(--header-h) + var(--safe-top));
  height: var(--chips-h);
  display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 0 12px;
  background: #000; scrollbar-width: none;
}
.aldo-cats::-webkit-scrollbar { display: none; }
.aldo-chip {
  flex: 0 0 auto; border: 1px solid var(--ivory-20); background: transparent; color: var(--ivory);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.aldo-chip small { margin-left: 5px; font-size: 11px; opacity: 0.6; font-weight: 500; }
.aldo-chip[aria-pressed="true"] { background: var(--ivory); color: #000; border-color: var(--ivory); }

/* feed stage sits below header + chips */
.view-feed .feed { padding-top: 0; }
.gallery { top: calc(var(--header-h) + var(--chips-h) + var(--safe-top)); height: calc(100% - var(--header-h) - var(--chips-h) - var(--safe-top)); max-height: none; }
.gallery-dots { top: calc(var(--header-h) + var(--chips-h) + var(--safe-top) + 10px); }
.gallery-dots .dot.active { background: var(--ivory); border-color: var(--ivory); }
.gallery-slide, .gallery-slide img, .feed-card { background: #000; }
.gallery-slide .slide-fallback { background: #0d0d0d; color: var(--ivory-70); }
.feed-card .scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 14%),
    linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 26%, transparent 46%);
}
.feed-card .card-body { padding: 0 10px calc(var(--safe-bottom) + 12px); }

/* bottom bar: thumbnail · price · title · specs · Comprar */
.product-bar { background: rgba(0,0,0,0.38); border: 1px solid var(--ivory-20); }
.product-bar-thumb { border: 1.5px solid var(--ivory); background: var(--ivory); }
.product-bar-price { color: var(--ivory); font-weight: 800; }
.product-bar-title { color: var(--ivory); font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
.product-bar-specs { color: var(--ivory-70); }
.product-bar-cta, .product-bar-cta.btn-comprar {
  background: var(--ivory); color: #000; box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  font-family: var(--font); font-weight: 700; letter-spacing: 0.03em;
}
.gallery-slide.video-slide .video-mute-btn { background: var(--ivory) !important; }
.gallery-slide.video-slide .video-tap-play .video-tap-pill { background: rgba(0,0,0,0.6); color: var(--ivory); }

/* front shows only the feed: no Vendedor/'+', Favoritos, hashtag bar, side buttons */
.bottom-nav, .feed-card .card-side, #feedFilterBar, #comprarBuyerRow { display: none !important; }

/* left price drawer (mirrors aldojewelry.com sidebar) */
.aldo-overlay { position: absolute; inset: 0; z-index: 64; background: rgba(0,0,0,0.5); }
.aldo-overlay[hidden] { display: none; }
.aldo-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 65; width: min(86%, 400px);
  background: var(--ivory); color: #000; text-align: center; overflow-y: auto;
  transform: translateX(-102%); transition: transform 0.28s ease; box-shadow: 4px 0 28px rgba(0,0,0,0.35);
}
.aldo-drawer.open { transform: none; }
.aldo-drawer hr { border: 0; border-top: 1px solid var(--black-12); margin: 0; }
.aldo-drawer-head { position: relative; height: 84px; display: grid; place-items: center; padding-top: var(--safe-top); }
.aldo-drawer-logo { font-family: var(--serif); font-size: 36px; }
.aldo-drawer-close { position: absolute; left: 10px; top: calc(var(--safe-top) + 18px); background: none; border: 0; font-family: var(--serif); font-size: 30px; color: #000; cursor: pointer; }
.aldo-drawer-title { padding: 18px 0; font-size: 15px; letter-spacing: 0.3px; }
.aldo-price-list { padding: 10px 0; }
.aldo-price-row {
  display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 16px; font-size: 18px; color: #000; cursor: pointer; font-family: var(--font);
}
.aldo-price-row img { width: 35px; height: 35px; margin-right: 14px; flex: 0 0 35px; }
.aldo-price-row.is-all .lbl { padding-left: 49px; }
.aldo-price-row .lbl { border-bottom: 1.5px solid transparent; }
.aldo-price-row[aria-pressed="true"] .lbl { font-weight: 700; border-bottom-color: #000; }
.aldo-price-row .ct { margin-left: auto; font-size: 13px; color: var(--black-60); }
.aldo-price-row:hover { background: var(--black-12); }

/* Comprar sheet: ivory panel, black type */
.modal-backdrop { background: rgba(0,0,0,0.6); }
.modal { background: var(--ivory); color: #000; border: 1px solid var(--black-12); }
.modal h2 { color: #000; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.modal-close { color: #000; }
.modal-lead, .pay-fee, .comprar-notes { color: var(--black-60); }
.modal label span { color: #000; }
.comprar-piece-summary { background: #FFFDF9; border: 1px solid var(--black-12); color: #000; }
.comprar-piece-summary strong { color: #000; }
.pay-option { background: #FFFDF9; border-color: var(--black-12); }
.pay-option:has(input:checked), .pay-option.selected { border-color: #000; background: rgba(0,0,0,0.04); }
.pay-option input { accent-color: #000; }
.pay-name, .ship-options .pay-option .pay-name { color: #000; }
.comprar-estimate { background: #FFFDF9; border: 1px dashed rgba(0,0,0,0.25); color: var(--black-60); }
.comprar-estimate strong, .comprar-estimate .est-line.total { color: #000; }
.ship-clause { background: #FFFDF9; border-color: var(--black-12); color: var(--black-60); }
.comprar-notes strong { color: #000; }
.btn-gold { background: #000; color: var(--ivory); box-shadow: none; }
.btn-ghost { color: #000; border-color: rgba(0,0,0,0.2); }
.confirm-subtext { color: #000; }
.field-label { color: #000; }
.toast { background: var(--ivory); color: #000; border: 1px solid var(--black-12); bottom: calc(var(--safe-bottom) + 120px); }
.toast.toast-gold { background: #000; color: var(--ivory); }
.feed-empty-filter h2 { color: var(--ivory); }
.feed-empty-filter p { color: var(--ivory-70); }
@media (min-width: 481px) {
  body { background: #000; }
  #app { border-left: 1px solid rgba(250,247,242,0.12); border-right: 1px solid rgba(250,247,242,0.12); }
}
/* single sound control: keep only the round mute toggle */
.gallery-slide.video-slide .video-tap-play { display: none !important; }
.video-mute-btn svg[hidden] { display: none !important; }
/* big price in place of the thumbnail */
.product-bar.has-bigprice { gap: 14px; }
.product-bar-bigprice {
  flex: 0 0 auto; min-width: 64px; padding-right: 14px; border-right: 1px solid var(--ivory-20);
  font-family: var(--serif); font-weight: 700; font-size: 2.15rem; line-height: 1; letter-spacing: -0.01em;
  color: var(--ivory); text-shadow: 0 1px 6px rgba(0,0,0,0.45); white-space: nowrap;
}
.product-bar.has-bigprice .product-bar-title { font-size: 1.05rem; }
/* second chip row: price ranges, always visible under the categories */
:root { --cats-row: 44px; --prices-row: 40px; --chips-h: calc(var(--cats-row) + var(--prices-row)); }
.aldo-cats { height: var(--cats-row); align-items: flex-end; padding-bottom: 2px; }
.aldo-prices {
  position: absolute; left: 0; right: 0; z-index: 29;
  top: calc(var(--header-h) + var(--safe-top) + var(--cats-row));
  height: var(--prices-row);
  display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 0 12px;
  background: #000; border-bottom: 1px solid var(--ivory-20); scrollbar-width: none;
}
.aldo-prices::-webkit-scrollbar { display: none; }
.aldo-pchip {
  flex: 0 0 auto; border: 1px dashed rgba(250,247,242,0.38); background: transparent; color: var(--ivory-70);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.aldo-pchip[aria-pressed="true"] { border: 1px solid var(--ivory); background: var(--ivory); color: #000; }
/* —— FINAL price control: single "Precio ▾" chip + dropdown with dual-handle slider —— */
:root { --chips-h: 46px; }
.aldo-cats { height: var(--chips-h); align-items: center; padding-bottom: 0; }
.aldo-prices, .aldo-filter-btn, .aldo-drawer, .aldo-overlay { display: none !important; }
.aldo-price-chip { border-color: var(--ivory-70); }
.aldo-price-chip .caret { font-size: 11px; margin-left: 3px; opacity: 0.8; }
.aldo-price-chip[aria-pressed="true"], .aldo-price-chip[aria-expanded="true"] { background: var(--ivory); color: #000; border-color: var(--ivory); }
.aldo-price-panel {
  position: absolute; left: 10px; right: 10px; z-index: 35;
  top: calc(var(--header-h) + var(--chips-h) + var(--safe-top) + 4px);
  background: var(--ivory); color: #000; border-radius: 16px; padding: 14px 18px 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45); font-family: var(--font);
}
.aldo-price-panel[hidden] { display: none; }
.aldo-pp-head { display: flex; align-items: baseline; justify-content: space-between; }
.aldo-pp-title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--black-60); }
.aldo-pp-val { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.aldo-range { position: relative; height: 44px; margin: 6px 4px 2px; }
.aldo-range-track, .aldo-range-fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.aldo-range-track { left: 0; right: 0; background: rgba(0,0,0,0.15); }
.aldo-range-fill { background: #000; }
.aldo-range input[type=range] {
  position: absolute; left: -14px; right: -14px; width: calc(100% + 28px); top: 0; height: 44px; margin: 0;
  background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.aldo-range input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.aldo-range input[type=range]::-moz-range-track { background: transparent; }
.aldo-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 30px; height: 30px; margin-top: 7px; border-radius: 50%;
  background: #000; border: 3px solid var(--ivory); box-shadow: 0 0 0 1px #000, 0 2px 8px rgba(0,0,0,0.35); cursor: grab;
}
.aldo-range input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 30px; height: 30px; border-radius: 50%; background: #000; border: 3px solid var(--ivory); box-shadow: 0 0 0 1px #000; cursor: grab;
}
.aldo-pp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--black-60); }
.aldo-pp-clear { background: none; border: 0; padding: 6px 0 6px 12px; font: inherit; font-size: 13px; font-weight: 700; color: #000; text-decoration: underline; cursor: pointer; }
.aldo-hist { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin: 10px 4px 0; }
.aldo-hist span { flex: 1; background: rgba(0,0,0,0.14); border-radius: 2px 2px 0 0; min-height: 2px; }
.aldo-hist span.on { background: #000; }
.aldo-range { margin-top: 0; }
.aldo-pp-count { font-size: 13.5px; color: var(--black-60); margin: 2px 0 8px; text-align: center; }
.aldo-pp-count b { color: #000; }
.aldo-pp-apply {
  background: #000; color: var(--ivory); border: 0; border-radius: 999px; padding: 10px 18px;
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.aldo-pp-apply:disabled { opacity: 0.35; }
.aldo-pp-clear { padding-left: 0; }

/* Specs stacked with bullets under title — keep bar compact on phone */
.product-bar-specs { color: var(--ivory-70); gap: 1px; }
.product-bar-spec-line { font-size: 0.68rem; }
.product-bar.has-bigprice .product-bar-meta { gap: 3px; }

/* 1012 bar2: price + Comprar centered, bullets legible, no clipping */
.product-bar.has-bigprice { align-items: center !important; padding-top: 10px !important; padding-bottom: 10px !important; }
.product-bar.has-bigprice .product-bar-bigprice,
.product-bar.has-bigprice .product-bar-cta { margin-top: 0 !important; align-self: center !important; }
.product-bar.has-bigprice .product-bar-meta { gap: 3px; justify-content: center; min-width: 0; overflow: visible; }
.product-bar-specs { max-height: none !important; overflow: visible !important; gap: 0 !important; font-size: 0.64rem !important; }
.product-bar-spec-line { font-size: 0.64rem !important; line-height: 1.35 !important; padding: 0 !important; overflow: hidden; }

/* 1012 bar2b: taller bar, more breathing room */
.product-bar.has-bigprice { padding-top: 18px !important; padding-bottom: 18px !important; min-height: 140px; }
.product-bar.has-bigprice .product-bar-meta { gap: 6px; }
.product-bar-spec-line { line-height: 1.55 !important; }

/* 1012 bar4: slimmer bar (~120px for 4 bullets) */
.product-bar.has-bigprice { padding-top: 15px !important; padding-bottom: 15px !important; min-height: 0 !important; }
.product-bar.has-bigprice .product-bar-meta { gap: 5px; }
.product-bar-spec-line { line-height: 1.5 !important; }

/* 1012 bar5: subtle spec labels */
.product-bar-spec-key { font-weight: 400; opacity: 0.62; }
.product-bar-spec-val { font-weight: 500; }
.product-bar.has-bigprice { gap: 10px !important; }
.product-bar.has-bigprice .product-bar-cta { padding: 0 14px !important; min-width: 0 !important; }
.product-bar-spec-line { letter-spacing: 0 !important; }

/* 1012 gift: 🎁 Regalo incluido under Comprar (>= $350) — absolutely placed in the bar's bottom padding, no layout change */
.product-bar-ctawrap { position: relative; flex-shrink: 0; align-self: center; display: flex; }
.product-bar-gift { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.66rem; font-weight: 600; line-height: 1.2; color: var(--ivory, #FAF7F2); text-decoration: none; letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7); padding: 2px 4px; }
.product-bar-gift:active { opacity: 0.7; }

/* 1012 gift2: label moved under the price (absolute, so the price stays centered) */
.product-bar-bigprice { position: relative; }
.product-bar-bigprice .product-bar-gift { top: calc(100% + 4px); left: calc(50% - 7px); transform: translateX(-50%); white-space: normal; width: 72px; text-align: center;
  font-family: var(--font, Raleway, sans-serif); font-size: 0.62rem; line-height: 1.2; padding: 1px 0; }
.product-bar-bigprice .product-bar-gift { white-space: nowrap !important; width: auto !important; }

/* 1012 gift4: white line gift icon only, centered under the price */
.product-bar-bigprice .product-bar-gift { width: auto !important; padding: 4px !important; line-height: 0 !important; color: #FFFFFF; display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)); top: calc(100% + 2px) !important; }
.product-bar-bigprice .product-bar-gift svg { display: block; width: 21px; height: 21px; }

/* 1012 gift5: 26px icon with a gentle heartbeat pulse (respects reduced motion) */
.product-bar-bigprice .product-bar-gift { top: calc(100% + 1px) !important; padding: 3px !important; }
.product-bar-bigprice .product-bar-gift svg { width: 26px; height: 26px; transform-origin: 50% 55%; animation: aldoGiftBeat 2s ease-in-out infinite; }
@keyframes aldoGiftBeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  14% { transform: scale(1.12); filter: drop-shadow(0 0 5px rgba(255,255,255,0.65)); }
  28% { transform: scale(1); filter: drop-shadow(0 0 1px rgba(255,255,255,0.2)); }
  42% { transform: scale(1.08); filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)); }
  60% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
@media (prefers-reduced-motion: reduce) { .product-bar-bigprice .product-bar-gift svg { animation: none; } }

/* 1012 gift6: clearly visible pulse (always on). Scale 1→1.2 + expanding glow ring; reduced motion → opacity/glow only */
.product-bar-bigprice .product-bar-gift { display: inline-block !important; }
.product-bar-bigprice .product-bar-gift svg { display: inline-block !important; transform-box: fill-box; transform-origin: center center !important;
  animation: aldoGiftPulse 1.8s ease-in-out infinite !important; will-change: transform; }
.product-bar-bigprice .product-bar-gift::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 0 8px rgba(255,255,255,0.6); pointer-events: none;
  opacity: 0; animation: aldoGiftRing 1.8s ease-out infinite; }
@keyframes aldoGiftPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  15% { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
  30% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.3)); }
  45% { transform: scale(1.12); filter: drop-shadow(0 0 5px rgba(255,255,255,0.7)); }
  65% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
@keyframes aldoGiftRing { 0% { transform: scale(0.7); opacity: 0.85; } 70% { transform: scale(1.55); opacity: 0; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes aldoGiftGlow { 0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 50% { opacity: 1; filter: drop-shadow(0 0 7px rgba(255,255,255,0.95)); } }
@keyframes aldoGiftRingSoft { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .product-bar-bigprice .product-bar-gift svg { animation: aldoGiftGlow 1.8s ease-in-out infinite !important; }
  .product-bar-bigprice .product-bar-gift::after { animation: aldoGiftRingSoft 1.8s ease-in-out infinite; transform: scale(1.25); }
}
/* gift6 autoplay: hide WebKit/Chrome native start-playback button on feed videos */
#feed video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
#feed video::-webkit-media-controls-overlay-play-button { display: none !important; }
#feed video::-webkit-media-controls { display: none !important; }
#feed video::-webkit-media-controls-panel { display: none !important; }

/* 12-oct gift7: smaller icon, price+gift lifted as one group, ring inside bar (>=10px) */
.product-bar.has-bigprice .product-bar-bigprice { transform: translateY(-7px) !important; }
.product-bar-bigprice .product-bar-gift { top: calc(100% + 2px) !important; }
.product-bar-bigprice .product-bar-gift svg { width: 20px !important; height: 20px !important; }
.product-bar-bigprice .product-bar-gift::after { width: 24px !important; height: 24px !important; margin: -12px 0 0 -12px !important; }

/* blackfix-1014: off-screen feed cards (>2 away) are not painted/composited. iOS Safari blanks the page (black) once too many
   backdrop-filter + infinite-animation + video layers accumulate in the scroll container. Visible cards look identical. */
.feed-card.aldo-far > * { visibility: hidden !important; }
.feed-card.aldo-far, .feed-card.aldo-far * { animation: none !important; will-change: auto !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
