/*
Theme Name: Patico Child
Theme URI: https://sheetdep.com
Template: astra
Description: Patico Sheet Tools - Warm Editorial Minimal
Author: Patico
Version: 2.1.28
*/

/* ═══════════════════════════════════════
   DESIGN SYSTEM — Warm Editorial Minimal
   Playfair Display + Outfit
   Green / Cream / Coral
   ═══════════════════════════════════════ */

:root {
  /* Primary — Deep Forest Green */
  --green-deep: #1a3a2a;
  --green-mid: #2d5a3f;
  --green-pale: #e8f0eb;

  /* Surface — Warm Cream */
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;

  /* Accent — Coral (CHỈ cho CTA + highlights) */
  --coral: #e8654a;
  --coral-dark: #d4522f;
  --coral-light: #fde8e4;

  /* Text */
  --text-primary: #1a1a18;
  --text-secondary: #6b6b62;
  --text-muted: #9a9a90;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,58,42,0.06);
  --shadow-md: 0 8px 32px rgba(26,58,42,0.08);
  --shadow-lg: 0 24px 64px rgba(26,58,42,0.12);

  /* Radius */
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Override Astra global blue → green brand colors */
  --ast-global-color-0: #1a3a2a;
  --ast-global-color-1: #2d5a3f;
  --ast-global-color-4: #e8f0eb;

  /* Override old brand blue variables (from WP inline CSS) */
  --patico-blue: #1a3a2a;
  --patico-blue-dark: #2d5a3f;
}


/* ═══ BASE STYLES ═══ */

body {
  font-family: 'Outfit', sans-serif !important;
  background-color: var(--cream) !important;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Fix Astra white backgrounds */
.ast-separate-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-page-builder-template .entry-content,
.content-area,
#primary,
.site-content,
.ast-single-post,
.woocommerce-page .content-area {
  background-color: var(--cream) !important;
}


/* ═══ TYPOGRAPHY ═══ */

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget-title,
.woocommerce-loop-product__title,
.wc-block-grid__product-title,
.product_title,
.ast-archive-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--green-deep) !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p, li, td, th, span, label, input, textarea, select, blockquote {
  font-family: 'Outfit', sans-serif !important;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--green-deep) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--coral) !important;
}


/* ═══ UTILITY CLASSES (for homepage HTML content) ═══ */

.serif { font-family: 'Playfair Display', Georgia, serif !important; }
.container-p { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--coral);
}

/* Italic coral accent in headings */
.accent-italic {
  font-style: italic;
  color: var(--coral) !important;
  position: relative;
}
.accent-italic::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  opacity: 0.25;
  border-radius: 2px;
}


/* ═══ NAVIGATION ═══ */

.site-header,
.ast-primary-header-bar,
.ast-header-sticked {
  background-color: rgba(250,247,242,0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,58,42,0.06) !important;
}

.ast-header-sticked {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Nav links */
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation a {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--green-deep) !important;
}

/* Site title / logo text */
.site-title a,
.ast-site-identity .site-title a {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--green-deep) !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
}

/* Mobile hamburger menu — override Astra blue */
.ast-mobile-menu-trigger-fill {
  background: var(--green-deep) !important;
  color: #faf7f2 !important;
  border: none !important;
  border-radius: 8px !important;
}
.ast-mobile-menu-trigger-fill svg {
  fill: #faf7f2 !important;
}

/* Cart icon + price — override Astra blue */
.ast-addon-cart-wrap,
.ast-woo-header-cart-info-wrap,
.ast-woo-header-cart-total,
.ast-site-header-cart a,
.ast-header-woo-cart .ast-icon,
.ast-addon-cart-wrap svg {
  color: var(--green-deep) !important;
  fill: var(--green-deep) !important;
  border-color: transparent !important;
}
/* Cart header price text */
.ast-addon-cart-wrap .woocommerce-Price-amount,
.ast-addon-cart-wrap .woocommerce-Price-currencySymbol,
.ast-addon-cart-wrap bdi,
.ast-woo-header-cart-info-wrap .woocommerce-Price-amount,
.ast-cart-menu-wrap .woocommerce-Price-amount,
.ast-site-header-cart .woocommerce-Price-amount {
  color: var(--green-deep) !important;
  border-color: transparent !important;
}
/* Cart count badge */
.ast-addon-cart-wrap .ast-count-text,
.ast-header-woo-cart .ast-cart-menu-wrap .count,
.ast-addon-cart-wrap .count {
  background: var(--coral) !important;
  color: #fff !important;
}
/* Account icon */
.ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg {
  fill: var(--green-deep) !important;
}

