/*
Theme Name: Trung Tín Ocean
Theme URI: https://trungtinaqua.com
Author: Cá Cảnh Thủy Sinh Trung Tín
Description: Theme WooCommerce theo thiết kế "Living Ocean" (Stitch) — xanh đại dương đậm + vàng aquarium, Montserrat/Roboto, hero lớn, khối thống kê, lead magnet cẩm nang, tối ưu chuyển đổi với nút Gọi/Zalo.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trungtin-ocean
Tags: e-commerce, woocommerce, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   1. Design tokens — Living Ocean
   ========================================================================== */
:root {
  --to-navy: #002676;        /* primary — deep ocean blue */
  --to-navy-2: #0339a6;      /* primary container */
  --to-deep: #000A2E;        /* ocean deep — footer/topbar */
  --to-yellow: #ffd71f;      /* aquarium yellow — CTA */
  --to-yellow-2: #e9c400;
  --to-on-yellow: #221b00;
  --to-bg: #f6f9fe;
  --to-bg-soft: #E8EEFB;     /* ocean subtle */
  --to-white: #ffffff;
  --to-text: #1E293B;
  --to-muted: #444653;
  --to-outline: #c4c5d5;
  --to-danger: #DC2626;
  --to-success: #15803D;
  --to-green: #1f9d55;
  --to-shadow-sm: 0 2px 8px rgba(3, 57, 166, .10);
  --to-shadow-md: 0 6px 20px rgba(3, 57, 166, .15);
  --to-shadow-lg: 0 12px 32px rgba(3, 57, 166, .20);
  --to-r-md: 8px;
  --to-r-lg: 12px;
  --to-r-xl: 16px;
  --to-max: 1280px;
  --to-font-head: 'Montserrat', -apple-system, 'Segoe UI', Arial, sans-serif;
  --to-font-body: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Cỡ chữ gốc 18px theo yêu cầu — đơn vị rem phóng theo */
html { font-size: 18px; }

body {
  margin: 0;
  font-family: var(--to-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--to-text);
  background: var(--to-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--to-navy); text-decoration: none; }
a:hover { color: var(--to-navy-2); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--to-font-head);
  color: var(--to-text);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }

.to-container { max-width: var(--to-max); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  left: 8px; top: 8px; z-index: 100000; padding: 10px 16px;
  background: var(--to-navy); color: #fff; border-radius: 6px;
}

/* ==========================================================================
   2. Nút
   ========================================================================== */
.to-btn {
  display: inline-block;
  font-family: var(--to-font-head);
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--to-r-md);
  border: 0;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.to-btn:active { transform: scale(.97); }
.to-btn-yellow { background: var(--to-yellow); color: var(--to-on-yellow) !important; box-shadow: var(--to-shadow-sm); }
.to-btn-yellow:hover { background: var(--to-yellow-2); box-shadow: var(--to-shadow-md); }
.to-btn-navy { background: var(--to-navy); color: #fff !important; box-shadow: var(--to-shadow-sm); }
.to-btn-navy:hover { background: var(--to-navy-2); box-shadow: var(--to-shadow-md); }
.to-btn-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.7); }
.to-btn-outline:hover { background: rgba(255,255,255,.12); }

/* ==========================================================================
   3. Topbar + Header
   ========================================================================== */
