/* flower eye — brand portal styles
   White, business-minimal (Xiaomi Global style), with Walmart blue/yellow accents and brand rose red. */
:root {
  --red: #d3141c;
  --red-dark: #a80f16;
  --ink: #191919;
  --muted: #6b6b6b;
  --line: #eaeaea;
  --bg-soft: #f7f7f8;
  --wm-blue: #0071dc;
  --wm-blue-dark: #004f9a;
  --wm-yellow: #ffc220;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .06);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1220px, 92%); margin: 0 auto; }
.center { text-align: center; margin-top: 38px; }

/* Announcement */
.announce { background: var(--wm-blue); color: #fff; font-size: 13px; text-align: center; padding: 9px 14px; letter-spacing: .01em; }
.announce a { color: var(--wm-yellow); font-weight: 700; margin-left: 10px; }
.announce a:hover { text-decoration: underline; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 30px; flex: 1; }
.nav a { font-size: 15px; font-weight: 500; color: #333; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: all .2s; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--wm-blue); color: var(--wm-blue); }
.btn-walmart { background: var(--wm-blue); color: #fff; }
.btn-walmart:hover { background: var(--wm-blue-dark); transform: translateY(-1px); }
.header-cta { padding: 9px 18px; font-size: 14px; }

/* Walmart-style spark icon (pure CSS) */
.spark { width: 14px; height: 14px; position: relative; display: inline-block; }
.spark::before, .spark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 14px; background: var(--wm-yellow); border-radius: 2px; transform: translate(-50%,-50%); }
.spark::after { transform: translate(-50%,-50%) rotate(60deg); }
.spark { background: linear-gradient(var(--wm-yellow),var(--wm-yellow)) center/3px 14px no-repeat; transform: rotate(-60deg); }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #fcfcfd 0%, #f3f4f6 100%); overflow: hidden; border-bottom: 1px solid var(--line); }
.slides { position: relative; min-height: 540px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .75s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 44px; min-height: 540px; padding: 36px 0 64px; }
.eyebrow { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.eyebrow.red { color: var(--red); }
.eyebrow.blue { color: var(--wm-blue); }
.eyebrow.yellow { color: var(--wm-yellow); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: 17px; color: var(--muted); margin: 18px 0 28px; max-width: 500px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-art { display: flex; justify-content: center; align-items: center; }
.slide-art img { width: min(440px, 90%); border-radius: 20px; filter: drop-shadow(0 18px 36px rgba(0,0,0,.09)); }
.slide-art.logo-art img { border-radius: 0; width: min(460px, 92%); }
.dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.dots button { width: 30px; height: 4px; border: 0; border-radius: 2px; background: #cfcfcf; cursor: pointer; transition: background .3s, width .3s; }
.dots button.active { background: var(--red); width: 42px; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 5; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; }
.cat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.09); border-color: #dcdcdc; }
.cat span { color: var(--red); font-size: 20px; font-weight: 700; }

/* Sections */
.section { padding: 76px 0 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section h2, .promo h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.015em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: #444; transition: all .2s; }
.filters button:hover { border-color: #bbb; color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #f2f2f2; }
.card-media img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img.photo { transform: scale(1.04); }
.card-media .placeholder { width: 34%; opacity: .22; }
.card-media .ph-label { position: absolute; bottom: 12px; font-size: 12px; color: #999; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.best { background: var(--wm-blue); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sku { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8c8c8c; text-transform: uppercase; }
.card-body h3 { font-size: 15.5px; font-weight: 600; line-height: 1.38; color: var(--ink); }
.card-body p { font-size: 13.5px; color: var(--muted); flex: 1; line-height: 1.5; margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f3f3; }
.price { font-size: 18px; font-weight: 700; color: var(--ink); }
.card-link { font-size: 13.5px; font-weight: 600; color: var(--wm-blue); }
.card-link:hover { text-decoration: underline; }

/* Showcase (Xiaomi Bento Grid style) */
.showcase { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; min-height: 440px; }
.tile { border-radius: var(--radius); background: var(--bg-soft); padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-large { grid-row: span 2; background: linear-gradient(135deg, #fff7f7 0%, #f7f7f8 65%); flex-direction: column; align-items: flex-start; justify-content: space-between; }
.tile-large .tile-thumb { width: min(320px, 75%); align-self: flex-end; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.tile .tile-thumb-sm { width: 130px; height: 130px; object-fit: cover; border-radius: 12px; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.tile h3 { font-size: 24px; margin-bottom: 6px; line-height: 1.25; }
.tile p { color: var(--muted); font-size: 14.5px; max-width: 360px; }
.tile .link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--red); }
.tile-blue { background: linear-gradient(135deg, #0071dc 0%, #0054a6 100%); color: #fff; border-color: transparent; }
.tile-blue p { color: rgba(255,255,255,.85); }
.tile-blue .link { color: var(--wm-yellow); }
.tile > div { position: relative; z-index: 1; }

/* Features */
.features { background: var(--bg-soft); margin-top: 80px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 0 10px; }
.ficon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--red); box-shadow: var(--shadow); margin-bottom: 14px; font-weight: 700; }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding-bottom: 80px; }
.about-art { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 48px; display: flex; justify-content: center; align-items: center; }
.about-text p { color: #444; margin-top: 14px; font-size: 15.5px; }
.about-text h2 { margin-bottom: 4px; }
.trademark-pill { display: inline-block; margin-top: 18px; padding: 6px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Promo */
.promo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 0; background: #fff; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.promo p { color: var(--muted); margin-top: 6px; }
.promo-links { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip-walmart { background: var(--wm-blue); color: #fff; border-color: var(--wm-blue); }
.chip-walmart:hover { background: var(--wm-blue-dark); border-color: var(--wm-blue-dark); }
.chip.disabled { color: #aaa; pointer-events: none; }

/* Footer */
.footer { padding: 50px 0 28px; font-size: 14px; color: var(--muted); background: #fafafa; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 { color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4%; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .slides, .slide-inner { min-height: 620px; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; padding: 32px 0 60px; gap: 16px; }
  .slide-inner .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .slide-art { order: -1; }
  .slide-art img { width: 68%; }
  .categories { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .showcase { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tile-large { grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}