/* WooCommerce block search button — override blue */
.wc-block-product-search__button {
  background: var(--green-deep) !important;
  border-color: var(--green-deep) !important;
  color: #fff !important;
}
.wc-block-product-search__button:hover {
  background: var(--green-mid) !important;
  border-color: var(--green-mid) !important;
}

/* WooCommerce price filter slider — override blue */
.wc-block-price-filter__range-input::-webkit-slider-thumb,
.wc-block-components-price-slider__range-input::-webkit-slider-thumb {
  background: var(--green-deep) !important;
}
.wc-block-price-filter__range-input::-moz-range-thumb,
.wc-block-components-price-slider__range-input::-moz-range-thumb {
  background: var(--green-deep) !important;
}
.wc-block-price-filter__range-input-progress,
.wc-block-components-price-slider__range-input-progress {
  --range-color: var(--green-deep) !important;
}
.wp-block-woocommerce-price-filter .wc-block-price-filter__range-input-wrapper .wc-block-price-filter__range-input-progress,
.wc-block-components-price-slider__range-input-wrapper .wc-block-components-price-slider__range-input-progress {
  background: var(--green-deep) !important;
}

/* WooCommerce sidebar widget links */
.widget_product_categories a,
.wc-block-product-categories-list-item a {
  color: var(--text-primary) !important;
}
.widget_product_categories a:hover,
.wc-block-product-categories-list-item a:hover {
  color: var(--green-deep) !important;
}


/* ═══ BUTTONS ═══ */

/* Primary CTA — Coral pill */
.wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
.checkout-button,
.ast-custom-button,
a.btn-cta {
  font-family: 'Outfit', sans-serif !important;
  background: var(--coral) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
a.btn-cta:hover {
  background: var(--coral-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,101,74,0.3);
}

/* Secondary button — outlined */
a.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1.5px solid rgba(26,58,42,0.12) !important;
  border-radius: var(--radius-pill) !important;
}
a.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--green-deep) !important;
  color: var(--green-deep) !important;
  transform: translateY(-2px);
}

/* Nav CTA button */
.ast-header-button-1 .ast-custom-button,
.menu-item.btn-menu a {
  background: var(--green-deep) !important;
  color: var(--cream) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.ast-header-button-1 .ast-custom-button:hover,
.menu-item.btn-menu a:hover {
  background: var(--coral) !important;
  transform: translateY(-2px);
}


/* ═══ CARDS ═══ */

.patico-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid rgba(26,58,42,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.patico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Badge system */
.product-badge,
.badge-hot, .badge-best, .badge-free {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}
.badge-hot, .product-badge[data-badge="Hot"] {
  background: var(--coral) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(232,101,74,0.3);
}
.badge-best, .product-badge[data-badge="Best"],
.product-badge[data-badge="Best Value"],
.product-badge[data-badge="Best Deal"] {
  background: var(--green-deep) !important;
  color: var(--cream) !important;
}
.badge-free, .product-badge[data-badge="Free"] {
  background: var(--green-mid) !important;
  color: #fff !important;
}


/* ═══ WOOCOMMERCE — Products ═══ */

/* Shop page background */
.woocommerce-page,
.archive.woocommerce {
  background-color: var(--cream) !important;
}

/* Product cards */
ul.products li.product,
.wc-block-grid__product {
  background: #fff;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  border: 1px solid rgba(26,58,42,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
ul.products li.product:hover,
.wc-block-grid__product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Product title */
.woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-size: 17px !important;
  color: var(--green-deep) !important;
  margin-bottom: 6px !important;
}

/* Product price — override inline --patico-blue */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
.woocommerce-Price-amount,
.woocommerce .price .woocommerce-Price-amount,
.woocommerce .price ins .woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol {
  color: var(--green-deep) !important;
  font-weight: 700 !important;
  font-family: 'Outfit', sans-serif !important;
}
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
  font-size: 18px !important;
}
.woocommerce ul.products li.product .price del {
  color: var(--text-muted) !important;
  font-size: 14px !important;
}
.woocommerce ul.products li.product .price ins {
  color: var(--coral) !important;
  text-decoration: none !important;
}

/* Product image */
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}
ul.products li.product:hover img {
  transform: scale(1.03);
}

