/*
Theme Name: Phương Hoàng Lâm
Theme URI: https://phuonghoanglam.com
Author: PHL Digital
Description: Theme WordPress cho Phương Hoàng Lâm - giải pháp toàn diện cho sức khỏe vật nuôi. Tương thích WooCommerce & ACF.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: phl
*/

/* =========================================================
   1. DESIGN TOKENS (dùng lại xuyên suốt site, KHÔNG định nghĩa lại)
   ========================================================= */
:root{
  /* Màu thương hiệu */
  --c-primary-dark:   #07563f;
  --c-primary:        #0b7a55;
  --c-primary-light:  #15905e;

  /* Màu chữ / heading */
  --c-heading:        #043d30;
  --c-heading-alt:    #12352b;
  --c-heading-soft:   #17372d;
  --c-text-muted:     #667b74;

  /* Màu nền phụ */
  --c-bg-light:       #eaf6f0;
  --c-bg-lighter:     #f0f8f4;
  --c-bg-soft:        #f5faf8;
  --c-bg-blue:        #dff1ff;
  --c-bg-pill:        #d9f0e4;

  /* Chữ đoạn văn dài (trang Giới thiệu và các trang nội dung) */
  --c-text-body:      #42534f;

  /* Màu nhấn xanh dương - tên thương hiệu trên trang chi tiết sản phẩm */
  --c-info-blue:      #123b9b;

  /* Viền */
  --c-border:         #dde9e3;
  --c-border-soft:    #e2eee6;

  /* Nhấn / giá / khuyến mãi */
  --c-accent:         #f05235;

  /* Footer */
  --c-footer-bg:      #043d30;
  --c-footer-text:    #c8ddd5;
  --c-footer-text-soft: #a9c5ba;

  /* Trung tính */
  --c-white:          #ffffff;
  --c-black:          #000000;

  /* Font */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-accent:  'Dancing Script', cursive;
  --font-serif:   'Lora', Georgia, serif;

  /* Cỡ chữ */
  --fs-xs:    .6875rem; /* 11px */
  --fs-sm:    .75rem;   /* 12px */
  --fs-base:  .8125rem; /* 13px */
  --fs-md:    .875rem;  /* 14px */
  --fs-lg:    .9375rem; /* 15px */
  --fs-xl:    1rem;     /* 16px */
  --fs-2xl:   1.0625rem;/* 17px */
  --fs-3xl:   1.125rem; /* 18px */
  --fs-h4:    1.5rem;   /* 24px */
  --fs-h3:    1.75rem;  /* 28px */
  --fs-h2:    2rem;     /* 32px */
  --fs-h1:    3rem;     /* 48px */
  --fs-display: 2.8125rem; /* 45px */

  /* Bo góc */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  /* Đổ bóng */
  --shadow-sm: 0px 4px 16px 0px rgba(23,55,45,.04);
  --shadow-md: 0px 6px 18px 0px rgba(10,75,53,.08);

  /* Layout */
  --container-max: 1500px;
  --container-padding: 16px;
  --grid-gutter: 24px;

  --transition-base: all .25s ease;

  /* JS set biến này bằng chiều cao thực của header khi sticky */
  --header-sticky-height: 0px;
}

@media (min-width: 768px){
  :root{ --container-padding: 40px; }
}
@media (min-width: 1400px){
  :root{ --container-padding: 72px; }
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--c-heading-alt);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; transition: var(--transition-base); }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }
input, textarea, select, button{ font-family: inherit; font-size: inherit; }
figure{ margin: 0; }

body.has-sticky-header{
  padding-top: var(--header-sticky-height);
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-primary);
  color: var(--c-heading-alt);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1{ font-size: var(--fs-h1); font-weight: 800; line-height: 1.08; }
h2{ font-size: var(--fs-h3); }
h3{ font-size: var(--fs-h4); }
h4{ font-size: var(--fs-3xl); }
h5{ font-size: var(--fs-2xl); }
h6{ font-size: var(--fs-xl); }

p{ margin: 0 0 16px; }
p:last-child{ margin-bottom: 0; }

.text-accent-script{
  font-family: var(--font-accent);
  color: var(--c-primary-dark);
  font-weight: 400;
}

/* Heading dạng serif (Lora) - dùng cho tiêu đề section các trang nội dung (Giới thiệu...) */
.heading-serif{
  font-family: var(--font-serif);
  color: var(--c-heading);
  font-weight: 700;
}
.text-body{ color: var(--c-text-body) !important; }

/* Cỡ chữ tiện ích */
.fs-xs{ font-size: var(--fs-xs) !important; }
.fs-sm{ font-size: var(--fs-sm) !important; }
.fs-base{ font-size: var(--fs-base) !important; }
.fs-md{ font-size: var(--fs-md) !important; }
.fs-lg{ font-size: var(--fs-lg) !important; }
.fs-xl{ font-size: var(--fs-xl) !important; }

.fw-normal{ font-weight: 400 !important; }
.fw-medium{ font-weight: 500 !important; }
.fw-semibold{ font-weight: 600 !important; }
.fw-bold{ font-weight: 700 !important; }
.fw-extrabold{ font-weight: 800 !important; }

.text-center{ text-align: center !important; }
.text-left{ text-align: left !important; }
.text-right{ text-align: right !important; }

.text-primary{ color: var(--c-primary) !important; }
.text-primary-dark{ color: var(--c-primary-dark) !important; }
.text-heading{ color: var(--c-heading) !important; }
.text-muted{ color: var(--c-text-muted) !important; }
.text-white{ color: var(--c-white) !important; }
.text-accent{ color: var(--c-accent) !important; }

.bg-primary{ background: var(--c-primary) !important; }
.bg-primary-dark{ background: var(--c-primary-dark) !important; }
.bg-light{ background: var(--c-bg-light) !important; }
.bg-white{ background: var(--c-white) !important; }

/* =========================================================
   4. GRID (kiểu Bootstrap: container / row / col)
   ========================================================= */
