* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #222; }
.cat-layout { display: flex; align-items: flex-start; gap: 1.5rem; }
.cat-topnav {
  position: sticky;
  top: 61px;
  z-index: 98;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}
.cat-topnav::-webkit-scrollbar { display: none; }
.cat-topnav .cat-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cat-topnav .cat-link:hover { color: #1a52c4; background: #f1f5f9; }
.cat-topnav .cat-link.active { color: #1a52c4; border-bottom-color: #1a52c4; background: #eef4ff; }
.cat-link .nav-icon { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 0.35rem; flex-shrink: 0; }
.cat-body { display: flex; align-items: flex-start; gap: 1.2rem; padding: 0 0 0 200px; }
.cat-body main { margin: 0; max-width: none; padding: 1.25rem 1.5rem 0; }
.sub-sidebar {
  position: fixed;
  top: 104px;
  left: 0;
  width: 200px;
  height: calc(100vh - 104px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 1px 0 6px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 0;
  border: 0;
}
.sub-sidebar-empty { font-size: 0.82rem; color: #94a3b8; padding: 0.5rem 1rem; }
.sub-cat-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid #eef2f7;
}
.sub-cat-link:last-child { border-bottom: none; }
.sub-cat-link:hover { background: #eef4ff; color: #1a52c4; }
.sub-cat-link.active { background: #1a52c4; color: #fff; }
.cat-content { flex: 1; min-width: 0; }
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.subcat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.subcat-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.14); transform: translateY(-2px); }
.subcat-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.subcat-types {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.6rem;
}
.subcat-type {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}
.subcat-type:hover { background: #e2e8f0; }
.subcat-name { font-size: 1rem; font-weight: 700; color: #1a52c4; }
.type-icon { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #f1f5f9; }
.sub-cat-link .type-icon { width: 24px; height: 24px; }
.subcat-main .type-icon { width: 34px; height: 34px; }
.type-card .type-icon { display: block; width: 44px; height: 44px; margin: 0 auto 0.5rem; }
.subcats-label { font-size: 1.05rem; font-weight: 700; color: #1a52c4; margin-bottom: 0.75rem; }
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.type-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.type-card:hover { border-color: #1a52c4; background: #f8fafc; }
.products-block { margin-top: 1.5rem; }
.products-title { color: #1a52c4; font-size: 1.1rem; margin-bottom: 1rem; }
.types-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  background: #eef4ff;
  color: #1a52c4;
  border: 1px solid #c7d8f7;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.type-chip .chip-icon { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; }
.type-chip:hover { background: #dbe7ff; }
.type-chip.active { background: #1a52c4; color: #fff; border-color: #1a52c4; }
.product-section { margin-bottom: 2rem; }
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.85rem;
  padding-left: 0.15rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.products-grid .product-card { min-width: 0; }
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  overflow: hidden;
}
.wish-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: color 0.2s, transform 0.1s;
}
.wish-toggle:hover { color: #ef4444; transform: scale(1.08); }
.wish-toggle.active { color: #ef4444; }
.wish-toggle.active svg { fill: #ef4444; }
.notify-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 0 8px 0 8px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: color 0.2s, transform 0.1s;
}
.notify-remove:hover { color: #ef4444; transform: scale(1.08); }
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-name { font-size: 0.95rem; font-weight: 700; color: #1a52c4; }
.product-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a52c4;
  background: #e6ecf9;
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
}
.product-desc {
  font-size: 0.8rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-foot { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; margin-top: auto; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.product-actions > .btn-link-sm { width: 100%; justify-content: center; }
.btn-link--cart {
  background: #ff7a00;
  color: #fff;
  border: 1.5px solid #ff7a00;
}
.btn-link--cart:hover { background: #e66f00; }
.btn-link--buy {
  background: #16a34a;
  color: #fff;
  border: 1.5px solid #16a34a;
}
.btn-link--buy:hover { background: #15803d; }
.price-block { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.product-price { font-size: 0.85rem; font-weight: 600; color: #9ca3af; text-decoration: line-through; }
.product-price--plain { font-size: 1rem; font-weight: 700; color: #ff7a00; text-decoration: none; }
.product-offer-price { font-size: 1.25rem; font-weight: 700; color: #ff7a00; }
.price-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; row-gap: 0.2rem; }
.product-discount {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  white-space: nowrap;
}
.home-main { padding-bottom: 6rem; }
.home-main .products-title { margin-top: 1.5rem; }
header { width: 100%; background: #1a52c4; color: #fff; padding: 1rem 2rem; display: flex; align-items: center; gap: 1.5rem; position: sticky; top: 0; z-index: 100; }
.news-ticker {
  background: #e5e7eb;
  color: #374151;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.35rem 0;
}
.news-track {
  display: inline-block;
  white-space: nowrap;
  animation: news-scroll 22s linear infinite;
  will-change: transform;
}
.news-item {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 2.5rem;
}
.news-icon {
  margin-right: 0.5rem;
}
@keyframes news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.slide-bar {
  position: relative;
  overflow: hidden;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  z-index: 2;
}
.slide-arrow:hover { background: rgba(255,255,255,0.25); }
.slide-arrow--left { left: 10px; }
.slide-arrow--right { right: 10px; }
.slide-track {
  display: flex;
  white-space: nowrap;
  transition: transform 0.6s ease;
  will-change: transform;
}
.slide-item {
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.slide-inner { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; }
.slide-tag {
  display: inline-block;
  width: fit-content;
  background: rgba(255,255,255,0.22);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}
.slide-heading {
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.15;
}
.slide-btn {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.4rem 1.1rem;
  background: #fff;
  color: #334155;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}
.slide-btn:hover { opacity: 0.85; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-link { text-decoration: none; color: inherit; }
h1 { display: flex; align-items: center; }
.search { display: flex; align-items: center; background: #fff; border-radius: 20px; overflow: hidden; flex: 0 1 240px; min-width: 0; max-width: 420px; }
.search input { border: none; outline: none; padding: 0.15rem 0.9rem; font-size: 0.95rem; color: #222; flex: 1; min-width: 0; width: 100%; }
.search button { background: #fff; border: none; padding: 0.15rem 0.9rem; cursor: pointer; display: flex; align-items: center; }
.auth-links { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.auth-name { color: #fff; font-weight: 700; font-size: 0.95rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fff;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.auth-link:hover { background: rgba(255,255,255,0.15); }
.auth-link--solid { background: #ff7a00; border-color: #ff7a00; }
.auth-link--solid:hover { background: #e96e00; border-color: #e96e00; }
main { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
.main-wish { margin-top: 0.75rem; }
.cat-main { margin-top: 0.75rem; margin-left: 220px; }
.cat-main--full { margin-left: 0; max-width: 960px; margin-right: auto; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1; }
@media (max-width: 768px) {
  header { gap: 0.5rem 0.6rem; padding: 0.85rem 1rem; justify-content: space-between; flex-wrap: wrap; }
  .brand { order: 0; flex: 0 0 auto; }
  .search-panel-inner { order: 3; flex: 1 1 100%; max-width: none; margin: 0; padding-right: 1rem; padding-left: 1rem; }
  .search-panel-inner .search-field { margin-top: 1rem; margin-bottom: 1rem; }
.search-panel-inner.open { display: flex; }
.search-panel-inner.open .search-field { margin-top: 0.7rem; margin-bottom: 0.7rem; }
  .header-back { margin-left: 0; }
  .header-search-toggle { margin-left: 0; }
  .search { order: 2; flex: 0 1 150px; max-width: 60%; margin-left: auto; }
  .slide-item { padding: 2.2rem 1.2rem; }
  .slide-heading { font-size: 1.05rem; }
  .cat-topnav { top: 48px; }
  .cat-topnav .cat-link { padding: 0.6rem 0.9rem; font-size: 0.85rem; }
  .cat-body { gap: 1rem; padding: 0 0 0 110px; }
  .cat-body main { margin: 0; padding: 0.75rem; }
  .sub-sidebar { top: 84px; width: 110px; height: calc(100vh - 84px); }
  main.cat-main--full { margin-left: 0; }
  .cat-layout { flex-direction: column; gap: 0.75rem; }
  .subcat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
  .types-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .type-card { padding: 0.6rem 0.3rem; }
  .subcat-card { padding: 1.2rem 0.75rem; }
#wish-grid { margin-top: 0.75rem; }
.products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card { padding: 0.75rem; }
  .product-img { aspect-ratio: 1 / 1; }
  .product-name { font-size: 0.85rem; }
  .product-desc { display: none; }
  .product-price { font-size: 0.9rem; }
  .product-actions { gap: 0.3rem; }
  .product-foot .product-actions > .btn-link-sm { padding: 0.32rem 0.3rem; font-size: 0.66rem; border-radius: 11px; gap: 0.15rem; box-shadow: none; }
  .product-foot .product-actions > .btn-link-sm svg { width: 9px; height: 9px; }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a52c4;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  flex: 1;
}
.nav-item span { line-height: 1; }
.nav-item.active { color: #ff7a00; }
main { padding-bottom: 4rem; }

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 82, 196, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
  z-index: 200;
}
.auth-overlay[hidden] { display: none; }
.auth-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative;
}
.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.close-btn:hover { color: #1a52c4; }
.auth-title { font-size: 1.5rem; color: #1a52c4; margin-bottom: 1.75rem; text-align: center; }
.auth-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.toggle-btn { flex: 1; padding: 0.6rem; border: none; border-radius: 20px; background: #e2e8f0; color: #1a52c4; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.toggle-btn.active { background: #1a52c4; color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form[hidden] { display: none; }
.auth-form h2 { font-size: 1.5rem; color: #1a52c4; margin-bottom: 0.25rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: #475569; }
.auth-form input { padding: 0.65rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-form input:focus { border-color: #1a52c4; box-shadow: 0 0 0 3px rgba(26,82,196,0.15); }
.auth-form textarea { padding: 0.65rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; font-family: inherit; }
.auth-form textarea:focus { border-color: #1a52c4; box-shadow: 0 0 0 3px rgba(26,82,196,0.15); }
.form-row { display: flex; gap: 0.75rem; }
.form-row label { flex: 1; min-width: 0; }
.form-row input, .form-row textarea { width: 100%; }
.submit-btn { margin-top: 0.5rem; padding: 0.7rem; border: none; border-radius: 20px; background: #ff7a00; color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.submit-btn:hover { background: #e96e00; }
.forgot-link { align-self: flex-end; font-size: 0.85rem; color: #1a52c4; text-decoration: none; margin-top: -0.4rem; }
.forgot-link:hover { text-decoration: underline; }
.switch-text { text-align: center; font-size: 0.9rem; color: #475569; margin-top: 0.25rem; }
.switch-link { background: none; border: none; color: #ff7a00; font-weight: 700; cursor: pointer; font-size: 0.9rem; padding: 0; }
.switch-link:hover { text-decoration: underline; }

.auth-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
.msg-ok { background: #e6f9ed; color: #16a34a; border-color: #bbf7d0; }
.msg-err { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.account-greeting {
  max-width: 420px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}
.account-greeting h2 { color: #1a52c4; margin-bottom: 0.5rem; }
.account-greeting p { color: #64748b; margin-bottom: 1.5rem; }
.btn-link {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  background: #1a52c4;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.btn-link:hover { background: #1441a0; }
.btn-link-lg { font-size: 0.95rem; padding: 0.75rem 1.6rem; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1a52c4;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.greeting-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}
.greeting-bar .avatar { margin: 0; width: 48px; height: 48px; font-size: 1.2rem; flex-shrink: 0; }
.greeting-bar h2 { color: #1a52c4; font-size: 1.2rem; margin: 0; }
.acct-section { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 1.25rem; margin-bottom: 1.25rem; }
.acct-section-head h3 { color: #1a52c4; font-size: 1.05rem; margin-bottom: 1rem; }
.addr-head { display: flex; align-items: center; justify-content: space-between; }
.addr-head h3 { margin-bottom: 0; }
.btn-link-sm { font-size: 0.85rem; padding: 0.55rem 1rem; }
.product-foot .btn-link-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  border-radius: 15px;
  box-shadow: 0 1px 4px rgba(26, 82, 196, 0.35);
  transition: background 0.2s, transform 0.1s;
  line-height: 1;
}
.product-foot .btn-link-sm:hover { background: #1441a0; transform: translateY(1px); }
.product-foot .btn-link-sm.btn-link--cart {
  box-shadow: 0 1px 4px rgba(255, 122, 0, 0.35);
}
.product-foot .btn-link-sm.btn-link--cart:hover { background: #e66f00; transform: translateY(1px); }
.product-foot .btn-link-sm.btn-link--buy {
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}
.product-foot .btn-link-sm.btn-link--buy:hover { background: #15803d; transform: translateY(1px); }
.product-foot .btn-link-sm svg { flex-shrink: 0; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.address-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.address-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.addr-name { font-weight: 700; color: #1a52c4; font-size: 0.95rem; }
.addr-phone { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.addr-line { color: #475569; font-size: 0.88rem; margin-bottom: 0.2rem; }
.addr-mobile { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-bottom: 0.5rem; }
.auth-card-lg { max-width: 520px; }
.addr-modal-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 320px; overflow-y: auto; margin-bottom: 1rem; }
.addr-select {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.addr-select:hover { background: #f1f5f9; border-color: #94a3b8; }
.addr-select.is-default { border-color: #1a52c4; background: #eef4ff; }
.addr-badge {
  background: #1a52c4;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
}
.addr-set {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #1a52c4;
  font-weight: 600;
}
.addr-select.is-default .addr-set { color: #475569; font-weight: 400; }
.orders-empty { color: #94a3b8; text-align: center; padding: 1.5rem; font-size: 0.95rem; }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.order-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem; background: #fff; }
.order-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.order-id { font-weight: 700; color: #1a52c4; font-size: 0.95rem; }
.order-status { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-shipped { background: #dbeafe; color: #1d4ed8; }
.status-delivered { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.order-date { color: #94a3b8; font-size: 0.8rem; margin-bottom: 0.75rem; }
.order-items { border-top: 1px solid #f1f5f9; padding-top: 0.6rem; }
.order-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.order-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.85rem; color: #334155; }
.order-item-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.order-item-name { font-weight: 600; font-size: 1.1rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-variant { font-size: 1rem; color: #64748b; display: flex; align-items: center; gap: 0.85rem; margin: 0; }
.cart-variant-color, .qty-color {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.order-item-meta { font-size: 1.3rem; color: #94a3b8; font-weight: 700; margin-left: 1.5rem; }
.order-item-price { font-weight: 700; color: #1e293b; flex-shrink: 0; font-size: 1.1rem; }
.order-total { margin-top: 0.6rem; font-weight: 700; color: #222; font-size: 0.95rem; }
.settings-list { display: flex; flex-direction: column; }
.setting-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.setting-item svg { color: #ff7a00; flex-shrink: 0; }
.setting-item span { flex: 1; }
.setting-item:last-child { border-bottom: none; }
.setting-item:hover { background: #f8fafc; }
.social-list { display: flex; flex-direction: column; }
.follow-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.follow-item svg { flex-shrink: 0; }
.follow-item:hover { background: #f8fafc; }
.follow-handle { flex: 1; color: #64748b; font-size: 0.85rem; font-weight: 500; }
.set-arrow { color: #cbd5e1; }
.follow-item:nth-child(1) svg { color: #e1306c; }
.follow-item:nth-child(2) svg { color: #ff0000; }
.follow-item:nth-child(3) svg { color: #1877f2; }
.logout-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 20px;
  background: #fef2f2;
  color: #dc2626;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid #fecaca;
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover { background: #dc2626; color: #fff; }

.qty-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}
.qty-overlay[hidden] { display: none; }
.qty-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 320px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.2s ease;
}
.qty-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}
.qty-close:hover { background: #e2e8f0; color: #1a52c4; }
.qty-thumb {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.qty-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qty-name { font-size: 1rem; font-weight: 700; color: #1e293b; }
.qty-variant { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.8rem; color: #64748b; margin-top: 0.2rem; }
.qty-price { font-size: 1.05rem; font-weight: 800; color: #ff7a00; margin: 0.25rem 0 0.75rem; }
.qty-colors, .qty-sizes { margin-bottom: 0.75rem; }
.qty-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.35rem; }
.qty-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.qty-color-opt, .qty-size-opt {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.qty-size-opt { padding: 0.25rem 0.7rem; min-width: 36px; }
.qty-size-opt--out {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: line-through;
}
.qty-size-opt--out:hover { border-color: #e2e8f0; }
.qty-size-qty { display: inline-block; margin-left: 0.3rem; background: #16a34a; color: #fff; font-size: 0.6rem; padding: 0.08rem 0.3rem; border-radius: 6px; font-weight: 700; line-height: 1.3; }
.qty-size-qty.out { background: #dc2626; }
.qty-color-opt { padding: 0.2rem; border-radius: 50%; }
.qty-color-opt:hover, .qty-size-opt:hover { border-color: #1a52c4; }
.qty-color-opt.active, .qty-size-opt.active {
  border-color: #1a52c4;
  background: #eef4ff;
  color: #1a52c4;
  box-shadow: 0 0 0 2px rgba(26, 82, 196, 0.2);
}
.qty-color-opt.active { border-color: #1a52c4; }
.qty-col-swatch { width: 22px; height: 22px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12); }
.qty-col-text { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
@media (max-width: 768px) {
  .qty-col-swatch { width: 18px; height: 18px; }
  .qty-col-text { padding: 0.2rem 0.45rem; font-size: 0.72rem; }
  .qty-size-opt { padding: 0.2rem 0.5rem; min-width: 30px; font-size: 0.75rem; }
}
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1a52c4;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: #eef4ff; border-color: #1a52c4; }
.qty-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
}
.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stock {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  min-height: 1em;
  margin-top: -0.2rem;
}
.qty-stock.hit { color: #dc2626; }
.cart-item-qty { position: relative; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cart-item .qty-stock {
  font-size: 0.7rem;
  margin-left: 0.3rem;
}
.cart-item .qty-stock.hit { color: #dc2626; }
.qty-add {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a52c4, #2f6bff);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(26, 82, 196, 0.28);
}
.qty-add:hover { background: linear-gradient(135deg, #1645a9, #285fe0); }

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(20px);
  background: #e5e7eb;
  color: #111827;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 400;
  white-space: nowrap;
  max-width: 90vw;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cart-count {
  position: absolute;
  top: -7px;
  right: -11px;
  background: #ff7a00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px;
  display: none;
}
.nav-item { position: relative; }
.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-icon-wrap .cart-count { display: none; }

.cart-page { max-width: 900px; }
.product-card { cursor: pointer; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}
main:has(.product-detail) { margin-top: 0.75rem; }
.back-link {
  display: inline-block;
  color: #1a52c4;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.25rem;
}
.back-link:hover { text-decoration: underline; }
.pd-images { min-width: 0; }
.pd-main-wrap {
  position: relative;
  aspect-ratio: 1/1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.pd-main-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pd-main-wrap .wish-toggle { top: 10px; right: 10px; }
.pd-main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.pd-arrow-left { left: 10px; }
.pd-arrow-right { right: 10px; }
.pd-main-arrow:hover { background: #fff; color: #1a52c4; }
.pd-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pd-thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.pd-thumb:hover { border-color: #1a52c4; }
.pd-thumb.active { border-color: #1a52c4; box-shadow: 0 0 0 3px rgba(26, 82, 196, 0.2); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { min-width: 0; }
.pd-cat { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-bottom: 0.35rem; }
.pd-name { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin: 0 0 0.6rem; line-height: 1.2; }
.pd-prices { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.4rem; }
.pd-offer { font-size: 1.6rem; font-weight: 800; color: #ff7a00; }
.pd-strike { color: #94a3b8; font-size: 1.05rem; }
.pd-disc { background: #fee2e2; color: #dc2626; font-weight: 800; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 6px; }
.pd-stock { font-weight: 800; font-size: 0.85rem; margin: 0 0 0.75rem; }
.pd-stock.in { color: #16a34a; }
.pd-stock.out { color: #dc2626; }
.pd-details { margin: 0 0 1.25rem; }
.pd-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pd-details-toggle:hover { border-color: #1a52c4; background: #f8faff; }
.pd-details-toggle .pd-details-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.pd-details-toggle .pd-details-caret {
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.15s ease;
}
.pd-details-toggle.open .pd-details-caret { transform: rotate(180deg); color: #1a52c4; }
.pd-details-body {
  margin-top: 0.5rem;
  padding: 0.85rem 0.95rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.pd-variant { margin-bottom: 1rem; }
.pd-variant-title { font-size: 0.8rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.5rem; }
.pd-variant-colors, .pd-variant-sizes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pd-color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.pd-color.active { border-color: #1a52c4; box-shadow: 0 0 0 3px rgba(26, 82, 196, 0.25); }
.pd-color--text {
  width: auto;
  min-width: 34px;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-color--text.active::after { display: none; inset: -2px; border-radius: 10px; }
.pd-color.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #1a52c4;
  border-radius: 50%;
}
.pd-size {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}
.pd-size.active { border-color: #1a52c4; background: #eaf0fb; color: #1a52c4; }
.pd-size.out {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: line-through;
}
.pd-size-qty {
  display: inline-block;
  margin-left: 0.35rem;
  background: #16a34a;
  color: #fff;
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .pd-variant-colors, .pd-variant-sizes { gap: 0.45rem; }
  .pd-color {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }
  .pd-color--text {
    min-width: 28px;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }
  .pd-size {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }
}
main:has(.product-detail) { padding-bottom: 8.5rem; }
.pd-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 0.55rem 0.8rem;
  padding-bottom: calc(0.55rem + 48px);
  background: transparent;
  border-top: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 90;
  box-sizing: border-box;
}
.pd-qty { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.pd-qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-qty-btn:hover { border-color: #94a3b8; background: #f1f5f9; }
.pd-qty-input {
  width: 48px;
  height: 30px;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}
.pd-qty-input:focus { border-color: #1a52c4; }
.pd-qty-input::-webkit-outer-spin-button, .pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-qty-stock { font-size: 0.72rem; font-weight: 600; color: #dc2626; }
.pd-buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
.pd-buy .add-cart-link, .pd-buy .buy-now-link { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.pd-buy .btn-link--cart { background: #ff7a00; color: #fff; border: 1.5px solid #ff7a00; }
.pd-buy .btn-link--cart:hover { background: #e66f00; color: #fff; }
.pd-buy .btn-link--buy { background: #16a34a; color: #fff; border: 1.5px solid #16a34a; }
.pd-buy .btn-link--buy:hover { background: #15803d; color: #fff; }
.pd-buy .notify-me-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #fff7ed;
  color: #9a3412;
  border: 1.5px solid #fdba74;
  border-radius: 13px;
  box-shadow: none;
  font-weight: 600;
}
.pd-buy .notify-me-link:hover { background: #ffedd5; color: #c2410c; }
.pd-buy .notify-me-link svg { flex-shrink: 0; color: #ea580c; }
.pd-buy .notify-done { background: #f0fdf4; color: #166534; border-color: #86efac; pointer-events: none; }
.pd-buy .notify-done svg { color: #16a34a; }
.pd-out-note { font-size: 0.85rem; color: #64748b; margin: 0 0 0.75rem; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; padding: 1rem; }
  .pd-name { font-size: 1.25rem; }
}
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
.cart-items-wrap { min-width: 0; }
.cart-section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-weight: 800; margin-bottom: 0.75rem; }
.cart-select-all-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.3rem 0 0.75rem;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
}
.cart-select-all-wrap input {
  width: 18px;
  height: 18px;
  accent-color: #1a52c4;
  cursor: pointer;
}
.cart-select-wrap {
  position: absolute;
  top: 0.9rem;
  right: 0.95rem;
  cursor: pointer;
}
.cart-select-wrap input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.cart-select-box {
  display: inline-block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  box-sizing: border-box;
}
.cart-select-wrap input:checked + .cart-select-box {
  border-color: #1a52c4;
  background: #1a52c4;
  box-shadow: inset 0 0 0 2px #fff;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  position: relative;
}
.cart-item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; color: #1e293b; font-size: 0.95rem; }
.cart-item-variant { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #64748b; margin-top: 0.2rem; }
.cart-item-price { color: #ff7a00; font-weight: 800; font-size: 0.9rem; margin-top: 0.25rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-item-qty .qty-btn { width: 30px; height: 30px; font-size: 1.05rem; }
.cart-item-qty .qty-value { font-size: 0.95rem; }
.cart-item-line {
  font-weight: 800;
  color: #16a34a;
  min-width: 66px;
  text-align: right;
  margin-right: 0.6rem;
}
.cart-item-remove {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}
.cart-item-remove:hover { text-decoration: underline; }

.billing-card {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.billing-title { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin-bottom: 1rem; }
.billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: #475569;
}
.billing-row .billing-val { font-weight: 700; color: #1e293b; }
#bill-subtotal, #bill-delivery { color: #16a34a; }
.billing-row.billing-total {
  border-top: 1px dashed #cbd5e1;
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}
.billing-row.billing-total .billing-val { color: #ff7a00; font-size: 1.3rem; }
.billing-free { color: #16a34a; font-weight: 700; }
.billing-note { margin-top: 0.6rem; font-size: 0.78rem; color: #94a3b8; }
.cart-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.btn-ghost {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-ghost:hover { background: #e2e8f0; }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: 12px;
  }
  .cart-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
  .cart-item-info { flex: 1; min-width: calc(100% - 112px); }
  .cart-item-name { font-size: 0.88rem; line-height: 1.3; }
  .cart-item-price { font-size: 0.82rem; margin-top: 0.15rem; }
  .cart-item-qty {
    margin-top: 0.35rem;
    flex: 1;
  }
  .cart-item-qty .qty-btn { width: 32px; height: 32px; font-size: 1rem; }
  .cart-item-qty .qty-value { font-size: 0.95rem; width: 36px; }
  .cart-item .qty-stock { font-size: 0.7rem; }
  .cart-item-line {
    font-size: 1rem;
    min-width: auto;
    margin-left: auto;
    align-self: flex-end;
    padding-bottom: 0.2rem;
  }
  .cart-item-remove {
    font-size: 0.68rem;
    padding: 0.24rem 0.3rem;
  }
  .cart-item { position: relative; }
}

/* Checkout page */
.checkout-page { padding: 1.2rem 2rem 6rem; max-width: 1100px; margin: 0 auto; }
.checkout-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.checkout-back { color: #1a52c4; font-weight: 600; font-size: 0.9rem; text-decoration: none; flex-shrink: 0; }
.checkout-back:hover { text-decoration: underline; }
.checkout-title { font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 0; }
.checkout-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.checkout-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.checkout-right { flex: 1; min-width: 0; position: sticky; top: 80px; }
.checkout-section { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.checkout-section, .checkout-section * { outline-color: transparent !important; }
.checkout-compact-addr { box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important; }
.checkout-compact-addr, .checkout-compact-addr * { border-color: transparent !important; outline-color: transparent !important; }
.checkout-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 0.85rem; }
.checkout-addr-list { margin-bottom: 0.5rem; }
.checkout-empty { color: #94a3b8; font-size: 0.9rem; padding: 0.5rem 0; cursor: pointer; }
.checkout-compact-addr {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  cursor: default;
}
.co-addr-line { font-size: 0.88rem; color: #475569; line-height: 1.45; }
.co-addr-line:first-child { margin-bottom: 0.2rem; color: #1e293b; }
.co-addr-change { display: inline-block; margin-left: auto; font-size: 0.78rem; color: #1a52c4; font-weight: 600; cursor: pointer; }
.co-addr-change:hover { text-decoration: underline; }
.checkout-add-addr { align-self: flex-start; }
.co-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid #f1f5f9; }
.co-item:last-child { border-bottom: none; }
.co-item-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-weight: 600; font-size: 0.9rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-meta { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }
.co-item-variant { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #64748b; margin-top: 0.15rem; }
.co-item-line { font-weight: 700; font-size: 0.95rem; color: #16a34a; flex-shrink: 0; }

/* Payment methods */
.pay-methods { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-method:hover { border-color: #94a3b8; background: #f8fafc; }
.pay-method input { width: 16px; height: 16px; accent-color: #1a52c4; flex-shrink: 0; }
.pay-method:has(input:checked) { border-color: #1a52c4; background: #eef4ff; }
.pay-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1a52c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pay-method-info { display: flex; flex-direction: column; }
.pay-method-name { font-weight: 700; font-size: 0.92rem; color: #1e293b; }
.pay-method-desc { font-size: 0.78rem; color: #64748b; }
[hidden] { display: none !important; }
.pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334155;
  font-weight: 600;
}
.pay-opt:hover { border-color: #94a3b8; }
.pay-opt input { width: 15px; height: 15px; accent-color: #1a52c4; }
.pay-opt:has(input:checked) { border-color: #1a52c4; background: #eef4ff; color: #1a52c4; }
.pay-opt--link { text-decoration: none; justify-content: flex-start; transition: border-color 0.2s, box-shadow 0.2s; }
.pay-opt--link:hover { box-shadow: 0 2px 8px rgba(15,23,42,0.08); }
.pay-opt--link .pay-opt-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-opt--link .pay-opt-check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg) translate(-1px, -1px);
  display: block;
  transition: border-color 0.15s;
}
.pay-opt--link.selected { border-color: #1a52c4; background: #eef4ff; color: #1a52c4; }
.pay-opt--link.selected .pay-opt-check::after { border-left-color: #1a52c4; border-bottom-color: #1a52c4; }
.pay-opt-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.pay-badge--gpay { background: linear-gradient(135deg, #34a853, #0f9d58); }
.pay-badge--pp { background: linear-gradient(135deg, #5f259f, #3e1d70); }
.pay-badge--pt { background: linear-gradient(135deg, #00baf2, #002e6e); }
.pay-badge--bhim { background: linear-gradient(135deg, #ff6a00, #eb2e48); }
.pay-badge--sbi { background: linear-gradient(135deg, #1b5bac, #0a3f7d); }
.pay-badge--hdfc { background: linear-gradient(135deg, #004c8f, #002b52); }
.pay-badge--icici { background: linear-gradient(135deg, #f5821f, #b25a08); }
.pay-badge--axis { background: linear-gradient(135deg, #82286b, #571a47); }
.pay-badge--kotak { background: linear-gradient(135deg, #ed1c2e, #a60f1d); }
.pay-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  flex: 1;
  min-width: 0;
}
.pay-input {
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  width: 100%;
}
.pay-input:focus { border-color: #1a52c4; box-shadow: 0 0 0 3px rgba(26,82,196,0.15); }
.pay-row { display: flex; gap: 0.6rem; }
.pay-row .pay-field-label { flex: 1; min-width: 0; }
.pay-amount-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0.7rem 1.25rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pay-amount-label { font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.pay-amount-value { font-size: 1.5rem; font-weight: 800; color: #ff7a00; }
@media (min-width: 701px) {
  .pay-top { display: flex; gap: 0.5rem; }
}

@media (max-width: 700px) {
  .checkout-page { padding: 0.85rem 0.85rem 6rem; }
  .checkout-header { margin-bottom: 0.85rem; }
  .checkout-layout { display: block; gap: 0.2rem; }
  .checkout-right { width: 100%; position: static; }
  .checkout-section { border-radius: 12px; padding: 0.85rem 1rem 0.5rem; }
  .billing-card { border-radius: 12px; padding: 0.85rem 1rem 0.5rem; }
}

/* Payment shell: pinned top, independently scrollable methods */
.pay-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem 1rem;
  height: calc(100vh - 61px - 4rem);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pay-head { flex-shrink: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.pay-head-top { display: flex; align-items: center; justify-content: space-between; }
.pay-rows { flex: 1; min-height: 0; display: flex; gap: 1.5rem; align-items: stretch; }
.pay-card { flex: 1; min-width: 0; min-height: 200px; display: flex; flex-direction: column; padding-bottom: 1rem; }
.pay-card .checkout-section-title { flex-shrink: 0; }
.pay-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: 0.35rem; margin-right: -0.35rem; }
.pay-message { color: #dc2626; font-size: 0.85rem; text-align: center; margin-bottom: 0.4rem; }
.pay-submit { flex-shrink: 0; padding-bottom: 1.2rem; }
.pay-submit .btn-link { width: 100%; justify-content: center; }
.pay-submit .pay-message { margin-bottom: 0.5rem; }
.pay-scroll::-webkit-scrollbar { width: 8px; }
.pay-scroll::-webkit-scrollbar-track { background: transparent; }
.pay-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

@media (max-width: 700px) {
  .pay-shell {
    height: calc(100vh - 61px - 3.2rem);
    padding: 0.85rem 0.85rem 0.5rem;
    gap: 0.4rem;
    display: flex;
    flex-direction: column;
  }
.pay-rows { flex: 1.2; min-height: 0; display: flex; flex-direction: column; gap: 0.45rem; }
  .pay-card { flex: 1; min-height: 0; max-height: none; }
  .pay-scroll { flex: 1; min-height: 0; overflow-y: auto; max-height: none; }
}

/* --- Order cards: side-by-side sliding row --- */
.orders-track { display: flex; flex-wrap: nowrap; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.orders-track::-webkit-scrollbar { display: none; }
.orders-track .order-card { flex: 0 0 auto; width: max-content; margin-right: 0.25rem; }

/* --- Order grid cards (image only) --- */
.order-card-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.order-card-link:hover { border-color: #1a52c4; box-shadow: 0 4px 14px rgba(26,82,196,0.12); }
.order-card-imgs { display: flex; flex-wrap: nowrap; gap: 0.3rem; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.order-card-imgs::-webkit-scrollbar { display: none; }
.order-card-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #f1f5f9; scroll-snap-align: start; }
.order-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #94a3b8; }
.order-card-mini { width: max-content; }
.order-card-mini .order-card-thumb { width: 62px; height: 62px; flex-basis: 62px; }
.order-card-mini .order-card-thumb img { object-fit: cover; }
.order-card-mini .order-card-thumb-ph { width: 62px; height: 62px; }
.order-card-name { font-size: 0.78rem; font-weight: 700; color: #1a52c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.45rem; max-width: 78px; }
.order-card-meta { margin-top: 0.3rem; }
.order-card-meta .order-status { font-size: 0.68rem; padding: 0.12rem 0.55rem; }

/* --- Compressed order list --- */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.order-head h3 { margin: 0; }
.order-head-link { font-size: 0.85rem; padding: 0.5rem 0.95rem; flex-shrink: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.orders-list { display: flex; flex-direction: column; gap: 0.7rem; }
.order-row { display: flex; align-items: center; gap: 0.75rem; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem; background: #fff; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.order-row:hover { border-color: #1a52c4; box-shadow: 0 2px 10px rgba(26,82,196,0.12); }
.order-row-main { flex: 1; min-width: 0; }
.order-row-id { font-weight: 700; color: #1a52c4; font-size: 0.95rem; }
.order-row-date { color: #94a3b8; font-size: 0.78rem; margin-top: 0.2rem; }
.order-row-total { font-weight: 700; color: #222; font-size: 0.9rem; margin-left: auto; text-align: right; }
.order-row-arrow { color: #cbd5e1; flex-shrink: 0; display: flex; }
.od-card-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.od-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.od-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.od-track-box { margin-top: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.1rem; }
.od-track-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 0.9rem; }
.od-track-step { display: flex; align-items: center; gap: 0.6rem; position: relative; padding-bottom: 1.1rem; }
.od-track-step:last-child { padding-bottom: 0; }
.od-track-step::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px; width: 2px; background: #e2e8f0; }
.od-track-step:last-child::before { display: none; }
.od-track-step.done::before { background: #16a34a; }
.od-track-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; flex-shrink: 0; position: relative; z-index: 1; }
.od-track-step.done .od-track-dot { border-color: #16a34a; background: #16a34a; }
.od-track-label { font-size: 0.88rem; font-weight: 600; color: #94a3b8; }
.od-track-step.done .od-track-label { color: #16a34a; }
.od-track-date { font-size: 0.78rem; color: #64748b; margin-left: auto; }
.od-btn { flex: 1; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.od-btn-track { background: #1a52c4; color: #fff; }
.od-btn-track:hover { background: #1441a0; }
.od-btn-cancel { background: #fff; color: #dc2626; border-color: #fca5a5; }
.od-btn-cancel:hover { background: #fef2f2; }

.header-back { display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; width: 38px; height: 38px; flex-shrink: 0; margin-left: auto; }
.header-search-toggle { margin-left: auto; background: none; border: none; color: #fff; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; position: relative; z-index: 6; }
.header-search-toggle:hover { opacity: 0.85; }
.support-wrap { margin-left: auto; margin-right: 1rem; position: relative; flex-shrink: 0; }
.header-support-btn { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: none; color: #ff7a00; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0; }
.header-support-btn:hover { text-decoration: underline; }
.header-support-btn .support-caret { transition: transform 0.15s ease; }
.support-wrap.open .header-support-btn .support-caret { transform: rotate(180deg); }
.support-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,0.15); padding: 0.4rem; display: none; z-index: 60; }
.support-wrap.open .support-menu { display: block; }
.support-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; background: none; border: none; color: #0f172a; font-size: 0.88rem; font-weight: 500; padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer; text-decoration: none; }
.support-item svg { color: #ff7a00; flex-shrink: 0; }
.support-item:hover { background: #f8fafc; }
.search-panel-inner { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; align-items: center; gap: 0.5rem; background: #1a52c4; padding: 0.4rem 1rem; z-index: 5; }
.search-panel-inner.open { display: flex; }
header:has(.search-panel-inner.open) .header-search-toggle { display: none; }
.search-field { flex: 1; position: relative; display: flex; align-items: center; margin-top: 0.7rem; margin-bottom: 0.7rem; }
.search-input { flex: 1; padding: 0.4rem 2.8rem 0.4rem 0.9rem; border: 1px solid #e2e8f0; border-radius: 24px; font-size: 1rem; outline: none; font-family: inherit; background: #fff; color: #1e293b; }
.search-input::placeholder { color: #94a3b8; }
.search-input:focus { border-color: #1a52c4; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12); max-height: 320px; overflow: auto; z-index: 50; }
.search-result-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; text-decoration: none; }
.search-result-item:hover { background: #f8fafc; }
.search-result-item:last-child { border-bottom: none; }
.search-result-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.search-result-img--ph { background: #e8edf3; }
.search-result-text { min-width: 0; }
.search-result-name { font-size: 0.85rem; color: #1e293b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 0.8rem; color: #ff7a00; font-weight: 700; }
.search-no { padding: 0.9rem 0.75rem; color: #94a3b8; font-size: 0.85rem; }
.search-submit { position: absolute; right: 5px; width: 28px; height: 28px; border: none; border-radius: 50%; background: #1a52c4; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.search-submit svg { width: 15px; height: 15px; }
.search-submit:hover { opacity: 0.9; }

/* --- Order details --- */
main:has(.od-page) { margin-top: 0.75rem; }
main:has(.greeting-bar) { margin-top: 0.5rem; max-width: none; }
main:has(.greeting-bar) .acct-section { margin-bottom: 0.75rem; padding: 0.85rem; }
.od-page .od-header { margin-bottom: 0.3rem; }
.od-page { padding: 0; }
.od-header { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.od-back { background: none; border: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #1a52c4; text-decoration: none; flex-shrink: 0; width: 32px; height: 32px; }
.od-title { display: flex; align-items: center; gap: 0.6rem; }
.od-title h2 { font-size: 1.1rem; color: #1a52c4; margin: 0 0 0.8rem; }
.od-meta { color: #94a3b8; font-size: 0.85rem; margin-top: 0.3rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.od-status { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 20px; text-transform: capitalize; }
.od-address { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.85rem; color: #475569; margin-bottom: 1.25rem; margin-top: 2.5rem; }
.od-address b { color: #1e293b; }
.od-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid #f1f5f9; }
.od-item-focus {
  background: #fffbeb;
  border-radius: 10px;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 1.5px #fcd34d;
}
.od-item:last-child { border-bottom: 0; }
.order-item-price.item-cancelled { text-decoration: line-through; color: #94a3b8; }
.od-item-name .od-status { margin-left: 0.4rem; vertical-align: middle; }
.od-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; border-top: 1px dashed #e2e8f0; padding-top: 0.8rem; font-size: 0.9rem; color: #334155; }
.od-summary .od-grand { font-size: 1.2rem; font-weight: 700; color: #1e293b; }
.pay-status-box { text-align: center; padding: 2rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; margin-top: 1.25rem; }
.pay-status-spinner { display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.pay-status-spinner span { width: 34px; height: 34px; border: 3px solid #e2e8f0; border-top-color: #1a52c4; border-radius: 50%; box-sizing: border-box; animation: paySpin 0.9s linear infinite; }
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-status-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; width: 44px; height: 44px; margin-left: auto; margin-right: auto; border-radius: 50%; background: #dcfce7; color: #16a34a; }
.pay-status-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; }
.pay-status-msg { margin-top: 0.4rem; font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.pay-status-box .od-status { display: inline-block; margin-top: 0.9rem; }
.pay-status-actions { justify-content: center; }
.pay-status-actions .btn-link { width: auto; padding: 0.7rem 2.2rem; }

/* --- Search result filters --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-select {
  padding: 0.4rem 0.7rem;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #334155;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  min-width: 0;
}
.filter-select:focus { border-color: #1a52c4; }
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.filter-input {
  width: 80px;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #334155;
  background: #f8fafc;
  outline: none;
  min-width: 0;
}
.filter-input:focus { border-color: #1a52c4; }
.filter-dash { color: #94a3b8; font-weight: 600; }
.filter-clear-btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  cursor: pointer;
  margin-left: auto;
}
.filter-clear-btn:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

@media (max-width: 600px) {
  .filter-bar { gap: 0.4rem; padding: 0.5rem 0.6rem; }
  .filter-select { font-size: 0.78rem; padding: 0.35rem 0.5rem; }
  .filter-input { width: 65px; font-size: 0.78rem; padding: 0.35rem 0.45rem; }
}