/* Add to cart button in loop */
.woocommerce ul.products li.product .button {
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-radius: var(--radius-pill) !important;
  margin-top: 8px !important;
}

/* Single product */
.single-product .product_title {
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  color: var(--green-deep) !important;
}

.single-product .woocommerce-product-details__short-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* Product features list */
.product-features h4 {
  font-size: 16px !important;
  color: var(--green-deep) !important;
  margin-bottom: 12px !important;
}
.product-features ul {
  list-style: none;
  padding: 0;
}
.product-features ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(26,58,42,0.06);
}
.product-features ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--green-pale);
  color: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  top: 10px;
}

/* Demo button */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  color: var(--green-deep) !important;
  border: 1.5px solid rgba(26,58,42,0.15) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.btn-demo:hover {
  border-color: var(--green-deep) !important;
  background: var(--green-pale) !important;
}


/* ═══ DARK SECTION (Testimonials) ═══ */

.dark-section {
  background: var(--green-deep) !important;
  color: var(--cream) !important;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.dark-section h2,
.dark-section h3 {
  color: #fff !important;
}
.dark-section p {
  color: rgba(255,255,255,0.7);
}
.dark-section .patico-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.dark-section .patico-card:hover {
  background: rgba(255,255,255,0.1);
}

/* Result badges on testimonials */
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,101,74,0.2);
  color: var(--coral);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* Stars */
.stars {
  color: #f5b731;
  font-size: 14px;
  letter-spacing: 3px;
}


/* ═══ HOMEPAGE SECTIONS ═══ */

/* Section spacing */
.patico-section {
  padding: 120px 0;
}
.patico-section.bg-white {
  background: #fff;
}
.patico-section.bg-cream-dark {
  background: var(--cream-dark);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Badge pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-mid);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.badge-pill .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Trust metrics */
