/* ====== Ultimino — Storefront Styles ====== */
:root {
  --brand: #925F42;
  --brand-dark: #6E432E;
  --accent: #C89B6E;
  --cream: #F7F1EA;
  --cream-2: #FBF7F2;
  --ink: #2B211B;
  --muted: #8A7A6E;
  --line: #EADFD4;
  --white: #ffffff;
  --ok: #3E8B5E;
  --shadow-sm: 0 2px 10px rgba(110, 67, 46, 0.06);
  --shadow: 0 12px 40px rgba(110, 67, 46, 0.12);
  --shadow-lg: 0 24px 70px rgba(110, 67, 46, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====== Reveal animations (Framer-style, IntersectionObserver) ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====== Header ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,242,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--brand-dark); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .3s cubic-bezier(.22,1,.36,1); }
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 10px; transition: background .2s, transform .2s; color: var(--brand-dark); }
.icon-btn:hover { background: var(--cream); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 0; right: 0; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.badge-count.show { transform: scale(1); }
.menu-toggle { display: none; }

/* ====== Buttons ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: .95rem; padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(146,95,66,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(146,95,66,.36); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--cream); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ====== Hero ====== */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
    radial-gradient(1000px 500px at 80% -10%, rgba(200,155,110,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(146,95,66,.10), transparent 55%),
    var(--cream); z-index: -2; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: -1; animation: float 9s ease-in-out infinite; }
.blob-1 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #E8CBA9, transparent 70%); top: 10%; right: 8%; }
.blob-2 { width: 200px; height: 200px; background: radial-gradient(circle at 40% 40%, #D8B48C, transparent 70%); bottom: 4%; left: 6%; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--brand-dark); font-weight: 600; font-size: .82rem; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.02em; color: var(--brand-dark); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin: 20px 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stat b { font-family: var(--serif); font-size: 1.7rem; color: var(--brand-dark); display: block; }
.hero-stat span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-card { display: block; text-decoration: none; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-2deg); transition: transform .5s, box-shadow .5s; }
.hero-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 30px 80px rgba(110,67,46,.24); }
.hero-card .hc-img { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--cream), var(--accent)); display: grid; place-items: center; font-size: 5rem; overflow: hidden; }
.hero-card .hc-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .hc-body { padding: 18px 20px; }
.hero-card .hc-body h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--brand-dark); }
.hero-card .hc-body .price { font-weight: 700; color: var(--brand); }
.hero-float-tag { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite; }
.tag-a { top: -18px; left: -24px; }
.tag-b { bottom: 24px; right: -20px; animation-delay: 1.5s; }

