/* ===== Shopee-like theme ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Roboto", "Kanit", "Segoe UI", Arial, sans-serif; background: #f5f5f5; color: #222; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
i.fa, i.fas, i.far, i.fab { line-height: 1; }
/* ===== Top bar ===== */
.topbar { background: linear-gradient(-180deg, #f53d2d, #f63); color: #fff; font-size: 13px; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 4px 16px;
  display: flex; justify-content: space-between; align-items: center; min-height: 30px;
}
.topbar a { margin: 0 8px; opacity: .95; display: inline-flex; align-items: center; gap: 4px; }
.topbar a:hover { opacity: .75; }

/* ===== Header ===== */
.header { background: linear-gradient(-180deg, #f53d2d, #f63); color: #fff; padding: 6px 0 16px; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
}
.logo { font-size: 30px; font-weight: 700; letter-spacing: -1px; display: flex; align-items: center; gap: 8px; color: #fff; }
.logo i { font-size: 38px; }
.logo .brand { line-height: 1; }

.search { background: #fff; border-radius: 2px; padding: 3px; display: flex; align-items: center; position: relative; }
.search input { flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 14px; background: transparent; }
.search-btn {
  background: linear-gradient(0deg, #f53d2d, #f63);
  border: none; color: #fff; padding: 8px 30px; cursor: pointer; border-radius: 2px;
  font-size: 14px; display: flex; align-items: center; gap: 6px;
}
.search-btn:hover { opacity: .9; }
.hot-keywords { margin-top: 6px; font-size: 11.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.hot-keywords a { opacity: .95; }

.header-right { display: flex; align-items: center; gap: 20px; }
.cart-icon { position: relative; font-size: 26px; cursor: pointer; color: #fff; }
.cart-icon .badge {
  position: absolute; top: -8px; right: -12px;
  background: #fff; color: #ee4d2d; border-radius: 10px;
  font-size: 12px; padding: 0 6px; font-weight: 500; min-width: 20px; text-align: center;
  border: 2px solid #ee4d2d; line-height: 16px;
}
.nav-user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.nav-user a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.avatar-mini {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #ee4d2d; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700;
}

/* ===== Hero banners ===== */
.hero { max-width: 1200px; margin: 16px auto; padding: 0 16px; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.hero .main-banner {
  border-radius: 4px; height: 280px; background-size: cover; background-position: center;
  background-image: url('https://images.unsplash.com/photo-1607083206869-4c7672e72a8a?w=1400&q=80');
}
.hero .side { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
.hero .side div { border-radius: 4px; background-size: cover; background-position: center; }

/* ===== Section ===== */
.section { max-width: 1200px; margin: 16px auto; background: #fff; border-radius: 2px; }
.section-title {
  padding: 16px 20px; font-size: 14px; color: #999; text-transform: uppercase;
  letter-spacing: 1.5px; border-bottom: 1px solid #f1f1f1; font-weight: 500;
}
.section-title.flash {
  color: #ee4d2d; font-size: 20px; font-weight: 500; text-transform: none; letter-spacing: 0;
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
}
.section-title.flash i { color: #ffce00; font-size: 22px; }
.flash-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.countdown { display: flex; gap: 4px; }
.countdown span { background: #333; color: #fff; padding: 3px 6px; border-radius: 3px; font-size: 13px; min-width: 26px; text-align: center; font-weight: 500; }

/* Category grid */
.cats { display: grid; grid-template-columns: repeat(10, 1fr); border-top: 1px solid #f5f5f5; }
.cat {
  padding: 16px 8px; text-align: center; font-size: 12.5px;
  border-right: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
  cursor: pointer; transition: box-shadow .2s; background: #fff; color: #333;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.cat-ic {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #fff3ee, #ffe3d6);
  display: grid; place-items: center; color: #ee4d2d; font-size: 26px;
}

/* ===== Products (Shopee style) ===== */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px; background: #f5f5f5; }
.product {
  background: #fff; cursor: pointer; border-radius: 3px;
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
  border: 1px solid transparent; overflow: hidden;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.14); border-color: #ee4d2d; }
.product .p-img-wrap { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #fafafa; }
.product .p-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.product:hover .p-img { transform: scale(1.04); }
.product .p-info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .p-name {
  font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #222;
  word-break: break-word;
}
.product .p-tags { display: flex; flex-wrap: wrap; gap: 3px; min-height: 18px; }
.product .p-tags .tag { font-size: 10px; padding: 2px 5px; border-radius: 2px; font-weight: 500; line-height: 1.4; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.product .p-tags .tag-free { background: #26aa99; color: #fff; }
.product .p-tags .tag-cheap { background: #fff; color: #ee4d2d; border: 1px solid #ee4d2d; }
.product .p-tags .tag-voucher { background: #fff3f0; color: #ee4d2d; border: 1px solid #ffccc1; }
.product .p-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product .p-price { color: #ee4d2d; font-size: 18px; font-weight: 600; display: inline-flex; align-items: baseline; gap: 1px; letter-spacing: -0.2px; }
.product .p-price small { font-size: 12px; font-weight: 500; }
.product .p-oldprice { color: #9e9e9e; font-size: 12px; text-decoration: line-through; }
.product .p-sold { margin-left: auto; color: #757575; font-size: 11px; white-space: nowrap; }
.product .p-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #757575; font-size: 11px; margin-top: 2px; }
.product .p-rating { display: inline-flex; align-items: center; gap: 3px; color: #757575; }
.product .p-rating i { color: #ffb400; font-size: 11px; }
.product .p-location { color: #9e9e9e; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product .badge-sale {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(180deg,#ffd839,#ffbc00);
  color: #ee4d2d; font-size: 13px; padding: 4px 7px 5px; font-weight: 700;
  border-bottom-left-radius: 6px; line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.product .badge-sale small { font-size: 9px; font-weight: 600; letter-spacing: .3px; }
.product .badge-mall { display: inline-block; background: #ee4d2d; color: #fff; padding: 1px 4px; font-size: 10px; margin-right: 4px; border-radius: 2px; font-weight: 500; }
.product .badge-mall-ribbon {
  position: absolute; top: 0; left: 0;
  background: #ee4d2d; color: #fff; font-size: 10px;
  padding: 2px 6px; font-weight: 600; letter-spacing: .3px;
  border-bottom-right-radius: 3px; z-index: 2;
}
.product .p-ribbon {
  position: absolute; left: 0; bottom: 0;
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px 2px 6px; letter-spacing: .3px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  z-index: 2;
}
.product .p-ribbon.r-payday { background: #ee4d2d; }
.product .p-ribbon.r-recom  { background: #d0011b; }
.product .p-ribbon.r-bestsell { background: #f69113; }
.product .p-ribbon.r-flash { background: linear-gradient(90deg,#ff5722,#ff1744); }

/* ===== Buttons ===== */
.btn {
  padding: 10px 16px; border: none; cursor: pointer; font-size: 14px;
  border-radius: 2px; transition: opacity .2s; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  font-family: inherit;
}
.btn:hover { opacity: .9; }
.btn-primary { background: #ee4d2d; color: #fff; }
.btn-outline { background: #fff; color: #ee4d2d; border: 1px solid #ee4d2d; }
.btn-block { width: 100%; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; padding: 24px; border-radius: 4px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
h2 { font-size: 18px; margin-bottom: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px; }

/* ===== Product detail ===== */
.pd-grid { display: grid; grid-template-columns: 450px 1fr; gap: 30px; background: #fff; padding: 20px; border-radius: 2px; }
.pd-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid #f0f0f0; }
.pd-title { font-size: 20px; line-height: 1.4; margin-bottom: 10px; font-weight: 500; }
.pd-rating { display: flex; align-items: center; gap: 14px; color: #555; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f1f1; }
.pd-rating .stars-inline { color: #ee4d2d; }
.pd-price { background: #fafafa; padding: 16px 20px; margin: 14px 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pd-price .old { text-decoration: line-through; color: #929292; font-size: 16px; }
.pd-price .now { font-size: 30px; color: #ee4d2d; font-weight: 500; }
.pd-price .disc { background: #ee4d2d; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 2px; font-weight: 700; }
.pd-row { display: flex; gap: 20px; margin: 16px 0; align-items: center; font-size: 14px; }
.pd-row .label { color: #757575; width: 110px; font-size: 13px; }
.qty { display: inline-flex; border: 1px solid #e0e0e0; }
.qty button { background: #fff; border: none; width: 32px; height: 32px; cursor: pointer; font-size: 16px; color: #555; }
.qty button:hover { background: #fafafa; }
.qty input { width: 50px; text-align: center; border: none; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; outline: none; font-size: 14px; }
.pd-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pd-actions .btn { padding: 14px 20px; font-size: 15px; }
.btn-addcart { background: #fff4f0; color: #ee4d2d; border: 1px solid #ee4d2d; }
.btn-addcart:hover { background: #ffe7dc; opacity: 1; }

/* ===== Cart ===== */
.cart-table { background: #fff; border-radius: 2px; }
.cart-head, .cart-item {
  display: grid; grid-template-columns: 40px 2fr 1fr 140px 1fr 1fr 60px;
  gap: 10px; padding: 16px; align-items: center; font-size: 14px;
}
.cart-head { color: #888; border-bottom: 1px solid #eee; text-align: center; }
.cart-head > :nth-child(2) { text-align: left; }
.cart-item { border-bottom: 1px solid #f5f5f5; text-align: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }
.cart-item .ci-name { display: flex; gap: 14px; align-items: center; text-align: left; }
.cart-item .ci-name a { flex: 1; line-height: 1.4; }
.remove-btn { background: none; border: none; color: #555; cursor: pointer; font-size: 16px; }
.remove-btn:hover { color: #ee4d2d; }
.cart-summary {
  background: #fff; padding: 18px 20px; position: sticky; bottom: 0;
  display: flex; justify-content: flex-end; align-items: center; gap: 24px;
  border-top: 1px dashed #e0e0e0; margin-top: 12px;
}
.price { color: #ee4d2d; font-weight: 500; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; }
.empty-state .big-ic { font-size: 100px; color: #e0e0e0; margin-bottom: 20px; }
.empty-state h2 { color: #555; margin-bottom: 16px; font-weight: 400; justify-content: center; }

/* ===== Checkout ===== */
.ck-section { background: #fff; padding: 20px 24px; margin-bottom: 12px; border-radius: 2px; }
.ck-address { border-top: 3px solid #ee4d2d; }
.ck-address h2 { color: #ee4d2d; }
.ck-total { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; margin: 10px 0; padding: 16px 0; border-top: 1px solid #f1f1f1; }

/* ===== Profile ===== */
.profile-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.side-menu { background: #fff; padding: 20px 0; border-radius: 2px; }
.side-profile { padding: 0 20px 20px; border-bottom: 1px solid #f0f0f0; text-align: center; }
.side-profile strong { font-size: 15px; display: block; }
.side-profile .edit-link { font-size: 12px; color: #888; display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; }
.side-menu a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  color: #555; font-size: 14px; border-left: 3px solid transparent;
}
.side-menu a i { width: 18px; text-align: center; color: #888; font-size: 15px; }
.side-menu a.active, .side-menu a:hover { color: #ee4d2d; border-left-color: #ee4d2d; background: #fafafa; }
.side-menu a.active i, .side-menu a:hover i { color: #ee4d2d; }
.avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg,#ee4d2d,#ff7a45); color: #fff;
  display: grid; place-items: center; font-size: 32px; margin: 0 auto 10px; font-weight: 700;
}

/* Profile hero */
.profile-hero {
  background: linear-gradient(135deg, #ee4d2d, #ff7a45); color: #fff;
  padding: 24px; border-radius: 6px; margin-bottom: 12px;
  display: flex; gap: 20px; align-items: center;
}
.profile-hero .avatar { background: rgba(255,255,255,.2); border: 3px solid #fff; margin: 0; }
.profile-hero h3 { font-size: 22px; font-weight: 500; }
.profile-hero .pid { opacity: .9; font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* Quick stats */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; padding: 20px; border-radius: 4px; margin-bottom: 12px; }
.qs-item { text-align: center; cursor: pointer; transition: color .2s; }
.qs-item:hover { color: #ee4d2d; }
.qs-item i { font-size: 30px; color: #ee4d2d; margin-bottom: 8px; display: block; }
.qs-item .lbl { font-size: 13px; color: #555; }

/* ===== Wallet ===== */
.wallet-card {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff7a45 100%);
  color: #fff; padding: 30px; border-radius: 8px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.wallet-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: rgba(255,255,255,.1); border-radius: 50%; }
.wallet-card::after { content: ""; position: absolute; right: 40px; bottom: -60px; width: 140px; height: 140px; background: rgba(255,255,255,.08); border-radius: 50%; }
.wallet-card > * { position: relative; }
.wallet-card .wl-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; opacity: .95; }
.wallet-balance { font-size: 42px; font-weight: 700; margin: 10px 0; letter-spacing: -0.5px; }
.tx-list { background: #fff; padding: 0 20px; border-radius: 2px; }
.tx { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #f5f5f5; align-items: center; gap: 12px; }
.tx:last-child { border: none; }
.tx-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.tx-icon.plus { background: #e8f8ed; color: #2ecc71; }
.tx-icon.minus { background: #fdecea; color: #ee4d2d; }
.tx-info { flex: 1; }
.tx-info small { color: #999; display: block; margin-top: 2px; font-size: 12px; }
.tx .amt.plus { color: #2ecc71; font-weight: 500; }
.tx .amt.minus { color: #ee4d2d; font-weight: 500; }

/* ===== Form ===== */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 2px;
  font-size: 14px; font-family: inherit; outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: #ee4d2d; }

/* ===== Footer ===== */
.footer { background: #fbfbfb; border-top: 4px solid #ee4d2d; margin-top: 40px; padding: 30px 0 20px; color: #555; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer h4 { font-size: 13px; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; color: #222; letter-spacing: .5px; }
.footer a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #757575; padding: 5px 0; }
.footer a:hover { color: #ee4d2d; }
.copyright { text-align: center; font-size: 12px; color: #999; padding: 20px; border-top: 1px solid #eee; margin-top: 20px; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff;
  padding: 14px 24px; border-radius: 4px; z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); display: flex; align-items: center; gap: 10px;
  font-size: 14px; animation: slideIn .3s;
}
.toast i { color: #2ecc71; font-size: 18px; }
@keyframes slideIn { from { top: 60px; opacity: 0; } to { top: 80px; opacity: 1; } }

/* ===== Radio box ===== */
.radio-box {
  border: 1px solid #e0e0e0; padding: 14px 16px; margin-bottom: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; border-radius: 2px;
  transition: border-color .15s, background .15s;
}
.radio-box:hover { border-color: #ee4d2d; }
.radio-box.active { border-color: #ee4d2d; background: #fff8f6; }
.radio-box .pay-ic { font-size: 22px; color: #ee4d2d; width: 28px; text-align: center; }

/* ===== Mobile Bottom Nav ===== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
  padding: 6px 0 4px;
}
.mobile-nav-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 600px; margin: 0 auto;
}
.mnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #757575; font-size: 11px; text-align: center; padding: 6px 2px;
  position: relative;
}
.mnav-item i { font-size: 20px; }
.mnav-item.active { color: #ee4d2d; }
.mnav-item .mnav-badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  background: #ee4d2d; color: #fff; border-radius: 10px;
  font-size: 10px; padding: 0 5px; font-weight: 600; min-width: 16px;
  border: 1.5px solid #fff; line-height: 14px;
}
.mnav-item.center {
  background: #ee4d2d; color: #fff;
  border-radius: 50%; width: 52px; height: 52px;
  justify-content: center; margin: -18px auto 0;
  box-shadow: 0 4px 10px rgba(238,77,45,.4);
}
.mnav-item.center i { font-size: 22px; }
.mnav-item.center .lbl { display: none; }

/* Hamburger mobile toggle */
.mobile-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  body { padding-bottom: 68px; }
  .topbar { display: none; }
  .header { padding: 8px 0; }
  .header-inner {
    grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 10px;
  }
  .logo { font-size: 20px; }
  .logo i { font-size: 24px; }
  .logo .brand { display: none; }
  .hot-keywords { display: none; }
  .header-right { gap: 10px; }
  .nav-user { display: none; }
  .cart-icon { font-size: 22px; }
  .search input { padding: 8px 10px; font-size: 13px; }
  .search-btn { padding: 8px 14px; }
  .search-btn span { display: none; }

  .mobile-nav { display: block; }

  .hero { grid-template-columns: 1fr; margin: 8px auto; padding: 0 8px; }
  .hero .main-banner { height: 160px; }
  .hero .side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero .side div { height: 80px; }

  .section { margin: 8px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat { padding: 12px 4px; font-size: 11px; }
  .cat-ic { width: 50px; height: 50px; font-size: 22px; }

  .products { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
  .product .p-name { font-size: 12.5px; }
  .product .p-price { font-size: 16px; }

  .section-title { padding: 12px 14px; font-size: 13px; }
  .section-title.flash { font-size: 17px; }
  .countdown span { padding: 2px 4px; font-size: 11px; min-width: 22px; }

  .container { padding: 0 8px; margin: 10px auto; }
  .pd-grid { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .pd-title { font-size: 16px; }
  .pd-price .now { font-size: 24px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }

  .profile-layout { grid-template-columns: 1fr; }
  .profile-hero { padding: 18px; gap: 14px; }
  .profile-hero h3 { font-size: 18px; }
  .profile-hero .avatar { width: 60px; height: 60px; font-size: 24px; }
  .side-menu { padding: 10px 0; }
  .side-profile { display: none; }
  .side-menu { display: flex; overflow-x: auto; gap: 0; }
  .side-menu a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 10px 14px; }
  .side-menu a.active, .side-menu a:hover { border-left: none; border-bottom-color: #ee4d2d; background: transparent; }

  .quick-stats { grid-template-columns: repeat(4, 1fr); padding: 12px 8px; }
  .qs-item i { font-size: 24px; }
  .qs-item .lbl { font-size: 12px; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); }

  .cart-head { display: none; }
  .cart-item {
    grid-template-columns: 30px 1fr auto;
    grid-template-areas: "chk img name" "chk img price" "chk img qty" ". . del";
    gap: 6px 10px; padding: 12px;
  }
  .cart-item > :nth-child(1) { grid-area: chk; align-self: center; }
  .cart-item .ci-name { grid-area: name; gap: 10px; }
  .cart-item .ci-name img { width: 60px; height: 60px; grid-area: img; }
  .cart-item > :nth-child(3) { grid-area: price; font-size: 14px; text-align: left; }
  .cart-item > :nth-child(4) { grid-area: qty; justify-self: start; }
  .cart-item > :nth-child(5) { display: none; }
  .cart-item > :nth-child(6) { display: none; }
  .cart-item .remove-btn { grid-area: del; justify-self: end; }
  .cart-summary { flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
  .cart-summary .btn { width: 100%; }

  .ck-section { padding: 14px; }
  .ck-total { gap: 6px 20px; }
}

@media (max-width: 400px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero .side { grid-template-columns: 1fr; }
  .hero .side div { height: 70px; }
}

/* ===== Homepage Enhanced Styles ===== */
/* Banner carousel */
.banner-carousel {
  position: relative; border-radius: 4px; overflow: hidden; height: 280px;
  background: #eee;
}
.banner-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: width .2s, background .2s;
}
.banner-dots span.active { width: 20px; border-radius: 4px; background: #ee4d2d; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 44px; background: rgba(0,0,0,.35); color: #fff;
  border: none; cursor: pointer; font-size: 16px; transition: background .2s;
}
.banner-arrow:hover { background: rgba(0,0,0,.55); }
.banner-arrow.prev { left: 0; }
.banner-arrow.next { right: 0; }

/* Feature strip (Free shipping, Coin, etc.) */
.feature-strip {
  max-width: 1200px; margin: 12px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  background: #fff; border-radius: 4px; overflow: hidden;
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 8px; font-size: 12.5px; color: #333; text-align: center;
  cursor: pointer; transition: background .15s;
}
.feature-item:hover { background: #fafafa; }
.feature-item .f-ic {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff;
}
.fic-1 { background: linear-gradient(135deg,#ff6a00,#ee4d2d); }
.fic-2 { background: linear-gradient(135deg,#26c6da,#00acc1); }
.fic-3 { background: linear-gradient(135deg,#ffce00,#ff9800); }
.fic-4 { background: linear-gradient(135deg,#66bb6a,#43a047); }
.fic-5 { background: linear-gradient(135deg,#ab47bc,#8e24aa); }
.fic-6 { background: linear-gradient(135deg,#42a5f5,#1e88e5); }
.fic-7 { background: linear-gradient(135deg,#ef5350,#e53935); }
.fic-8 { background: linear-gradient(135deg,#ff7043,#f4511e); }

/* Shopee Mall banner section */
.mall-section {
  max-width: 1200px; margin: 16px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.mall-card {
  background: #fff; border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s; position: relative;
}
.mall-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.mall-card .mall-img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.mall-card .mall-caption { padding: 10px 12px; font-size: 13px; color: #ee4d2d; font-weight: 500; }
.mall-tag {
  position: absolute; top: 8px; left: 8px;
  background: #ee4d2d; color: #fff; font-size: 10px; padding: 2px 6px;
  border-radius: 2px; font-weight: 700;
}

/* Section header with "See all" link */
.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #f1f1f1;
}
.sec-head .title {
  font-size: 16px; color: #555; text-transform: uppercase; font-weight: 500; letter-spacing: 1px;
}
.sec-head .title.red { color: #ee4d2d; text-transform: none; letter-spacing: 0; font-size: 20px; }
.sec-head .see-all { color: #ee4d2d; font-size: 13px; display: flex; align-items: center; gap: 4px; }

/* Flash sale items with progress bar */
.fs-progress {
  background: #ffe1d5; height: 16px; border-radius: 8px; margin-top: 6px; overflow: hidden; position: relative;
}
.fs-progress-bar {
  height: 100%; background: linear-gradient(90deg,#ff7337,#ee4d2d); border-radius: 8px; position: relative;
}
.fs-progress-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,.3);
}

/* Daily discover grid - 6 columns */
.products-6 { grid-template-columns: repeat(6, 1fr); }

/* Promo banner full-width */
.promo-banner {
  max-width: 1200px; margin: 16px auto; padding: 0 16px;
}
.promo-banner img { width: 100%; border-radius: 4px; }

/* Load more button */
.load-more {
  max-width: 1200px; margin: 16px auto; padding: 0 16px; text-align: center;
}
.load-more .btn {
  padding: 12px 50px; background: #fff; color: #ee4d2d;
  border: 1px solid #ee4d2d; font-size: 14px;
}
.load-more .btn:hover { background: #fff4f0; }

@media (max-width: 900px) {
  .banner-carousel { height: 180px; }
  .feature-strip { grid-template-columns: repeat(4, 1fr); }
  .mall-section { grid-template-columns: repeat(2, 1fr); margin: 8px; padding: 0; }
  .products-6 { grid-template-columns: repeat(2, 1fr); }
  .sec-head { padding: 12px 14px; }
  .sec-head .title { font-size: 14px; }
  .banner-arrow { display: none; }
}

/* ===== Customer Service Dropdown ===== */