.trust-row {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(26,58,42,0.08);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Marquee */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid rgba(26,58,42,0.06);
  border-bottom: 1px solid rgba(26,58,42,0.06);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.marquee-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-grid .span-2 {
  grid-column: span 2;
}
.bento-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.bento-card.featured {
  background: var(--green-deep);
  color: var(--cream);
}
.bento-card.featured h3,
.bento-card.featured .serif {
  color: #fff !important;
}
.bento-card.featured p {
  color: rgba(255,255,255,0.7);
}

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kpi-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(26,58,42,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.kpi-number {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Pricing CTA card */
.pricing-cta {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--coral), var(--green-mid));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
.price-old {
  font-size: 22px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-new {
  font-size: 52px;
  color: var(--green-deep);
  letter-spacing: -0.03em;
}
.discount-badge {
  background: var(--coral-light);
  color: var(--coral);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

/* Trust signals */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.trust-signal .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Device mockups (pure CSS) */
.phone-mockup {
  width: 280px;
  background: #fff;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a18;
  border-radius: 12px;
  z-index: 5;
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #f8f9fa;
}

.laptop-mockup {
  position: relative;
}
.laptop-top {
  background: #2a2a2a;
  border-radius: 16px 16px 0 0;
  padding: 8px 8px 0;
}
.laptop-dots {
  display: flex;
  gap: 6px;
  padding: 4px 8px 8px;
}
.laptop-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.laptop-dots span:nth-child(1) { background: #ff5f57; }
.laptop-dots span:nth-child(2) { background: #febc2e; }
.laptop-dots span:nth-child(3) { background: #28c840; }
.laptop-screen {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #fff;
}
.laptop-bottom {
  height: 16px;
  background: linear-gradient(180deg, #c0c0c0, #a0a0a0);
  border-radius: 0 0 8px 8px;
  margin: 0 -8px;
  position: relative;
}


/* Showcase tabs + slides */
.showcase-wrap {
  background: var(--cream-dark);
  border-radius: 32px;
  padding: 48px 48px 24px;
  overflow: hidden;
  position: relative;
}
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.showcase-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(26,58,42,0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.showcase-tab:hover {
  background: rgba(26,58,42,0.15);
}
.showcase-tab.active {
  background: var(--green-deep);
  color: #fff;
}
.showcase-slide {
  display: none;
  animation: fadeSlide 0.4s ease;
}
.showcase-slide.active {
  display: block;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ ANIMATIONS ═══ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Page load stagger */
.af { animation: fadeUp 0.6s ease-out both; }
.ad1 { animation-delay: 0.1s; }
.ad2 { animation-delay: 0.2s; }
.ad3 { animation-delay: 0.35s; }
.ad4 { animation-delay: 0.5s; }
.ad5 { animation-delay: 0.65s; }

/* Scroll reveal (activated by JS) */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Float animation */
.anim-float {
  animation: float 4s ease-in-out infinite;
}
.anim-float-delayed {
  animation: float 3.5s ease-in-out infinite 0.5s;
}


/* ═══ TESTIMONIAL GRID ═══ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ═══ CATEGORY CARDS ═══ */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.category-card {
  display: block;
  background: var(--cream);
  border: 1.5px solid rgba(26,58,42,0.08);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.category-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,58,42,0.1);
}
.category-card .cat-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
}
.category-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 4px;
}
.category-card .cat-count {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ═══ FAQ ACCORDION ═══ */
.faq-list details {
  border-bottom: 1px solid rgba(26,58,42,0.08);
  padding: 0;
}
.faq-list summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--green-deep);
  padding: 20px 40px 20px 0;
  list-style: none;
  position: relative;
  line-height: 1.5;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══ ZALO FLOAT BUTTON (animated) ═══ */

.zalo-float-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
}
.zalo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1a3a2a;
  animation: zalo-pulse 1.8s ease-out infinite;
  opacity: 0;
}
.zalo-ring:nth-child(2) {
  animation-delay: 0.6s;
}
.zalo-float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #1a3a2a;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(26,58,42,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.zalo-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(26,58,42,0.5);
}
@keyframes zalo-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* === CHATBOT WIDGET — Pati AI (Zalo-style button) === */
.patico-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #1a3a2a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,58,42,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
}
.patico-chat-btn::before,
.patico-chat-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1a3a2a;
  animation: zalo-pulse 1.8s ease-out infinite;
  opacity: 0;
  pointer-events: none;
}
.patico-chat-btn::after {
  animation-delay: 0.6s;
}
.patico-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(26,58,42,0.5);
}
.patico-chat-btn.active {
  transform: scale(0.9);
  opacity: 0.7;
}
/* Hide the default SVG icon inside button, show Zalo text instead */
.patico-chat-btn svg,
.patico-chat-btn img { display: none !important; }
.patico-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

/* Chat window */
.patico-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--cream);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(26,58,42,0.15), 0 0 0 1px rgba(26,58,42,0.06);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.patico-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.patico-chat-header {
  background: var(--green-deep);
  color: var(--cream);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.patico-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
}
.patico-chat-header-info {
  flex: 1;
}
.patico-chat-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
}
.patico-chat-status {
  font-size: 11px;
  opacity: 0.7;
  font-family: 'Outfit', sans-serif;
}
.patico-chat-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}
.patico-chat-close:hover {
  opacity: 1;
}

/* Message body */
.patico-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.patico-chat-body::-webkit-scrollbar {
  width: 4px;
}
.patico-chat-body::-webkit-scrollbar-thumb {
  background: rgba(26,58,42,0.15);
  border-radius: 4px;
}

