:root {
  color-scheme: light;
  font: 15px/1.45 "Inter", "Segoe UI", sans-serif;
  color: #0e1d36;
  background: #09356d;
  --paper: #fff;
  --border: #dce4ee;
  --muted: #4d627c;
  --blue: #155bc1;
  --red: #dd2227;
  --green: #14823e;
  --shadow: 0 7px 22px #03172e39;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0a3675 url("assets/winter.webp") center / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e29c19; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; }

.container { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
main { flex: 1; padding-block: 28px 40px; }
.panel, .account-card { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.site-header { background: #fff; border-bottom: 1px solid #dbe6f4; }
.header-inner {
  min-height: 65px;
  width: min(1360px, calc(100% - 36px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: block; flex: none; }
.brand-logo { width: 98px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 750; }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}
.button:hover { filter: brightness(.92); }
.button-zalo { color: #104c9e; background: #eaf3ff; border-color: #cddff7; }
.button-green { background: var(--green); color: #fff; }
.button-red { background: var(--red); color: #fff; }
.button-light { background: #f3f7fc; color: #123862; border-color: var(--border); }
.icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; }

.shop-banners {
  padding: 11px;
  margin-bottom: 17px;
  display: grid;
  gap: 8px;
}
.shop-banners button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.shop-banners img { height: auto; }
.banner-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.banner-pair img { aspect-ratio: 1600 / 365; object-fit: cover; }

.catalog-heading {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.catalog-heading h1 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.025em; }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding-bottom: 9px;
  text-align: center;
  border: 1px solid #cbdcf4;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.category:hover { border-color: #d38a31; }
.category[data-category="duoi-1m"] {
  --category-art: url("assets/category-duoi-1m.png");
  --category-glow: #225a9a;
  --category-shade: #111e40;
  --category-focus: 52% top;
}
.category[data-category="tu-1m-den-2m"] {
  --category-art: url("assets/category-tu-1m-den-2m.png");
  --category-glow: #9c303e;
  --category-shade: #36152b;
  --category-focus: 50% top;
}
.category[data-category="tren-2m"] {
  --category-art: url("assets/category-tren-2m.png");
  --category-glow: #69459f;
  --category-shade: #29194b;
  --category-focus: 52% top;
}
.category-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.86;
  padding: 10px 6% 10px 48%;
  background:
    repeating-linear-gradient(140deg, transparent 0 34px, #ffe1af14 35px 36px, transparent 37px 74px),
    radial-gradient(ellipse at 85% 15%, var(--category-glow), transparent 73%),
    var(--category-shade);
}
.category-cover::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 57%;
  content: "";
  background: var(--category-art) var(--category-focus) / cover no-repeat;
  mask-image: linear-gradient(90deg, #000 0 68%, transparent);
}
.category-name { display: grid; justify-items: center; gap: 6px; }
.category-prefix {
  color: #fff3cc;
  font-size: clamp(.65rem, 1.25vw, .91rem);
  font-weight: 850;
  line-height: 1.1;
  text-shadow: 0 2px 4px #000b;
}
.category-cover strong {
  color: #ffe49a;
  font-family: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 3.2vw, 2.45rem);
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 2px #783313, 0 4px 12px #000b;
}
.category-cta {
  padding: 5px 16px;
  border: 1px solid #ffab4f;
  border-radius: 999px;
  background: linear-gradient(#ffe09a, #ffb54f);
  color: #5c270b;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.categories-compact .category {
  display: flex;
  justify-content: center;
  min-height: 45px;
  padding: 0;
  background: #edf5ff;
  color: #194780;
}
.categories-compact .category-cover { aspect-ratio: auto; padding: 8px; background: none; }
.categories-compact .category-cover::before, .categories-compact .category-cta { display: none; }
.categories-compact .category-name { display: block; font: 850 .84rem/1.2 "Inter", "Segoe UI", sans-serif; }
.categories-compact .category-prefix, .categories-compact strong { color: inherit; font: inherit; text-shadow: none; }
.categories-compact .category:hover, .categories-compact .category[aria-current="page"] { background: #194780; color: #fff; }
.filters { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 13px 16px; margin-bottom: 18px; }
.filters label { display: grid; gap: 5px; font-size: .8rem; font-weight: 750; }
.filters input, .filters select {
  width: 100%;
  min-width: 0;
  height: 39px;
  border: 1px solid #ced9e7;
  border-radius: 6px;
  background: #fff;
  color: #0e1d36;
  padding: 0 10px;
  font-weight: 500;
}
.account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.account-card { min-width: 0; display: flex; flex-direction: column; padding: 8px; }
.card-cover { display: block; position: relative; border-radius: 6px; overflow: hidden; }
.account-image { display: block; aspect-ratio: 1; overflow: hidden; background: #102341; }
.account-image img { width: 100%; height: 100%; object-fit: cover; }
.artwork { display: block; width: 100%; height: 100%; background-image: url("assets/accounts.webp"); }
.artwork[data-art="0"] { background-position: left top; background-size: 200% 215.5%; }
.artwork[data-art="1"] { background-position: right top; background-size: 200% 215.5%; }
.artwork[data-art="2"] { background-position: left bottom; background-size: 200% 186.6%; }
.artwork[data-art="3"] { background-position: right bottom; background-size: 200% 186.6%; }
.image-placeholder { display: grid; place-content: center; height: 100%; color: #dfedff; font-size: .85rem; }
.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--red);
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.card-cover .badge { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); }
.card-body { padding: 8px 4px 3px; display: grid; gap: 7px; flex: 1; }
.card-title { font-size: .91rem; font-weight: 800; overflow-wrap: anywhere; }
.callout {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 7px;
  padding: 8px 9px;
  color: #154d9b;
  background: #edf4fc;
  font-size: .8rem;
  font-weight: 750;
}
.price {
  background: #fff5eb;
  color: #c81c22;
  border: 1px solid #ffcec4;
  border-radius: 7px;
  text-align: center;
  padding: 8px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 900;
}
.price span { display: block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.message { grid-column: 1 / -1; text-align: center; padding: 25px; }
.back-link { margin-bottom: 12px; }
#detail-view { width: min(100%, 1000px); margin-inline: auto; }
.detail-panel { display: grid; grid-template-columns: .92fr 1fr; gap: 18px; align-items: center; padding: 18px; }
.detail-cover { display: block; background: #f6f7f9; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.detail-cover .account-image { border-radius: 5px; }
.detail-cover img { object-fit: contain; }
.detail-summary { min-width: 0; display: grid; gap: 12px; }
.detail-heading { display: flex; justify-content: center; }
.detail-heading .badge { padding: 8px 14px; }
.detail-summary .price {
  padding: 12px 8px;
  background: #fff7ed;
  border-color: #ffc5c5;
  color: #df2027;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}
.metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.metadata > div { border-radius: 7px; border: 1px solid var(--border); background: #fff; padding: 10px; min-width: 0; }
.metadata dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 750; }
.metadata dd { margin: 4px 0 0; font-weight: 800; font-size: .88rem; overflow-wrap: anywhere; }
.detail-support {
  display: flex;
  width: fit-content;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f6f7f9;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.detail-actions { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #f6f7f9; }
.detail-actions .button { min-height: 46px; }
.zalo-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff url("assets/zalo.png") center / 156% auto no-repeat;
}
.detail-section { margin-top: 16px; }
.detail-section h2 { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 1rem; }
.description { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 12px; padding: 16px; }
.gallery-item { padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #102341; }
.gallery-item img { height: auto; max-height: 900px; object-fit: contain; }

.site-footer { background: #1c1c1d; color: #f7f8fb; }
.footer-support { display: grid; gap: 25px; padding-block: 24px 30px; }
.footer-heading { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-items: start; gap: 12px; }
.footer-logo { display: block; width: 126px; }
.footer-logo img { height: auto; }
.footer-heading h2 { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 800; }
.footer-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 10px; }
.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid #a2aab7;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: .86rem;
  font-weight: 750;
}
.footer-contact:hover { background: #343436; }
.footer-facebook-icon { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 2px; background: #fff; color: #1c1c1d; font: 800 12px/1 Arial, sans-serif; }
.footer-bar { padding-block: 12px; background: #151516; font-size: .85rem; font-weight: 850; }
dialog {
  max-width: min(480px, calc(100% - 24px));
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #0e1d36;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: #071830b9; }
dialog h2 { font-size: 1.2rem; margin-right: 30px; }
dialog p { margin-block: 12px; }
.close-button { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: #102341; font-size: 1.25rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zalo-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f3f7fc;
}
.zalo-profile img { height: auto; }
.zalo-profile figcaption { display: grid; gap: 4px; }
.zalo-profile strong { font-size: 1.05rem; }
.zalo-profile small { color: var(--muted); }
.zalo-profile span { user-select: text; overflow-wrap: anywhere; }
#zalo-feedback { margin-bottom: 0; font-size: .9rem; }
#image-dialog { max-width: min(940px, calc(100% - 24px)); padding: 8px; }
#image-dialog img { max-height: 86vh; object-fit: contain; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 850px) {
  .account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  main { padding-top: 14px; }
  .container, .header-inner { width: calc(100% - 22px); }
  .header-inner { min-height: 56px; }
  .brand-logo { width: 81px; }
  .shop-banners { padding: 6px; gap: 6px; }
  .banner-pair { gap: 6px; }
  .catalog-heading { padding: 12px; gap: 10px; }
  .categories { gap: 6px; }
  .categories-compact .category-name { font-size: .72rem; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; gap: 8px; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .account-card { padding: 5px; }
  .card-body { padding-inline: 1px; }
  .card-body .button { padding-inline: 5px; font-size: .83rem; }
  .card-body .callout { font-size: .73rem; }
  .detail-panel { grid-template-columns: 1fr; padding: 10px; gap: 12px; }
  .gallery { padding: 10px; }
  .footer-support { padding-block: 18px 22px; gap: 16px; }
  .footer-heading { align-items: center; }
  .footer-logo { width: 97px; }
  .footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .banner-pair { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .categories:not(.categories-compact) { grid-template-columns: 1fr; gap: 10px; }
  .categories:not(.categories-compact) .category-cover { aspect-ratio: 2.3; }
  .categories:not(.categories-compact) .category-cover strong { font-size: clamp(1.75rem, 7.6vw, 2.6rem); }
}
@media (max-width: 350px) {
  .zalo-profile { grid-template-columns: 132px; justify-content: center; text-align: center; }
}
