:root {
  --primary: #1d1b74;
  --accent: #f4a21e;
  --green: #18c65b;
  --red: #ef4444;
  --text: #171733;
  --muted: #667085;
  --line: #ececf3;
  --soft: #f7f7fb;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(16, 24, 40, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f2f2f5;
  scroll-padding-top: 132px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, 92%); margin: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.page-loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(255,255,255,.65);
  transition: opacity .18s ease;
}
.page-loader span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #1d1b74, #f4a21e, #18c65b, #ef4444);
  box-shadow: 0 0 14px rgba(244, 162, 30, .45);
  transition: width .35s ease;
}
.page-loader.active { opacity: 1; }
.page-loader.active span {
  width: 78%;
  animation: loader-glow 1.05s ease-in-out infinite;
}
.page-loader.done span { width: 100%; }
@keyframes loader-glow {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.45); }
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
.top-left, .top-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05);
}
.header-main {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(320px, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); min-width: 0; }
.logo-image { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; flex: 0 0 auto; }
.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffcf77);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  flex: 0 0 auto;
}
.logo-text { min-width: 0; }
.logo-text strong { display: block; max-width: 185px; font-size: 22px; line-height: 1.04; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { display: block; color: var(--accent); font-size: 13px; line-height: 1.25; font-weight: 800; margin-top: 4px; }
.search {
  display: flex;
  align-items: center;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  position: relative;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  font-size: 14px;
}
.search select {
  height: 100%;
  max-width: 165px;
  border: 0;
  border-left: 1px solid var(--line);
  outline: 0;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
}
.search button {
  height: 100%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}
.search-suggest {
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(100% + 8px);
  z-index: 950;
  display: grid;
  gap: 4px;
  max-height: min(430px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .16);
}
.search-suggest[hidden] { display: none; }
.suggest-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  color: var(--primary);
}
.suggest-item:hover { background: var(--soft); }
.suggest-item img, .suggest-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--soft);
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
}
.suggest-item b, .suggest-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item b { font-size: 13px; }
.suggest-item small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.suggest-item strong { font-size: 12px; color: var(--accent); white-space: nowrap; }
.cart-area { display: flex; justify-content: flex-end; align-items: center; color: var(--primary); font-weight: 800; }
.cart {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .06);
}
.cart { position: relative; }
.cart-icon {
  width: 24px;
  height: 22px;
  position: relative;
  color: transparent;
  font-size: 0;
}
.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 16px;
  height: 10px;
  border: 2px solid var(--primary);
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}
.cart-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 17px;
  height: 8px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform: skewX(-18deg);
}
.cart-count {
  position: absolute;
  right: -4px;
  top: -7px;
  background: var(--accent);
  color: #fff;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  border: 2px solid #fff;
}
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; }
.dept {
  background: #fff8eb;
  color: #735100;
  font-weight: 800;
  padding: 13px 17px;
  border-radius: 12px;
  border: 1px solid #ffebb8;
  white-space: nowrap;
}
.menu { display: flex; align-items: center; gap: 26px; font-weight: 700; color: #27215f; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { white-space: nowrap; }
.ticker {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #111827;
  font-weight: 400;
  font-size: 14px;
}
.ticker-track { display: flex; width: max-content; animation: marquee 26s linear infinite; padding: 10px 0; }
.ticker-track span { padding-right: 42px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero { background: #fff; padding-bottom: 34px; }
.hero-wrap {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  background: var(--primary);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-content { width: min(560px, 90%); margin-left: 7%; color: #fff; padding: 55px 0; }
.eyebrow {
  display: inline-flex;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.hero h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.03; margin: 18px 0 14px; }
.hero p { color: #f7f7ff; font-size: 18px; line-height: 1.7; margin: 0 0 26px; max-width: 520px; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border-color: var(--line); }
.hero-badge {
  position: absolute;
  right: 8%;
  bottom: 46px;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  width: 250px;
  box-shadow: var(--shadow);
}
.hero-badge strong { color: var(--primary); font-size: 26px; display: block; }
.hero-badge small { color: var(--muted); font-weight: 700; }
.hero-dots {
  position: absolute;
  left: 7%;
  bottom: 30px;
  display: flex;
  gap: 9px;
  z-index: 5;
}
.hero-dots button {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dots button.active { background: var(--accent); }
.section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; line-height: 1.1; margin: 0 0 6px; color: var(--primary); }
.section-head p { margin: 0; color: var(--muted); }
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(29,27,116,.74));
  z-index: 1;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; position: absolute; inset: 0; }
.cat-card:hover img { transform: scale(1.06); }
.cat-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: #fff;
  color: var(--primary);
  border-radius: 11px;
  padding: 11px 12px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature { display: flex; align-items: center; gap: 12px; padding: 10px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff2f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}
.feature strong { display: block; font-size: 13px; color: var(--primary); }
.feature small { color: var(--muted); font-size: 12px; }
.deal-section, footer { background: #fff; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.product-img { height: 220px; background: #f8f8fc; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-img img { height: 100%; width: 100%; object-fit: cover; }
.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}
.tag-featured {
  left: auto;
  right: 12px;
  background: var(--primary);
}
.product-body { padding: 16px; }
.price { font-size: 20px; font-weight: 900; color: var(--primary); }
.old { color: #9aa0ad; text-decoration: line-through; font-size: 13px; margin-right: 8px; }
.sku { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.product h3 { font-size: 15px; line-height: 1.45; min-height: 42px; margin: 10px 0 14px; }
.add {
  width: 100%;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 11px;
  padding: 11px;
  font-weight: 900;
  cursor: pointer;
}
.add:hover { background: var(--primary); color: #fff; }
.add:disabled, .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f2f4f7;
  color: var(--muted);
  border-color: var(--line);
}
.promo { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: stretch; }
.promo-card, .mini-banner {
  border-radius: 24px;
  min-height: 310px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-position: center;
  background-size: cover;
}
.promo-card { color: #fff; background-color: var(--primary); }
.promo-card h2 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; }
.promo-card p { margin: 0 0 22px; color: #f1f1ff; max-width: 500px; }
.mini-banner { background: #fff7e8; border: 1px solid #ffe0a8; }
.mini-banner h2 { font-size: 28px; margin: 0 0 10px; color: var(--primary); }
.mini-banner p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.detail-image { width: 100%; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.inline-form input[type="number"] { width: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.description { margin-top: 24px; line-height: 1.8; color: var(--muted); }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 800; color: var(--primary); }
.panel input, .panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
.panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.panel textarea { min-height: 110px; resize: vertical; }
.empty { grid-column: 1 / -1; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.notice { border-radius: 12px; padding: 14px; margin-bottom: 16px; line-height: 1.6; }
.notice.error { background: #fff2f2; border: 1px solid #ffd2d2; color: #b42318; }
.notice.success { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.auth-section { min-height: 48vh; display: grid; align-items: center; }
.auth-panel { display: grid; gap: 18px; }
.auth-panel h1 { margin: 0 0 8px; color: var(--primary); font-size: 30px; }
.google-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .06);
}
.google-button span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #4285f4;
  font-weight: 900;
}
.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #f5f8ff;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.account-strip.guest {
  border-color: #ffebb8;
  background: #fff8eb;
}
.account-strip strong, .account-strip span { display: block; }
.account-strip strong { color: var(--primary); }
.account-strip span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.account-strip a { color: var(--primary); font-weight: 900; white-space: nowrap; }
.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: var(--muted) !important;
}
.check-line input { width: auto !important; }
.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.cart-panel { overflow: hidden; }
.cart-table { display: grid; gap: 0; }
.cart-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 150px 120px 90px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-product img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.cart-product strong { display: block; color: var(--primary); }
.cart-product small { display: block; color: var(--muted); margin-top: 4px; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input {
  width: 70px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.qty-form button, .link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.link-button { color: var(--red); }
.clear-cart-form { margin-top: 18px; }
.cart-summary { position: sticky; top: 130px; }
.cart-summary h2 { color: var(--primary); margin-top: 0; }
.summary-line, .checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-line:last-of-type { border-bottom: 0; font-size: 18px; }
.checkout-form { display: grid; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.track-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.profile-form { display: grid; }
.track-form { display: grid; }
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.order-success-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.order-success-box div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--soft);
}
.order-success-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.order-success-box strong { color: var(--primary); }
.mini-order-list { display: grid; gap: 10px; margin-bottom: 20px; }
.mini-order-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tracking-status {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.tracking-status span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.tracking-status span.active {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.breadcrumbs a { color: var(--primary); }
.sort-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
.sort-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0; }
.site-footer {
  padding: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.footer-top h3 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.15;
}
.footer-top p { margin: 0; color: var(--muted); }
.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 0 18px;
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 30px;
  padding: 34px 0;
}
.footer-brand p { max-width: 360px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-image { width: 46px; height: 46px; }
.footer-logo .logo-mark { width: 46px; height: 46px; font-size: 22px; }
.footer-logo .logo-text strong { font-size: 18px; max-width: 220px; }
.footer-logo .logo-text small { font-size: 12px; }
footer h4 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
footer p, footer li { color: var(--muted); line-height: 1.7; font-size: 14px; }
footer p { margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a:hover { color: var(--primary); }
.footer-meta {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.payments span {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.footer-subhead { margin-top: 22px; }
.footer-social { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
}
.footer-social a:hover { background: var(--soft); }
.footer-social svg, .whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.bottom {
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(37, 211, 102, .35);
  z-index: 30;
}
.pwa-install {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .16);
  z-index: 45;
}
.pwa-install[hidden] { display: none; }
.pwa-install strong, .pwa-install span { display: block; }
.pwa-install strong { color: var(--primary); }
.pwa-install span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pwa-install button {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 10px 14px;
  cursor: pointer;
}
.pwa-install .pwa-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
}

@media (max-width: 1000px) {
  .header-main { grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) 56px; gap: 14px; }
  .logo-text strong { max-width: 145px; font-size: 19px; }
  .logo-text small { display: none; }
  .search select { max-width: 145px; }
  .categories, .products { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .promo, .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .track-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 1fr; align-items: start; }
  .cart-head { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1180px); }
  .topbar { display: none; }
  .header-main {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 10px 0 8px;
  }
  .logo { grid-column: 1; grid-row: 1; align-self: center; }
  .logo-image { width: 42px; height: 42px; }
  .logo-mark { width: 42px; height: 42px; font-size: 20px; border-radius: 11px; }
  .logo-text strong { max-width: none; font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-text small { display: none; }
  .cart-area {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 44px;
    height: 44px;
  }
  .cart { width: 42px; height: 42px; }
  .cart-count { right: -3px; top: -5px; }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px;
    border-width: 1px;
    border-radius: 10px;
  }
  .search input { padding: 0 12px; font-size: 13px; }
  .search button { padding: 0 13px; font-size: 13px; }
  .search select { display: none; }
  .nav-inner { align-items: center; padding: 8px 0; min-height: 0; }
  .dept { display: none; }
  .menu { width: 100%; gap: 18px; font-size: 13px; padding-bottom: 2px; }
  .ticker { font-size: 13px; }
  .ticker-track { padding: 8px 0; }
  .hero-wrap { min-height: 520px; border-radius: 0; }
  .hero-content { margin: 0 auto; }
  .hero-badge { display: none; }
  .hero-dots { left: 5%; bottom: 18px; }
  .categories, .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .product-img { height: 170px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .footer-top { align-items: flex-start; flex-direction: column; padding: 22px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .promo-card, .mini-banner { padding: 28px; }
  .order-success-box { grid-template-columns: 1fr; }
  .account-strip { align-items: flex-start; flex-direction: column; }
  .form-pair { grid-template-columns: 1fr; }
  .tracking-status { grid-template-columns: 1fr 1fr; }
  .pwa-install { align-items: flex-start; }
  .pwa-install span { display: none; }
}