/* Message bubbles */
.patico-msg {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Outfit', sans-serif;
  word-wrap: break-word;
}
.patico-msg.bot {
  background: #fff;
  color: var(--text-primary);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
  border: 1px solid rgba(26,58,42,0.06);
}
.patico-msg.user {
  background: var(--coral);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
}
.patico-msg.bot strong {
  color: var(--green-deep);
  font-weight: 600;
}
.patico-chat-list {
  margin: 6px 0;
  padding-left: 18px;
}
.patico-chat-list li {
  margin: 3px 0;
}

/* Typing indicator */
.patico-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.patico-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-secondary, #6b6b62);
  border-radius: 50%;
  animation: patico-bounce 1.2s ease-in-out infinite;
}
.patico-typing span:nth-child(2) { animation-delay: 0.2s; }
.patico-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes patico-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* Typewriter cursor */
.patico-msg.bot.typing-active::after {
  content: "▋";
  display: inline;
  animation: patico-blink 0.7s step-end infinite;
  color: var(--green-mid);
}
@keyframes patico-blink {
  50% { opacity: 0; }
}

/* Quick reply chips */
.patico-chat-chips {
  padding: 8px 16px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid rgba(26,58,42,0.06);
}
.patico-chip {
  background: var(--green-pale);
  color: var(--green-deep);
  border: 1px solid rgba(26,58,42,0.1);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.patico-chip:hover {
  background: var(--green-deep);
  color: #fff;
}

/* Input area */
.patico-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(26,58,42,0.08);
  background: #fff;
  flex-shrink: 0;
}
.patico-chat-input-wrap textarea {
  flex: 1;
  border: 1px solid rgba(26,58,42,0.12);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  resize: none;
  outline: none;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.4;
  max-height: 80px;
  transition: border-color 0.2s;
}
.patico-chat-input-wrap textarea:focus {
  border-color: var(--green-mid);
}
.patico-chat-input-wrap textarea::placeholder {
  color: var(--text-secondary, #6b6b62);
}
#paticoChatSend {
  width: 40px;
  height: 40px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
#paticoChatSend:hover {
  transform: scale(1.1);
  background: #d4553b;
}

/* Mobile: full-screen chat */
@media (max-width: 768px) {
  .patico-chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .patico-chat-btn {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .patico-chat-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .patico-chat-input-wrap {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}


/* ═══ FOOTER ═══ */

.site-footer,
.ast-footer-overlay {
  background: var(--cream) !important;
  border-top: 1px solid rgba(26,58,42,0.06);
}

.site-footer h4,
.site-footer .widget-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--green-deep) !important;
  margin-bottom: 18px !important;
}

.site-footer a {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  transition: color 0.3s ease !important;
}
.site-footer a:hover {
  color: var(--coral) !important;
}

.site-footer .ast-small-footer-section-1,
.site-footer .site-info {
  color: var(--text-muted) !important;
  font-size: 12px !important;
}


/* ═══ NAV SCROLL EFFECT (patico.js) ═══ */

.nav-scrolled {
  box-shadow: 0 4px 24px rgba(26,58,42,0.08) !important;
  background-color: rgba(250,247,242,0.95) !important;
}


/* ═══ SHOP PAGE ENHANCEMENTS ═══ */

/* Shop page header */
.woocommerce-products-header {
  text-align: center;
  padding: 40px 0 20px;
}
.woocommerce-products-header__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--green-deep) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
}

/* Shop grid — flex for centered last row */
.woocommerce ul.products {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products li.product {
  flex: 1 0 calc((100% - 72px) / 4) !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}

/* Product card inner spacing */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
  padding-bottom: 12px;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 16px !important;
}
.woocommerce ul.products li.product .button {
  margin: 8px 16px 16px !important;
  width: calc(100% - 32px) !important;
  text-align: center !important;
}

/* Product count & sorting */
.woocommerce-result-count {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}
.woocommerce-ordering select {
  border: 1px solid rgba(26,58,42,0.12) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-secondary) !important;
  background: #fff !important;
}

/* Category tags in product cards */
.woocommerce ul.products li.product .ast-woo-product-category {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
}