.to-topbar {
  background: var(--to-deep);
  color: #cfd8ea;
  font-size: .78rem;
}
.to-topbar .to-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px;
}
.to-topbar a { color: #fff; font-weight: 600; }
.to-topbar a:hover { color: var(--to-yellow); }
.to-topbar-right { display: flex; align-items: center; gap: 10px; }

/* Ô tìm kiếm nhỏ trong topbar (thiết kế v2) */
.to-topbar-search {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 999px; overflow: hidden;
}
.to-topbar-search input[type="search"] {
  background: transparent; border: 0; outline: none;
  color: var(--to-text); font-size: .72rem; padding: 6px 12px; width: 150px;
}
.to-topbar-search input::placeholder { color: var(--to-muted); }
.to-topbar-search button {
  background: transparent; border: 0; color: var(--to-navy);
  cursor: pointer; padding: 4px 10px 4px 0; font-size: .8rem;
}

/* Icon tròn mạng xã hội */
.to-social { display: flex; align-items: center; gap: 6px; }
.to-social a {
  display: flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 999px;
  background: #fff; font-size: .8rem; line-height: 1;
}
.to-social a:hover { transform: scale(1.1); }
.to-social svg { width: 16px; height: 16px; }

/* Nút Tuyển dụng đỏ */
.to-tag-btn {
  background: var(--to-danger); color: #fff !important; padding: 5px 14px;
  border-radius: 999px; font-weight: 700; font-size: .72rem;
}
.to-tag-btn:hover { background: #b91c1c; }

/* Header chính — nền trắng (thiết kế v2) */
.to-header {
  background: var(--to-white);
  position: sticky; top: 0; z-index: 999;
  box-shadow: var(--to-shadow-sm);
}
.to-header-inner {
  max-width: var(--to-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; min-height: 66px;
}
.to-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.to-logo img { max-height: 44px; width: auto; }
.to-logo-text {
  font-family: var(--to-font-head); font-weight: 900; font-size: 1.3rem;
  color: var(--to-navy); letter-spacing: .02em;
}
.to-logo-text span { color: var(--to-navy); }

.to-nav { margin-left: auto; }
.to-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.to-nav li { position: relative; }
.to-nav a {
  display: block; padding: 22px 14px;
  color: var(--to-text); font-family: var(--to-font-head);
  font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.to-nav li:hover > a, .to-nav .current-menu-item > a { color: var(--to-yellow-2); }
.to-nav .sub-menu {
  display: none; position: absolute; left: 0; top: 100%;
  background: #fff; min-width: 240px; z-index: 1000;
  box-shadow: var(--to-shadow-lg); border-radius: 0 0 var(--to-r-md) var(--to-r-md);
  padding: 6px 0;
}
.to-nav .sub-menu a {
  color: var(--to-text); text-transform: none; letter-spacing: 0;
  font-weight: 600; padding: 10px 18px; font-size: .85rem;
}
.to-nav .sub-menu a:hover { background: var(--to-navy); color: var(--to-yellow); }
.to-nav li:hover > .sub-menu { display: block; }

/* ---- Mega menu (mục có class "mega", vd Sản Phẩm) ---- */
.to-nav li.mega { position: static; }
.to-nav li.mega > .sub-menu {
  left: 0; right: 0; width: 100%;
  min-width: 0;
  padding: 26px 32px 30px;
  border-radius: 0 0 12px 12px;
}
.to-nav li.mega:hover > .sub-menu { display: flex; flex-wrap: wrap; gap: 20px 22px; }
.to-nav li.mega > .sub-menu > li {
  flex: 1 1 150px; min-width: 140px; position: static;
}
/* Tiêu đề cột (cấp 2) */
.to-nav li.mega > .sub-menu > li > a {
  color: var(--to-navy);
  font-family: var(--to-font-head);
  font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 0 0 10px; margin-bottom: 6px;
  border-bottom: 2px solid var(--to-yellow);
  pointer-events: none;
}
.to-nav li.mega > .sub-menu > li > a:hover { background: transparent; }
/* Các mục trong cột (cấp 3) — luôn hiện, không cần hover */
.to-nav li.mega > .sub-menu > li > .sub-menu {
  position: static; display: block; box-shadow: none;
  min-width: 0; padding: 0; border-radius: 0;
}
.to-nav li.mega > .sub-menu > li > .sub-menu a {
  padding: 7px 10px; margin: 0 -10px; border-radius: 6px;
  font-size: .85rem; font-weight: 600; color: var(--to-text);
}
.to-nav li.mega > .sub-menu > li > .sub-menu a:hover { background: var(--to-navy); color: var(--to-yellow); }

.to-header-icons { display: flex; align-items: center; gap: 18px; }
.to-header-icons a { color: var(--to-navy); font-size: 1.25rem; line-height: 1; position: relative; }
.to-header-icons a:hover { color: var(--to-navy-2); }

/* Link tài khoản / đăng nhập (nằm trên topbar) */
.to-topbar .to-account-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.to-topbar .to-account-link:hover { color: var(--to-yellow); }
.to-account-icon { display: block; flex-shrink: 0; }
.to-account-text {
  font-family: var(--to-font-head); font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .03em;
}
.to-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--to-danger); color: #fff;
  font-size: .62rem; font-weight: 700;
  min-width: 17px; height: 17px; line-height: 17px;
  border-radius: 999px; text-align: center; padding: 0 4px;
}

.to-menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--to-navy); padding: 6px 10px;
}

