/* @font-face SVN-Gilroy tự lưu: assets/fonts/svn-gilroy-*.woff2 (font thương mại, xem README) */
@font-face { font-family: "SVN-Gilroy"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/svn-gilroy-regular.woff2") format("woff2"); }
@font-face { font-family: "SVN-Gilroy"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/svn-gilroy-medium.woff2") format("woff2"); }
@font-face { font-family: "SVN-Gilroy"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/svn-gilroy-medium-italic.woff2") format("woff2"); }
@font-face { font-family: "SVN-Gilroy"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/svn-gilroy-semibold.woff2") format("woff2"); }
@font-face { font-family: "SVN-Gilroy"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/svn-gilroy-bold.woff2") format("woff2"); }

:root {
  --ink: #1e222a;
  --muted: #656972;
  --brand: #0740c4;
  --brand-deep: #141b6e;
  --brand-soft: #e8eefb;
  --paper: #f5f6f8;
  --line: #e2e4e8;
  --sans: "SVN-Gilroy", Arial, sans-serif;
}

.product-image { width: 100%; height: 100%; position: relative; z-index: 1; object-fit: cover; }
.article-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.article-cover-large .article-image { position: absolute; }
.article-cover-large { position: relative; overflow: hidden; }
.banner-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.flash-message { position: fixed; z-index: 50; top: 16px; right: 16px; max-width: calc(100% - 32px); padding: 13px 18px; color: #fff; background: var(--brand); box-shadow: 0 8px 24px #1f273924; font-size: 15px; }
.flash-message.error { background: #9b4139; }
.empty-state { padding: 28px; color: var(--muted); background: var(--paper); font-size: 15px; line-height: 1.7; }
.empty-state a { color: var(--brand); font-weight: 700; }
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 26px; background: #f0f1f4; }
.login-card { width: min(100%, 440px); padding: 42px; border: 1px solid var(--line); background: white; box-shadow: 0 18px 60px #121c5c0c; }
.login-card h1 { margin-top: 33px; font-size: 36px; font-weight: 700; line-height: 1.2; }
.login-card > p { margin: 11px 0 23px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.admin-form { display: grid; gap: 15px; }
.admin-form .field input, .admin-form .field textarea, .admin-form .field select { min-height: 43px; font-size: 16px; }
.admin-form .field textarea { min-height: 90px; }
.admin-form .button { justify-self: start; margin-top: 6px; }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--brand); }
.admin-alert { margin: 18px 0; padding: 12px 14px; color: #893e36; background: #fbefed; font-size: 14px; line-height: 1.6; }
.admin-alert.success { color: #0a3aa8; background: #e8ebf1; }
.admin-body { min-height: 100vh; display: flex; background: #f4f5f7; }
.admin-sidebar { width: 242px; position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; padding: 24px 17px; border-right: 1px solid #e7e8ec; background: #fff; }
.admin-sidebar .brand { padding: 0 7px 28px; }
.admin-nav-label, .admin-overline { color: #9599a2; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.admin-nav-label { padding: 15px 9px 10px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { min-height: 41px; display: flex; align-items: center; gap: 11px; padding: 0 10px; color: #616671; font-size: 14px; transition: .15s; }
.admin-sidebar nav a > span { width: 19px; color: #888d97; font-size: 15px; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: var(--brand); background: #edeef2; }
.admin-sidebar nav a.active { font-weight: 700; }
.admin-sidebar nav a b { min-width: 19px; margin-left: auto; padding: 3px 5px; border-radius: 10px; color: white; background: var(--brand); font-size: 11px; text-align: center; }
.admin-site-link { margin-top: auto; padding: 12px 9px; border-top: 1px solid var(--line); color: #666b76; font-size: 13px; }
.admin-main { width: calc(100% - 242px); min-height: 100vh; margin-left: 242px; padding: 0 36px 25px; }
.admin-topbar { min-height: 89px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #e6e7eb; }
.admin-topbar h1 { margin-top: 4px; font-size: 26px; font-weight: 700; }
.admin-user { display: flex; align-items: center; gap: 9px; color: #515661; font-size: 14px; }
.admin-user-dot { width: 8px; height: 8px; border-radius: 50%; background: #0188f4; }
.admin-user form { margin-left: 10px; }
.admin-user button { border: 0; color: var(--brand); background: transparent; font-size: 14px; }
.admin-toast { margin: 16px 0; padding: 11px 14px; font-size: 14px; }
.admin-toast.success { color: #0a3aa8; background: #e8ebf1; }
.admin-toast.error { color: #893e36; background: #fbefed; }
.admin-welcome { min-height: 214px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; margin: 27px 0; padding: 31px 37px; color: white; background: var(--brand); }
.admin-welcome .eyebrow { color: #b6bccb; }
.admin-welcome h2 { margin-top: 12px; font-size: 35px; font-weight: 700; line-height: 1.15; }
.admin-welcome p { margin-top: 9px; color: #c7ccd7; font-size: 15px; }
.welcome-decoration { position: absolute; right: 70px; bottom: -93px; color: #ffffff10; font-size: 290px; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { min-height: 122px; display: grid; align-content: space-between; padding: 17px; border: 1px solid #e5e6ea; background: white; }
.stat-card > span { color: #767b85; font-size: 14px; }
.stat-card strong { color: var(--brand); font-size: 28px; font-weight: 600; }
.stat-card small { color: #9095a1; font-size: 13px; }
.admin-panel { min-width: 0; margin: 23px 0; padding: 22px; border: 1px solid #e6e7eb; background: #fff; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { margin-top: 5px; color: var(--ink); font-size: 21px; font-weight: 600; }
.quick-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.quick-links a { padding: 13px; border: 1px solid #e6e7eb; color: #4f5561; font-size: 14px; }
.quick-links a:hover { border-color: #b7bdca; color: var(--brand); background: #f7f8fa; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.admin-content-grid .admin-panel { margin-top: 26px; }
.admin-content-grid .admin-form { max-width: 760px; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; color: #525761; font-size: 14px; }
.checkbox-label input { accent-color: var(--brand); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.table-wrap th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: #878c96; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.table-wrap td { padding: 13px 10px; border-bottom: 1px solid #eeeff1; color: #525761; font-size: 14px; vertical-align: top; }
.table-wrap td strong, .table-wrap td small, .table-wrap td a { display: block; }
.table-wrap td strong { max-width: 275px; color: #323844; font-size: 14px; line-height: 1.5; }
.table-wrap td small { max-width: 300px; overflow: hidden; margin-top: 4px; color: #91959e; font-size: 13px; line-height: 1.5; text-overflow: ellipsis; }
.table-wrap td a { margin-top: 5px; color: var(--brand); }
.table-wrap select { min-width: 111px; padding: 7px 8px; border: 1px solid var(--line); background: white; font-size: 16px; }
.inline-form, .row-actions { display: flex; align-items: center; gap: 11px; }
.row-actions a, .delete-button { border: 0; color: var(--brand); background: none; font-size: 13px; white-space: nowrap; }
.delete-button { color: #a34740; }
.admin-footer { padding: 21px 0 0; color: #9599a2; font-size: 12px; text-align: right; }

@media (max-width: 940px) {
  .admin-sidebar { width: 205px; }
  .admin-main { width: calc(100% - 205px); margin-left: 205px; padding-right: 22px; padding-left: 22px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .login-card { padding: 29px 23px; }
  .admin-body { display: block; }
  .admin-sidebar { width: 100%; position: relative; padding: 13px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar .brand { padding: 0 3px 10px; }
  .admin-nav-label { display: none; }
  .admin-sidebar nav { grid-template-columns: repeat(3,1fr); gap: 2px; }
  .admin-sidebar nav a { justify-content: center; gap: 5px; padding: 0 4px; font-size: 13px; }
  .admin-sidebar nav a > span { width: auto; font-size: 12px; }
  .admin-sidebar nav a b { min-width: 15px; margin-left: 0; padding: 2px 4px; }
  .admin-site-link { margin-top: 6px; padding: 9px 3px 0; font-size: 13px; }
  .admin-main { width: 100%; margin: 0; padding: 0 14px 21px; }
  .admin-topbar { min-height: 73px; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-user { flex-wrap: wrap; justify-content: end; gap: 5px; max-width: 160px; font-size: 13px; }
  .admin-user form { width: 100%; margin: 0; text-align: right; }
  .admin-welcome { min-height: 195px; margin: 18px 0; padding: 24px; }
  .admin-welcome h2 { font-size: 30px; }
  .welcome-decoration { right: 0; font-size: 220px; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 105px; padding: 12px; }
  .admin-panel { margin: 17px 0; padding: 15px; }
  .quick-links { grid-template-columns: 1fr 1fr; gap: 7px; }
  .quick-links a { padding: 10px; line-height: 1.5; }
  .form-row { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 590px; }
  .panel-heading { align-items: start; }
  .panel-heading .button { flex-shrink: 0; min-height: 34px; padding: 0 10px; white-space: nowrap; }
}

* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; color: var(--ink); background: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--brand); }

.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.announcement { min-height: 34px; display: flex; justify-content: center; align-items: center; padding: 7px 16px; color: #f8f7ef; background: var(--brand-deep); font-size: 12px; letter-spacing: .12em; text-align: center; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(226,228,232,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: auto; height: 50px; display: block; }
.footer .brand-logo { height: 60px; }
.admin-sidebar .brand-logo { height: 44px; }
.login-card .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.login-card .brand-logo { height: 56px; }
.brand-caption { display: block; margin-top: 4px; color: #5d6270; font-size: 11px; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 32px; color: #464a54; font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-links a, .header-actions .button { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 941px) { .nav-links { gap: 18px; font-size: 14px; } .header-inner { gap: 20px; } }
@media (max-width: 1120px) and (min-width: 941px) { .nav-links { gap: 12px; font-size: 13px; } .header-actions .button { padding: 0 12px; font-size: 13px; } }
/* Tên danh mục trên menu luôn VIẾT HOA (không phụ thuộc cách nhập trong Quản trị). */
.nav-links a.nav-category { text-transform: uppercase; }
/* Màn hình vừa: bỏ danh mục thứ 3 trở đi khỏi menu ngang cho đủ chỗ (vẫn có trong trang Sản phẩm và menu điện thoại). */
@media (max-width: 1024px) and (min-width: 941px) { .nav-links .nav-extra { display: none; } }
.phone-link { display: grid; gap: 3px; text-align: right; }
.phone-link small { color: var(--muted); font-size: 12px; }
.phone-link strong { color: var(--brand); font-size: 15px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 25px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 22px; border: 1px solid var(--brand); border-radius: 2px; color: #fff; background: var(--brand); font-size: 15px; font-weight: 700; letter-spacing: .04em; transition: .2s ease; }
.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-1px); }
.button-outline { color: var(--brand); background: transparent; }
.button-outline:hover { color: white; }
.button-light { color: var(--brand); border-color: white; background: white; }
.button-light:hover { color: white; border-color: rgba(255,255,255,.5); background: transparent; }
.button-small { min-height: 38px; padding: 0 15px; font-size: 14px; }

.hero { min-height: 580px; position: relative; overflow: hidden; display: flex; align-items: center; background: #e6e8ed; }
.hero-copy { width: min(1180px, calc(100% - 64px)); position: relative; z-index: 2; margin: 0 auto; padding: 90px 0 105px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow:before { width: 24px; height: 1px; display: inline-block; background: currentColor; content: ""; }
.hero h1 { max-width: 600px; margin: 22px 0; color: #121c5c; font-size: clamp(48px, 6vw, 75px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: pre-line; }
.hero p { max-width: 435px; color: #585c66; font-size: 18px; line-height: 1.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-visual { position: absolute; inset: 0 0 0 48%; overflow: hidden; background: radial-gradient(ellipse at 55% 39%, #f5f8ff 0, #dce0e7 44%, #c8cdd7 100%); }
.hero-visual:before { width: 450px; height: 450px; position: absolute; top: 56px; right: 11%; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; content: ""; }
.hero-visual:after { width: 520px; height: 520px; position: absolute; top: 23px; right: 4%; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; content: ""; }
.hero-ribbon { position: absolute; z-index: 1; top: 14%; right: 20%; width: 180px; height: 310px; border: 1px solid rgba(255,255,255,.35); border-radius: 90px 90px 24px 24px; background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.06)); transform: rotate(17deg); }
.hero-garment { width: min(480px, 60vw); position: absolute; z-index: 2; right: 13%; bottom: -72px; filter: drop-shadow(0 26px 26px rgba(39,45,58,.18)); transform: rotate(-4deg); }
.hero-garment svg { width: 100%; }
.hero-index { position: absolute; right: 5%; bottom: 31px; color: rgba(30,38,58,.5); font-size: 13px; letter-spacing: .1em; }
.hero-note { position: absolute; z-index: 2; right: 8%; bottom: 15%; max-width: 160px; padding: 15px 18px; color: #f2f4f8; background: var(--brand); font-size: 15px; line-height: 1.5; box-shadow: 0 10px 28px #22293b26; transform: rotate(3deg); }
.trust-strip { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 11px; color: #515661; font-size: 14px; font-weight: 600; }
.trust-item span:first-child { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #dfe1e6; border-radius: 50%; color: var(--brand); font-size: 13px; }
.section { padding: 86px 0; }
.section-tint { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-title { max-width: 650px; color: var(--ink); font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.section-title em { color: var(--brand); font-weight: 500; }
.section-intro { max-width: 440px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: 14px; font-weight: 700; white-space: nowrap; }
.text-link span { font-size: 17px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.category-card { min-height: 145px; position: relative; overflow: hidden; display: flex; align-items: end; padding: 23px; background: var(--category-color,#e4e6eb); }
.category-card:after { width: 150px; height: 150px; position: absolute; top: -48px; right: -23px; border: 1px solid #ffffff90; border-radius: 50%; box-shadow: 0 0 0 18px #ffffff24, 0 0 0 36px #ffffff14; content: ""; }
.category-card div { position: relative; z-index: 1; }
.category-card h3 { color: #2e3441; font-size: 22px; font-weight: 600; }
.category-card p { max-width: 250px; margin-top: 7px; color: #5e626b; font-size: 14px; line-height: 1.6; }
.category-card .circle-arrow { width: 31px; height: 31px; position: absolute; right: 19px; bottom: 20px; z-index: 2; display: grid; place-items: center; border: 1px solid #fff9; border-radius: 50%; color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.product-card { min-width: 0; }
.product-art { height: 275px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--art-bg,#e5e7eb); }
.product-art:before { width: 180px; height: 180px; position: absolute; top: 21px; right: -53px; border: 1px solid #ffffff88; border-radius: 50%; box-shadow: 0 0 0 14px #ffffff20, 0 0 0 28px #ffffff10; content: ""; }
.product-art svg { width: 77%; position: relative; z-index: 1; filter: drop-shadow(0 14px 12px rgba(25,31,44,.17)); transition: transform .35s; }
.product-card:hover .product-art svg { transform: translateY(-6px) rotate(-2deg); }
.product-tag { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 7px 10px; color: var(--brand); background: white; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-info { padding: 14px 2px 0; }
.product-category { color: #808591; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.product-name { display: block; margin-top: 7px; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.product-summary { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-price { display: block; margin-top: 11px; color: var(--brand); font-size: 15px; font-weight: 700; }
.product-view { display: inline-flex; margin-top: 11px; padding-bottom: 3px; border-bottom: 1px solid #b7bcc7; color: var(--brand); font-size: 14px; font-weight: 700; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }
.about-art { min-height: 410px; position: relative; overflow: hidden; display: grid; place-items: center; background: #e2e4e9; }
.about-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-art:before { width: 320px; height: 320px; position: absolute; border: 1px solid #ffffffaa; border-radius: 50%; box-shadow: 0 0 0 22px #ffffff30, 0 0 0 44px #ffffff15; content: ""; }
.about-art svg { width: 75%; max-width: 360px; position: relative; z-index: 1; filter: drop-shadow(0 18px 18px #252c3b26); }
.about-badge { position: absolute; right: 23px; bottom: 23px; z-index: 2; width: 95px; height: 95px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 12px; text-align: center; line-height: 1.4; transform: rotate(7deg); }
.about-copy .section-title { margin-top: 19px; }
.about-copy > p { margin-top: 17px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 15px; margin: 26px 0 29px; }
.benefit { display: flex; align-items: flex-start; gap: 10px; }
.benefit-mark { width: 25px; height: 25px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 11px; }
.benefit strong { display: block; color: #333843; font-size: 15px; }
.benefit small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.quote-band { padding: 71px 0; color: #fff; background: var(--brand-deep); }
.quote-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.quote-band .eyebrow { color: #b7bdcb; }
.quote-band h2 { max-width: 680px; margin-top: 17px; font-size: clamp(32px,4vw,48px); font-weight: 700; line-height: 1.2; }
.quote-band p { margin-top: 11px; color: #c3c7d1; font-size: 16px; }
.quote-band .button { flex-shrink: 0; }
.testimonial { max-width: 770px; margin: 0 auto; text-align: center; }
.quote-mark { color: #a6adbc; font-size: 72px; line-height: .8; }
.testimonial blockquote { margin: 20px 0 26px; color: #363b45; font-size: clamp(22px,3vw,30px); line-height: 1.55; }
.testimonial-name { font-size: 15px; font-weight: 700; }
.testimonial-role { margin-top: 5px; color: var(--muted); font-size: 13px; }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.article-card { border: 1px solid var(--line); background: white; }
.article-cover { height: 170px; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg,#e4e6eb,#d4d7de); }
.article-cover:before { width: 170px; height: 170px; position: absolute; right: -24px; border: 1px solid #fff9; border-radius: 50%; box-shadow: 0 0 0 18px #ffffff30; content: ""; }
.article-cover span { position: relative; z-index: 1; color: #545b6a; font-size: 27px; letter-spacing: .1em; }
.article-body { padding: 19px; }
.article-date { color: #868a94; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.article-title { display: block; margin-top: 11px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.article-body p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-section { color: white; background: #e8eaee; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-copy { padding: 55px; color: #fff; background: var(--brand); }
.contact-copy .eyebrow { color: #c5cad4; }
.contact-copy h2 { margin: 17px 0 12px; font-size: 39px; font-weight: 700; line-height: 1.2; }
.contact-copy p { color: #d1d5df; font-size: 16px; line-height: 1.8; }
.contact-details { display: grid; gap: 18px; margin-top: 30px; }
.contact-details small { display: block; color: #b6bcca; font-size: 12px; }
.contact-details strong { display: block; margin-top: 5px; font-size: 16px; }
.contact-details strong + small { margin-top: 4px; }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 35px; background: white; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1/-1; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { color: #545963; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid #e2e3e7; border-radius: 0; outline: none; color: var(--ink); background: #fff; font-size: 16px; }
.field textarea { min-height: 95px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #818899; box-shadow: 0 0 0 3px #e7e9ee; }
.form-message { grid-column: 1/-1; color: var(--brand); font-size: 14px; line-height: 1.5; }
.form-message.error { color: #a34135; }
.inquiry-form button { grid-column: 1/-1; justify-self: start; }
.footer { padding: 52px 0 20px; color: #d7d9de; background: #0e1452; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 37px; }
.footer .brand-caption { color: #adb2be; }
.footer-about { max-width: 270px; margin-top: 15px; color: #adb2be; font-size: 14px; line-height: 1.8; }
.footer-company { max-width: 270px; margin-top: 12px; color: #d9dce2; font-size: 14px; line-height: 1.7; }
.footer-company strong, .footer-company span { display: block; }
.footer h4 { margin: 5px 0 14px; color: white; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col { display: grid; align-content: start; gap: 11px; }
.footer-col a, .footer-col span { color: #b8bdc7; font-size: 14px; }
.footer-col a:hover { color: white; }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid #ffffff20; color: #8e95a4; font-size: 13px; }
.page-hero { padding: 78px 0 59px; background: var(--paper); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #7b808a; font-size: 13px; }
.breadcrumbs a:hover { color: var(--brand); }
.page-hero h1 { margin-top: 19px; font-size: clamp(38px,5vw,58px); font-weight: 700; }
.page-hero p { max-width: 620px; margin-top: 11px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.product-layout { display: grid; grid-template-columns: 260px 1fr; gap: 38px; }
.filter-box { padding: 20px; border: 1px solid var(--line); }
.filter-box h3 { margin-bottom: 15px; font-size: 20px; font-weight: 600; }
.filter-links { display: grid; gap: 3px; }
.filter-links a { padding: 10px 0; border-bottom: 1px solid #edeef0; color: #5d616b; font-size: 14px; }
.filter-links a:hover, .filter-links a.active { color: var(--brand); font-weight: 700; }
.product-layout .product-grid { grid-template-columns: repeat(3,1fr); }
.article-page-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.article-content { max-width: 960px; margin: 0 auto; }
.article-content h1 { margin: 17px 0; font-size: clamp(36px,5vw,54px); font-weight: 700; line-height: 1.2; }
.article-content .lead { color: var(--muted); font-size: 18px; line-height: 1.8; }
.article-cover-large { min-height: 300px; display: grid; place-items: center; margin: 32px 0; background: #e4e6eb; color: var(--brand); font-size: 46px; }
.article-text { color: #454a54; font-size: 17px; line-height: 2; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.product-detail .product-art { height: 480px; }
.product-detail-copy { min-width: 0; padding-top: 18px; }
.product-detail-copy h1 { margin: 11px 0; font-size: 43px; font-weight: 700; line-height: 1.15; }
.product-detail-copy p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.product-detail-copy .detail-price { margin-top: 19px; color: var(--brand); font-size: 18px; font-weight: 700; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.not-found { min-height: 48vh; display: grid; align-content: center; justify-items: center; padding: 40px; text-align: center; }
.not-found h1 { font-size: 40px; font-weight: 700; }
.not-found p { margin: 10px 0 22px; color: var(--muted); font-size: 16px; }

@media (max-width: 940px) {
  .nav-links { gap: 18px; }
  .phone-link { display: none; }
  .hero { min-height: 530px; }
  .hero-visual { left: 44%; }
  .hero-garment { right: 7%; width: min(440px,60vw); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-layout .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-art { height: 300px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 36px, 540px); }
  .announcement { font-size: 11px; letter-spacing: .06em; }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-logo { height: 40px; }
  .brand-caption { font-size: 10px; }
  .header-actions { gap: 10px; }
  .header-actions .button { min-height: 36px; padding: 0 11px; font-size: 13px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 16px; border-bottom: 1px solid var(--line); background: white; }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px 3px; border-bottom: 1px solid #edeef0; }
  .hero { min-height: 710px; align-items: start; }
  .hero-copy { width: calc(100% - 36px); padding: 57px 0 0; }
  .hero h1 { max-width: 430px; margin: 17px 0 13px; font-size: clamp(47px,13vw,67px); }
  .hero p { max-width: 400px; font-size: 16px; }
  .hero-buttons { margin-top: 20px; }
  .hero-visual { inset: 350px 0 0; }
  .hero-visual:before { width: 310px; height: 310px; top: 24px; right: 12%; }
  .hero-visual:after { width: 365px; height: 365px; top: -4px; right: 5%; }
  .hero-garment { width: min(360px,76vw); right: 16%; bottom: -48px; }
  .hero-note { right: 6%; bottom: 13%; max-width: 120px; padding: 11px 13px; font-size: 13px; }
  .hero-index { bottom: 15px; }
  .trust-strip { padding: 15px 0; }
  .trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .trust-item { gap: 7px; font-size: 13px; }
  .trust-item span:first-child { width: 25px; height: 25px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 23px; }
  .section-head > .text-link { margin-top: 4px; font-size: 13px; }
  .section-title { font-size: 34px; }
  .section-intro { font-size: 15px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .category-card { min-height: 140px; padding: 15px; }
  .category-card h3 { font-size: 18px; }
  .category-card p { max-width: 180px; font-size: 13px; }
  .category-card .circle-arrow { right: 10px; bottom: 10px; width: 27px; height: 27px; }
  .product-grid, .product-layout .product-grid { grid-template-columns: 1fr 1fr; gap: 19px 11px; }
  .product-art { height: 220px; }
  .product-art svg { width: 85%; }
  .product-tag { top: 9px; left: 9px; padding: 6px 7px; font-size: 10px; }
  .product-name { font-size: 15px; }
  .product-summary { font-size: 13px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-art { min-height: 300px; }
  .about-art:before { width: 235px; height: 235px; }
  .about-copy .section-title { font-size: 35px; }
  .quote-inner { align-items: start; flex-direction: column; }
  .quote-band { padding: 55px 0; }
  .quote-band h2 { font-size: 35px; }
  .article-grid, .article-page-grid { grid-template-columns: 1fr; gap: 13px; }
  .article-card { display: grid; grid-template-columns: 115px 1fr; }
  .article-cover { height: 100%; min-height: 145px; }
  .article-cover span { font-size: 18px; }
  .article-body { padding: 13px; }
  .article-title { font-size: 15px; }
  .article-body p { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-copy { padding: 31px 24px; }
  .contact-copy h2 { font-size: 32px; }
  .inquiry-form { grid-template-columns: 1fr; gap: 11px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 18px; }
  .footer-brand-col { grid-column: 1/-1; }
  .copyright { flex-direction: column; gap: 7px; }
  .page-hero { padding: 50px 0 36px; }
  .page-hero h1 { font-size: 40px; }
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .filter-box { padding: 14px; }
  .filter-box h3 { margin-bottom: 10px; }
  .filter-links { display: flex; overflow-x: auto; gap: 12px; }
  .filter-links a { flex-shrink: 0; border-bottom: 0; }
  .product-detail { grid-template-columns: 1fr; gap: 22px; }
  .product-detail .product-art { height: 360px; }
  .product-detail-copy { padding-top: 0; }
  .product-detail-copy h1 { font-size: 35px; }
  .article-content h1 { font-size: 38px; }
  .article-cover-large { min-height: 220px; font-size: 36px; }
}

/* Trang Yêu cầu tư vấn & email thông báo (inquiry-workflow) */
.inquiry-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.status-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); color: #4c515c; font-size: 14px; }
.status-tabs a b { min-width: 22px; padding: 1px 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12px; text-align: center; }
.status-tabs a.active { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.inquiry-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inquiry-search input { min-width: 240px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; font-size: 16px; }
.inquiry-search a { color: var(--muted); font-size: 14px; }
.table-wrap tr.note-row td { padding-top: 0; }
.inquiry-notes summary { cursor: pointer; color: var(--brand); font-size: 13px; }
.inquiry-notes .note { margin: 8px 0 0; padding: 8px 12px; background: var(--paper); font-size: 14px; white-space: pre-line; }
.inquiry-notes .note span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.note-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 8px; }
.note-form textarea { flex: 1 1 320px; min-height: 60px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; font-size: 16px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; }
.pagination a { color: var(--brand); font-weight: 600; }
.mail-panel .admin-alert { margin-bottom: 12px; }
.mail-status { margin-bottom: 14px; color: #4c515c; font-size: 14px; line-height: 1.6; }
.mail-status code { padding: 1px 5px; background: var(--paper); font-size: 13px; }

/* Nút gọi / Zalo nổi trên điện thoại (quick-contact) */
.quick-contact { display: none; }
@media (max-width: 680px) {
  .site-body { padding-bottom: 76px; }
  .quick-contact { position: fixed; z-index: 40; right: 12px; bottom: 12px; left: 12px; display: flex; gap: 10px; }
  .quick-contact a { flex: 1; min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 8px; border-radius: 26px; color: #fff; box-shadow: 0 6px 18px rgba(14, 20, 82, .28); font-size: 16px; font-weight: 700; }
  .quick-call { background: var(--brand); }
  .quick-zalo { background: #0068ff; }
}

/* Cài đặt, tài khoản, bộ lọc danh sách nội dung (admin-improvements) */
.settings-form .field small, .account-form .field small { color: var(--muted); font-size: 13px; }
.field-error { margin-top: 4px; color: #893e36; font-size: 13px; }
.account-list { display: grid; gap: 8px; margin-bottom: 18px; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; }
.account-row small { margin-left: 8px; color: var(--muted); font-size: 13px; }
.admin-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.list-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.list-filters input, .list-filters select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; font-size: 16px; }
.list-filters input { min-width: 240px; }
.list-filters a { color: var(--muted); font-size: 14px; }

/* Ảnh phụ sản phẩm (product-gallery) */
.product-media { display: grid; gap: 12px; align-content: start; }
.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.product-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; background: var(--paper); }
.product-gallery a.active { border-color: var(--brand); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gallery-admin-item { position: relative; display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.gallery-admin-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.gallery-admin-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.gallery-admin-controls label { display: flex; align-items: center; gap: 6px; color: #545963; font-size: 13px; font-weight: 600; }
.admin-form .gallery-admin-item input[type="number"] { width: 58px; min-height: 32px; padding: 4px 6px; border: 1px solid var(--line); font-size: 16px; }

/* Nội dung định dạng ở site công khai (rich-text-and-image-inputs) */
.rich-text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: #454a54; font-size: 16px; line-height: 1.9; }
.article-text.rich-text { font-size: 17px; line-height: 2; }
.rich-text > * + * { margin-top: 14px; }
.rich-text h2 { margin-top: 30px; color: var(--ink); font-size: 26px; font-weight: 700; line-height: 1.3; }
.rich-text h3 { margin-top: 24px; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.4; }
.rich-text > h2:first-child, .rich-text > h3:first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li + li { margin-top: 4px; }
.rich-text li > ul, .rich-text li > ol { margin-top: 4px; }
.rich-text blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--ink); font-style: italic; }
.rich-text a, .lead a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rich-text strong, .product-summary strong, .category-card strong, .lead strong, .hero-copy p strong, .page-hero p strong { color: var(--ink); font-weight: 700; }
.rich-text img { display: block; max-width: 100%; height: auto; margin: 6px 0; background: var(--paper); }
.rich-text p:has(> img:only-child) { margin-top: 20px; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.rich-text table { width: 100%; min-width: max-content; border-collapse: collapse; color: var(--ink); font-size: 15px; line-height: 1.55; }
.rich-text td { padding: 9px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.rich-text td:last-child { border-right: 0; }
.rich-text tr:last-child td { border-bottom: 0; }
.rich-text tr:first-child td { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.rich-text tr:nth-child(2n + 3) td { background: #fafbfc; }
@media (max-width: 680px) {
  .rich-text h2 { font-size: 22px; }
  .rich-text h3 { font-size: 18px; }
  .rich-text table { font-size: 14px; }
  .rich-text td { padding: 8px 10px; }
}

/* Trình soạn thảo trường mô tả trong quản trị (Quill, giao diện snow) */
.rich-editor { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; border: 1px solid #e2e3e7; background: #fff; }
.rich-editor:focus-within { border-color: #818899; box-shadow: 0 0 0 3px #e7e9ee; }
.rich-editor .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--sans); }
.rich-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 0; }
.rich-editor .ql-toolbar.ql-snow button { width: 32px; height: 32px; padding: 6px; border-radius: 4px; }
.rich-editor .ql-toolbar.ql-snow button:hover, .rich-editor .ql-toolbar.ql-snow button:focus-visible { background: #e3e7f0; }
.rich-editor .ql-toolbar.ql-snow button.ql-active { background: var(--brand-soft); }
.rich-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke, .rich-editor .ql-snow.ql-toolbar button:hover .ql-stroke { stroke: var(--brand); }
.rich-editor .ql-snow.ql-toolbar button.ql-active .ql-fill, .rich-editor .ql-snow.ql-toolbar button:hover .ql-fill { fill: var(--brand); }
.rich-editor .ql-snow .ql-picker.ql-header { width: 128px; height: 32px; font-size: 14px; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label { display: flex; align-items: center; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: "Đoạn văn"; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "Tiêu đề lớn"; }
.rich-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .rich-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "Tiêu đề nhỏ"; }
.rich-editor .ql-container.ql-snow { border: 0; font-family: var(--sans); font-size: 16px; }
.rich-editor .ql-editor { min-height: 180px; max-height: 70vh; padding: 12px 14px; overflow-y: auto; overflow-wrap: anywhere; color: var(--ink); line-height: 1.7; }
.rich-editor-inline .ql-editor { min-height: 72px; }
.rich-editor .ql-editor h2 { font-size: 22px; }
.rich-editor .ql-editor h3 { font-size: 18px; }
.rich-editor .ql-editor blockquote { border-left-color: var(--brand); }
.rich-editor .ql-editor a { color: var(--brand); }
.rich-editor .ql-toolbar .ql-formats.is-off { visibility: hidden; }
.rich-editor .ql-toolbar.ql-snow button.rich-table-action { width: auto; padding: 0 9px; border: 1px solid #c5cbd8; color: #4c515c; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.rich-editor .ql-toolbar.ql-snow button.rich-table-action:hover { color: var(--brand); }
.rich-editor-status { padding: 7px 12px; border-left: 3px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; }
.rich-editor-status.is-error { border-left-color: #893e36; background: #fbefed; color: #893e36; }
.rich-editor-status[hidden] { display: none; }
.rich-editor .ql-editor img { max-width: 100%; height: auto; }
.rich-editor .ql-editor img[src^="data:"] { width: 160px; height: 110px; background: var(--paper); }
.rich-editor .ql-editor table { margin: 6px 0; }
.rich-editor .ql-editor td { padding: 6px 10px; border: 1px solid #c5cbd8; }
.rich-editor .ql-editor tr:first-child td { background: var(--brand-soft); font-weight: 700; }
.rich-editor .ql-snow .ql-tooltip { z-index: 5; padding: 8px 12px; border-color: var(--line); box-shadow: 0 8px 24px #1f273924; font-family: var(--sans); }
.rich-editor .ql-snow .ql-tooltip::before { content: "Mở link:"; }
.rich-editor .ql-snow .ql-tooltip[data-mode="link"]::before { content: "Nhập link:"; }
.rich-editor .ql-snow .ql-tooltip input[type="text"] { width: 220px; height: 32px; font-size: 16px; }
.rich-editor .ql-snow .ql-tooltip a.ql-action::after { content: "Sửa"; }
.rich-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Lưu"; }
.rich-editor .ql-snow .ql-tooltip a.ql-remove::before { content: "Gỡ link"; }
.rich-editor .ql-snow a { color: var(--brand); }

/* Ô chọn ảnh trong quản trị: không có JS là ô chọn file thường, có JS (html.js) thành khung kéo thả */
.image-field-label { color: #545963; font-size: 13px; font-weight: 700; }
.image-field [hidden] { display: none !important; }
.image-current { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.image-current img { width: 168px; height: 126px; object-fit: cover; background: var(--paper); }
.image-current-actions { display: grid; gap: 8px; justify-items: start; }
.image-current-note { color: var(--muted); font-size: 13px; }
.image-removing-note { display: none; color: #893e36; font-size: 13px; font-weight: 600; }
.is-removing .image-removing-note { display: block; }
.is-removing .image-current-note { display: none; }
.is-removing img { opacity: .35; filter: grayscale(1); }
.gallery-admin-item .image-removing-note { position: absolute; top: 14px; left: 14px; padding: 2px 6px; background: #fff; }
.image-drop { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.field .image-drop { font-size: 14px; font-weight: 400; }
.image-drop small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.image-drop-icon, .image-drop-text { display: none; }
.admin-form .image-drop input[type="file"] { min-height: 0; padding: 0; border: 0; }
.js .image-drop { position: relative; justify-items: center; gap: 6px; padding: 24px 16px; border: 2px dashed #c5cbd8; background: var(--paper); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.js .image-drop:hover, .js .image-drop.is-dragging { border-color: var(--brand); background: var(--brand-soft); }
.js .image-drop:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #c9d6f5; }
.js .image-drop.is-full { opacity: .55; pointer-events: none; }
.js .image-drop input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.js .image-drop-icon { display: block; width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js .image-drop-text { display: block; color: #4c515c; font-size: 15px; }
.js .image-drop-text strong { color: var(--brand); }
.image-status { color: #4c515c; font-size: 13px; font-weight: 600; }
.image-preview { display: flex; }
.image-preview[hidden] { display: none; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.image-chosen { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; padding: 10px; border: 1px solid var(--brand); background: #fff; font-size: 13px; }
.image-chosen img { width: 168px; height: 126px; object-fit: cover; background: var(--paper); }
.image-chosen figcaption { flex: 1 1 140px; overflow-wrap: anywhere; color: #4c515c; }
.image-preview-grid .image-chosen { display: grid; gap: 6px; padding: 8px; }
.image-preview-grid .image-chosen img { width: 100%; height: auto; aspect-ratio: 1; }
.image-toggle { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: #4c515c; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.image-toggle:hover, .image-toggle:focus-visible { border-color: var(--brand); color: var(--brand); }
.image-toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.gallery-admin-controls .image-toggle { min-height: 30px; padding: 0 10px; font-size: 13px; }
.image-unpick { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #1e222acc; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.image-unpick:hover, .image-unpick:focus-visible { background: #893e36; }
.image-error { padding: 8px 12px; border-left: 3px solid #893e36; background: #fbefed; color: #893e36; font-size: 14px; }
.image-error[hidden] { display: none; }
@media (max-width: 680px) {
  .image-current img, .image-chosen img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .image-preview-grid, .gallery-admin { grid-template-columns: repeat(2, 1fr); }
}

/* Ảnh phụ bài viết và xem ảnh lớn (content-images-and-paste) */
.article-gallery { margin-top: 48px; }
.article-gallery h2 { margin-bottom: 16px; font-size: 26px; font-weight: 700; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.article-gallery-grid a { display: block; overflow: hidden; background: var(--paper); }
.article-gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.article-gallery-grid a:hover img, .article-gallery-grid a:focus-visible img { transform: scale(1.04); }
.article-gallery-grid a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 56px 64px; background: rgba(10, 14, 40, .92); }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #e3e7f0; font-size: 14px; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 400 30px/1 var(--sans); cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 10px; transform: translateY(-50%); }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }
@media (max-width: 680px) {
  .article-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 56px 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
}

/* Trang chi tiết sản phẩm: khối tab, đánh giá, sản phẩm liên quan; khung đọc nội dung dài (product-detail-tabs) */
.detail-rating { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.detail-rating:hover { color: var(--brand); }
.stars { display: inline-flex; gap: 1px; color: #d3d7df; letter-spacing: 0; }
.star.on { color: #f2a91b; }
.star.half { background: linear-gradient(90deg, #f2a91b 50%, #d3d7df 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-tabs-block, .reading-card { margin-top: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-tabs-block { overflow: hidden; }
.product-tabs { display: flex; gap: 6px; padding: 0 22px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f6f8fc; scrollbar-width: thin; }
.product-tabs a { flex: 0 0 auto; padding: 20px 18px 17px; border-bottom: 3px solid transparent; color: #4c515c; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.product-tabs a:hover { color: var(--brand-deep); }
.product-tabs a.active { border-bottom-color: var(--brand); color: var(--brand-deep); }
.product-tabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.product-tab-panel { padding: 30px 36px 36px; }
.product-tab-panel + .product-tab-panel { border-top: 1px solid var(--line); }
.tabs-ready .product-tab-panel + .product-tab-panel { border-top: 0; }
.product-tab-heading { margin-bottom: 18px; color: var(--brand-deep); font-size: 22px; font-weight: 700; }
.tabs-ready .product-tab-heading { display: none; }
.product-tab-panel[hidden] { display: none; }

/* Nội dung đọc (tab sản phẩm, bài viết): tiêu đề màu thương hiệu, ảnh căn giữa */
.product-tab-panel .rich-text, .reading-card .rich-text { color: #2b303a; font-size: 16px; line-height: 1.85; }
.product-tab-panel .rich-text h2, .reading-card .rich-text h2 { margin-top: 30px; color: var(--brand-deep); font-size: 24px; font-weight: 700; line-height: 1.35; }
.product-tab-panel .rich-text h3, .reading-card .rich-text h3 { margin-top: 24px; color: var(--brand); font-size: 19px; font-style: italic; font-weight: 700; line-height: 1.4; }
.product-tab-panel .rich-text > h2:first-child, .product-tab-panel .rich-text > h3:first-child, .reading-card .rich-text > h2:first-child, .reading-card .rich-text > h3:first-child { margin-top: 0; }
.product-tab-panel .rich-text strong, .product-tab-panel .rich-text a, .reading-card .rich-text strong, .reading-card .rich-text a { color: var(--brand-deep); font-weight: 700; }
.product-tab-panel .rich-text a, .reading-card .rich-text a { text-decoration: none; }
.product-tab-panel .rich-text a:hover, .reading-card .rich-text a:hover { text-decoration: underline; }
.product-tab-panel .rich-text img, .reading-card .rich-text img { margin: 10px auto; }
.product-tab-panel .rich-text p:has(> img:only-child), .reading-card .rich-text p:has(> img:only-child) { margin-top: 24px; text-align: center; }
.product-tab-panel .rich-text [id], .reading-card .rich-text [id] { scroll-margin-top: 90px; }
.reading-card { margin-top: 32px; padding: 36px 40px; }
.article-content .article-text.rich-text { font-size: 16px; line-height: 1.85; }

/* Mục lục */
.content-toc { margin-bottom: 26px; padding: 16px 20px; border: 1px solid #d9e2f5; border-radius: 8px; background: #f6f8fc; }
.content-toc-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--brand-deep); font-size: 15px; font-weight: 700; }
.content-toc-toggle { border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.content-toc-list { margin-top: 10px; padding: 0; counter-reset: toc; list-style: none; font-size: 15px; line-height: 1.6; }
.content-toc-list li + li { margin-top: 4px; }
.content-toc-list .toc-level-2 { counter-increment: toc; }
.content-toc-list .toc-level-2::before { content: counter(toc) ". "; color: var(--brand-deep); font-weight: 600; }
.content-toc-list .toc-level-3 { padding-left: 1.4em; }
.content-toc-list .toc-level-3::before { content: "– "; color: var(--muted); }
.content-toc-list a { color: #2b303a; }
.content-toc-list a:hover { color: var(--brand); text-decoration: underline; }
.content-toc-list[hidden] { display: none; }

/* Thu gọn mô tả dài */
[data-collapsible].is-collapsed { position: relative; max-height: 600px; overflow: hidden; }
[data-collapsible].is-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.collapse-toggle { display: flex; margin: 18px auto 0; }
.collapse-toggle[hidden] { display: none; }

/* Đánh giá */
.review-summary { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.review-score { display: grid; justify-items: center; gap: 6px; text-align: center; }
.review-score strong { color: var(--brand-deep); font-size: 44px; line-height: 1; }
.review-score strong span { color: var(--muted); font-size: 18px; }
.review-score .stars { font-size: 20px; }
.review-total { color: var(--muted); font-size: 14px; }
.review-bars { display: grid; gap: 6px; max-width: 420px; font-size: 13px; }
.review-bars li { display: grid; grid-template-columns: 36px 1fr 32px; gap: 10px; align-items: center; color: #4c515c; }
.review-bar { height: 8px; overflow: hidden; border-radius: 4px; background: #edf0f5; }
.review-bar span { display: block; height: 100%; background: #f2a91b; }
.review-list { display: grid; gap: 0; padding: 0; list-style: none; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-list.is-paged .review.is-more { display: none; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: 14px; }
.review-head strong { color: var(--ink); font-size: 15px; }
.review-head span:not(.stars):not(.star) { color: var(--muted); }
.review-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.review p { color: #2b303a; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.review-more { display: flex; margin: 18px auto 0; }
.review-more[hidden] { display: none; }
.review-empty { color: var(--muted); font-size: 15px; }
.review-form { display: grid; gap: 14px; max-width: 760px; margin-top: 30px; padding: 24px; border-radius: 10px; background: #f6f8fc; }
.review-form h3 { color: var(--brand-deep); font-size: 18px; font-weight: 700; }
.review-form .button { justify-self: start; }
.review-form small { color: var(--muted); font-size: 13px; }
.review-notice, .review-error { padding: 10px 14px; border-left: 3px solid var(--brand); background: #fff; color: var(--brand-deep); font-size: 14px; }
.review-error { border-left-color: #893e36; color: #893e36; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.rating-input legend { width: 100%; margin-bottom: 6px; color: #545963; font-size: 13px; font-weight: 700; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { color: #cfd4dd; font-size: 30px; line-height: 1; cursor: pointer; transition: color .1s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f2a91b; }
.rating-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sản phẩm liên quan */
.related-products { margin-top: 56px; }
.related-products h2 { margin-bottom: 20px; font-size: 28px; font-weight: 700; }

@media (max-width: 680px) {
  .product-tabs-block, .reading-card { margin-top: 32px; border-radius: 10px; }
  .product-tabs { padding: 0 8px; }
  .product-tabs a { padding: 16px 12px 13px; font-size: 13px; }
  .product-tab-panel { padding: 22px 16px 26px; }
  .reading-card { padding: 22px 16px; }
  .product-tab-panel .rich-text h2, .reading-card .rich-text h2 { font-size: 21px; }
  .product-tab-panel .rich-text h3, .reading-card .rich-text h3 { font-size: 18px; }
  .review-summary { grid-template-columns: 1fr; gap: 18px; }
  .review-head time { margin-left: 0; }
  .review-form { padding: 18px 14px; }
}

/* Quản trị: đánh giá sản phẩm */
.review-table .review-stars { color: #f2a91b; font-size: 15px; letter-spacing: 1px; }
.review-table .review-stars span { color: #d3d7df; }
.review-table .review-comment { max-width: 420px; color: #3c414b; font-size: 14px; line-height: 1.6; }
.review-status { display: inline-block; padding: 3px 9px; border-radius: 10px; background: var(--paper); font-size: 13px; font-weight: 600; }
.review-status-pending { background: #fff3d6; color: #8a5a00; }
.review-status-approved { background: #e3f4e8; color: #23683a; }
.review-status-hidden { color: var(--muted); }

/* Thiết kế đồng phục bằng AI (ai-uniform-designer) */
.ai-design-layout { max-width: 960px; }
.ai-design-form { display: grid; gap: 16px; margin-top: 0; }
.ai-design-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ai-design-form input[type="file"] { padding: 9px; background: var(--paper); }
.ai-design-form small, .ai-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ai-consent { align-items: flex-start; font-size: 14px; line-height: 1.5; }
.ai-design-form .button { justify-self: start; }
.ai-paused { margin-top: 0; text-align: center; }
.ai-paused h2 { margin-bottom: 10px; color: var(--brand-deep); font-size: 22px; font-weight: 700; }
.ai-paused p { margin-bottom: 18px; color: var(--muted); }
.ai-cta { display: inline-block; margin-top: 16px; color: var(--brand); font-size: 14px; font-weight: 700; }
.ai-cta:hover { text-decoration: underline; }
.ai-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.ai-link input { flex: 1 1 320px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.ai-progress { display: grid; justify-items: center; gap: 12px; margin-top: 0; text-align: center; }
.ai-progress p { color: var(--brand-deep); font-size: 18px; font-weight: 700; }
.ai-progress small { color: var(--muted); }
.ai-spinner { width: 42px; height: 42px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: ai-spin 1s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-spinner { animation-duration: 3s; } }
.ai-summary h2 { margin-bottom: 8px; color: var(--brand-deep); font-size: 20px; font-weight: 700; }
.ai-summary p { color: #2b303a; line-height: 1.8; }
.ai-options { display: grid; gap: 24px; margin-top: 32px; }
.ai-option { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-margin-top: 90px; }
.ai-option.is-chosen { border: 2px solid var(--brand); box-shadow: 0 10px 30px #0740c41a; }
.ai-option-image { display: grid; align-content: start; gap: 8px; }
.ai-option-image img { width: 100%; height: auto; border-radius: 8px; background: var(--paper); }
.ai-option-image small { color: var(--muted); font-size: 12px; }
.ai-image-pending { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 14px; }
.ai-image-missing { display: grid; place-items: center; gap: 10px; min-height: 260px; border-radius: 8px; background: var(--paper); color: var(--muted); text-align: center; }
.ai-option-body h2 { margin: 6px 0 14px; color: var(--brand-deep); font-size: 24px; font-weight: 700; }
.ai-chosen-badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13px; vertical-align: middle; }
.ai-colors { display: grid; gap: 8px; margin-bottom: 16px; padding: 0; list-style: none; font-size: 15px; }
.ai-colors li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-colors code { color: var(--muted); font-size: 13px; }
.ai-colors small { color: var(--muted); font-size: 13px; }
.ai-swatch { display: inline-block; width: 26px; height: 26px; border: 1px solid #0000001f; border-radius: 6px; }
.ai-specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; line-height: 1.6; }
.ai-specs dt { color: var(--muted); font-weight: 600; }
.ai-specs dd { margin: 0; color: #2b303a; }
.ai-option-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ai-chat { display: grid; gap: 14px; margin-top: 0; }
.ai-chat [hidden] { display: none; }
.ai-messages { display: flex; flex-direction: column; gap: 12px; max-height: min(62vh, 640px); overflow-y: auto; margin: 0; padding: 4px 2px; list-style: none; }
.ai-transcript .ai-messages { max-height: none; margin-top: 14px; }
.ai-transcript summary { color: var(--brand-deep); font-weight: 700; cursor: pointer; }
.ai-msg { max-width: min(82%, 620px); padding: 11px 15px; border-radius: 14px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ai-msg-assistant { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--paper); color: #2b303a; }
.ai-msg-user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--brand); color: #fff; }
.ai-msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ai-msg p + .ai-msg-files { margin-top: 8px; }
.ai-msg-files:first-child { margin-top: 0; }
.ai-msg-thumb img { display: block; width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff; }
.ai-msg-file { display: inline-block; padding: 4px 9px; border-radius: 8px; background: #ffffff26; font-size: 13px; }
.ai-msg-assistant .ai-msg-file { background: #fff; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #c9d3ee; border-radius: 20px; color: var(--brand-deep); background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s ease; }
.ai-chip:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.ai-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ai-chip:disabled { opacity: .5; cursor: not-allowed; }
.ai-chip.is-generate { border-color: var(--brand); color: #fff; background: var(--brand); }
.ai-chip-swatch { width: 18px; height: 18px; flex-shrink: 0; border: 1px solid #0000002e; border-radius: 50%; }
.ai-prefs { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.ai-prefs strong { display: block; margin-bottom: 6px; color: var(--brand-deep); }
.ai-prefs dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.ai-prefs dt { color: var(--muted); }
.ai-prefs dd { margin: 0; color: #2b303a; font-weight: 600; }
.ai-verify { display: grid; gap: 16px; max-width: 560px; margin-top: 0; }
.ai-verify-step { display: grid; gap: 16px; }
.ai-verify [hidden] { display: none; }
.ai-verify h2, .ai-my-designs h2, .ai-design-form h2 { color: var(--brand-deep); font-size: 22px; font-weight: 700; }
.ai-verify-step p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.ai-verify-step .button { justify-self: start; }
.ai-verify .review-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.ai-verify-actions { color: var(--muted); font-size: 14px; }
.ai-verify-contact { font-size: 14px; }
.ai-verify-contact a { color: var(--brand); font-weight: 700; }
.link-button { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button:disabled { color: var(--muted); font-weight: 400; cursor: default; text-decoration: none; }
.ai-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.ai-account strong { color: var(--brand-deep); }
.ai-my-designs { display: grid; gap: 12px; margin: 0 0 24px; }
.ai-design-list { margin: 0; padding: 0; list-style: none; }
.ai-design-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ai-design-list li:last-child a { border-bottom: 0; }
.ai-design-list a:hover strong { color: var(--brand); }
.ai-design-date { color: var(--muted); font-size: 14px; }
.ai-design-status { padding: 3px 10px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ai-design-status.is-failed { background: #fbefed; color: #893e36; }
.ai-back { display: inline-block; margin-top: 14px; color: var(--brand); font-size: 14px; font-weight: 700; }
.ai-back:hover { text-decoration: underline; }
.ai-back + small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.ai-credit-line { margin-top: 8px; color: var(--muted); font-size: 14px; }
.ai-credit-line strong { color: var(--brand-deep); }
.ai-no-credit { display: grid; gap: 10px; justify-items: start; margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid #f28c28; background: #fff6ec; color: #5c3a0f; font-size: 14px; line-height: 1.6; }
.ai-no-credit strong { color: #7a4a12; }
.ai-no-credit a { color: inherit; font-weight: 700; text-decoration: underline; }
.ai-chat .ai-no-credit { margin: 12px 0 0; }
.ai-start-blocked { display: grid; gap: 14px; margin-top: 0; }
.ai-start-blocked .ai-no-credit { margin: 0; }
@media (max-width: 680px) {
  .ai-design-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .ai-design-date { grid-column: 1 / -1; }
}
.ai-typing { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.ai-typing .ai-spinner { width: 18px; height: 18px; border-width: 3px; }
.ai-chat-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-chat-form textarea { width: 100%; min-height: 64px; padding: 11px 12px; border: 1px solid #e2e3e7; color: var(--ink); background: #fff; font: inherit; font-size: 16px; resize: vertical; }
.ai-chat-form textarea:focus { border-color: var(--brand); outline: none; }
.ai-chat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-attach { position: relative; overflow: hidden; cursor: pointer; }
.ai-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-attach:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ai-chat-selected { flex: 1 1 160px; min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ai-remaining { color: var(--muted); font-size: 13px; }
.ai-chat-tools .button[type="submit"] { margin-left: auto; }
.ai-chat-closed { color: var(--brand-deep); font-size: 14px; font-weight: 700; }
.ai-generate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.ai-generate p { flex: 1 1 260px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ai-generate.is-ready { border: 2px solid var(--brand); background: var(--brand-soft); }
.ai-generate.is-ready p { color: var(--brand-deep); }
.ai-chat + .ai-progress, .ai-transcript + .ai-progress, .ai-transcript + .ai-summary { margin-top: 20px; }
.ai-admin-chat { max-width: 760px; margin-bottom: 22px; }
.ai-demo-notice { margin-bottom: 16px; padding: 10px 14px; border-left: 3px solid #f28c28; background: #fff6ec; color: #7a4a12; font-size: 14px; font-weight: 700; }
.ai-demo-art { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 8px; background: #e6e8ec; }
.ai-demo-art svg { width: 88%; height: auto; }
/* Logo ở ngực trái của hình áo (toạ độ theo khung 300×300 của garment()) */
.ai-demo-art .ai-demo-logo { position: absolute; top: 37%; width: 13%; height: auto; max-height: 11%; border-radius: 0; background: none; object-fit: contain; }
.ai-demo-art .is-left { left: 56%; }
.ai-demo-art .is-right { left: 31%; }
.ai-demo-art .is-center { top: 33%; left: 43.5%; }
.print-image .ai-demo-art { max-height: 150mm; margin: 0 auto; }
.ai-admin-chat .ai-messages { max-height: none; overflow: visible; }
@media (max-width: 680px) {
  .ai-option { grid-template-columns: 1fr; padding: 16px; }
  .ai-msg { max-width: 92%; }
  .ai-messages { max-height: 58vh; }
  .ai-generate .button { width: 100%; }
  .ai-specs { grid-template-columns: 1fr; }
  .ai-specs dd { margin-bottom: 6px; }
}

/* Trang in A4 của một mẫu */
.print-body { background: var(--paper); }
.print-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px; }
.print-actions input { width: min(100%, 340px); min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.print-sheet { width: 210mm; min-height: 297mm; margin: 0 auto 30px; padding: 14mm; background: #fff; box-shadow: 0 10px 30px #121c5c14; color: var(--ink); }
.print-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.print-header img { height: 46px; width: auto; }
.print-header div { display: grid; text-align: right; font-size: 12px; }
.print-header strong { color: var(--brand-deep); font-size: 14px; }
.print-title { display: flex; justify-content: space-between; gap: 20px; margin: 16px 0; }
.print-title h1 { margin-top: 6px; color: var(--brand-deep); font-size: 26px; font-weight: 700; }
.print-title dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; font-size: 12px; }
.print-title dt { color: var(--muted); }
.print-title dd { margin: 0; }
.print-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
.print-image img { width: 100%; height: auto; max-height: 150mm; object-fit: contain; border-radius: 6px; background: var(--paper); }
.print-image small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.print-specs h2 { margin: 10px 0 6px; color: var(--brand-deep); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.print-specs h2:first-child { margin-top: 0; }
.print-specs table { width: 100%; border-collapse: collapse; font-size: 12px; }
.print-specs td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--line); }
.print-specs ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; }
.print-specs p { font-size: 12px; line-height: 1.6; }
.print-specs .ai-swatch { width: 20px; height: 20px; }
.print-footer { margin-top: 12mm; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
@page { size: A4; margin: 0; }
@media print {
  .print-body { background: #fff; }
  .print-actions { display: none; }
  .print-sheet { width: auto; min-height: 0; height: 297mm; margin: 0; padding: 12mm; box-shadow: none; overflow: hidden; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 820px) {
  .print-sheet { width: auto; min-height: 0; margin: 0 8px 20px; padding: 16px; }
  .print-main, .print-title { grid-template-columns: 1fr; display: grid; }
}

/* Quản trị: Thiết kế AI */
.ai-admin-specs { margin-bottom: 18px; font-size: 14px; }
.ai-admin-heading { margin: 22px 0 10px; color: var(--brand-deep); font-size: 17px; font-weight: 700; }
.ai-admin-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.ai-stat-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.ai-stat-grid .stat-card { min-height: 96px; }
.ai-stat-money { font-size: 18px !important; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-balance { color: var(--brand); font-size: 18px; }
.ai-block-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.credit-plus { color: #23683a; font-weight: 700; }
.credit-minus { color: #893e36; font-weight: 700; }
.otp-log tr.is-pending { background: #fff6ec; }
.otp-code { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--brand-deep); }
.verify-daily th, .verify-daily td { text-align: center; white-space: nowrap; }
@media (max-width: 680px) { .ai-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-form .ai-price-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ai-usage td, .ai-usage th { white-space: nowrap; }
.ai-usage tfoot td { border-top: 2px solid var(--line); color: #323844; font-weight: 700; }
.ai-usage .is-failed td { color: #a1453a; }
.ai-usage-log { margin: 12px 0 22px; font-size: 14px; }
.ai-usage-log summary { color: var(--brand); font-weight: 600; cursor: pointer; }
.ai-admin-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ai-admin-option { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ai-admin-option.is-chosen { border: 2px solid var(--brand); }
.ai-admin-option img { width: 100%; height: auto; border-radius: 6px; background: var(--paper); }
.ai-admin-option .ai-image-missing { min-height: 160px; font-size: 13px; }
.ai-admin-option figcaption { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; }
.ai-admin-option figcaption a { color: var(--brand); font-weight: 600; }
.ai-admin-swatches { display: flex; gap: 4px; }
.ai-admin-swatches .ai-swatch { width: 18px; height: 18px; }