/* ═══ SINGLE PRODUCT ENHANCEMENTS ═══ */

/* Product gallery */
.single-product .woocommerce-product-gallery {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.single-product .woocommerce-product-gallery img {
  border-radius: var(--radius-sm) !important;
}

/* Product summary spacing */
.single-product .summary.entry-summary {
  padding-left: 40px;
}

/* Product price (single) */
.single-product .price {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--green-deep) !important;
  font-family: 'Outfit', sans-serif !important;
}
.single-product .price del {
  color: var(--text-muted) !important;
  font-size: 18px !important;
}
.single-product .price ins {
  color: var(--coral) !important;
  text-decoration: none !important;
}

/* Product meta */
.single-product .product_meta {
  border-top: 1px solid rgba(26,58,42,0.06);
  padding-top: 16px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.single-product .product_meta a {
  color: var(--green-mid) !important;
}

/* Product tabs */
.woocommerce-tabs {
  margin-top: 40px !important;
}
.woocommerce-tabs ul.tabs {
  border-bottom: 2px solid rgba(26,58,42,0.08) !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}
.woocommerce-tabs ul.tabs::before {
  border-bottom-color: rgba(26,58,42,0.08) !important;
}
.woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  padding: 12px 20px !important;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease !important;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--green-deep) !important;
  border-bottom-color: var(--green-deep);
}

/* Blockquote — override default blue left-border */
blockquote {
  border-left-color: var(--green-mid) !important;
}

/* Product description tables — override Google blue headers */
.woocommerce-Tabs-panel table thead tr,
.woocommerce-Tabs-panel table tr:first-child,
.single-product .entry-content table thead tr,
.single-product .entry-content table tr:first-child {
  background: var(--green-deep) !important;
  color: #faf7f2 !important;
}
.woocommerce-Tabs-panel table th,
.single-product .entry-content table th {
  background: var(--green-deep) !important;
  color: #faf7f2 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
}
.woocommerce-Tabs-panel table td {
  padding: 10px 16px !important;
  border-color: rgba(26,58,42,0.08) !important;
}

/* Related products */
.related.products > h2,
.upsells.products > h2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--green-deep) !important;
  font-size: 1.8rem !important;
  margin-bottom: 24px !important;
}

/* WooCommerce add to cart on single */
.single-product .single_add_to_cart_button {
  background: var(--coral) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 40px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Outfit', sans-serif !important;
  transition: all 0.3s ease !important;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--coral-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,101,74,0.3);
}

/* Quantity input */
.single-product .quantity .qty {
  border: 1.5px solid rgba(26,58,42,0.12) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  color: var(--green-deep) !important;
  width: 70px !important;
}


/* ═══ ABOUT PAGE ═══ */