/* Search form trong header (ẩn hiện) */
.to-header-search { display: none; background: var(--to-navy-2); padding: 12px 0; }
.to-header-search.is-open { display: block; }
.to-header-search form { display: flex; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.to-header-search input[type="search"] {
  flex: 1; padding: 12px 16px; border: 0;
  border-radius: var(--to-r-md) 0 0 var(--to-r-md); font-size: .95rem; min-width: 0;
}
.to-header-search button {
  padding: 0 22px; background: var(--to-yellow); color: var(--to-on-yellow);
  border: 0; border-radius: 0 var(--to-r-md) var(--to-r-md) 0; cursor: pointer; font-weight: 700;
}

/* ==========================================================================
   4. Hero + Carousel
   ========================================================================== */
.to-hero-carousel { position: relative; overflow: hidden; }
.to-slide { display: none; }
.to-slide.is-active { display: block; animation: to-fade .5s ease; }
@keyframes to-fade { from { opacity: .35; } to { opacity: 1; } }

.to-slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.to-slide-arrow:hover { background: rgba(255,255,255,.32); }
.to-prev { left: 18px; }
.to-next { right: 18px; }
.to-slide-dots {
  position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 8px; justify-content: center;
}
.to-dot {
  width: 11px; height: 11px; border-radius: 999px; padding: 0; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer; transition: all .2s ease;
}
.to-dot.is-active { background: var(--to-yellow); width: 28px; }

.to-hero {
  background: radial-gradient(120% 160% at 85% 10%, var(--to-navy-2) 0%, var(--to-navy) 45%, var(--to-deep) 100%);
  color: #fff;
  padding: 72px 0;
  overflow: hidden;
}
.to-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}
.to-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: .4em;
}
.to-hero h1 .to-accent { color: var(--to-yellow); }
.to-hero p { font-size: 1.05rem; color: #d5def3; max-width: 560px; margin: 0 0 1.6em; }
.to-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.to-hero-media {
  border-radius: var(--to-r-xl); overflow: hidden;
  box-shadow: var(--to-shadow-lg);
  background: #000; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.to-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   5. Thanh quà tặng (announcement)
   ========================================================================== */
.to-giftbar { background: var(--to-yellow); }
.to-giftbar .to-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.to-giftbar-text { font-weight: 700; color: var(--to-on-yellow); font-size: .95rem; }
.to-giftbar .to-btn { background: var(--to-deep); color: #fff !important; padding: 10px 22px; font-size: .75rem; }
.to-giftbar .to-btn:hover { background: var(--to-navy); }

/* ==========================================================================
   5b. Quick-links (icon điều hướng nhanh dưới hero — kiểu BRS)
   ========================================================================== */
.to-quicklinks { background: #fff; padding: 30px 0; border-bottom: 1px solid var(--to-bg-soft); }
.to-ql-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Dải kiểu BRS: [icon 2x2] [card 1] [card 2] */
.to-brs-band { display: grid; grid-template-columns: minmax(240px, 1.05fr) 1fr 1fr; gap: 26px; align-items: stretch; }
.to-ql-grid--2x2 { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; align-content: center; }

.to-feature-card { display: flex; flex-direction: column; }
.to-feature-media {
  position: relative; aspect-ratio: 16/10; border-radius: var(--to-r-lg);
  overflow: hidden; background: var(--to-navy); box-shadow: var(--to-shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.to-feature-card:hover .to-feature-media { box-shadow: var(--to-shadow-md); transform: translateY(-4px); }
.to-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.to-feat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--to-danger); color: #fff;
  font-family: var(--to-font-head); font-weight: 800; font-size: .66rem;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.to-feature-body { padding: 13px 6px 0; text-align: center; }
.to-feature-body h3 { font-family: var(--to-font-head); font-weight: 800; font-size: 1.15rem; color: var(--to-navy); margin: 0 0 3px; }
.to-feature-body p { color: var(--to-muted); font-size: .86rem; margin: 0; }

@media (max-width: 900px) {
  .to-brs-band { grid-template-columns: 1fr; gap: 22px; }
  .to-ql-grid--2x2 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .to-ql-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
}
.to-ql { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.to-ql-icon {
  position: relative;
  width: 78px; height: 78px; border-radius: 999px;
  background: var(--to-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--to-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.to-ql:hover .to-ql-icon { transform: translateY(-5px); box-shadow: var(--to-shadow-md); }
.to-ql:hover .to-ql-icon svg { transform: scale(1.08); }
.to-ql-icon svg { width: 36px; height: 36px; transition: transform .15s ease; }

/* Màu riêng từng icon */
.to-ql--new  .to-ql-icon { background: var(--to-navy); color: #fff; }
.to-ql--deal .to-ql-icon { background: var(--to-danger); color: #fff; }
.to-ql--learn .to-ql-icon { background: var(--to-green); color: #fff; }
.to-ql--gift .to-ql-icon { background: var(--to-yellow); color: var(--to-navy); }

/* Badge góc icon */
.to-ql-badge {
  position: absolute; top: -3px; right: -8px;
  background: var(--to-danger); color: #fff;
  font-family: var(--to-font-head); font-weight: 800; font-size: .56rem;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0,0,0,.22); line-height: 1.5;
}
.to-ql--new .to-ql-badge { background: var(--to-green); }
.to-ql-badge--free { background: var(--to-danger); }

/* Nhãn + dòng phụ */
.to-ql-label {
  font-family: var(--to-font-head); font-weight: 700; font-size: .82rem;
  color: var(--to-text); text-transform: uppercase; letter-spacing: .02em;
  margin-top: 4px;
}
.to-ql-sub { font-size: .72rem; color: var(--to-muted); font-weight: 500; }

/* Rung nhẹ cho hộp quà (chỉ 1 icon động, tránh loạn mắt) */
@keyframes to-gift-wiggle {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-9deg); }
  93% { transform: rotate(9deg); }
  96% { transform: rotate(-6deg); }
}
.to-ql--gift .to-ql-icon svg { animation: to-gift-wiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.to-ql--gift:hover .to-ql-icon svg { animation: none; }

@media (max-width: 600px) {
  .to-ql-grid { gap: 8px; }
  .to-ql-icon { width: 58px; height: 58px; }
  .to-ql-icon svg { width: 27px; height: 27px; }
  .to-ql-label { font-size: .64rem; letter-spacing: 0; }
  .to-ql-sub { display: none; }
}

/* ==========================================================================
   5b. Bộ 3 ô dưới hero: Khuyến Mãi · Kiến Thức Người Mới · Quà Tặng
   ========================================================================== */
.to-trio { background: #fff; padding: 34px 0; border-bottom: 1px solid var(--to-bg-soft); }
.to-trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.to-trio-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 2px solid var(--to-bg-soft); border-radius: var(--to-r-lg);
  padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,10,46,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.to-trio-card:hover { transform: translateY(-4px); box-shadow: var(--to-shadow-lg); }
/* Viền nổi bật theo màu icon */
.to-trio--deal  { border-color: var(--to-danger); }
.to-trio--learn { border-color: var(--to-green); }
.to-trio--gift  { border-color: var(--to-yellow-2); }
.to-trio-icon {
  position: relative; flex: 0 0 auto;
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--to-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--to-shadow-sm); transition: transform .15s ease;
}
.to-trio-card:hover .to-trio-icon { transform: scale(1.06); }
.to-trio-icon svg { width: 30px; height: 30px; }
.to-trio--deal  .to-trio-icon { background: var(--to-danger); color: #fff; }
.to-trio--learn .to-trio-icon { background: var(--to-green); color: #fff; }
.to-trio--gift  .to-trio-icon { background: var(--to-yellow); color: var(--to-navy); }
.to-trio--gift .to-trio-icon svg { animation: to-gift-wiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.to-trio--gift:hover .to-trio-icon svg { animation: none; }
.to-trio-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--to-danger); color: #fff;
  font-family: var(--to-font-head); font-weight: 800; font-size: .56rem;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0,0,0,.22); line-height: 1.5;
}
.to-trio-text { display: flex; flex-direction: column; gap: 3px; }
.to-trio-title {
  font-family: var(--to-font-head); font-weight: 800; font-size: 1.02rem;
  color: var(--to-navy); line-height: 1.2;
}
.to-trio-desc { font-size: .82rem; color: var(--to-muted); }
@media (max-width: 820px) { .to-trio-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ==========================================================================
   5c. Góc Kiến Thức — 3 khối
   ========================================================================== */
.to-know-section { background: var(--to-bg-soft); }
.to-know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.to-know-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--to-bg-soft); border-radius: var(--to-r-lg);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.to-know-card:hover { box-shadow: var(--to-shadow-md); transform: translateY(-5px); }
.to-know-media {
  position: relative; display: block; aspect-ratio: 16/9;
  overflow: hidden; background: var(--to-navy);
}
.to-know-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.to-know-card:hover .to-know-media img { transform: scale(1.07); }
.to-know-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.to-know-body h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--to-navy); }
.to-know-body p { font-size: .9rem; color: var(--to-muted); margin: 0 0 16px; flex: 1; }
.to-know-link {
  align-self: flex-start;
  font-family: var(--to-font-head); font-weight: 700; font-size: .82rem;
  background: var(--to-yellow); color: var(--to-on-yellow);
  text-transform: uppercase; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  transition: background .15s ease, box-shadow .15s ease;
}
.to-know-arrow { transition: transform .15s ease; }
.to-know-card:hover .to-know-arrow { transform: translateX(5px); }
.to-know-card:hover .to-know-link { background: var(--to-yellow-2); box-shadow: 0 4px 12px rgba(233,196,0,.4); }
@media (max-width: 800px) { .to-know-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. Khối thống kê (trust strip)
   ========================================================================== */
.to-stats { background: var(--to-white); border-bottom: 1px solid var(--to-bg-soft); }
.to-stats .to-container {
  display: flex; justify-content: center; gap: 0;
  padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap;
}
.to-stat {
  text-align: center; padding: 0 56px;
  border-left: 1px solid var(--to-outline);
}
.to-stat:first-child { border-left: 0; }
.to-stat-num {
  font-family: var(--to-font-head); font-weight: 900;
  font-size: 1.8rem; color: var(--to-navy); line-height: 1.1;
}
.to-stat-label {
  font-size: .72rem; font-weight: 500; color: var(--to-muted);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 4px;
}

/* ==========================================================================
   7. Section chung
   ========================================================================== */
.to-section { padding: 56px 0; }
.to-section-alt { background: var(--to-bg-soft); }
.to-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.to-section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.to-section-head h2 { margin: 0 0 6px; }
.to-section-sub { color: var(--to-muted); margin: 0; font-size: .95rem; }
.to-view-all { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.to-view-all:hover { color: var(--to-navy-2); }

/* ==========================================================================
   8. WooCommerce — card sản phẩm kiểu Living Ocean
   ========================================================================== */
.woocommerce ul.products li.product {
  background: var(--to-white);
  border: 1px solid var(--to-bg-soft);
  border-radius: var(--to-r-lg);
  overflow: hidden;
  padding-bottom: 16px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--to-shadow-md); transform: translateY(-3px); }
.woocommerce ul.products li.product img { margin-bottom: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--to-font-head); font-weight: 700;
  font-size: .92rem; padding: 12px 14px 0; color: var(--to-text); line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  font-family: var(--to-font-head);
  color: var(--to-navy); font-weight: 900; font-size: 1.05rem; padding: 4px 14px 0;
}
.woocommerce ul.products li.product .price ins { color: var(--to-danger); text-decoration: none; }
.woocommerce ul.products li.product .button {
  margin: 12px 14px 0; background: var(--to-navy); color: #fff;
  border-radius: var(--to-r-md); font-weight: 700; font-size: .8rem;
}
.woocommerce ul.products li.product .button:hover { background: var(--to-navy-2); }
.woocommerce span.onsale {
  background: var(--to-danger); border-radius: 999px;
  font-weight: 700; min-height: auto; line-height: 2.2; padding: 0 12px;
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-family: var(--to-font-head); color: var(--to-navy); font-size: 1.7rem; font-weight: 900;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--to-yellow); color: var(--to-on-yellow);
  border-radius: var(--to-r-md); padding: 14px 30px; font-weight: 700;
  text-transform: uppercase; font-size: .8rem; letter-spacing: .04em;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--to-yellow-2); color: var(--to-on-yellow); }
.woocommerce .woocommerce-breadcrumb { font-size: .8rem; color: var(--to-muted); }

/* Video thực tế trên trang sản phẩm (ý tưởng BRStv) */
.to-product-video { margin: 32px 0; }
.to-product-video h3 {
  font-family: var(--to-font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--to-navy); margin-bottom: 14px;
}
.to-video-embed {
  position: relative; width: 100%; max-width: 720px;
  aspect-ratio: 16/9; border-radius: var(--to-r-lg); overflow: hidden;
  box-shadow: var(--to-shadow-md); background: #000;
}
.to-video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Nút hỏi nhanh trên trang sản phẩm (CRO) */
.tt-product-contact { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.tt-product-contact a {
  flex: 1; min-width: 170px; text-align: center; padding: 13px 16px;
  border-radius: var(--to-r-md); font-weight: 700; color: #fff !important;
  font-family: var(--to-font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
}
.tt-product-contact .tt-call-btn { background: var(--to-navy); }
.tt-product-contact .tt-call-btn:hover { background: var(--to-navy-2); }
.tt-product-contact .tt-zalo-btn { background: var(--to-green); }
.tt-product-contact .tt-zalo-btn:hover { background: #17813f; }

/* ==========================================================================
   9. Blog cards — Kiến Thức Thủy Sinh
   ========================================================================== */
.to-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.to-post-card {
  background: var(--to-white);
  border: 1px solid var(--to-bg-soft);
  border-radius: var(--to-r-lg);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.to-post-card:hover { box-shadow: var(--to-shadow-md); transform: translateY(-3px); }
.to-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.to-post-card-body { padding: 18px 20px 22px; }
.to-chip {
  display: inline-block; background: var(--to-bg-soft); color: var(--to-navy);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.to-post-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.to-post-card h3 a { color: var(--to-text); }
.to-post-card h3 a:hover { color: var(--to-navy); }
.to-post-excerpt { font-size: .88rem; color: var(--to-muted); margin: 0; }
.to-post-meta { font-size: .75rem; color: var(--to-muted); margin-bottom: 8px; }

/* ==========================================================================
   9b. Video Trải Nghiệm (thiết kế v3)
   ========================================================================== */
.to-videos { background: var(--to-bg-soft); padding: 56px 0; }
.to-videos .to-section-head h2, .to-videos h2 { color: var(--to-navy); }
.to-videos .to-section-sub { color: var(--to-muted); max-width: 560px; margin: 0 auto; }
.to-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-top: 32px;
}
.to-video-card {
  display: block; border-radius: var(--to-r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--to-bg-soft); position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.to-video-card:hover { transform: translateY(-3px); box-shadow: var(--to-shadow-lg); }
.to-video-thumb {
  display: block; position: relative; aspect-ratio: 16/9;
  background: radial-gradient(120% 150% at 50% 0%, #1a2a55 0%, #0b1330 70%);
}
.to-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.to-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--to-yellow); color: var(--to-on-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 18px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.to-video-card:hover .to-video-play { transform: translate(-50%, -50%) scale(1.12); }
.to-video-title {
  display: block; padding: 12px 16px; color: var(--to-navy);
  font-family: var(--to-font-head); font-weight: 700; font-size: .82rem;
}

/* Khối "Sản Phẩm Về Trong Tuần" — 4 ô video kéo từ YouTube */
.to-week-section { background: #fff; }
.to-week-section .to-section-head h2 { color: var(--to-navy); }
.to-week-section .to-section-sub { max-width: 560px; margin: 0 auto; }
.to-week-grid { grid-template-columns: repeat(4, 1fr); }
.to-week-grid .to-video-card { box-shadow: 0 2px 10px rgba(0,10,46,.06); }
.to-week-grid .to-video-title { font-size: .78rem; }
@media (max-width: 900px) { .to-week-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .to-week-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Khối Ebook / lead magnet
   ========================================================================== */
.to-ebook { padding: 56px 0; background: var(--to-bg-soft); }
.to-ebook-panel {
  background: radial-gradient(140% 180% at 90% 0%, var(--to-navy-2) 0%, var(--to-navy) 55%, var(--to-deep) 100%);
  border-radius: var(--to-r-xl);
  padding: 56px;
  color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 40px; align-items: center;
  box-shadow: var(--to-shadow-lg);
}
.to-ebook-chip {
  display: inline-block; background: var(--to-yellow); color: var(--to-on-yellow);
  font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.to-ebook h2 { color: #fff; margin-bottom: .5em; }
.to-ebook p { color: #d5def3; margin: 0 0 1.4em; font-size: .95rem; }
.to-ebook-form { display: flex; gap: 0; max-width: 460px; }
.to-ebook-form input[type="email"] {
  flex: 1; padding: 14px 16px; border: 0;
  border-radius: var(--to-r-md) 0 0 var(--to-r-md); font-size: .9rem; min-width: 0;
}
.to-ebook-form button {
  background: var(--to-yellow); color: var(--to-on-yellow); border: 0;
  padding: 0 24px; border-radius: 0 var(--to-r-md) var(--to-r-md) 0;
  font-family: var(--to-font-head); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
.to-ebook-form button:hover { background: var(--to-yellow-2); }
.to-ebook-thanks {
  background: rgba(21,128,61,.25); border: 1px solid var(--to-success);
  border-radius: var(--to-r-md); padding: 12px 18px; font-weight: 600; max-width: 460px;
}
.to-ebook-media { text-align: center; }
.to-ebook-media img { max-height: 300px; border-radius: var(--to-r-lg); box-shadow: var(--to-shadow-lg); }

/* ==========================================================================
   11. Nội dung trong (single/page/archive)
   ========================================================================== */
.to-content-area { padding: 40px 0 64px; }
.to-single .entry-header { max-width: 780px; margin: 0 auto 24px; }
.to-single .entry-content { max-width: 780px; margin: 0 auto; font-size: 1.1rem; }
.to-single .entry-content img { border-radius: var(--to-r-lg); }
.to-single .entry-content h2 { margin-top: 1.6em; }
.to-archive-header { margin-bottom: 30px; }
.to-archive-header .archive-description { color: var(--to-muted); }

.to-pagination { margin-top: 40px; text-align: center; }
.to-pagination .page-numbers {
  display: inline-block; padding: 9px 15px; margin: 0 3px;
  border: 1px solid var(--to-outline); border-radius: var(--to-r-md);
  color: var(--to-text); font-weight: 700; font-size: .85rem;
}
.to-pagination .page-numbers.current,
.to-pagination .page-numbers:hover { background: var(--to-navy); color: #fff; border-color: var(--to-navy); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.to-footer { background: var(--to-deep); color: #b9c4dd; }
.to-footer a { color: #fff; }
.to-footer a:hover { color: var(--to-yellow); }
.to-footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding: 52px 0 36px;
}
.to-footer-brand {
  font-family: var(--to-font-head); font-weight: 900; font-size: 1.25rem;
  color: var(--to-yellow); margin-bottom: 12px;
}
.to-footer h3 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 16px;
}
.to-footer ul { list-style: none; margin: 0; padding: 0; }
.to-footer li { margin-bottom: 10px; font-size: .88rem; }
.to-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; font-size: .75rem; text-align: center; color: #7f8cab;
}

/* ==========================================================================
   13. Thanh liên hệ mobile + nút gọi nổi (CRO — giữ từ theme cũ)
   ========================================================================== */
.tt-mobile-contact-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff; border-top: 1px solid var(--to-bg-soft);
  box-shadow: 0 -2px 12px rgba(3,57,166,.15);
}
.tt-mobile-contact-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 4px 10px; font-size: .68rem; font-weight: 700; color: var(--to-text);
}
.tt-mobile-contact-bar .tt-mcb-icon { font-size: 1.25rem; line-height: 1; }
.tt-mobile-contact-bar .tt-mcb-call { color: var(--to-navy); }
.tt-mobile-contact-bar .tt-mcb-zalo { color: var(--to-green); }
.tt-mobile-contact-bar .tt-mcb-msg { color: #0084ff; }

/* Nút Messenger nổi (thiết kế v3) */
.to-float-msg {
  position: fixed; right: 26px; bottom: 92px; z-index: 9999;
  width: 52px; height: 52px; border-radius: 999px;
  background: #0084ff; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: var(--to-shadow-lg);
}
.to-float-msg:hover { background: #006fd6; }

/* Footer: dãy icon MXH dùng lại .to-social */
.to-footer .to-social { margin-top: 6px; }
.to-footer .to-social a { background: rgba(255,255,255,.92); }

.tt-float-call {
  position: fixed; right: 26px; bottom: 22px; z-index: 9999;
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--to-green); color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--to-shadow-lg);
  animation: to-pulse 2s infinite;
}
.tt-float-call svg { width: 27px; height: 27px; }
@keyframes to-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,85,.55); }
  70% { box-shadow: 0 0 0 16px rgba(31,157,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .to-hero-grid { grid-template-columns: 1fr; }
  .to-hero-media { min-height: 200px; }
  .to-ebook-panel { grid-template-columns: 1fr; padding: 36px 28px; }
  .to-footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .to-menu-toggle { display: block; margin-left: auto; }
  .to-nav { display: none; margin-left: 0; flex-basis: 100%; }
  .to-nav.is-open { display: block; }
  .to-nav ul { flex-direction: column; }
  .to-nav a { padding: 13px 8px; border-bottom: 1px solid var(--to-bg-soft); }
  .to-nav .sub-menu {
    position: static; display: block; box-shadow: none;
    background: var(--to-bg-soft); border-radius: 0;
  }
  .to-nav .sub-menu a { color: var(--to-muted); padding-left: 28px; }
  .to-topbar-search { display: none; }
  /* Mega menu về dạng accordion trên mobile */
  .to-nav li.mega { position: static; }
  .to-nav li.mega > .sub-menu,
  .to-nav li.mega:hover > .sub-menu { position: static; display: block; flex-direction: column; width: auto; padding: 0; }
  .to-nav li.mega > .sub-menu > li > a { color: #d5def3; border-bottom: 0; padding: 10px 8px 4px 28px; pointer-events: auto; }
  .to-nav li.mega > .sub-menu > li > .sub-menu a { color: var(--to-muted); padding-left: 40px; }
  .to-header-inner { flex-wrap: wrap; padding-bottom: 6px; }
}

@media (max-width: 768px) {
  .tt-mobile-contact-bar { display: flex; }
  .tt-float-call { display: none; }
  .to-float-msg { display: none; }
  .to-slide-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .to-prev { left: 8px; } .to-next { right: 8px; }
  .to-account-text { display: none; }
  body { padding-bottom: 58px; }
  .to-section { padding: 40px 0; }
  .to-hero { padding: 48px 0; }
  .to-stat { padding: 0 24px; }
  .to-stat-num { font-size: 1.4rem; }
  .to-footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .to-topbar-right .to-hide-mobile { display: none; }
}
