*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #fff; color: #111; }

/* ── TOP BANNER ── */
.top-banner { background: #1A1A1A; color: rgba(255,255,255,0.75); text-align: center; padding: 8px 16px; font-size: 12px; letter-spacing: 0.3px; }
.top-banner strong { color: #E8C97A; font-weight: 500; }

/* ── HEADER ── */
.header { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; border-bottom: 0.5px solid #e5e5e5; background: #fff; gap: 20px; position: relative; z-index: 200; }
.logo { font-size: 18px; font-weight: 500; color: #111; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: #E8740C; }
.nav-mid { display: flex; gap: 22px; }
.nav-mid a { font-size: 13px; color: #666; text-decoration: none; transition: color 0.15s; }
.nav-mid a:hover { color: #111; }
.nav-mid a.nav-active { color: #E8740C; font-weight: 500; }

/* ── SEARCH ── */
.search-wrap { position: relative; width: 200px; transition: width 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 300; }
.search-wrap:hover, .search-wrap.active { width: 420px; }
.search-box { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 99px; padding: 8px 16px; cursor: text; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; width: 100%; }
.search-wrap:hover .search-box, .search-wrap.active .search-box { background: #fff; border-color: #E8740C; box-shadow: 0 0 0 3px rgba(232,116,12,0.12); }
.search-icon { font-size: 15px; color: #999; flex-shrink: 0; transition: color 0.25s; }
.search-wrap:hover .search-icon, .search-wrap.active .search-icon { color: #E8740C; }
.search-input { border: none; background: transparent; outline: none; font-size: 13px; color: #111; width: 100%; font-family: inherit; cursor: pointer; }
.search-input::placeholder { color: #aaa; }
.search-wrap:hover .search-input::placeholder, .search-wrap.active .search-input::placeholder { color: #888; }
.cat-pill { display: flex; align-items: center; gap: 4px; background: #ebebeb; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 500; color: #666; white-space: nowrap; flex-shrink: 0; opacity: 0; pointer-events: none; transition: opacity 0.25s, background 0.15s, color 0.15s; cursor: pointer; }
.search-wrap:hover .cat-pill, .search-wrap.active .cat-pill { opacity: 1; pointer-events: auto; }
.cat-pill:hover { background: #FDF0E3; color: #B35607; }
.cat-pill i { font-size: 12px; }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 0.5px solid #e5e5e5; border-radius: 16px; padding: 12px 0; z-index: 400; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.search-wrap:hover .search-dropdown, .search-wrap.active .search-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.drop-section-label { font-size: 10px; font-weight: 500; color: #bbb; letter-spacing: 0.8px; text-transform: uppercase; padding: 6px 16px 4px; }
.trending-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 10px; }
.tpill { display: flex; align-items: center; gap: 5px; background: #f5f5f5; border: 0.5px solid #e5e5e5; border-radius: 99px; padding: 5px 12px; font-size: 12px; color: #555; cursor: pointer; transition: all 0.15s; }
.tpill:hover { background: #FDF0E3; border-color: #F3C38A; color: #B35607; }
.tpill i { font-size: 13px; }
.drop-divider { height: 0.5px; background: #f0f0f0; margin: 8px 0; }
.drop-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; transition: background 0.1s; }
.drop-item:hover { background: #fdf6f0; }
.drop-item:hover .drop-text { color: #E8740C; }
.drop-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drop-icon i { font-size: 15px; }
.drop-info { flex: 1; }
.drop-text { font-size: 13px; color: #111; transition: color 0.1s; }
.drop-sub { font-size: 11px; color: #bbb; }
.drop-badge { font-size: 10px; font-weight: 500; background: #FDF0E3; color: #B35607; padding: 2px 8px; border-radius: 99px; border: 0.5px solid #F3C38A; white-space: nowrap; }

/* ── NAV RIGHT ── */
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #555; cursor: pointer; transition: background 0.15s; text-decoration: none; }
a.nav-icon { text-decoration: none; display: flex; }
a.nav-icon i { pointer-events: none; }
.nav-icon i { font-size: 19px; }
.nav-icon:hover { background: #f5f5f5; }
.sign-in-btn { font-size: 13px; font-weight: 500; background: #1A1A1A; color: #fff; padding: 8px 18px; border-radius: 99px; border: none; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.sign-in-btn:hover { background: #333; }

/* ── WELCOME OVERLAY ── */
.welcome-overlay { position: fixed; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 999; transition: opacity 0.7s ease; }
.welcome-overlay.hide { opacity: 0; pointer-events: none; }
.w-greeting { font-size: 14px; font-weight: 500; color: #bbb; letter-spacing: 1px; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.w-greeting.show { opacity: 1; transform: translateY(0); }
.w-name { font-size: 52px; font-weight: 500; color: #111; letter-spacing: -2px; line-height: 1; opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s; }
.w-name.show { opacity: 1; transform: translateY(0); }
.w-name span { color: #E8740C; }
.w-divider { width: 40px; height: 2px; background: #E8740C; border-radius: 99px; opacity: 0; margin: 2px 0; transition: opacity 0.4s ease 0.3s; }
.w-divider.show { opacity: 1; }
.w-scrolling { height: 30px; overflow: hidden; opacity: 0; transition: opacity 0.4s ease 0.4s; }
.w-scrolling.show { opacity: 1; }
.w-scroll-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: scrollWords 5.5s ease-in-out forwards; animation-play-state: paused; }
.w-scroll-inner.run { animation-play-state: running; }
@keyframes scrollWords { 0%{transform:translateY(0)} 28%{transform:translateY(0)} 33%{transform:translateY(-32px)} 61%{transform:translateY(-32px)} 66%{transform:translateY(-64px)} 100%{transform:translateY(-64px)} }
.w-word { font-size: 15px; color: #888; text-align: center; height: 30px; line-height: 30px; white-space: nowrap; }
.w-word strong { color: #E8740C; font-weight: 500; }

/* ── HERO — 3 columns ── */
.hero { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 0.5px solid #e5e5e5; min-height: 380px; opacity: 0; transition: opacity 0.7s ease; }
.hero.show { opacity: 1; }

/* LEFT */
.hero-left { padding: 44px 28px; display: flex; flex-direction: column; justify-content: center; border-right: 0.5px solid #e5e5e5; }
.mini-greeting { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #B35607; background: #FDF0E3; border: 0.5px solid #F3C38A; border-radius: 99px; padding: 6px 16px; margin-bottom: 12px; width: fit-content; opacity: 0; transform: translateY(-6px); transition: opacity 0.5s ease, transform 0.5s ease; }
.mini-greeting.show { opacity: 1; transform: translateY(0); }
.mini-greeting i { font-size: 15px; }
.mini-name { color: #E8740C; font-weight: 500; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; background: #f5f5f5; color: #888; padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; width: fit-content; border: 0.5px solid #e5e5e5; }
.hero-chip i { font-size: 13px; }
.hero-left h1 { font-size: 26px; font-weight: 500; color: #111; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px; }
.hero-left h1 em { font-style: normal; color: #E8740C; }
.hero-sub { font-size: 13px; color: #666; line-height: 1.65; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 9px; }
.btn-dark { background: #1A1A1A; color: #fff; font-size: 13px; font-weight: 500; padding: 10px 20px; border-radius: 99px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: #111; font-size: 13px; padding: 10px 20px; border-radius: 99px; border: 0.5px solid #ccc; cursor: pointer; transition: background 0.15s; }
.btn-outline:hover { background: #f5f5f5; }

/* MIDDLE */
.hero-mid { padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; border-right: 0.5px solid #e5e5e5; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card { background: #f9f9f9; border: 0.5px solid #e5e5e5; border-radius: 10px; padding: 10px 12px; }
.stat-num { font-size: 17px; font-weight: 500; color: #111; letter-spacing: -0.5px; }
.stat-num span { color: #E8740C; }
.stat-label { font-size: 10px; color: #888; margin-top: 2px; line-height: 1.3; }
.live-row { display: flex; align-items: center; justify-content: space-between; }
.live-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: #993C1D; background: #FAECE7; border: 0.5px solid #F5C4B3; border-radius: 99px; padding: 4px 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #E8740C; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }
.countdown { font-size: 11px; font-weight: 500; color: #111; }
.countdown span { color: #E8740C; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 6px; width: max-content; animation: stripScroll 10s linear infinite; }
@keyframes stripScroll { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }
.strip-pill { display: inline-flex; align-items: center; gap: 4px; background: #f9f9f9; border: 0.5px solid #e5e5e5; border-radius: 99px; padding: 4px 10px; font-size: 10px; color: #555; flex-shrink: 0; white-space: nowrap; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.strip-pill:hover { background: #FDF0E3; border-color: #F3C38A; color: #B35607; }
.active-pill { background: #FDF0E3 !important; border-color: #E8740C !important; color: #B35607 !important; font-weight: 500; }
.strip-pill i { font-size: 11px; color: #E8740C; }
.mid-label { font-size: 10px; font-weight: 500; color: #bbb; letter-spacing: 0.6px; text-transform: uppercase; }
.cards-viewport { overflow: hidden; position: relative; flex: 1; min-height: 160px; }
.cards-track { display: flex; flex-direction: column; gap: 7px; position: absolute; top: 0; animation: cardsLoop 8s linear infinite; width: 100%; }
@keyframes cardsLoop { 0%{transform:translateY(0)}100%{transform:translateY(-50%)} }
.mcard { background: #f9f9f9; border: 0.5px solid #e5e5e5; border-radius: 10px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.mcard-icon { width: 32px; height: 32px; background: #fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcard-icon i { font-size: 16px; color: #bbb; }
.mcard-name { font-size: 11px; font-weight: 500; color: #111; margin-bottom: 2px; }
.mcard-price { font-size: 11px; font-weight: 500; color: #E8740C; }
.mcard-was { font-size: 10px; color: #bbb; text-decoration: line-through; margin-left: 3px; }
.mtag { font-size: 9px; font-weight: 500; padding: 1px 6px; border-radius: 99px; display: inline-block; margin-bottom: 2px; }
.t-elec { background: #E6F1FB; color: #0C447C; }
.t-home { background: #EAF3DE; color: #27500A; }
.t-clean { background: #EEEDFE; color: #3C3489; }
.t-cloth { background: #FAEEDA; color: #633806; }

/* RIGHT — rotating featured */
.hero-right { background: #f0f0f0; display: flex; flex-direction: column; padding: 18px 16px; gap: 12px; }
.right-top { display: flex; align-items: center; justify-content: space-between; }
.right-title { font-size: 13px; font-weight: 500; color: #111; }
.cat-badge { font-size: 10px; font-weight: 500; padding: 3px 10px; border-radius: 99px; transition: background 0.3s, color 0.3s; }
.progress-bar { height: 2px; background: #e0e0e0; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: #E8740C; border-radius: 99px; width: 0%; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.pcard { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s, border-color 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1.5px solid transparent; text-decoration: none; color: inherit; }
.pcard.show { opacity: 1; transform: translateY(0); }
.pcard:hover { box-shadow: 0 4px 16px rgba(232,116,12,0.15); border-color: #E8740C; }
.pcard:active { transform: scale(0.97); }
.pcard-img { width: 100%; height: 72px; background: #f5f5f5; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pcard-img i { font-size: 26px; color: #ccc; }
.pcard-name { font-size: 11px; font-weight: 500; color: #111; line-height: 1.3; }
.pcard-price { font-size: 12px; font-weight: 500; color: #E8740C; }
.pcard-was { font-size: 10px; color: #bbb; text-decoration: line-through; margin-left: 3px; }
.dots { display: flex; gap: 5px; justify-content: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; transition: background 0.3s, width 0.3s; }
.dot.active { background: #E8740C; width: 16px; border-radius: 99px; }
.explore-btn { background: #1A1A1A; color: #fff; border: none; border-radius: 99px; padding: 10px 18px; font-size: 12px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease, background 0.15s; pointer-events: none; }
.explore-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.explore-btn:hover { background: #333; }
.explore-btn i { font-size: 13px; }

/* ── CATEGORIES ── */
.categories { display: grid; grid-template-columns: repeat(5,1fr); border-bottom: 0.5px solid #e5e5e5; }
.cat-card { padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 0.5px solid #e5e5e5; cursor: pointer; text-decoration: none; color: inherit; transition: background 0.15s; }
.cat-card:last-child { border-right: none; }
.cat-card:hover { background: #f5f5f5; }
.cat-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cat-dot i { font-size: 20px; }
.cat-card span { font-size: 12px; color: #666; text-align: center; }

/* ── FRESH THIS WEEK ── */
.fresh { padding: 30px 28px; border-bottom: 0.5px solid #e5e5e5; }
.fresh-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fresh-header h2 { font-size: 16px; font-weight: 500; color: #111; }
.view-all { font-size: 13px; color: #E8740C; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.view-all:hover { text-decoration: underline; }
.fresh-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.prod-card { background: #fff; border: 0.5px solid #e5e5e5; border-radius: 12px; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: block; transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.prod-card:hover { border-color: #E8740C; box-shadow: 0 0 0 3px rgba(232,116,12,0.15); }
.prod-card:active { box-shadow: 0 0 0 3px rgba(232,116,12,0.3); transform: scale(0.98); }
.prod-img { height: 90px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.prod-img i { font-size: 32px; color: #bbb; }
.prod-body { padding: 10px 12px 14px; }
.prod-name { font-size: 13px; font-weight: 500; color: #111; margin-bottom: 5px; line-height: 1.3; }
.tag { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 99px; display: inline-block; margin-bottom: 6px; }
.tag-elec { background: #E6F1FB; color: #0C447C; }
.tag-home { background: #EAF3DE; color: #27500A; }
.tag-clean { background: #EEEDFE; color: #3C3489; }
.tag-cloth { background: #FAEEDA; color: #633806; }
.price { font-size: 14px; font-weight: 500; color: #E8740C; }
.old-price { font-size: 11px; color: #bbb; text-decoration: line-through; margin-left: 5px; }

/* ── TRUST ROW ── */
.trust-row { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 0.5px solid #e5e5e5; }
.trust-cell { padding: 20px 24px; display: flex; align-items: center; gap: 12px; border-right: 0.5px solid #e5e5e5; }
.trust-cell:last-child { border-right: none; }
.trust-cell i { font-size: 22px; color: #E8740C; flex-shrink: 0; }
.trust-title { font-size: 13px; font-weight: 500; color: #111; }
.trust-sub { font-size: 12px; color: #888; margin-top: 2px; }

/* ── SOCIAL BAND ── */
.social-band { background: #1A1A1A; padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.social-text h2 { font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 5px; }
.social-text p { font-size: 13px; color: rgba(255,255,255,0.5); }
.social-btns { display: flex; gap: 10px; flex-shrink: 0; }
.social-btns button { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.15); border-radius: 99px; padding: 8px 16px; font-size: 13px; color: rgba(255,255,255,0.85); cursor: pointer; white-space: nowrap; transition: background 0.15s; font-family: inherit; }
.social-btns button i { font-size: 16px; }
.social-btns button:hover { background: rgba(255,255,255,0.18); }

/* ── FOOTER ── */
.footer { padding: 18px 28px; border-top: 0.5px solid #e5e5e5; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-size: 14px; font-weight: 500; color: #111; }
.footer-logo span { color: #E8740C; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #888; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #111; }

/* ── SHARED NAV — profile button & cart badge ── */
.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f5f5f5;
  border: 0.5px solid #e5e5e5;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  color: #111;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.profile-nav-btn:hover {
  background: #FDF0E3;
  border-color: #F3C38A;
  color: #B35607;
  box-shadow: 0 2px 8px rgba(232,116,12,0.15);
}
.profile-nav-btn.active-page {
  background: #FDF0E3;
  border-color: #E8740C;
  color: #B35607;
}
.profile-nav-btn i { font-size: 14px; }
.p-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E8740C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: #E8740C;
  border-radius: 50%;
  font-size: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.nav-mid a.active { color: #E8740C; font-weight: 500; }