.container{
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.container-fluid{
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.row{
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--grid-gutter) / -2);
  margin-right: calc(var(--grid-gutter) / -2);
}
.row.g-0{ --grid-gutter: 0px; }
.row.g-sm{ --grid-gutter: 12px; }
.row.g-lg{ --grid-gutter: 32px; }

[class^="col"]{
  width: 100%;
  padding-left: calc(var(--grid-gutter) / 2);
  padding-right: calc(var(--grid-gutter) / 2);
}
.col{ flex: 1 0 0%; }
.col-auto{ flex: 0 0 auto; width: auto; }

/* Tiện ích bỏ padding gutter của .col khi cần (ví dụ: cột sát mép container) */
.pl-0{ padding-left: 0 !important; }
.pr-0{ padding-right: 0 !important; }
.px-0{ padding-left: 0 !important; padding-right: 0 !important; }

.col-1{ flex: 0 0 auto; width: 8.3333%; }
.col-2{ flex: 0 0 auto; width: 16.6667%; }
.col-3{ flex: 0 0 auto; width: 25%; }
.col-4{ flex: 0 0 auto; width: 33.3333%; }
.col-5{ flex: 0 0 auto; width: 41.6667%; }
.col-6{ flex: 0 0 auto; width: 50%; }
.col-7{ flex: 0 0 auto; width: 58.3333%; }
.col-8{ flex: 0 0 auto; width: 66.6667%; }
.col-9{ flex: 0 0 auto; width: 75%; }
.col-10{ flex: 0 0 auto; width: 83.3333%; }
.col-11{ flex: 0 0 auto; width: 91.6667%; }
.col-12{ flex: 0 0 auto; width: 100%; }

@media (min-width: 768px){
  .col-md{ flex: 1 0 0%; width: auto; }
  .col-md-auto{ flex: 0 0 auto; width: auto; }
  .col-md-1{ flex: 0 0 auto; width: 8.3333%; }
  .col-md-2{ flex: 0 0 auto; width: 16.6667%; }
  .col-md-3{ flex: 0 0 auto; width: 25%; }
  .col-md-4{ flex: 0 0 auto; width: 33.3333%; }
  .col-md-5{ flex: 0 0 auto; width: 41.6667%; }
  .col-md-6{ flex: 0 0 auto; width: 50%; }
  .col-md-7{ flex: 0 0 auto; width: 58.3333%; }
  .col-md-8{ flex: 0 0 auto; width: 66.6667%; }
  .col-md-9{ flex: 0 0 auto; width: 75%; }
  .col-md-10{ flex: 0 0 auto; width: 83.3333%; }
  .col-md-11{ flex: 0 0 auto; width: 91.6667%; }
  .col-md-12{ flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px){
  .col-lg{ flex: 1 0 0%; width: auto; }
  .col-lg-auto{ flex: 0 0 auto; width: auto; }
  .col-lg-1{ flex: 0 0 auto; width: 8.3333%; }
  .col-lg-2{ flex: 0 0 auto; width: 16.6667%; }
  .col-lg-3{ flex: 0 0 auto; width: 25%; }
  .col-lg-4{ flex: 0 0 auto; width: 33.3333%; }
  .col-lg-5{ flex: 0 0 auto; width: 41.6667%; }
  .col-lg-6{ flex: 0 0 auto; width: 50%; }
  .col-lg-7{ flex: 0 0 auto; width: 58.3333%; }
  .col-lg-8{ flex: 0 0 auto; width: 66.6667%; }
  .col-lg-9{ flex: 0 0 auto; width: 75%; }
  .col-lg-10{ flex: 0 0 auto; width: 83.3333%; }
  .col-lg-11{ flex: 0 0 auto; width: 91.6667%; }
  .col-lg-12{ flex: 0 0 auto; width: 100%; }
}

.d-none{ display: none !important; }
.d-flex{ display: flex !important; }
.d-block{ display: block !important; }
.align-items-center{ align-items: center !important; }
.justify-content-between{ justify-content: space-between !important; }
.justify-content-center{ justify-content: center !important; }
.flex-wrap{ flex-wrap: wrap !important; }
.gap-1{ gap: 8px !important; }
.gap-2{ gap: 16px !important; }
.gap-3{ gap: 24px !important; }

@media (min-width: 768px){
  .d-md-none{ display: none !important; }
  .d-md-flex{ display: flex !important; }
  .d-md-block{ display: block !important; }
}
@media (min-width: 992px){
  .d-lg-none{ display: none !important; }
  .d-lg-flex{ display: flex !important; }
  .d-lg-block{ display: block !important; }
}

/* =========================================================
   5. BUTTON
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.btn-primary{ background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover{ background: var(--c-primary-dark); color: var(--c-white); }
.btn-outline{ background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover{ background: var(--c-primary); color: var(--c-white); }
.btn-light{ background: var(--c-white); color: var(--c-primary); }
.btn-light:hover{ background: var(--c-bg-light); }
.btn-sm{ padding: 8px 16px; font-size: var(--fs-sm); }
.btn-lg{ padding: 16px 28px; font-size: var(--fs-lg); }
.btn-block{ width: 100%; }
.btn-icon-circle{
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--c-primary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-base);
}
.btn-icon-circle:hover{ background: var(--c-primary-dark); }
.btn-icon-circle{ color: var(--c-white); }
.btn-icon-circle img, .btn-icon-circle .phl-icon{ width: 17px; height: 17px; }

/* =========================================================
   6. FORM
   ========================================================= */
.form-control{
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: var(--fs-base);
  color: var(--c-heading-alt);
  background: var(--c-white);
  outline: none;
  transition: var(--transition-base);
}
.form-control:focus{ border-color: var(--c-primary); }
.form-group{ margin-bottom: 20px; }
label{ display: inline-block; margin-bottom: 8px; font-weight: 600; font-size: var(--fs-md); color: var(--c-heading-alt); }

/* =========================================================
   7. COMPONENT DÙNG CHUNG
   ========================================================= */

/* Section */
.section{ padding-block: 46px; }
.section-lg{ padding-block: 64px; }
.section-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-title h2{ font-size: var(--fs-h3); font-weight: 600; color: var(--c-heading-alt); margin: 0; }
.section-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: var(--fs-base);
  white-space: nowrap;
}
.section-link:hover{ color: var(--c-primary-dark); }