/* Hide Astra default page title on About page */
body.page-id-42 .entry-header,
body.page-id-42 .ast-archive-description,
body.page-id-42 article .entry-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.about-hero {
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,124,92,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.values-grid > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.values-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .patico-section {
    padding: 80px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid .span-2 {
    grid-column: span 1;
  }
  .bento-grid > .bento-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .woocommerce ul.products li.product {
    flex: 1 0 calc((100% - 48px) / 3) !important;
  }
  .single-product .summary.entry-summary {
    padding-left: 0;
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══ PORTRAIT TALL SCREENS (rotated monitor, tablet portrait) ═══ */
@media (orientation: portrait) and (min-width: 769px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }
  .patico-section {
    padding: 80px 0;
  }
  .container-p {
    max-width: 800px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .trust-row {
    justify-content: center;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid .span-2 {
    grid-column: span 1;
  }
  .bento-grid > .bento-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .woocommerce ul.products li.product {
    flex: 1 0 calc((100% - 48px) / 3) !important;
  }
  .dark-section {
    padding: 80px 0;
  }
  .showcase-wrap {
    padding: 32px 32px 24px;
  }
}

@media (max-width: 768px) {
  .patico-section {
    padding: 60px 0;
  }
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  .bento-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-hero {
    padding: 80px 0 40px !important;
  }
  .pricing-cta {
    padding: 40px 24px;
  }
  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .trust-row {
    flex-direction: column;
    gap: 16px;
  }
  .phone-mockup {
    width: 220px;
  }
  h1 {
    font-size: 2.2rem !important;
  }
  .woocommerce ul.products {
    gap: 16px !important;
  }
  .woocommerce ul.products li.product {
    flex: 1 0 calc((100% - 16px) / 2) !important;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-list summary {
    font-size: 15px;
  }
}

/* ===== Con Gioi Product Page Styles ===== */
.cg-badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #e8654a, #d44a2e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
}
.cg-img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 16px 0;
}

/* Product page: grid row layout — image beside text */
.cg-row {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 16px;
  align-items: center;
  margin: 12px 0;
}
.cg-row.cg-row-phone {
  grid-template-columns: 30% 1fr;
  align-items: center;
}
.cg-row-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
}
.cg-row-img img + img { margin-top: 8px; }
.cg-row-img img.cg-phone-thumb {
  width: auto;
  max-width: 35%;
}
.cg-row-text p { margin-bottom: 8px; }

.cg-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.cg-img-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 680px) {
  .cg-row, .cg-row.cg-row-phone { grid-template-columns: 1fr; }
  .cg-row-img { text-align: center; }
  .cg-row-img img { width: auto; max-width: 100%; }
  .cg-row.cg-row-phone .cg-row-img img { max-width: 220px; margin: 0 auto; }
  .cg-row-img img.cg-phone-thumb { max-width: 40%; }
  .cg-img-grid, .cg-img-grid-3 { grid-template-columns: 1fr; }
}
.cg-feature-box {
  background: #f8faf8;
  border-left: 4px solid #1a3a2a;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}
.cg-cta-box {
  background: linear-gradient(135deg, #1a3a2a, #2d5a40);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  margin: 32px 0 16px;
}
.cg-cta-box h3 { color: #faf7f2; margin-bottom: 8px; }
.cg-cta-box p { color: #c8dcc8; margin-bottom: 20px; }
.cg-cta-btn {
  display: inline-block;
  background: #e8654a;
  color: #fff !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  font-size: 15px;
  margin: 6px;
}
.cg-cta-btn.secondary {
  background: transparent;
  border: 2px solid #faf7f2;
  color: #faf7f2 !important;
}
.cg-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.cg-compare-table th {
  background: #1a3a2a;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.cg-compare-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}
.cg-compare-table tr:nth-child(even) td { background: #f5f9f5; }
.cg-check { color: #2d7a4a; font-size: 16px; }
.cg-cross { color: #c0392b; font-size: 16px; }
.cg-steps {
  counter-reset: cg-step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.cg-steps li {
  counter-increment: cg-step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.cg-steps li::before {
  content: counter(cg-step);
  background: #1a3a2a;
  color: #fff;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Guide Article — Image Grid + Lightbox ===== */

/* Clear floats at major section boundaries (NOT h3 — text wraps around floated images) */
.entry-content h2,
.entry-content hr,
.guide-img-pair,
.guide-fig--wide,
.guide-fig--desktop-single { clear: both; }

/* Image pairs — phone 30% / desktop 70% grid */
.guide-img-pair {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 20px;
  margin: 24px 0;
  align-items: start;
}
@media (max-width: 680px) {
  .guide-img-pair { grid-template-columns: 1fr; }
}

/* Base figure styles */
.guide-fig { margin: 0; text-align: center; }
.guide-fig figcaption { font-size: 13px; color: #64748b; margin-top: 6px; }

/* Standalone phone — float right, text wraps left */
.guide-fig.guide-fig--phone {
  float: right;
  width: 220px;
  max-width: 35%;
  margin: 0 0 16px 20px;
}

/* Standalone single — float left, text wraps right */
.guide-fig.guide-fig--single {
  float: left;
  width: 300px;
  max-width: 45%;
  margin: 0 20px 16px 0;
}

/* Desktop-single — centered block */
.guide-fig.guide-fig--desktop-single {
  max-width: 720px;
  margin: 20px auto;
}

/* Wide — same size as desktop-single, centered */
.guide-fig.guide-fig--wide {
  max-width: 720px;
  margin: 20px auto;
}

/* Reset float inside image pairs */
.guide-img-pair .guide-fig {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* All thumbs fill their container */
.guide-thumb {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  height: auto;
}
.guide-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}
.pst-lightbox { display: inline-block; text-decoration: none; }

/* Mobile: no float, center standalone images */
@media (max-width: 680px) {
  .guide-fig.guide-fig--phone,
  .guide-fig.guide-fig--single {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 16px auto;
  }
}

/* Lightbox overlay */
.pst-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.pst-lb-overlay.active {
  opacity: 1;
  visibility: visible;
}
.pst-lb-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  object-fit: contain;
}
.pst-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100000;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.pst-lb-close:hover {
  background: rgba(255,255,255,0.3);
}

/* CHECKOUT — Simplified for digital products */

/* PayOS QR icon + styling */
.wc_payment_method.payment_method_payos label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
}
.wc_payment_method.payment_method_payos label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='2' y='2' width='8' height='8' rx='1' stroke='%231a3a2a' stroke-width='1.5'/%3E%3Crect x='4' y='4' width='4' height='4' rx='.5' fill='%231a3a2a'/%3E%3Crect x='14' y='2' width='8' height='8' rx='1' stroke='%231a3a2a' stroke-width='1.5'/%3E%3Crect x='16' y='4' width='4' height='4' rx='.5' fill='%231a3a2a'/%3E%3Crect x='2' y='14' width='8' height='8' rx='1' stroke='%231a3a2a' stroke-width='1.5'/%3E%3Crect x='4' y='16' width='4' height='4' rx='.5' fill='%231a3a2a'/%3E%3Crect x='14' y='14' width='3' height='3' fill='%231a3a2a'/%3E%3Crect x='19' y='14' width='3' height='3' fill='%231a3a2a'/%3E%3Crect x='14' y='19' width='3' height='3' fill='%231a3a2a'/%3E%3Crect x='19' y='19' width='3' height='3' fill='%231a3a2a'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.wc_payment_method.payment_method_payos .payment_box {
  background: #f5f0e8 !important;
  border-radius: 8px;
  padding: 14px 16px !important;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}
.wc_payment_method.payment_method_payos .payment_box p {
  margin: 0;
}

/* Bank trust badges — colored pills with brand colors */
.wc_payment_method.payment_method_payos .payment_box::after {
  content: "";
  display: block;
  margin-top: 12px;
  height: 28px;
  max-width: 290px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290 28'%3E%3Crect x='0' y='0' width='46' height='28' rx='5' fill='%23D71920'/%3E%3Ctext x='23' y='18.5' text-anchor='middle' fill='white' font-size='11' font-weight='700' font-family='Arial,sans-serif'%3EACB%3C/text%3E%3Crect x='52' y='0' width='72' height='28' rx='5' fill='%2300703C'/%3E%3Ctext x='88' y='18.5' text-anchor='middle' fill='white' font-size='10' font-weight='700' font-family='Arial,sans-serif'%3EVietcombank%3C/text%3E%3Crect x='130' y='0' width='36' height='28' rx='5' fill='%231E3A6D'/%3E%3Ctext x='148' y='18.5' text-anchor='middle' fill='white' font-size='11' font-weight='700' font-family='Arial,sans-serif'%3EMB%3C/text%3E%3Crect x='172' y='0' width='72' height='28' rx='5' fill='%23ED1C24'/%3E%3Ctext x='208' y='18.5' text-anchor='middle' fill='white' font-size='10' font-weight='700' font-family='Arial,sans-serif'%3ETechcombank%3C/text%3E%3Crect x='250' y='0' width='40' height='28' rx='5' fill='%231A3564'/%3E%3Ctext x='270' y='18.5' text-anchor='middle' fill='white' font-size='11' font-weight='700' font-family='Arial,sans-serif'%3EBIDV%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Hide empty additional fields section on checkout */
.woocommerce-additional-fields { display: none !important; }

/* Pati chat label text styling */
.patico-chat-label {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #fff;
  pointer-events: none;
}
