/* ============ QMANSHA store - SHEIN-inspired clean fashion style ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #111; --muted: #666; --line: #e8e8e8; --bg: #fff; --bg-alt: #f7f7f7;
  --accent: #ff4e6a; --accent-dark: #e63a56; --radius: 10px;
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 28px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; border-radius: 30px; text-align: center; transition: .2s; letter-spacing: .3px; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #333; }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); } .btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* top bar */
.topbar { background: var(--ink); color: #fff; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.lang-switch { background: transparent; color: #fff; border: 1px solid #444; border-radius: 4px; padding: 2px 6px; font-size: 12px; cursor: pointer; }
.lang-switch option { color: #111; }
.notice-bar { background: #fff3f5; color: var(--accent-dark); text-align: center; font-size: 13px; padding: 6px 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.main-nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.main-nav a { position: relative; padding: 6px 0; } .main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--bg-alt); }
.search-form input { border: none; outline: none; background: transparent; padding: 8px 12px; width: 200px; font-size: 13px; }
.search-form button { border: none; background: transparent; padding: 0 12px; cursor: pointer; font-size: 15px; }
.cart-link { position: relative; font-size: 22px; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--accent); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }
.category-nav { border-bottom: 1px solid var(--line); background: #fff; }
.category-nav .container { display: flex; gap: 22px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.category-nav a:hover { color: var(--accent); }

/* hero */
.hero { background: linear-gradient(120deg, #fff0f3 0%, #ffe9ee 45%, #fdeff2 100%); padding: 70px 0 60px; }
.hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-text h1 { font-size: 48px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px; }
.hero-text p { font-size: 16px; color: var(--muted); margin-bottom: 24px; max-width: 420px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 400px; }
.hero-tags span { background: #fff; border: 1px solid #f2c4cd; color: var(--accent-dark); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* sections */
.section { padding: 46px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.view-all { font-size: 13px; color: var(--muted); } .view-all:hover { color: var(--accent); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #f1f1f1; aspect-ratio: 3/4; display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-name { position: relative; z-index: 1; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; width: 100%; padding: 34px 12px 10px; font-weight: 700; font-size: 15px; }

/* product grid & cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.pc-img-wrap { position: relative; aspect-ratio: 3/4; background: var(--bg-alt); overflow: hidden; }
.pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pc-img-wrap img { transform: scale(1.05); }
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; font-weight: 800; letter-spacing: 2px; }
.pc-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.pc-badge.new { background: var(--ink); }
.pc-info { padding: 12px 12px 14px; }
.pc-name { font-size: 13px; font-weight: 500; color: #333; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-price { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; }
.price-now { font-weight: 700; font-size: 15px; }
.price-was { color: #aaa; text-decoration: line-through; font-size: 13px; }
.price-now.big { font-size: 26px; } .price-was.big { font-size: 18px; }

/* listing */
.page-inner { padding-top: 26px; padding-bottom: 60px; min-height: 50vh; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 22px; }
.listing-layout { display: grid; grid-template-columns: 210px 1fr; gap: 30px; }
.filters h3 { font-size: 14px; margin-bottom: 10px; }
.filters a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; }
.filters a.active, .filters a:hover { color: var(--accent); font-weight: 600; }
.sort-select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.listing-info { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.empty-note { color: var(--muted); padding: 30px 0; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* product detail */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery-main { aspect-ratio: 3/4; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img { flex: 0 0 auto; width: 86px; height: 114px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.gallery-thumbs img:hover { border-color: #bbb; }
.gallery-thumbs img.active { border-color: var(--accent); }
.gallery-count { font-size: 12px; color: var(--muted); margin-top: 8px; }
.p-title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.p-brand { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.p-price { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.save-tag { background: #ffe9ee; color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.p-availability { font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.p-availability.in { color: #16a34a; } .p-availability.out { color: #dc2626; }
.size-block { margin: 18px 0; }
.size-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.size-guide-btn { border: none; background: none; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: underline; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { min-width: 58px; padding: 10px 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.size-opt small { font-size: 10px; color: var(--muted); font-weight: 400; }
.size-opt.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-opt.selected small { color: #ccc; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 14px; font-weight: 600; }
.qty-control { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 34px; height: 36px; border: none; background: var(--bg-alt); cursor: pointer; font-size: 16px; }
.qty-control input { width: 46px; text-align: center; border: none; outline: none; font-size: 14px; }
.p-actions { display: flex; gap: 12px; }
.p-actions .btn { flex: 1; }
.p-msg { font-size: 13px; color: #16a34a; margin-top: 8px; }
.p-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.product-details { margin-top: 50px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.tab { border: none; background: none; padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-content { display: none; } .tab-content.active { display: block; }
.desc-html { line-height: 1.8; color: #333; max-width: 780px; }
.desc-html img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.size-help { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.size-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.size-table th { background: var(--bg-alt); font-weight: 600; }
.size-label { font-weight: 700; }
.cm-val { font-weight: 600; } .inch-val { color: var(--accent); font-size: 12px; }
.inch-table { max-width: 480px; }
.size-legend { font-size: 12px; color: var(--muted); }
.attrs-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 13px; }
.attrs-table td { border-bottom: 1px solid var(--line); padding: 8px; }
.attrs-table td:first-child { color: var(--muted); width: 40%; }

/* modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; padding: 26px; max-width: 640px; width: 92%; max-height: 86vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 10px; right: 14px; border: none; background: none; font-size: 26px; cursor: pointer; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; }
.ci-img { width: 84px; height: 112px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-name { font-size: 14px; font-weight: 600; }
.ci-size { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ci-price { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ci-qty { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ci-qty button { width: 28px; height: 32px; border: none; background: var(--bg-alt); cursor: pointer; }
.ci-qty input { width: 40px; text-align: center; border: none; outline: none; font-size: 13px; }
.ci-line-total { font-weight: 700; min-width: 80px; text-align: right; }
.ci-remove { border: none; background: none; font-size: 22px; cursor: pointer; color: #bbb; } .ci-remove:hover { color: var(--accent); }
.cart-summary { background: var(--bg-alt); border-radius: 12px; padding: 22px; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 14px; font-size: 16px; }
.cs-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cs-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 17px; }
.cs-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); padding: 5px 0; }
.cs-hint { font-size: 12px; color: #16a34a; margin: 8px 0; }
.empty-state { text-align: center; padding: 70px 0; }
.empty-state h1 { font-size: 64px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.checkout-fields h3 { margin: 18px 0 10px; font-size: 15px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; }
.field input:focus { border-color: var(--ink); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.pay-method.selected { border-color: var(--ink); background: #fafafa; }
.pay-method input { accent-color: var(--ink); }
.pm-logo { font-weight: 700; font-size: 14px; }
.pm-desc { font-size: 12px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.secure-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* success & pay */
.success-page { display: flex; justify-content: center; }
.success-box { text-align: center; max-width: 560px; padding: 40px 20px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-box h1 { font-size: 26px; margin-bottom: 10px; }
.success-box p { color: var(--muted); margin-bottom: 24px; }
.success-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--bg-alt); border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: left; }
.success-meta span { display: block; font-size: 12px; color: var(--muted); } .success-meta strong { font-size: 15px; }
.pay-box { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.pay-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.badge-demo { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.pay-reason { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pay-order { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--bg-alt); border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.pay-order span { display: block; font-size: 12px; color: var(--muted); } .pay-order strong { font-size: 16px; }
.pay-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s; background: #fff; }
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nc-img { aspect-ratio: 16/9; background: var(--bg-alt); } .nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { padding: 16px; }
.nc-date { font-size: 11px; color: var(--muted); }
.nc-body h3 { font-size: 16px; margin: 6px 0; }
.nc-body p { font-size: 13px; color: var(--muted); }
.nc-more { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--accent); font-weight: 600; }
.article-page { max-width: 860px; }
.article-title { font-size: 30px; margin-bottom: 8px; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.article-cover { border-radius: 12px; margin-bottom: 20px; }
.article-content { line-height: 1.9; font-size: 15px; }
.article-content h3 { margin: 18px 0 8px; }
.info-body { max-width: 720px; line-height: 1.8; color: #333; }
.info-body h3 { margin: 16px 0 6px; }

/* footer */
.site-footer { background: #0e0e0e; color: #cfcfcf; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 30px; padding: 44px 20px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 8px; }
.footer-slogan { font-size: 13px; color: #999; margin-bottom: 14px; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.pm { border: 1px solid #333; border-radius: 6px; padding: 4px 8px; font-size: 11px; color: #ccc; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: #aaa; } .footer-col a:hover { color: #fff; }
.social-links { display: flex; gap: 8px; margin-bottom: 14px; }
.social-links a { border: 1px solid #333; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #ccc; padding: 0; } .social-links a:hover { color: #fff; border-color: #fff; }
.newsletter-form { display: flex; border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; padding: 10px 12px; color: #fff; font-size: 13px; }
.newsletter-form button { background: var(--accent); color: #fff; border: none; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 13px; }
.newsletter-msg { font-size: 12px; color: #86efac; margin-top: 8px; min-height: 16px; }
.footer-bottom { border-top: 1px solid #222; padding: 16px 20px; font-size: 12px; color: #777; }
.footer-bottom .container { display: flex; justify-content: space-between; }

/* perks */
.perks { padding: 26px 0; border-top: 1px solid var(--line); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { display: flex; gap: 14px; align-items: center; }
.perk-ic { font-size: 28px; }
.perk h4 { font-size: 14px; } .perk p { font-size: 12px; color: var(--muted); }

/* responsive */
@media (max-width: 900px) {
  .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .main-nav { display: none; }
  .hero-text h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-form input { width: 120px; }
}
/* dual-unit size chart: CM / IN clearly separated */
.dual-table { min-width: 560px; }
.dual-table th { background: #f6f6f6; }
.dual-table .unit-row th { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; background: #fafafa; }
.dual-table .unit-in, .dual-table .cell-in { color: var(--accent); font-weight: 600; }
.dual-table .cell-in { background: #fff6f8; }
.dual-table .unit-cm { color: var(--ink); }
.dual-table tbody tr:hover td { background: #fafafa; }
.size-legend .unit-cm { font-weight: 700; color: var(--ink); }
.size-legend .unit-in { font-weight: 700; color: var(--accent); }

/* collapsible product attributes below trust badges */
.p-attrs-block { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p-attrs-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #fafafa; border: none; padding: 12px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.p-attrs-toggle:hover { background: #f0f0f0; }
.p-attrs-arrow { font-size: 12px; color: var(--muted); transition: transform .25s; }
.p-attrs-toggle.open .p-attrs-arrow { transform: rotate(90deg); }
.p-attrs-list { padding: 4px 14px 12px; }
.p-attrs-list .attrs-table td { border-bottom: 1px solid var(--line); padding: 7px 2px; }

/* shipping info calculator */
.ship-calc { padding: 4px 0 6px; }
.ship-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.ship-select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.ship-result { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ship-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.ship-row span { color: var(--muted); }
.ship-row strong { color: var(--ink); }
.ship-free { margin-top: 8px; font-size: 12px; color: #16a34a; }

/* color selector (above size) */
.color-block { margin-bottom: 18px; }
.color-head { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { display: block; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.color-opt img { width: 54px; height: 72px; border-radius: 8px; object-fit: cover; display: block; border: 1px solid #eee; }
.color-dot { width: 54px; height: 72px; border-radius: 8px; display: block; background: #e5e7eb; }
.color-opt.selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(17,17,17,.15); }

/* home banner carousel */
.banner-carousel { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--br, 1600/420); min-height: 200px; max-height: var(--maxh, 560px); background: #eee; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.carousel-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-carousel[data-fit="contain"] .carousel-slide img { object-fit: contain; background: #f6f6f6; }
.banner-caption { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; padding: 6px 18px; border-radius: 20px; font-size: 13px; letter-spacing: .5px; white-space: nowrap; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: none; background: rgba(255,255,255,.8); color: #111; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 7px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.65); cursor: pointer; padding: 0; }
.carousel-dot.active { background: #fff; transform: scale(1.35); }

/* live chat widget */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.chat-launcher { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 26px; cursor: pointer; box-shadow: 0 4px 16px rgba(255,78,106,.4); }
.chat-launcher:hover { background: var(--accent-dark); }
.chat-panel[hidden] { display: none !important; }
.chat-panel { position: absolute; bottom: 66px; right: 0; width: 320px; height: 430px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel-head { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.chat-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.chat-name-row { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-name-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.chat-name-row button { background: var(--ink); color: #fff; border: none; border-radius: 8px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.chat-widget .cmsg { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.chat-widget .cmsg .c-name { font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.chat-widget .cmsg.customer { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat-widget .cmsg.admin { align-self: flex-end; background: var(--accent); color: #fff; }
.chat-widget .cmsg.system { align-self: center; background: #fef3c7; color: #92400e; font-size: 12px; }
.chat-widget .cmsg .c-time { font-size: 10px; opacity: .7; margin-top: 2px; }
.chat-input-row { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.chat-input-row button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.chat-input-row button:disabled, .chat-name-row button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .chat-panel { width: calc(100vw - 40px); right: -10px; } }

.footer-payments { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-icon { width: 52px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; padding: 1px; }
.social-links img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.social-links a:hover img { opacity: .8; transform: translateY(-1px); }
.social-links a { transition: transform .2s; }

/* image logo */
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-img { max-height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { max-height: 40px; width: auto; max-width: 200px; object-fit: contain; display: block; }

/* 铺满不裁剪：图片按原始比例铺满整行，高度随图片自动（不变形、不裁剪） */
.banner-carousel[data-fit="full"] { aspect-ratio: auto; max-height: none; min-height: 0; height: auto; }
.banner-carousel[data-fit="full"] .carousel-track { position: relative; }
.banner-carousel[data-fit="full"] .carousel-slide { position: relative; inset: auto; opacity: 1; pointer-events: auto; }
.banner-carousel[data-fit="full"] .carousel-slide:not(.active) { display: none; }
.banner-carousel[data-fit="full"] .carousel-slide img { width: 100%; height: auto; object-fit: cover; }

/* homepage news section */
.home-news .news-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .home-news .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-news .news-grid { grid-template-columns: 1fr; } }
.nc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 2px; }

/* category grid - 8 per row x 2 rows, arrows when more than 16 */
.cat-circles-section { background: #fff; }
.cat-carousel { display: flex; align-items: center; gap: 14px; }
.cat-viewport { flex: 1; min-width: 0; overflow: hidden; }
.cat-circles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px 12px; justify-items: center; padding: 6px 2px 12px; }
.cat-arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #333; font-size: 15px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: color .2s, border-color .2s; }
.cat-arrow:hover { color: var(--accent); border-color: var(--accent); }
.cat-arrow:disabled { opacity: .35; cursor: not-allowed; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 138px; text-align: center; color: inherit; }
.cat-circle:hover { text-decoration: none; }
.cat-circle-img { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--bg-alt); box-shadow: 0 0 0 1px #e5e7eb; display: flex; align-items: center; justify-content: center; transition: transform .25s, box-shadow .25s; }
.cat-circle:hover .cat-circle-img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-circle-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 32px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #ff8fa3); }
.cat-circle-name { font-size: 18px; font-weight: 700; color: #333; max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .cat-circles { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .cat-circles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .cat-circles { grid-template-columns: repeat(3, 1fr); } .cat-carousel { gap: 6px; } .cat-arrow { width: 34px; height: 34px; } }

/* For You product feed */
.section-for-you { background: var(--bg-alt); }
.for-you-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.for-you-more { text-align: center; margin-top: 28px; }
.for-you-more .btn { padding: 12px 40px; font-size: 15px; border-radius: 30px; }
@media (max-width: 1200px) { .for-you-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .for-you-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .for-you-grid { grid-template-columns: repeat(2, 1fr); } }

/* centered section titles (homepage: categories / For You / news) */
.home-title-center .section-head { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.home-title-center .section-title { text-align: center; }

/* simulated authorization login page */
.auth-box { max-width: 520px; margin: 0 auto; }
.auth-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.auth-brand { font-size: 22px; font-weight: 800; }
.auth-panel { background: #f9fafb; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 14px 0; }
.auth-row { margin-bottom: 12px; }
.auth-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.auth-row input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; color: #555; }
.auth-hint { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }

/* product reviews (below main image) */
.reviews { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.reviews-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.review-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-name { font-weight: 700; font-size: 13px; }
.review-stars { color: #d1d5db; font-size: 13px; letter-spacing: 1px; }
.review-stars .star.on { color: #f5a623; }
.review-date { font-size: 11px; color: var(--muted); margin-left: auto; }
.review-content { font-size: 13px; line-height: 1.6; color: #444; }
.review-empty { font-size: 13px; color: var(--muted); margin: 8px 0; }
.review-form { margin-top: 14px; background: var(--bg-alt); border-radius: 10px; padding: 12px; }
.review-form h4 { font-size: 14px; margin-bottom: 10px; }
.review-row { display: flex; gap: 8px; margin-bottom: 8px; }
.review-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.review-row select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.review-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; resize: vertical; box-sizing: border-box; }
.review-msg { font-size: 12px; margin-left: 8px; }

/* product gallery left/right carousel arrows */
.gallery-main { position: relative; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border: none; background: rgba(255,255,255,.85); color: #111; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.15); opacity: 0; transition: opacity .2s, background .2s; }
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow.gprev { left: 10px; }
.gallery-arrow.gnext { right: 10px; }
@media (max-width: 600px) { .gallery-arrow { opacity: 1; width: 32px; height: 32px; font-size: 13px; } }

/* floating WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 86px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.45); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(37,211,102,.55); }
.wa-float img { width: 36px; height: 36px; display: block; }
@media (max-width: 600px) { .wa-float { width: 48px; height: 48px; right: 14px; bottom: 78px; } .wa-float img { width: 30px; height: 30px; } }

/* topbar auth links */
.topbar-form { display: inline; }
.topbar-link { background: none; border: none; color: inherit; cursor: pointer; font-size: 12px; padding: 0; }
.topbar-link:hover { color: #fff; text-decoration: underline; }

/* customer auth pages */
.auth-page { display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 420px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.auth-form .field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.auth-alt { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.alert-error { background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 30px; width: 100%; }
.account-side .au-name { font-size: 20px; font-weight: 800; }
.account-side .au-mail { font-size: 13px; color: var(--muted); margin: 4px 0; }
.account-side .au-since { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.order-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.order-row .or-no { flex: 1; font-weight: 600; }
.order-row .or-status { min-width: 90px; }
.order-row .or-time { font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .account-wrap { grid-template-columns: 1fr; } }

/* account level */
.au-level { display: inline-block; background: linear-gradient(135deg, #ffcf5c, #f5a623); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 4px 0; }