/* Nút mũi tên tròn (hero slider, băng chuyền thương hiệu) */
.arrow-nav{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.87);
  color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-base);
}
.arrow-nav:hover{ background: var(--c-white); color: var(--c-primary-dark); }
.arrow-nav--ghost{ background: transparent; border: 0; }
.filter-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-heading-alt);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Icon inline SVG (Lucide) - màu icon ăn theo `color` CSS của phần tử cha */
.phl-icon{ display: inline-flex; flex-shrink: 0; }
.phl-icon svg{ width: 100%; height: 100%; display: block; }
.icon-14{ width: 14px; height: 14px; }
.icon-16{ width: 16px; height: 16px; }
.icon-17{ width: 17px; height: 17px; }
.icon-22{ width: 22px; height: 22px; }
.icon-28{ width: 28px; height: 28px; }
.icon-32{ width: 32px; height: 32px; }
.icon-34{ width: 34px; height: 34px; }

/* Icon tròn */
.icon-circle{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-bg-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.icon-circle img, .icon-circle .phl-icon{ width: 22px; height: 22px; }
.icon-circle--lg{ width: 85px; height: 85px; background: var(--c-bg-lighter); }
.icon-circle--lg img, .icon-circle--lg .phl-icon{ width: 50px; height: 50px; }
.icon-circle--ghost{ background: rgba(255,255,255,.13); color: var(--c-white); }
.icon-circle--white{ background: var(--c-white); }

/* Khối lợi ích (icon + tiêu đề + mô tả) - dùng ở Hero, Banner khuyến mãi, Vì sao chọn */
.hp-why-choose {padding: 40px 0;}
.benefit{ display: flex; align-items: center; gap: 16px; }
.benefit__body{ flex: 1; min-width: 0; }
.benefit__title{ font-weight: 700; font-size: var(--fs-md); color: var(--c-heading-alt); margin: 0 0 4px; }
.benefit__desc{ font-weight: 400; font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; line-height: 1.4; }
.benefit--on-dark .benefit__title{ color: var(--c-white); }
.benefit--on-dark .benefit__desc{ color: var(--c-footer-text); }

/* Thẻ / card cơ bản */
.card{
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.card-shadow-sm{ box-shadow: var(--shadow-sm); }
.card-shadow-md{ box-shadow: var(--shadow-md); }

/* Pill / badge */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--c-bg-light);
  color: var(--c-primary);
  font-weight: 700;
  font-size: var(--fs-xs);
  border-radius: var(--radius-pill);
}
.badge-discount{
  position: absolute;
  top: 11px; left: 11px;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* Giá */
.price{ display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.price__new{ font-weight: 800; font-size: var(--fs-lg); color: var(--c-heading-alt); }
.price--sale .price__new{ color: var(--c-accent); }
.price__old{ font-size: var(--fs-xs); color: var(--c-text-muted); text-decoration: line-through; }

/* Category card */
.category-card{
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  height: 100%;
  transition: var(--transition-base);
}
.category-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card__label{ font-weight: 600; font-size: var(--fs-lg); color: var(--c-heading-soft); line-height: 1.3; }

/* Lưới danh mục sản phẩm - dùng CSS Grid riêng vì số cột (7) không chia đều
   theo hệ 12 cột kiểu Bootstrap. */
.category-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
@media (max-width: 1199px){
  .category-grid{ grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 575px){
  .category-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Vật nuôi (tròn) */
.pet-card{ display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pet-card__img{
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-lighter);
}
.pet-card__img img{ width: 100%; height: 100%; object-fit: cover; }
.pet-card__name{ font-weight: 700; font-size: var(--fs-md); color: var(--c-heading-alt); }

/* Sản phẩm */
.product-card{
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  position: relative;
}
.product-card__thumb{ position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 214/190; background: var(--c-bg-lighter); }
.product-card__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.product-card__name{ font-size: var(--fs-lg); color: var(--c-heading-alt); margin: 0; }
.product-card__desc{ font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.product-card__brand{ font-size: var(--fs-xs); color: var(--c-text-muted); margin: 0; }
.product-card__footer{ margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Bài viết kiến thức */
.hp-ktty {padding: 48px 0;}
.post-card{
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card__thumb{ aspect-ratio: 418/190; background: var(--c-bg-lighter); overflow: hidden; }
.post-card__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card__body{ padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title{ font-size: var(--fs-2xl); font-weight: 400; color: var(--c-heading-alt); line-height: 1.35; margin: 0; }
.post-card__meta{ display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: auto; }

/* Thương hiệu */
.hp-thpp {padding: 42px 0;}
.brand-tile{
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}
.brand-tile:hover span {color: #F05235 !important;}
.brand-tile img{ max-height: 44px; width: auto; }

/* =========================================================
   8. HEADER
   ========================================================= */
.site-topbar{
  background: var(--c-primary-dark);
  color: var(--c-white);
  font-size: var(--fs-xs);
}
.site-topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-topbar__links{ display: flex; gap: 16px; }
.site-topbar__links a:hover{ color: var(--c-bg-light); }

.header-wrap{ position: relative; z-index: 500; background: var(--c-white); width: 100%; top: 0; }
.header-wrap.is-sticky{
  position: fixed;
  left: 0; right: 0; top: 0;
  box-shadow: var(--shadow-md);
  animation: phlSlideDown .25s ease;
}
@keyframes phlSlideDown{
  from{ transform: translateY(-12px); opacity: .6; }
  to{ transform: translateY(0); opacity: 1; }
}
.header-wrap.is-sticky .site-topbar{ display: none; }

.site-header{ padding-block: 20px; border-bottom: 0; }
.site-header .container{
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__logo{ flex-shrink: 0; }
.site-header__logo img{ height: 44px; width: auto; }

.site-search{
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.site-search input[type="text"],
.site-search input[type="search"]{
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-size: var(--fs-base);
  color: var(--c-heading-alt);
  outline: none;
}
.site-search input::placeholder{ color: var(--c-text-muted); }
.site-search button{
  background: var(--c-primary);
  width: 52px; height: 48px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.site-search button{ color: var(--c-white); }
.site-search button img, .site-search button .phl-icon{ width: 22px; height: 22px; }

.site-utility{ display: flex; gap: 24px; flex-shrink: 0; }
.site-utility__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  color: var(--c-black);
}
.site-utility__item svg {
  color: #0B7A55;
}
.site-utility__item img, .site-utility__item .phl-icon{ width: 22px; height: 22px; }
.site-utility__item .count{
  position: relative;
  top: -14px;
  left: 10px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 15px; height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav{ border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-white); }
.site-nav .container{ display: flex; align-items: center; gap: 32px; min-height: 58px; }
.site-nav__cat-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-md);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav__cat-toggle img, .site-nav__cat-toggle .phl-icon{ width: 22px; height: 22px; }
.site-nav__menu{ display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.site-nav__menu a{ color: var(--c-heading-alt); font-weight: 600; font-size: var(--fs-md); }
.site-nav__menu a:hover{ color: var(--c-primary); }

.mobile-nav-toggle{
  display: none;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-heading-alt);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-nav-toggle .phl-icon{ width: 22px; height: 22px; }
.mobile-nav-toggle .icon-close{ display: none; }
.site-nav.is-open .mobile-nav-toggle .icon-open{ display: none; }
.site-nav.is-open .mobile-nav-toggle .icon-close{ display: inline-flex; }

@media (max-width: 991px){
  .site-topbar .container{ flex-direction: column; gap: 4px; text-align: center; }
  .site-header .container{ flex-wrap: wrap; }
  .site-search{ order: 3; width: 100%; }
  .site-nav__menu{ display: none; }
  .site-nav.is-open .site-nav__menu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: 8px var(--container-padding) 16px;
  }
  .site-nav.is-open .site-nav__menu a{ display: block; padding: 10px 0; width: 100%; }
  .site-nav{ position: relative; }
  .mobile-nav-toggle{ display: inline-flex; }
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.newsletter{
  --newsletter-bg: none;
  background-color: var(--c-primary-dark);
  background-image: linear-gradient(to bottom, rgba(78,162,42,.4) 40%, rgba(29,60,16,.4)), var(--newsletter-bg);
  background-size: cover, cover;
  background-position: center, center;
  padding-block: 41px;
}
.newsletter .row{ align-items: center; }
.newsletter__icon{
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.newsletter__icon{ color: var(--c-primary); }
.newsletter__icon img, .newsletter__icon .phl-icon{ width: 34px; height: 34px; }
.newsletter__heading{ color: var(--c-white); font-size: var(--fs-h4); font-weight: 800; margin: 0 0 8px; }
.newsletter__desc{ color: var(--c-white); font-size: var(--fs-base); margin: 0; }
.newsletter-form{ display: flex; }
.newsletter-form .form-control{ border-radius: var(--radius-sm) 0 0 var(--radius-sm); border: 0; height: 50px; }
.newsletter-form button{
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  height: 50px;
}
.newsletter__consent{ color: var(--c-white); font-size: var(--fs-xs); margin-top: 10px; display: flex; align-items: center; gap: 8px; }

.site-footer{ background: var(--c-footer-bg); color: var(--c-footer-text); padding-top: 50px; padding-bottom: 24px; }
.site-footer a{ color: var(--c-footer-text); }
.site-footer a:hover{ color: var(--c-white); }
.site-footer__logo img{ height: 44px; width: auto; margin-bottom: 12px;}
.site-footer__company{ color: var(--c-white); font-size: var(--fs-base); margin-bottom: 8px; }
.site-footer__meta{ font-size: var(--fs-sm); color: var(--c-footer-text); margin: 0 0 6px; }
.site-footer__social{ display: flex; gap: 12px; margin-top: 12px; }
.site-footer__social a{ color: var(--c-footer-text); }
.site-footer__social a:hover{ color: var(--c-white); }
.site-footer__social img, .site-footer__social .phl-icon{ width: 22px; height: 22px; }
.footer-col-title {
  color: var(--c-white);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 14px;
}
.footer-links li{ margin-bottom: 8px; }
.footer-links a{ font-size: var(--fs-sm); }
.site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 20px;
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--c-footer-text-soft);
}

/* =========================================================
   10. TRANG 404 / TRANG MẶC ĐỊNH
   ========================================================= */
.page-header{ padding-block: 40px; border-bottom: 1px solid var(--c-border); margin-bottom: 40px; }
.page-header h1{ margin: 0; }
.error-404{ text-align: center; padding-block: 90px; }
.error-404__code{ font-size: 6rem; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 16px; }

/* =========================================================
   11. TRANG CHỦ - HERO / PROMO / BRAND (dùng riêng cho template-trang-chu.php)
   ========================================================= */
.hero-section{ position: relative; }
.hero-slide{
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-light);
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-block: 64px;
}
.hero-slide__tagline{ font-size: var(--fs-xl); margin: 0 0 16px; }
.hero-slide__heading{ font-size: clamp(1.75rem, 4vw, var(--fs-h1)); color: var(--c-heading); margin: 0 0 16px; }
.hero-slide__desc{ font-size: var(--fs-xl); color: var(--c-heading-alt); margin: 0 0 20px; max-width: 540px; }
.hero-slide__side-image{ max-width: 100%; margin-inline: auto; }
.hero-section .slick-dots{ display: none !important; }

.arrow-nav.hero-arrow--prev,
.arrow-nav.hero-arrow--next{
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
}
.hero-arrow--prev{ left: 20px; }
.hero-arrow--next{ right: 20px; }

.hero-section__quote{
  position: absolute;
  top: 33px;
  right: var(--container-padding);
  max-width: 330px;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: right;
  z-index: 4;
  pointer-events: none;
}
.hero-section__commitments {
  background: rgba(255,255,255,.87);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
}
@media (max-width: 991px){
  .hero-section__quote{ display: none; }
  .hero-section__commitments{ position: static; margin-top: 24px; background: var(--c-white); border: 1px solid var(--c-border); }
}

.promo-banner{
  background: linear-gradient(90deg, var(--c-primary-dark), var(--c-primary-light));
  border-radius: var(--radius-xl);
  padding: 34px 150px;
  color: var(--c-white);
}
.promo-banner__label{ font-size: var(--fs-lg); margin: 0 0 12px; }
.promo-banner__heading{
  color: var(--c-white);
  font-size: clamp(1.75rem, 4vw, var(--fs-display));
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
  margin: 0 0 20px;
}
.promo-banner__discount_image {
  position: relative;
}
.promo-banner__discount {
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 50%;
  width: 101px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  text-align: center;
  position: absolute;
  top: -26px;
  right: 54px;
}
.promo-banner__percent{ font-size: 2rem; line-height: 1; }

@media (max-width: 575px){ 
  .promo-banner {
    padding: 20px;
  }
}

.brand-carousel{ min-width: 0; }
.brand-carousel .slick-slide{ padding-inline: 7px; }
.brand-carousel .slick-list{ margin-inline: -7px; }
.brand-carousel .slick-track{ display: flex; align-items: stretch; }
.brand-carousel .slick-slide > div{ height: 100%; }

.featured-products__nav{ flex-wrap: wrap; }
.featured-products__list.slick-slider .col-6,
.featured-products__list.slick-slider .col-md-4,
.featured-products__list.slick-slider .col-lg-3{ width: auto; }
.featured-products__list .slick-slide{ padding-inline: 8px; }

/* =========================================================
   12. TRANG NỘI DUNG (Giới thiệu...) - hero breadcrumb / thống kê /
   về chúng tôi / sứ mệnh-tầm nhìn / thư viện ảnh
   ========================================================= */
.page-hero{
  background: var(--c-bg-soft);
  padding-block: 20px;
  position: relative;
  min-height: 592px;
}
.page-hero__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__breadcrumb{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
  margin: 0;
  position: relative;
  z-index: 2;
}
.page-hero__breadcrumb a{ color: var(--c-text-body); }
.page-hero__breadcrumb a:hover{ color: var(--c-primary); }
.page-hero__breadcrumb .is-current{ color: var(--c-primary); font-weight: 700; }

.stats-bar{ background: var(--c-bg-light); padding-block: 32px; }
.stat-item{ display: flex; align-items: center; gap: 18px; }
.stat-item__icon{ width: 45px; height: 45px; flex-shrink: 0; color: var(--c-primary); }
.stat-item__value{ font-size: var(--fs-h4); font-weight: 800; color: var(--c-heading); line-height: 1.2; margin: 0 0 5px; }
.stat-item__label{ font-size: var(--fs-md); color: var(--c-text-body); margin: 0; }

.about-section{ padding-block: 48px; }
.about-section__accent{ width: 44px; height: 3px; background: var(--c-primary); margin: 20px 0; }
.about-section__text{ font-size: var(--fs-xl); line-height: 1.6; color: var(--c-text-body); margin-bottom: 20px; }
.about-section__image{ border-radius: var(--radius-md); overflow: hidden; }
.about-section__image img{ width: 100%; height: 100%; object-fit: cover; }

.mission-section{ background: var(--c-bg-soft); padding-block: 45px; }
.mission-values{ display: flex; align-items: flex-start; flex-wrap: wrap; }
.mission-value{
  flex: 1 1 0;
  min-width: 260px;
  display: flex;
  gap: 22px;
  padding: 0 30px;
  border-left: 1px solid var(--c-border-soft);
}
.mission-value:first-child{ border-left: none; padding-left: 0; }
.mission-value__icon{
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--c-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.mission-value__icon img, .mission-value__icon .phl-icon{ width: 42px; height: 42px; }
.mission-value__title{ font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-2xl); color: var(--c-heading); margin: 0 0 15px; }
.mission-value__desc{ font-size: var(--fs-lg); line-height: 1.55; color: var(--c-text-body); margin: 0; }

.gallery-section{ background: var(--c-bg-light); padding-block: 38px; }
.gallery-card{
  background: var(--c-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0px 8px 24px 0px rgba(7,63,44,.08);
  height: 100%;
}
.gallery-card__img{ aspect-ratio: 309/180; background: var(--c-bg-lighter); display: block; }
.gallery-card__img img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-card__caption{ padding: 15px; text-align: center; font-weight: 600; font-size: var(--fs-md); color: var(--c-heading); }

@media (max-width: 991px){
  .mission-value{ border-left: none; padding-left: 0; flex: 1 1 100%; margin-bottom: 24px; }
}

/* =========================================================
   13. TRANG SẢN PHẨM (SHOP) - hero / bộ lọc / lưới sản phẩm / phân trang
   ========================================================= */
.shop-hero{
  background: var(--c-bg-blue);
  padding: 20px 0 30px;
  box-shadow: 0px 8px 24px -8px rgba(0,0,0,.08);
  position: relative;
}
.shop-hero__breadcrumb{ font-size: var(--fs-md); color: var(--c-heading-alt); margin: 0 0 22px; }
.shop-hero__breadcrumb a{ color: var(--c-heading-alt); }
.shop-hero__breadcrumb a:hover{ color: var(--c-primary); }
.shop-hero__title{ font-size: clamp(1.75rem, 4vw, 2.375rem); font-weight: 800; color: var(--c-heading-alt); margin: 0 0 8px; }
.shop-hero__subtitle{ font-size: var(--fs-xl); color: var(--c-heading-alt); margin: 0; }
.shop-hero__promise{
  position: absolute;
  right: 72px;
  top: 48px;
  width: 250px;
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-3xl);
  color: var(--c-primary);
  line-height: 1.3;
}

.shop-layout{ padding-block: 32px; align-items: flex-start; }

/* Sidebar bộ lọc */
.shop-filters{
  background: #F6F9F7;
  border-radius: var(--radius-md);
  padding: 18px;
}
.shop-filters__close{ display: none; }
.shop-filters__heading{ font-weight: 700; font-size: var(--fs-lg); color: #00512F; margin: 0 0 10px; }
.shop-filters__heading:not(:first-child){ margin-top: 4px; }
.filter-divider{ border: none; border-top: 1px solid var(--c-border); margin: 14px 0; }

.filter-list{ display: flex; flex-direction: column; gap: 2px; }
.filter-option{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: var(--fs-base);
  color: var(--c-heading-alt);
  cursor: pointer;
}
.filter-option:hover{ background: var(--c-bg-light); }
.filter-option.is-active{ background: #E8F5EE; color: #078447; font-weight: 600; }
.filter-option__icon{ width: 16px; height: 16px; flex-shrink: 0; color: #687B78; }
.filter-option.is-active .filter-option__icon {
  color: #078447;
}
.filter-option__label{ flex: 1; min-width: 0; font-weight: 400; }
.filter-option__count{ font-size: var(--fs-sm); color: var(--c-text-muted); white-space: nowrap; }

.filter-checkbox{
  width: 16px; height: 16px;
  border: 1px solid var(--c-border);
  border-radius: 3px;
  background: var(--c-white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  margin: 0;
}
.filter-checkbox:checked{ background: var(--c-primary); border-color: var(--c-primary); }
.filter-checkbox:checked::after{ content: "✓"; color: var(--c-white); font-size: 11px; font-weight: 700; line-height: 1; }

.filter-more{ background: none; border: none; padding: 0; color: var(--c-primary); font-size: var(--fs-sm); cursor: pointer; }
.filter-more:hover{ text-decoration: underline; }

.price-slider-wrap{ padding: 0 6px; }
.price-slider{
  height: 4px;
  background: var(--c-border);
  border-radius: 999px;
  position: relative;
  border: none;
}
.price-slider .ui-slider-range{ background: var(--c-primary); border-radius: 999px; position: absolute; height: 100%; }
.price-slider .ui-slider-handle{
  width: 14px; height: 14px;
  background: var(--c-white);
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  outline: none;
}
.price-values{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.price-values__box{ border: 1px solid var(--c-border); border-radius: 4px; padding: 8px 10px; font-size: var(--fs-sm); color: var(--c-heading-alt); background: var(--c-white); white-space: nowrap; }

.filter-apply-btn{ margin-top: 6px; }

/* Kết quả + sắp xếp */
.shop-results-header{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-results-header__count{ font-weight: 800; font-size: var(--fs-2xl); color: var(--c-heading); margin: 0; }
.shop-select{
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: var(--fs-sm);
  color: var(--c-heading-alt);
  background: var(--c-white);
  cursor: pointer;
}

/* Lưới sản phẩm */
.shop-product-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shop-product-card{
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: 0px 4px 7px 0px rgba(12,56,32,.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  position: relative;
}
.shop-product-card__media{ position: relative; aspect-ratio: 226/184; overflow: hidden; background: var(--c-bg-lighter); }
.shop-product-card__media img{ width: 100%; height: 100%; object-fit: cover; }
.shop-product-card__badge{
  position: absolute; top: 0; left: 0;
  background: #F52222;
  color: var(--c-white);
  font-weight: 700;
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  z-index: 2;
}
.shop-product-card__wishlist{
  position: absolute; top: 2px; right: 2px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-heading-alt);
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.shop-product-card__wishlist .phl-icon{ width: 15px; height: 15px; }
.shop-product-card__name{ font-weight: 700; font-size: var(--fs-md); color: #16332C; margin: 0; }
.shop-product-card__desc{ font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.shop-product-card__brand{ font-size: var(--fs-sm); color: var(--c-primary); margin: 0; display: flex; align-items: center; gap: 6px; }
.shop-product-card__brand::before{ content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary); flex-shrink: 0; }
.shop-product-card__footer{ margin-top: auto; display: flex; flex-direction: column; gap: 10px; position: relative; }
.shop-product-card__footer.rel__shop-product-card__footer {
  height: 40px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.shop-product-card__footer .price{ font-size: 16px !important; font-weight: 800; color: #00512F !important; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shop-product-card__footer .price ins{ text-decoration: none; color: var(--c-accent); font-weight: 800 !important; }
.shop-product-card__footer .price del{ font-size: var(--fs-sm); font-weight: 400; color: var(--c-text-muted); opacity: 1; }
.shop-product-card .btn-add-cart {
  background: var(--c-primary);
  color: var(--c-white);
  border: none;
  border-radius: 8px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  width: 100%;
}
.shop-product-card .btn-add-cart.rel-prod-btn-add-to-cart {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
.shop-product-card .btn-add-cart:hover{ background: var(--c-primary-dark); color: var(--c-white); }
.shop-product-card .btn-add-cart.loading{ opacity: .6; pointer-events: none; }

.shop-empty{ text-align: center; padding-block: 60px; color: var(--c-text-muted); }

/* Phân trang */
.shop-pagination{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; }
.shop-pagination__pages{ display: flex; gap: 8px; flex-wrap: wrap; }
.shop-pagination__pages a, .shop-pagination__pages span{
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: var(--fs-sm);
  color: var(--c-heading-alt);
  background: var(--c-white);
}
.shop-pagination__pages a:hover{ border-color: var(--c-primary); color: var(--c-primary); }
.shop-pagination__pages .current{ background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.shop-pagination__pages .dots{ border: none; background: transparent; }

/* Toggle bộ lọc mobile */
.shop-filter-toggle{
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-heading-alt);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
}

@media (max-width: 1199px){
  .shop-product-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px){
  .shop-hero__promise{ display: none; }
  .shop-product-grid{ grid-template-columns: repeat(2, 1fr); }
  .shop-filter-toggle{ display: flex; }
  .shop-filters{
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    border-radius: 0;
    overflow-y: auto;
    padding: 18px var(--container-padding) 100px;
  }
  .shop-filters.is-open{ display: block; }
  .shop-filters__close{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--c-heading);
  }
  .shop-filters__close button{ background: none; border: none; cursor: pointer; color: var(--c-heading-alt); }
}

@media (max-width: 575px){
  .shop-product-grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-results-header{ flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   14. TRANG CHI TIẾT SẢN PHẨM
   ========================================================= */
.product-breadcrumb{ font-size: var(--fs-md); color: var(--c-text-body); margin: 16px 0; }
.product-breadcrumb a{ color: var(--c-text-body); }
.product-breadcrumb a:hover{ color: var(--c-primary); }

.product-main-row{ display: flex; gap: 28px; align-items: flex-start; padding-bottom: 28px; }
.product-main-row > .product-gallery-col{ flex: 0 0 560px; max-width: 560px; }
.product-main-row > .product-summary-col{ flex: 1 1 0; min-width: 0; }
.product-main-row > .product-sidebar-col{ flex: 0 0 280px; }

.product-gallery{ display: flex; gap: 14px; }
.product-gallery__thumbs{ display: flex; flex-direction: column; gap: 12px; width: 78px; flex-shrink: 0; max-height: 510px; overflow-y: auto; }
.product-gallery__thumb{ width: 78px; height: 78px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--c-bg-lighter); flex-shrink: 0; }
.product-gallery__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active{ border-color: var(--c-primary); }
.product-gallery__main{ flex: 1; min-width: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--c-bg-lighter); aspect-ratio: 468/510; }
.product-gallery__main img{ width: 100%; height: 100%; object-fit: cover; }

.product-summary{ display: flex; flex-direction: column; gap: 12px; }
.product-badge{ display: inline-flex; background: var(--c-primary); color: var(--c-white); font-weight: 700; font-size: var(--fs-xs); padding: 5px 11px; border-radius: 5px; align-self: flex-start; }
.product-title{ font-size: 1.6875rem; font-weight: 800; color: #17352D; margin: 0; line-height: 1.25; }
.product-tagline{ font-size: var(--fs-xl); color: var(--c-text-muted); margin: 0; }
.product-brand-link{ font-weight: 700; font-size: var(--fs-base); color: var(--c-info-blue); display: inline-flex; align-items: center; gap: 7px; }
.product-brand-link::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.product-rating-row{ display: flex; gap: 8px; align-items: center; font-size: var(--fs-base); color: var(--c-text-muted); flex-wrap: wrap; }
.product-rating-row .star-rating{ color: #ff9d00; font-size: var(--fs-md); }
.product-short-desc{ font-size: var(--fs-base); line-height: 1.5; color: #66756F; margin: 0; }

.product-highlights-box{ background: #F2F8F5; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.product-highlight-item{ display: flex; gap: 8px; align-items: center; font-size: var(--fs-base); color: var(--c-text-muted); }
.product-highlight-item .phl-icon{ color: var(--c-primary); width: 17px; height: 17px; flex-shrink: 0; }

.product-price{ font-size: 1.625rem; font-weight: 800; color: var(--c-primary); margin: 0; }

.product-purchase-row{ display: flex; gap: 10px; margin-bottom: 12px; }
.qty-input-group{ display: flex; align-items: center; border: 1px solid var(--c-border); border-radius: 5px; height: 46px; width: 128px; flex-shrink: 0; }
.qty-input-group button{ background: none; border: none; width: 36px; height: 100%; cursor: pointer; font-size: 16px; color: var(--c-heading-alt); display: flex; align-items: center; justify-content: center; }
.qty-input-group button .phl-icon{ width: 14px; height: 14px; }
.qty-input-group input{ border: none; width: 40px; text-align: center; font-size: var(--fs-base); color: var(--c-heading-alt); -moz-appearance: textfield; background: transparent; }
.qty-input-group input::-webkit-outer-spin-button,
.qty-input-group input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.btn-add-to-cart-main{ flex: 1; background: var(--c-primary); color: var(--c-white); border: 1px solid var(--c-primary); border-radius: 5px; height: 46px; font-weight: 700; font-size: var(--fs-md); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn-add-to-cart-main:hover{ background: var(--c-primary-dark); color: var(--c-white); }
.btn-buy-now{ width: 100%; background: var(--c-white); border: 1px solid var(--c-primary); color: var(--c-primary); border-radius: 5px; height: 46px; font-weight: 700; font-size: var(--fs-md); cursor: pointer; }
.btn-buy-now:hover{ background: var(--c-bg-light); }
.product-assurance-row{ font-size: var(--fs-sm); color: var(--c-text-muted); display: flex; gap: 17px; flex-wrap: wrap; margin: 0; }
.product-assurance-row span{ display: inline-flex; align-items: center; gap: 6px; }
.product-assurance-row .phl-icon{ width: 14px; height: 14px; color: var(--c-primary); }

.product-sidebar{ display: flex; flex-direction: column; gap: 16px; }
.spec-box{ border: 1px solid var(--c-border); border-radius: 8px; padding: 18px; }
.spec-box__brand{ font-weight: 700; font-size: var(--fs-3xl); color: var(--c-info-blue); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.spec-box__brand::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.spec-row{ display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: #66756F; padding: 6px 0;}
.spec-row:last-child{ border-bottom: none; }
.spec-row span:last-child{ text-align: right; }
.consult-box{ background: #F2F8F5; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.consult-box__title{ font-weight: 800; font-size: var(--fs-xl); color: var(--c-heading-alt); display: flex; align-items: center; gap: 8px; margin: 0; }
.consult-box__desc{ font-size: var(--fs-base); color: var(--c-text-muted); margin: 0; white-space: nowrap; }

.product-tabs{ padding-block: 8px 28px; }
.product-tabs-nav{ display: flex; gap: 28px; border-bottom: 1px solid var(--c-border); overflow-x: auto; margin-bottom: 0; }
.product-tabs-nav button{ background: none; border: none; padding: 22px 0; font-size: var(--fs-md); font-weight: 500; color: var(--c-heading-alt); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; flex-shrink: 0; }
.product-tabs-nav button.is-active{ color: var(--c-primary); font-weight: 700; border-bottom-color: var(--c-primary); }
.tab-panel{ display: none; padding-block: 28px; }
.tab-panel.is-active{ display: block; }

.tab-info-grid{ display: flex; gap: 28px; align-items: flex-start; }
.tab-info-col{ flex: 1; min-width: 0; }
.tab-info-col h3{ font-size: 20px; font-weight: 800; color: #075936; margin: 0 0 14px; }
.tab-info-col p{ font-size: var(--fs-base); line-height: 1.55; color: var(--c-text-muted); margin: 0 0 14px; }
.tab-info-col h4{ font-size: 17px; font-weight: 800; color: #075936; margin: 0 0 14px; }
.tab-info-col--usage{ flex: 0 0 390px; border-left: 1px solid var(--c-border); padding-left: 24px; }
.tab-info-col--usage h3{ font-size: var(--fs-xl); margin-bottom: 12px; }
.tab-info-col--farm{ flex: 0 0 330px; height: 350px; border-radius: 8px; overflow: hidden; position: relative; background: var(--c-bg-lighter); }
.tab-info-col--farm img{ width: 100%; height: 100%; object-fit: cover; }
.tab-info-col--farm__message{ position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 240px; text-align: center; font-style: italic; font-weight: 800; color: #087443 !important; font-size: 24px !important; line-height: 1.3 !important; }

.spec-detail-item{ margin-bottom: 14px; }
.spec-detail-item__label{ font-weight: 800; font-size: 14px !important; color: #075936 !important; margin: 0 0 4px !important; }
.spec-detail-item__value{ font-size: var(--fs-base); color: var(--c-text-muted); margin: 0; }

.commitment-bar{ background: var(--c-bg-lighter); padding: 31px 0; }
.commitment-item{ display: flex; align-items: center; gap: 12px; }
.commitment-item .phl-icon{ width: 34px; height: 34px; color: var(--c-primary); flex-shrink: 0; }
.commitment-item__title{ font-weight: 800; font-size: var(--fs-base); color: var(--c-heading); margin: 0 0 3px; }
.commitment-item__subtitle{ font-size: 0.625rem; color: var(--c-text-muted); margin: 0; }

.faq-item{ border-bottom: 1px solid var(--c-border); padding: 16px 0; }
.faq-item__q{ font-weight: 700; font-size: var(--fs-md); color: var(--c-heading-alt); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item__q .phl-icon{ width: 16px; height: 16px; color: var(--c-text-muted); flex-shrink: 0; transition: var(--transition-base); }
.faq-item.is-open .faq-item__q .phl-icon{ transform: rotate(90deg); }
.faq-item__a{ font-size: var(--fs-base); color: var(--c-text-muted); margin-top: 10px; display: none; line-height: 1.6; }
.faq-item.is-open .faq-item__a{ display: block; }

.ingredient-table{ width: 100%; border-collapse: collapse; }
.ingredient-table th, .ingredient-table td{ text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-border); font-size: var(--fs-base); }
.ingredient-table th{ color: var(--c-heading); font-weight: 700; background: var(--c-bg-lighter); }

.document-item{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: 10px; }
.document-item__name{ display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c-heading-alt); font-size: var(--fs-base); }
.document-item__name .phl-icon{ width: 20px; height: 20px; color: var(--c-primary); flex-shrink: 0; }
.document-item a.btn-download{ display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 600; font-size: var(--fs-sm); flex-shrink: 0; }

.related-products__grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.related-products-sec {
  padding-bottom: 34px;
  padding-top: 0;
}

h2.related-products-title {
  color: #075936;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

@media (max-width: 1199px){
  .product-main-row{ flex-wrap: wrap; }
  .product-main-row > .product-gallery-col{ flex: 0 0 100%; max-width: 100%; }
  .product-main-row > .product-summary-col{ flex: 1 1 55%; }
  .product-main-row > .product-sidebar-col{ flex: 1 1 35%; }
  .related-products__grid{ grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px){
  .product-main-row > .product-summary-col,
  .product-main-row > .product-sidebar-col{ flex: 1 1 100%; }
  .tab-info-grid{ flex-wrap: wrap; }
  .tab-info-col--usage{ flex: 1 1 100%; border-left: none; border-top: 1px solid var(--c-border); padding-left: 0; padding-top: 20px; }
  .tab-info-col--farm{ flex: 1 1 100%; width: 100%; height: 260px; }
  .related-products__grid{ grid-template-columns: repeat(3, 1fr); }
  .commitment-bar .row{ row-gap: 20px; }
}

@media (max-width: 575px){
  .product-gallery{ flex-direction: column-reverse; }
  .product-gallery__thumbs{ flex-direction: row; width: 100%; max-height: none; overflow-x: auto; }
  .product-purchase-row{ flex-wrap: wrap; }
  .qty-input-group{ width: 100%; }
  .btn-add-to-cart-main{ flex: 1 1 100%; }
  .related-products__grid{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   15. WOOCOMMERCE (điều chỉnh nhẹ để đồng bộ theme)
   ========================================================= */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price{ color: var(--c-accent); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit{
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.btn-add-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #078447 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{
  background: var(--c-primary-dark);
  color: var(--c-white);
}
.woocommerce-message, .woocommerce-info{ border-top-color: var(--c-primary); }
.woocommerce span.onsale{ background: var(--c-accent); }
