/* Shop Cá Cảnh — giao diện trang khách
   Bảng màu lấy từ hồ cá: nước sâu (chữ, thanh tab), kính hồ (nền nhạt), đuôi đỏ (giá),
   cam (thêm vào giỏ), xanh lá (đặt hàng), vàng đèn hồ (điểm nhấn). */
:root {
  --ink: #0B3A42;
  --ink-2: #3C5F66;
  --muted: #67828A;
  --water: #DDF0EC;
  --water-2: #EDF7F4;
  --bg: #F6FAF9;
  --line: #D2E3E0;
  --white: #fff;
  --nav: #0E4A54;
  --nav-on: #072C33;
  --orange: #E0600A;
  --orange-d: #C25105;
  --green: #178A3A;
  --green-d: #11742F;
  --red: #DC1E2A;
  --yellow: #FFC83A;
  --moss: #2E7D5B;
  --r: 12px;
  --r-sm: 8px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nav); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1FA2B8; outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  background: var(--white); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-cart { background: var(--orange); color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.btn-cart:hover:not(:disabled) { background: var(--orange-d); color: #fff; }
.btn-order { background: var(--green); color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.btn-order:hover:not(:disabled) { background: var(--green-d); color: #fff; }
.btn-ink { background: var(--nav); color: #fff; }
.btn-ink:hover:not(:disabled) { background: var(--nav-on); color: #fff; }
.btn-line { border-color: var(--line); background: var(--white); }
.btn-line:hover:not(:disabled) { border-color: var(--nav); }
.btn-cart-line { border-color: var(--orange); color: var(--orange-d); background: var(--white); }
.btn-cart-line:hover:not(:disabled) { background: var(--orange); color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Đầu trang: logo | tên + địa chỉ | hotline, giờ mở cửa ---------- */
.mast {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 170'%3E%3Cg fill='%232E7D5B' fill-opacity='.13'%3E%3Cpath d='M46 170c-10-62 12-100 2-158 28 42 32 102 18 158z'/%3E%3Cpath d='M92 170c0-48 20-76 12-122 26 36 22 86 10 122z'/%3E%3Cpath d='M150 170c-6-40 10-66 4-104 22 30 20 72 10 104z'/%3E%3Cpath d='M214 170c8-58-8-92 4-146 18 46 20 98 12 146z'/%3E%3Cpath d='M262 170c-2-40 14-62 10-100 20 30 16 68 6 100z'/%3E%3C/g%3E%3C/svg%3E") right -20px bottom / auto 96% no-repeat,
    linear-gradient(180deg, #F3FAF8 0%, var(--water) 100%);
  border-bottom: 1px solid var(--line);
}
.mast-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px; align-items: center; padding-block: 18px;
}
.mast-logo { display: block; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; flex: none; background: var(--white); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.mast-logo img, .mast-logo svg { width: 100%; height: 100%; object-fit: cover; }
.mast-mid { text-align: center; min-width: 0; }
.mast-name {
  display: inline-block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.01em;
  color: var(--nav);
}
.mast-addr { margin-top: 4px; font-size: clamp(14px, 1.5vw, 18px); font-weight: 500; color: var(--ink-2); }
.mast-slogan { margin-top: 2px; font-size: clamp(13.5px, 1.35vw, 16.5px); color: var(--ink-2); }
.mast-slogan span { display: block; }
.mast-side { display: grid; gap: 6px; font-size: 15px; }
.mast-hot { font-weight: 500; }
.mast-hot a { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--red); letter-spacing: .01em; margin-left: 4px; }
.mast-hours span { color: var(--ink-2); }
.mast-hours b { font-weight: 700; }
.mast-cart { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; width: fit-content; }
.mast-search { display: flex; margin-top: 4px; border: 1.5px solid var(--nav); border-radius: var(--r-sm); background: var(--white); overflow: hidden; }
.mast-search input { flex: 1; min-width: 0; height: 42px; border: 0; padding: 0 12px; background: transparent; outline-offset: -3px; }
.mast-search button { width: 46px; border: 0; background: transparent; color: var(--nav); display: grid; place-items: center; }

/* ---------- Thanh tab ---------- */
.tabs { background: var(--nav); position: sticky; top: 0; z-index: 30; }
.tabs-in { position: relative; }
.tabs-toggle { display: none; }
.tabs-list { display: flex; flex-wrap: wrap; justify-content: center; }
.tab { position: relative; display: flex; }
.tab + .tab::before { content: ""; position: absolute; left: 0; top: 34%; height: 32%; width: 1px; background: rgba(255, 255, 255, .22); }
.tab > a {
  display: flex; align-items: center; padding: 16px 17px;
  color: #fff; font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.tab-more-btn {
  display: flex; align-items: center; gap: 6px; padding: 16px 17px; border: 0; background: transparent;
  color: #fff; font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.tab:hover > a, .tab:focus-within > a, .tab.is-active > a,
.tab:hover > .tab-more-btn, .tab:focus-within > .tab-more-btn, .tab.is-active > .tab-more-btn { background: var(--nav-on); color: #fff; }
.tab.is-active > a, .tab.is-active > .tab-more-btn { box-shadow: inset 0 -3px 0 var(--yellow); }
.tab-more > .sub { left: auto; right: 0; }
.sub-toggle { display: none; }
.sub {
  position: absolute; left: 0; top: 100%; z-index: 40; min-width: 250px;
  background: var(--white); box-shadow: 0 14px 30px rgba(7, 44, 51, .18);
  border-radius: 0 0 var(--r-sm) var(--r-sm); overflow: hidden;
  visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.tab:hover > .sub, .tab:focus-within > .sub { visibility: visible; opacity: 1; transform: none; }
.sub li + li { border-top: 1px solid var(--line); }
.sub a { display: block; padding: 12px 18px; font-size: 15.5px; color: var(--ink); }
.sub a:hover { background: var(--water-2); color: var(--nav); }

.crumbs { background: #E8F0EE; font-size: 14.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; padding-block: 12px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.crumbs span { color: var(--muted); }

main { min-height: 50vh; padding-block: 26px 56px; }

/* ---------- Thẻ sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { border-color: #9CC8C1; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--water-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card-media img { opacity: .55; }
.tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.tag-sale { left: 10px; background: var(--red); color: #fff; }
.tag-out { right: 10px; background: var(--ink); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.card-name { font-weight: 600; font-size: 15px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.card-price { margin-top: auto; line-height: 1.3; }
.price-now { color: var(--red); font-weight: 700; font-size: 17px; }
.price-old { color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.price-unit { color: var(--muted); font-size: 13.5px; }
.card-btn { width: 100%; }

/* ---------- Trang chủ ---------- */
.sec { padding-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2, .page-title { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.sec-head a { font-weight: 600; font-size: 15px; color: var(--nav); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Hồ cá đầu trang chủ (hiện khi shop chưa tải banner) */
.tank {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 22px; min-height: 380px;
  display: flex; align-items: center;
  padding: 52px clamp(22px, 5vw, 60px) 76px;
  background: linear-gradient(180deg, #DDF2EE 0%, #B4DFD8 62%, #92CEC6 100%);
  border: 6px solid var(--nav);
}
.tank::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 9px; background: var(--yellow); box-shadow: 0 0 46px 22px rgba(255, 200, 58, .34); z-index: 1; }
.tank::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 44px; z-index: 0;
  background: #E7D6AE;
  border-radius: 50% 50% 0 0 / 22px 22px 0 0;
}
.tank-copy { position: relative; z-index: 3; max-width: 520px; }
.tank-copy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.8vw, 54px); line-height: 1.14; letter-spacing: -.015em; color: var(--nav-on); }
.tank-copy p { margin-top: 14px; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink); max-width: 44ch; }
.tank-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tank-scene { position: absolute; inset: 0 0 0 40%; z-index: 2; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.tank-plants { position: absolute; right: 0; bottom: 30px; width: 100%; height: 62%; }
.swim { position: absolute; left: 0; width: 100%; animation: swim linear infinite; }
.swim svg { display: block; animation: bob 2.8s ease-in-out infinite alternate; }
.swim-1 { top: 16%; animation-duration: 30s; }
.swim-1 svg { width: clamp(150px, 20vw, 250px); }
.swim-2 { top: 46%; animation-duration: 38s; animation-delay: -14s; }
.swim-2 svg { width: clamp(110px, 14vw, 180px); animation-delay: -1s; }
.swim-3 { top: 64%; animation-duration: 26s; animation-delay: -6s; }
.swim-3 svg { width: clamp(90px, 11vw, 140px); animation-delay: -2s; }
.bubble { position: absolute; bottom: 40px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: rise 9s ease-in infinite; }
.bubble:nth-child(2) { left: 30%; width: 8px; height: 8px; animation-delay: -3s; animation-duration: 11s; }
.bubble:nth-child(3) { left: 62%; width: 10px; height: 10px; animation-delay: -6s; }
.bubble:nth-child(1) { left: 78%; }
@keyframes swim { from { transform: translateX(104%); } to { transform: translateX(-45%); } }
@keyframes bob { from { transform: translateY(-7px) rotate(-1.5deg); } to { transform: translateY(7px) rotate(1.5deg); } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } to { transform: translateY(-330px); opacity: 0; } }

/* Banner do shop tải lên */
.slider { position: relative; border-radius: 18px; overflow: hidden; background: var(--water); }
.slides { display: flex; transition: transform .5s ease; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 6; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 40px clamp(18px, 4vw, 44px) 22px; color: #fff; background: linear-gradient(180deg, transparent, rgba(7, 44, 51, .78)); }
.slide-cap strong { display: block; font-family: var(--display); font-size: clamp(20px, 3vw, 34px); line-height: 1.2; }
.slide-cap span { display: block; margin-top: 4px; font-size: clamp(14px, 1.5vw, 17px); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); display: grid; place-items: center; }
.slider-prev { left: 12px; } .slider-next { right: 12px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.slider-dots button { width: 26px; height: 26px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.slider-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.slider-dots button[aria-current="true"]::before { background: var(--yellow); }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.promise li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 15px; border-right: 1px solid var(--line); margin-right: -1px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.promise svg { flex: none; width: 34px; height: 34px; color: var(--moss); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 12px; }
.cat { display: grid; justify-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: var(--water); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.cat:hover img { box-shadow: 0 0 0 2px var(--nav); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--water-2); }
.post-card div { padding: 14px 16px 18px; display: grid; gap: 6px; }
.post-card h3 { font-size: 17px; line-height: 1.35; font-weight: 700; }
.post-card p { color: var(--ink-2); font-size: 14.5px; }
.post-card time { color: var(--muted); font-size: 13.5px; }

/* ---------- Trang danh mục ---------- */
.list-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 70px; }
.side h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 13px 16px; background: var(--nav); color: #fff; }
.side-group > a { display: block; padding: 11px 16px; font-weight: 700; border-top: 1px solid var(--line); }
.side-group ul a { display: block; padding: 8px 16px 8px 30px; font-size: 15px; color: var(--ink-2); }
.side a.is-on { color: var(--orange-d); background: var(--water-2); }
.side a:hover { background: var(--water-2); }
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chips a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.chips a.is-on { background: var(--nav); border-color: var(--nav); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.toolbar p { color: var(--ink-2); font-size: 15px; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; }
.toolbar select { height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--nav); }
.more { display: grid; place-items: center; margin-top: 26px; }
.empty { text-align: center; padding: 48px 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); }
.empty p { color: var(--ink-2); margin: 6px 0 16px; }

/* ---------- Trang chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 38px; align-items: start; }
.pd-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; background: var(--water-2); }
.pd-thumbs { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pd-thumbs-track { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; flex: 1; }
.pd-thumb { flex: none; width: 86px; height: 86px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.pd-thumb[aria-current="true"] { border: 2px solid var(--nav); padding: 3px; }
.pd-arrow { flex: none; width: 34px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; color: var(--ink-2); display: grid; place-items: center; }
.pd-info h1 { font-size: clamp(22px, 2.5vw, 29px); line-height: 1.3; font-weight: 700; }
.pd-short { margin-top: 10px; color: var(--ink-2); }
.pd-rows { margin-top: 18px; display: grid; gap: 12px; font-size: 16.5px; }
.pd-rows dt { display: inline; color: var(--ink-2); }
.pd-rows dd { display: inline; margin: 0 0 0 6px; font-weight: 500; }
.pd-price b { color: var(--red); font-weight: 800; font-size: 31px; line-height: 1; }
.pd-price s { color: var(--muted); font-size: 18px; margin-left: 12px; }
.pd-price .tag { position: static; background: var(--red); color: #fff; margin-left: 10px; vertical-align: 5px; }
.stock-ok { color: var(--green-d); } .stock-out { color: var(--red); }
.qty { display: inline-flex; margin-top: 8px; border: 1px solid #B9CFCB; border-radius: 6px; overflow: hidden; background: var(--white); }
.qty button { width: 46px; height: 46px; border: 0; background: var(--white); font-size: 22px; line-height: 1; color: var(--ink); }
.qty button:hover { background: var(--water-2); }
.qty input { width: 68px; height: 46px; border: 0; border-inline: 1px solid #B9CFCB; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; outline-offset: -3px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.pd-actions .btn { min-height: 54px; padding-inline: 24px; font-size: 16.5px; }
.pd-ask { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.pd-ask a { color: var(--nav); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.ptabs { margin-top: 36px; }
.ptabs-bar { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.ptabs-bar button { padding: 12px 18px; border: 0; background: #E3EDEB; font-weight: 600; font-size: 16px; border-radius: 6px 6px 0 0; }
.ptabs-bar button[aria-selected="true"] { background: var(--nav-on); color: #fff; }
.ptabs-panel { padding-top: 22px; }

/* Nội dung soạn thảo (mô tả, bài viết, giới thiệu) */
.rich { font-size: 17px; line-height: 1.7; max-width: 78ch; overflow-wrap: anywhere; }
.rich > * + * { margin-top: .9em; }
.rich h2 { font-size: 24px; line-height: 1.3; font-weight: 700; margin-top: 1.4em; }
.rich h3 { font-size: 20px; line-height: 1.35; font-weight: 700; margin-top: 1.3em; }
.rich h4 { font-size: 17.5px; font-weight: 700; margin-top: 1.2em; }
.rich ul, .rich ol { padding-left: 1.5em; }
.rich ul { list-style: disc; } .rich ol { list-style: decimal; }
.rich li + li { margin-top: .4em; }
.rich a { color: var(--nav); text-decoration: underline; text-underline-offset: 3px; }
.rich img { border-radius: 10px; }
.rich blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--water); color: var(--ink-2); }
.plain { white-space: pre-line; }

/* ---------- Giỏ hàng + đặt hàng ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.box h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-item:first-of-type { border-top: 0; padding-top: 0; }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--water-2); }
.cart-item a { font-weight: 600; line-height: 1.35; }
.cart-item .unit-price { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.cart-item .warn { color: var(--red); font-size: 14px; margin-top: 2px; }
.cart-item .qty { margin-top: 8px; }
.cart-item .qty button { width: 38px; height: 38px; font-size: 19px; }
.cart-item .qty input { width: 52px; height: 38px; }
.cart-item .line-total { font-weight: 700; color: var(--red); text-align: right; white-space: nowrap; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--red); }
.cart-side { position: sticky; top: 70px; display: grid; gap: 18px; }
.sum { display: grid; gap: 8px; font-size: 15.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .sum-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.sum .sum-total b { color: var(--red); font-size: 22px; }
.sum small { color: var(--muted); font-size: 13.5px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field input[type="password"], .field input[type="url"], .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B9CFCB; border-radius: var(--r-sm); background: var(--white);
}
.field textarea { min-height: 84px; resize: vertical; }
.field .err { color: var(--red); font-size: 14px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.radio + .radio { margin-top: 8px; }
.radio input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--nav); }
.radio:has(input:checked) { border-color: var(--nav); background: var(--water-2); }
.radio small { display: block; color: var(--ink-2); font-size: 13.5px; }
.done { max-width: 640px; margin: 10px auto 0; text-align: center; }
.done h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.done .code { display: inline-block; margin: 14px 0; padding: 10px 20px; border: 2px dashed var(--nav); border-radius: 10px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: .04em; background: var(--white); }
.done .bank { text-align: left; margin-top: 18px; }

.notice { padding: 14px 16px; border-radius: var(--r-sm); background: var(--water-2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.notice-error { background: #FDECEC; border-color: #F3B6BA; }
.notice-ok { background: #E7F6EC; border-color: #A9DBB8; }

/* ---------- Liên hệ / giới thiệu / bài viết ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.info-list { display: grid; gap: 12px; }
.info-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.info-list span { color: var(--ink-2); }
.info-list a { color: var(--nav); font-weight: 600; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r); background: var(--water); }
.article { max-width: 820px; margin-inline: auto; }
.article h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.01em; }
.article time { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.article .cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); margin: 20px 0; background: var(--water-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); margin-bottom: 20px; }
.seg a { padding: 9px 18px; font-weight: 600; font-size: 15px; }
.seg a.is-on { background: var(--nav); color: #fff; }

/* ---------- Chân trang ---------- */
.foot { background: var(--nav-on); color: #D7E9E6; margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: 32px; padding-block: 40px 30px; }
.foot h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; margin-bottom: 12px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 8px; }
.foot li { margin-bottom: 8px; font-size: 15px; }
.foot a:hover { color: var(--yellow); }
.foot-contact li { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
.foot-contact span { color: #9DBFBA; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.foot-social a { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 14px; font-size: 14px; color: #9DBFBA; }

/* ---------- Nút nổi liên hệ ---------- */
.dock { position: fixed; right: 18px; bottom: 22px; z-index: 50; display: grid; gap: 12px; }
.dock-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(7, 44, 51, .28); }
.dock-btn:hover { color: #fff; transform: translateY(-2px); }
.dock-btn svg { width: 26px; height: 26px; }
.dock-cart { background: #2A3B40; }
.dock-zalo { background: #0A64F0; font-weight: 800; font-size: 14.5px; box-shadow: 0 0 0 6px rgba(10, 100, 240, .18), 0 6px 16px rgba(7, 44, 51, .28); }
.dock-call { background: var(--green); box-shadow: 0 0 0 6px rgba(23, 138, 58, .18), 0 6px 16px rgba(7, 44, 51, .28); }
.dock-mess { background: #7A3FE0; }
.dock-count { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

#cc-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--nav-on); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 15px; box-shadow: 0 8px 24px rgba(7, 44, 51, .3); animation: toast-in .2s ease; }
.toast-error { background: #9B1620; }
.toast.is-leaving { opacity: 0; transition: opacity .35s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.skeleton { background: linear-gradient(90deg, #E7F1EF 25%, #F3F9F7 50%, #E7F1EF 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
#site-header:empty { min-height: 210px; background: var(--water); }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1000px) {
  .mast-in { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding-block: 14px; }
  .mast-logo { width: 76px; height: 76px; }
  .mast-mid { text-align: left; }
  .mast-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; }
  .mast-hot a { font-size: 21px; }
  .mast-hours { grid-column: 1 / -1; grid-row: 2; font-size: 14.5px; }
  .mast-cart { justify-self: end; }
  .mast-search { grid-column: 1 / -1; }

  .tabs-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; border: 0; background: transparent; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; }
  .tabs-list { display: none; flex-direction: column; padding-bottom: 10px; max-height: calc(100vh - 60px); overflow-y: auto; }
  .tabs-list.is-open { display: flex; }
  .tab { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); }
  .tab + .tab::before { display: none; }
  .tab > a { flex: 1; padding: 13px 4px; white-space: normal; }
  .tab:hover > a, .tab:focus-within > a { background: transparent; }
  .tab.is-active > a { background: transparent; box-shadow: none; color: var(--yellow); }
  .sub-toggle { display: grid; place-items: center; width: 50px; border: 0; background: transparent; color: #fff; }
  .tab.is-open .sub-toggle svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-radius: 8px; display: none; margin-bottom: 10px; }
  .tab:hover > .sub, .tab:focus-within > .sub { display: none; }
  .tab.is-open > .sub { display: block; }

  .list-layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .chips { display: flex; }
  .pd { grid-template-columns: 1fr; gap: 22px; }
  .cart { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .two { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  main { padding-block: 18px 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .price-now { font-size: 16px; }
  .tank { min-height: 0; padding: 40px 20px 150px; border-width: 5px; border-radius: 18px; }
  .tank-scene { inset: auto 0 0 0; height: 170px; -webkit-mask-image: none; mask-image: none; }
  .swim-1 { top: 4%; } .swim-2 { top: 40%; } .swim-3 { display: none; }
  .tank-plants { height: 78%; }
  .slide { aspect-ratio: 16 / 9; }
  .sec { padding-top: 30px; }
  .promise li { padding: 12px 14px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat img { width: 84px; height: 84px; }
  .pd-actions .btn { flex: 1 1 100%; }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr); }
  .cart-item img { width: 68px; height: 68px; }
  .cart-item .line-total { grid-column: 2; text-align: left; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .dock { right: 12px; bottom: 14px; gap: 10px; }
  .dock-btn { width: 50px; height: 50px; }
  .rich { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swim, .swim svg, .bubble, .skeleton { animation: none; }
  .swim-1 { transform: translateX(34%); } .swim-2 { transform: translateX(8%); } .swim-3 { transform: translateX(52%); }
  .bubble { opacity: .7; }
  .slides { transition: none; }
}

/* ---------- Biến thể, quy cách, bộ lọc (mô hình loài → size → cách mua) ---------- */
.price-from { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 6px; }
.filter select { height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.filter.is-on select { border-color: var(--nav); background: var(--water); }
.filters .check { margin-left: 4px; font-size: 14.5px; }
.filters-clear { margin-left: 4px; font-size: 14.5px; font-weight: 600; color: var(--nav); text-decoration: underline; text-underline-offset: 3px; }
.pd-alt { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.pd-per { margin-left: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.pd-photo-note { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.preview-note { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: #FFF4D6; border: 1px solid #F0D48A; font-size: 14.5px; font-weight: 600; }
.opts { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { width: 100%; padding: 0; margin-bottom: 8px; font-weight: 600; }
.opt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 8px 14px; border: 1.5px solid #B9CFCB; border-radius: var(--r-sm); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; justify-content: center; }
.opt small { font-weight: 600; font-size: 13.5px; color: var(--red); }
.opt:hover { border-color: var(--nav); }
.opt[aria-pressed="true"] { border-color: var(--nav); background: var(--water); box-shadow: inset 0 0 0 1px var(--nav); }
.opt.is-none { color: var(--muted); border-style: dashed; }
.opt.is-none small { color: var(--muted); font-weight: 500; }
.qty-line { display: flex; align-items: center; gap: 12px; }
.qty-base { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.qty-line .qty-base { margin-top: 8px; }
.care { width: 100%; max-width: 640px; border-collapse: collapse; }
.care caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.care th, .care td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.care th { width: 42%; font-weight: 600; color: var(--ink-2); background: var(--bg); }
.policy { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.policy summary { padding: 11px 14px; font-weight: 600; cursor: pointer; }
.policy .rich { padding: 0 14px 12px; font-size: 14.5px; }
.policy h3 { margin: 8px 0 4px; font-size: 15px; }
#pickup-info { display: block; margin-bottom: 16px; }
[hidden] { display: none !important; }
#buy { margin-top: 16px; }