/* ====== Section headers ====== */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .kicker { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--brand-dark); margin: 10px 0; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ====== Categories ====== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s; }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .ci { font-size: 2.8rem; margin-bottom: 14px; display: inline-block; transition: transform .35s; }
.cat-card:hover .ci { transform: scale(1.15) rotate(-6deg); }
.cat-card h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--brand-dark); }
.cat-card p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ====== Product grid & cards ====== */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 26px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prod-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(135deg, var(--cream), #EBD9C6); display: grid; place-items: center; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.prod-card:hover .prod-media img { transform: scale(1.07); }
.prod-media .placeholder-emoji { font-size: 4rem; opacity: .5; }
.prod-badge { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.wish-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; cursor: pointer; transition: transform .25s, background .25s; }
.wish-btn:hover { transform: scale(1.12); }
.wish-btn svg { width: 19px; height: 19px; stroke: var(--brand); fill: none; transition: fill .2s; }
.wish-btn.active svg { fill: var(--brand); }
.prod-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.prod-cat-tag { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.prod-body h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-dark); margin: 5px 0 6px; line-height: 1.25; }
.prod-body .pdesc { color: var(--muted); font-size: .86rem; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price-wrap { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-weight: 700; font-size: 1.2rem; color: var(--brand); }
.price-was { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.add-btn { background: var(--cream); color: var(--brand-dark); border: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; transition: background .25s, transform .25s, color .25s; }
.add-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.add-btn svg { width: 20px; height: 20px; }

/* ====== Filter bar ====== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ====== Feature strip ====== */
.feature-strip { background: var(--brand-dark); color: #fff; }
.feature-strip .container { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 30px; padding: 46px 24px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .fi { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .3s, transform .3s; }
.feat:hover .fi { background: var(--accent); transform: translateY(-3px); }
.feat .fi svg { width: 23px; height: 23px; color: var(--accent); transition: color .3s; }
.feat:hover .fi svg { color: var(--brand-dark); }
.feat h4 { font-size: 1rem; margin-bottom: 3px; }
.feat p { font-size: .88rem; opacity: .82; }

/* ====== Product detail ====== */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 50px 0; }
.pd-gallery .pd-main { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--cream), #EBD9C6); aspect-ratio: 1/1; display: grid; place-items: center; cursor: zoom-in; position: relative; }
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pd-gallery .pd-main .ph { font-size: 6rem; opacity: .5; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--cream); transition: border-color .2s; }
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .pd-cat { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.pd-info h1 { font-family: var(--serif); font-size: 2.2rem; color: var(--brand-dark); margin: 8px 0 14px; line-height: 1.1; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pd-price .now { font-size: 2rem; font-weight: 700; color: var(--brand); }
.pd-price .was { font-size: 1.2rem; color: var(--muted); text-decoration: line-through; }
.pd-price .save { background: #E9F5EE; color: var(--ok); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.pd-desc { color: #5A4B40; margin-bottom: 26px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-trust { margin-top: 28px; display: grid; gap: 12px; }
.pd-trust li { list-style: none; display: flex; align-items: center; gap: 10px; color: #5A4B40; font-size: .92rem; }
.pd-trust li svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; }

/* ====== Zoom lightbox ====== */
.lightbox { position: fixed; inset: 0; background: rgba(43,33,27,.9); z-index: 300; display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade .3s; }
.lightbox img, .lightbox .lb-emoji { max-width: 90vw; max-height: 90vh; border-radius: 14px; }
.lightbox .lb-emoji { font-size: 12rem; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ====== Cart / Wishlist drawer ====== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(43,33,27,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 90vw; background: #fff; z-index: 201; box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--brand-dark); }
.drawer-close { background: var(--cream); border: none; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.2rem; color: var(--brand-dark); transition: background .2s; }
.drawer-close:hover { background: var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-img { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg,var(--cream),#EBD9C6); display: grid; place-items: center; font-size: 1.7rem; overflow: hidden; flex-shrink: 0; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info h4 { font-size: .95rem; color: var(--brand-dark); }
.cart-item .ci-info .ci-price { color: var(--brand); font-weight: 700; font-size: .95rem; }
.cart-item .ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 0; }
.cart-item .ci-remove:hover { color: #C0392B; }
.drawer-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.drawer-empty .de-icon { font-size: 3rem; margin-bottom: 12px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); margin-bottom: 8px; }
.drawer-note { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }

/* ====== Toast ====== */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--brand-dark); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow); z-index: 400; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 10px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ====== Newsletter / CTA ====== */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 28px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.08); border-radius: 50%; top: -120px; right: -60px; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,2.5rem); margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .9; max-width: 520px; margin: 0 auto 26px; position: relative; }
.cta-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; position: relative; }
.cta-form input { flex: 1; border: none; border-radius: 999px; padding: 14px 20px; font-family: var(--font); font-size: .95rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ====== Footer ====== */
.site-footer { background: var(--brand-dark); color: #EBD9C6; padding: 60px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { opacity: .75; font-size: .9rem; max-width: 280px; }
.footer-col h5 { font-family: var(--serif); color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-col a { display: block; opacity: .78; font-size: .9rem; margin-bottom: 10px; transition: opacity .2s, transform .2s; }
.footer-col a:hover { opacity: 1; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; opacity: .7; }

/* ====== Legal / content pages ====== */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.legal-wrap h1 { font-family: var(--serif); font-size: 2.4rem; color: var(--brand-dark); margin-bottom: 8px; }
.legal-wrap .updated { color: var(--muted); font-size: .88rem; margin-bottom: 34px; }
.legal-wrap h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--brand-dark); margin: 32px 0 12px; }
.legal-wrap p, .legal-wrap li { color: #4A3D34; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 14px; }

/* ====== Breadcrumb ====== */
.breadcrumb { display: flex; gap: 8px; align-items: center; padding: 24px 0 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ====== Empty state ====== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .es-icon { font-size: 4rem; margin-bottom: 16px; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .hero-grid, .pd-wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--cream-2); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; border-bottom: 1px solid var(--line); transition: max-height .35s ease; }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 24px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .cta-form { flex-direction: column; }
}
