@charset "utf-8";
/* =========================================================================
   shop.css  --  ZhuanAn security-products mall, front-end design system
   Pure ASCII on purpose: the site responds with gb2312, keeping this file
   encoding-neutral avoids any charset guessing by the browser.
   ========================================================================= */

/* ---------- 1. tokens ---------- */
:root {
    --brand: #0B4C8C;
    --brand-2: #1467B8;
    --brand-3: #2E8BE0;
    --brand-soft: #EAF2FB;
    --price: #E4393C;
    --price-2: #FF6A00;
    --ok: #28A745;
    --ink: #222222;
    --ink-2: #555555;
    --ink-3: #888888;
    --line: #E4E9F0;
    --bg: #F4F6F9;
    --card: #FFFFFF;
    --radius: 8px;
    --radius-s: 4px;
    --sh-1: 0 1px 3px rgba(16, 42, 74, .08);
    --sh-2: 0 6px 18px rgba(16, 42, 74, .12);
    --wrap: 1200px;
}

/* ---------- 2. base ---------- */
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.6 "Microsoft YaHei", "微软雅黑", Tahoma, Arial, Helvetica, sans-serif;
    text-align: left;
}
img { border: 0; max-width: 100%; vertical-align: middle; }
a { color: var(--ink); text-decoration: none; -webkit-transition: color .15s; transition: color .15s; }
a:hover { color: var(--brand-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }
hr { border: 0; border-top: 1px solid var(--line); }
.clear { clear: both; }
.clearfix:after { content: ""; display: block; clear: both; }

/* layout helpers */
.wrap { width: var(--wrap); margin: 0 auto; }
.wrap-sm { width: 983px; margin: 0 auto; }
.row { overflow: hidden; }
.main-col { width: 983px; float: left; }
.side-col { width: 200px; float: right; }
.gutter { width: 17px; float: left; height: 1px; }

/* ---------- 3. top bar ---------- */
/* ---------- 3a. topbar: JD style (light gray) ---------- */
.topbar { background: #F7F7F7; border-bottom: 1px solid #E3E3E3; color: #666; height: 30px; line-height: 30px; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #666; }
.topbar a:hover { color: var(--price); }
.topbar .tb-left span { margin-right: 8px; }
.topbar .tb-left a { margin-right: 10px; }
.topbar .tb-reg { color: var(--price); }
.topbar .tb-reg:hover { color: var(--price-2); }
.topbar .tb-tel { color: var(--brand); font-weight: 700; }
.topbar .tb-right { display: flex; align-items: center; gap: 12px; }
.topbar .sep { color: #DDD; }
.topbar .tb-user { color: var(--price); font-weight: 700; }

/* ---------- 4. header: logo / search / cart ---------- */
.header { background: #FFFFFF; border-bottom: 3px solid var(--brand); }
.header .wrap { display: flex; align-items: center; padding: 16px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 62px; }
.logo .slogan { border-left: 1px solid var(--line); padding-left: 12px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.logo .slogan b { display: block; color: var(--brand); font-size: 15px; letter-spacing: .5px; }

.search { flex: 1 1 auto; max-width: 560px; }
.search form { display: flex; border: 2px solid var(--brand); border-radius: var(--radius); overflow: hidden; background: #fff; }
.search input[type="text"] { flex: 1; border: 0; padding: 0 14px; height: 40px; line-height: 40px; }
.search button, .search .btn-search {
    border: 0; background: var(--brand); color: #fff; padding: 0 26px; height: 40px;
    font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 2px;
}
.search button:hover { background: var(--brand-2); }
.hotwords { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.hotwords a { color: var(--ink-2); margin-right: 10px; }
.hotwords a:hover { color: var(--price); }

.cart-mini { flex: 0 0 auto; align-self: flex-start; }
.cart-mini a {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: #FAFBFD;
    border-radius: var(--radius); padding: 0 16px; height: 40px; color: var(--brand); font-weight: 700;
}
.cart-mini a:hover { border-color: var(--brand); box-shadow: var(--sh-1); }
.cart-mini .num { color: var(--price); }

/* ---------- 5. main nav ---------- */
.nav { background: var(--brand); }
.nav .wrap { display: flex; align-items: stretch; }
.nav .all-cat {
    width: 200px; background: #08375F; color: #fff; font-weight: 700; font-size: 15px;
    line-height: 46px; padding-left: 18px; position: relative;
}
.nav .all-cat:hover { color: #fff; }
.nav ul { display: flex; flex: 1; }
.nav ul li { flex: 0 0 auto; }
.nav ul li a {
    display: block; color: #E8F1FB; line-height: 46px; padding: 0 17px;
    font-size: 15px; position: relative;
}
.nav ul li a:hover, .nav ul li a.on { background: #0A4380; color: #fff; }
.nav ul li a.on:after {
    content: ""; position: absolute; left: 50%; bottom: 0; margin-left: -5px;
    border: 5px solid transparent; border-bottom-color: #fff;
}
.nav .nav-tel { color: #FFD666; font-weight: 700; line-height: 46px; padding-right: 6px; white-space: nowrap; }

/* ---------- 6. category column + mega menu ---------- */
.catbox { display: flex; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--sh-1); }
.catmenu { width: 200px; background: #FFFFFF; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 6px 0; position: relative; }
.catmenu h3 {
    height: 38px; line-height: 38px; padding: 0 16px; font-size: 13px; color: var(--brand);
    border-bottom: 1px dashed var(--line); letter-spacing: 1px;
}
.catmenu a {
    display: block; height: 34px; line-height: 34px; padding: 0 16px 0 26px; font-size: 13px;
    color: var(--ink-2); position: relative;
}
.catmenu a:before {
    content: ""; position: absolute; left: 14px; top: 15px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--brand-3);
}
.catmenu a:hover { background: var(--brand-soft); color: var(--brand); padding-left: 30px; }
.catmenu .hot:after { content: "HOT"; background: var(--price); color: #fff; font-size: 10px; padding: 0 4px; border-radius: 2px; margin-left: 6px; vertical-align: 1px; }

/* ---------- 7. hero / banner ---------- */
.hero { display: flex; gap: 12px; margin: 0 0 16px; align-items: stretch; }
.hero .catmenu { width: 200px; flex: 0 0 auto; border-radius: var(--radius); border-top: 0; }
.hero-main { flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-1); background: #fff; position: relative; display: flex; flex-direction: column; }
.hero-main img { width: 100%; height: 300px; object-fit: cover; display: block; }
.hero-main .hero-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
    background: -webkit-linear-gradient(top, rgba(8, 55, 95, 0), rgba(8, 55, 95, .85));
    background: linear-gradient(to bottom, rgba(8, 55, 95, 0), rgba(8, 55, 95, .85));
    color: #fff; font-size: 15px;
}
.hero-side { width: 200px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* 首页 Banner 轮播（3 张，淡入淡出） */
.banner-slide { position: relative; height: 300px; min-height: 300px; flex: 1 1 auto; overflow: hidden; }
.banner-slide .slide-item { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.banner-slide .slide-item.on { display: block; }
.banner-slide .slide-item img {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.banner-slide .slide-dots {
    position: absolute; right: 14px; bottom: 12px; z-index: 3; display: flex; gap: 8px;
}
.banner-slide .slide-dots .dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55);
    cursor: pointer; transition: background .2s;
}
.banner-slide .slide-dots .dot.on { background: #fff; }
.hero-side .quick {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--sh-1);
}
.hero-side .quick h4 { color: var(--brand); font-size: 14px; margin-bottom: 8px; }
.hero-side .quick p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.hero-side .quick .tel { color: var(--price); font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.hero-side .panel { margin-bottom: 0; flex: 1; }

/* big banner strip */
.banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-1); }
.banner img { display: block; width: 100%; }

/* ---------- 8. service strip ---------- */
.service-strip { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 14px; box-shadow: var(--sh-1); }
.service-strip div {
    flex: 1; text-align: center; padding: 14px 6px; font-size: 13px; color: var(--ink-2);
    border-right: 1px dashed var(--line);
}
.service-strip div:last-child { border-right: 0; }
.service-strip b { display: block; color: var(--brand); font-size: 15px; margin-bottom: 2px; }

/* ---------- 9. floor (home sections) ---------- */
.floor { margin-bottom: 22px; }
.floor-hd { display: flex; align-items: flex-end; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 14px; }
.floor-hd h2 { font-size: 20px; color: var(--ink); letter-spacing: 1px; position: relative; padding-left: 14px; }
.floor-hd h2:before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--price-2); }
.floor-hd .floor-tag { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.floor-hd .floor-more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.floor-hd .floor-more a { color: var(--ink-2); }
.floor-hd .floor-more a:hover { color: var(--price); }

/* ---------- 10. product grid + card ---------- */
.pgrid { display: flex; flex-wrap: wrap; gap: 12px; }
.pgrid-5 .pcard { width: calc((100% - 48px) / 5); }
.pgrid-4 .pcard { width: calc((100% - 36px) / 4); }
.pgrid .pcard { width: calc((100% - 48px) / 5); }

.pcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    -webkit-transition: box-shadow .18s, border-color .18s, transform .18s;
    transition: box-shadow .18s, border-color .18s, transform .18s;
}
.pcard:hover { box-shadow: var(--sh-2); border-color: #C9DCF0; transform: translateY(-2px); }
.pcard .pimg { display: block; padding: 10px; text-align: center; background: #fff; }
.pcard .pimg img { width: 100%; height: 168px; object-fit: contain; }
.pcard .pbody { padding: 0 12px 12px; flex: 1; display: flex; flex-direction: column; }
.pcard .ptitle { font-size: 13px; line-height: 1.5; height: 40px; overflow: hidden; color: var(--ink); }
.pcard .ptitle a { color: var(--ink); }
.pcard .ptitle a:hover { color: var(--brand-2); }
.pcard .pmeta { margin-top: 4px; font-size: 12px; color: var(--ink-3); height: 18px; overflow: hidden; }
.pcard .pfoot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; }
.pcard .pprice { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.pcard .price { color: var(--price); font-size: 17px; font-weight: 700; font-family: Arial, Helvetica, sans-serif; }
.pcard .price small { font-size: 12px; font-weight: 400; }
.pcard .price-old { color: var(--ink-3); text-decoration: line-through; font-size: 12px; }
.pcard .pbtn {
    margin-left: auto; border: 1px solid var(--price); color: var(--price); border-radius: 14px;
    padding: 2px 10px; font-size: 12px; white-space: nowrap;
}
.pcard .pbtn:hover { background: var(--price); color: #fff; }
.pcard .badge {
    position: absolute; left: 0; top: 0; z-index: 2; background: var(--price); color: #fff;
    font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: var(--radius) 0 var(--radius) 0;
}
.pcard .badge.hot { background: var(--price-2); }
.pcard .badge.new { background: var(--ok); }

/* legacy table based grids: normalise them into the card look */
.grid-table { width: 100%; border-collapse: separate; border-spacing: 12px 12px; }
.grid-table td {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    vertical-align: top; padding: 10px; text-align: center;
}
.grid-table td:hover { box-shadow: var(--sh-2); border-color: #C9DCF0; }

/* ---------- 11. panels / sidebar ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--sh-1); }
.panel-hd {
    height: 40px; line-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 700; color: #fff;
    background: var(--brand);
}
.panel-hd.gray { background: #F7F9FC; color: var(--brand); border-bottom: 1px solid var(--line); }
.panel-hd .more { float: right; font-size: 12px; font-weight: 400; color: #D6E7F8; }
.panel-bd { padding: 12px; }
.panel-bd.tight { padding: 0; }

.side-hot li { overflow: hidden; padding: 9px 12px; border-bottom: 1px dashed var(--line); }
.side-hot li:last-child { border-bottom: 0; }
.side-hot .rank {
    float: left; width: 18px; height: 18px; line-height: 18px; text-align: center; margin-right: 8px;
    background: #D8DEE7; color: #fff; border-radius: 3px; font-size: 11px; font-weight: 700;
}
.side-hot li:nth-child(1) .rank { background: var(--price); }
.side-hot li:nth-child(2) .rank { background: var(--price-2); }
.side-hot li:nth-child(3) .rank { background: #F0A030; }
.side-hot .t { display: block; overflow: hidden; font-size: 12px; color: var(--ink-2); }
.side-hot .p { color: var(--price); font-weight: 700; font-size: 12px; }
.side-qrcode { text-align: center; padding: 12px; }
.side-qrcode img { width: 140px; height: 140px; }
.side-qrcode p { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.side-tel { color: var(--price); font-size: 18px; font-weight: 700; text-align: center; }
.side-promo { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--sh-1); }
.side-promo img { width: 100%; display: block; }

/* ---------- 12. breadcrumb + page title ---------- */
.crumb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; line-height: 40px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand-2); }
.crumb .here { color: var(--brand); font-weight: 700; }

.page-hd { display: flex; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 16px; }
.page-hd h1 { font-size: 20px; letter-spacing: 1px; padding-left: 12px; border-left: 5px solid var(--price-2); line-height: 1.1; }
.page-hd .meta { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* filter/sort toolbar */
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.toolbar a { margin-right: 14px; color: var(--ink-2); }
.toolbar a.on, .toolbar a:hover { color: var(--price); font-weight: 700; }

/* ---------- 13. pagination ---------- */
.pager { text-align: center; padding: 20px 0 8px; font-size: 13px; }
.pager a, .pager span {
    display: inline-block; min-width: 32px; height: 32px; line-height: 30px; padding: 0 10px;
    margin: 0 3px; border: 1px solid var(--line); border-radius: var(--radius-s);
    background: #fff; color: var(--ink-2); vertical-align: middle;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager .info { border: 0; background: transparent; color: var(--ink-3); }

/* ---------- 14. buttons ---------- */
.btn {
    display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    border-radius: var(--radius-s); padding: 8px 18px; cursor: pointer; line-height: 1.4;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-buy {
    background: -webkit-linear-gradient(top, #FF8A3D, #FF5A00);
    background: linear-gradient(to bottom, #FF8A3D, #FF5A00);
    border: 1px solid #F0561B; color: #fff; font-size: 17px; font-weight: 700;
    padding: 11px 42px; border-radius: var(--radius); letter-spacing: 2px;
}
.btn-buy:hover { color: #fff; box-shadow: var(--sh-2); }
.btn-cart {
    background: #fff; border: 1px solid var(--price); color: var(--price); border-radius: var(--radius);
    padding: 10px 30px; font-size: 16px; font-weight: 700;
}
.btn-cart:hover { background: #FFF3F3; color: var(--price); }
.btn-lg { padding: 12px 40px; font-size: 16px; }

/* ---------- 15. forms (login / register / order / guestbook) ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--sh-1); }
.form-row { margin-bottom: 14px; }
.form-row label { display: inline-block; width: 90px; text-align: right; padding-right: 10px; color: var(--ink-2); vertical-align: middle; }
input[type="text"], input[type="password"], select, textarea {
    border: 1px solid #D5DCE6; border-radius: var(--radius-s); padding: 8px 10px; background: #fff; color: var(--ink);
    -webkit-transition: border-color .15s, box-shadow .15s; transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(46, 139, 224, .12);
}
input[type="submit"], input[type="button"], button.btn-primary { cursor: pointer; }
.form-table { width: 100%; }
.form-table td { padding: 7px 6px; font-size: 14px; }
.form-table .lab { width: 120px; text-align: right; color: var(--ink-2); }
.form-table input[type="text"], .form-table input[type="password"], .form-table textarea, .form-table select { width: 300px; }
.form-table textarea { height: 110px; }

/* ---------- 16. data tables (cart / orders / member) ---------- */
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.table-card .tbl-hd { background: #F7F9FC; border-bottom: 1px solid var(--line); padding: 11px 14px; font-weight: 700; color: var(--brand); }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
    background: #F7F9FC; color: var(--ink-2); font-weight: 700; font-size: 13px;
    border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: center; white-space: nowrap;
}
table.data td { border-bottom: 1px solid #EFF3F8; padding: 10px 8px; text-align: center; vertical-align: middle; font-size: 13px; }
table.data tr:hover td { background: #FAFCFE; }
table.data .left { text-align: left; }
table.data .total-row td { background: #FFF9F0; color: var(--price); font-weight: 700; font-size: 15px; }

/* ---------- 17. news / article ---------- */
.news-list li { border-bottom: 1px dashed var(--line); padding: 11px 4px; display: flex; align-items: center; gap: 10px; }
.news-list li .t { flex: 1; overflow: hidden; }
.news-list li .d { color: var(--ink-3); font-size: 12px; }
.news-list li .dot { width: 5px; height: 5px; background: var(--brand-3); border-radius: 50%; flex: 0 0 auto; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; line-height: 1.9; color: #333; }
.article h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.article .art-meta { text-align: center; color: var(--ink-3); font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.article img { max-width: 100%; height: auto; }
.article p { margin: 0 0 12px; }

/* ---------- 18. product detail ---------- */
.pdetail { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-1); }
.pdetail-left { width: 340px; flex: 0 0 auto; }
.pdetail-left .big { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; padding: 8px; }
.pdetail-left .big img { width: 100%; height: 322px; object-fit: contain; }
.pdetail-left .sub { margin-top: 8px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }
.pdetail-right { flex: 1; min-width: 0; }
.pdetail-right h1 { font-size: 20px; line-height: 1.5; margin-bottom: 6px; }
.pdetail-right .sub-title { color: var(--price); font-size: 13px; margin-bottom: 12px; }
.pinfo { background: #FCFDFF; border: 1px solid #EEF3F9; border-radius: var(--radius); padding: 12px 14px; }
.pinfo dl { display: flex; flex-wrap: wrap; margin: 0; font-size: 13px; }
.pinfo dl div { width: 50%; padding: 5px 0; color: var(--ink-2); }
.pinfo dt { display: inline; color: var(--ink-3); }
.pinfo dd { display: inline; margin: 0 0 0 6px; color: var(--ink); }
.pricebox { background: #FFF8F2; border: 1px solid #FFE2CC; border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.pricebox .old { color: var(--ink-3); font-size: 13px; }
.pricebox .old s { margin-left: 6px; }
.pricebox .now { margin-top: 6px; color: var(--price); font-size: 15px; }
.pricebox .now b { font-size: 30px; font-family: Arial, Helvetica, sans-serif; }
.pricebox .now small { font-size: 16px; }
.buybar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; row-gap: 8px; margin-top: 16px; }
.buybar .btn-buy, .buybar .btn-cart { flex: 0 0 auto; white-space: nowrap; }
.buybar .ghost { color: var(--ink-3); font-size: 13px; flex: 1 1 auto; min-width: 220px; }
.detail-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-tabs .hd { border-bottom: 1px solid var(--line); background: #F7F9FC; padding: 0 14px; }
.detail-tabs .hd span { display: inline-block; line-height: 42px; padding: 0 18px; font-weight: 700; color: var(--brand); border-bottom: 2px solid var(--brand); }
.detail-tabs .bd { padding: 18px; line-height: 1.9; color: #333; }
.detail-tabs .bd img { max-width: 100%; height: auto; }

/* ---------- 19. footer ---------- */
.footer { background: #FFFFFF; border-top: 1px solid var(--line); margin-top: 26px; }
.footer .cols { display: flex; justify-content: center; padding: 26px 0 20px; gap: 190px; }
.footer .cols dl { flex: 0 0 auto; margin: 0; text-align: center; }
.footer .cols dt { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 14px; }
.footer .cols dd { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.footer .cols dd a { color: var(--ink-2); }
.footer .cols dd a:hover { color: var(--brand-2); }
.footer .brand-col { flex: 0 0 auto; }
.footer .brand-col .tel { color: var(--price); font-size: 20px; font-weight: 700; }
.footer .brand-col p { font-size: 12px; color: var(--ink-3); line-height: 1.9; margin: 6px 0 0; }
.footer .bottom { border-top: 1px solid var(--line); padding: 14px 0; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.9; }
.footer .bottom a { color: var(--ink-3); }

/* ---------- 20. misc feedback ---------- */
.tip-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 50px 20px; text-align: center; color: var(--ink-3); font-size: 15px; }
.tip-empty b { color: var(--ink-2); }
.msg-ok { background: #F0FFF4; border: 1px solid #C6F6D5; color: #276749; border-radius: var(--radius-s); padding: 10px 14px; }
.msg-err { background: #FFF5F5; border: 1px solid #FED7D7; color: #C53030; border-radius: var(--radius-s); padding: 10px 14px; }

/* ---------- 21. legacy normalisation ----------
   Old pages are table based with inline widths/bgcolors from the classic ASP era.
   These rules keep them inside the new visual language without touching markup. */
.shopbody table { max-width: 100%; }
.shopbody td { font-size: 14px; }
.shopbody td[bgcolor="#f2f2f2"], .shopbody td[bgcolor="#F2F2F2"] { background: #F7F9FC !important; border-radius: var(--radius-s); }
.shopbody td[bgcolor="#C0C0C0"] { background: var(--line) !important; }
.shopbody font[size="2"] { font-size: 13px; }
.shopbody .viewl { color: var(--brand); font-weight: 700; }
.shopbody .product_font, .shopbody .hanggao18 { font-size: 13px; line-height: 1.6; }
.shopbody .grayline { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.shopbody .grayline td { border: 0; }

/* legacy class names still used by the classic markup */
.product_font { font-size: 13px; }
.hanggao18 { line-height: 18px; }
.viewl { color: var(--brand); font-weight: 700; }
.grayline { border: 1px solid var(--line); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.backs { background: var(--bg); }
.TR { text-align: right; }
.td { padding: 8px; }

/* member centre side menu */
.usermenu li { border-bottom: 1px dashed var(--line); }
.usermenu li:last-child { border-bottom: 0; }
.usermenu li a { display: block; line-height: 40px; padding: 0 14px 0 26px; color: var(--ink-2); position: relative; font-size: 13px; }
.usermenu li a:before { content: ""; position: absolute; left: 14px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-3); }
.usermenu li a:hover { background: var(--brand-soft); color: var(--brand); }

/* legacy bordered tables (member centre / cart / orders) */
table[bgcolor="#dddddd"], table[bgcolor="#DDDDDD"] {
    border-collapse: separate !important; border-spacing: 0 !important;
    background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table[bgcolor="#dddddd"] td, table[bgcolor="#DDDDDD"] td,
table[bgcolor="#ffffff"] td, table[bgcolor="#FFFFFF"] td { background: #fff; border-bottom: 1px solid #F1F4F9; }
table[bgcolor="#dddddd"] td[rowspan], table[bgcolor="#DDDDDD"] td[rowspan] { border-bottom: 0; }
table[bgcolor="#dddddd"] td[bgcolor="#f2f2f2"], table[bgcolor="#DDDDDD"] td[bgcolor="#F2F2F2"] {
    background: #F8FAFD !important; color: var(--brand); font-weight: 700;
}

/* tables that carry their own white background inside cards */
.shopbody table[bgcolor="#ffffff"], .shopbody table[bgcolor="#FFFFFF"] { background: #fff !important; }
.shopbody table[align="center"] { margin: 0 auto; }

/* legacy submit buttons become normal buttons */
input[type="submit"], input[type="button"], input[type="reset"] {
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: var(--radius-s);
    padding: 7px 16px; cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover {
    border-color: var(--brand); color: var(--brand); background: var(--brand-soft);
}
input[type="file"] { border: 1px solid #D5DCE6; border-radius: var(--radius-s); padding: 5px; background: #fff; }

/* ---------- 22. responsive ---------- */
@media screen and (max-width: 1240px) {
    .wrap { width: 100%; padding: 0 12px; }
    .header .wrap { flex-wrap: wrap; }
    .search { max-width: none; flex: 1 1 100%; order: 3; }
    .pgrid .pcard, .pgrid-5 .pcard { width: calc((100% - 36px) / 4); }
    .main-col, .side-col { float: none; width: 100%; }
    .gutter { display: none; }
}
@media screen and (max-width: 900px) {
    .footer .cols { flex-wrap: wrap; }
    .pgrid .pcard, .pgrid-5 .pcard { width: calc((100% - 24px) / 3); }
    .nav .wrap { overflow-x: auto; }
    .pdetail { flex-direction: column; }
    .pdetail-left { width: 100%; }
}
