/* ==========================================================================
   HELEN AGRICULTURAL THEME - MASTER STYLESHEET
   Version: 2.0.0 (Unified Commercial Marketplace Standard)
   Author: Helen Agri Team
   Description: Clean, High-Conversion, Fully Responsive E-Commerce & Knowledge Theme
   ==========================================================================
   
   TABLE OF CONTENTS:
   --------------------------------------------------------------------------
   01. CSS VARIABLES & DESIGN TOKENS (:root)
   02. CSS RESET & GLOBAL BASE STYLES
   03. HEADER TOP, MAIN HEADER & NAVIGATION BAR
   04. MOBILE OFF-CANVAS DRAWER MENU & MOBILE BOTTOM APP BAR
   05. FOOTER, FLOATING WIDGETS, BACK TO TOP & MODAL / TOAST
   06. HOMEPAGE SECTIONS (Hero Banner, Features, Flash Sale, Combo Hero, 
       Categories, Products, About Us, Social Proof Reviews, News)
   07. SHOP & PRODUCT DETAIL SECTIONS (Pills, Sidebar Filters, Gallery, Tabs)
   08. NEWS & BLOG EDITORIAL SECTIONS (Hero Post, Grid, Single Post, Sidebar)
   09. LIVESTOCK KNOWLEDGE PORTAL (Search Hero, Tags, Docs, Diagnostics)
   10. CONTACT PAGE (4 Info Cards, Form, Map & Branch Office)
   11. CART & CHECKOUT FLOW (Realtime Cart, Payment Switcher, Success)
   12. ACCOUNT & ORDER DASHBOARD (Profile Sidebar, Status Tabs, Order Cards, Auth)
   13. MOBILE RESPONSIVE MEDIA QUERIES (< 992px, < 768px, < 480px)
   ========================================================================== */

/* ==========================================================================
   01. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --primary-color: #349947;
  --primary-hover: #297a37;
  --secondary-color: #17479e;
  --dark-navy: #072d94;
  --accent-color: #f28900;
  --danger-color: #d70018;

  /* Backgrounds & Text */
  --bg-light: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Typography */
  --font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Container & Spacing */
  --max-width: 1250px;
  --container-padding: 0 12px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ==========================================================================
   02. CSS RESET & GLOBAL BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  padding-bottom: 65px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

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

/* Section Title Utility */
.section-title-wrap {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title::before,
.section-title::after {
  content: '';
  display: inline-block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   03. HEADER TOP, MAIN HEADER & NAVIGATION BAR
   ========================================================================== */
/* Header Top */
.header-top {
  background-color: var(--dark-navy);
  color: #ffffff;
  font-size: 12.5px;
  padding: 6px 0;
  overflow: hidden;
}

.header-top-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-auth {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-auth a {
  color: #ffffff;
  font-weight: 600;
}

.user-auth a:hover,
.user-auth a.active {
  color: #fbbf24;
  text-decoration: underline;
}

/* Header Main */
.header-main {
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 90;
  transition: all 0.3s ease;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo a:hover img {
  transform: scale(1.02);
}

.search-box {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-form {
  display: flex;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #fff;
}

.search-input {
  flex: 1;
  border: none;
  padding: 8px 16px;
  font-size: 13.5px;
}

.search-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-prescription {
  background-color: var(--danger-color);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(215, 0, 24, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.btn-prescription:hover {
  transform: translateY(-1px);
  background-color: #b80015;
}

.cart-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.cart-widget:hover {
  border-color: var(--primary-color);
}

.cart-icon {
  position: relative;
  font-size: 18px;
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background-color: var(--danger-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-info {
  font-size: 12.5px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 22px;
  cursor: pointer;
}

/* Header Nav (Desktop Navigation Menu - Sticky on Scroll) */
.header-nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-nav.is-sticky {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.header-nav .container {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item>a {
  display: block;
  padding: 12px 15px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.nav-item:hover>a,
.nav-item.active>a {
  background-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   04. MOBILE OFF-CANVAS DRAWER MENU & MOBILE BOTTOM APP BAR
   ========================================================================== */
/* Mobile Drawer Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Panel */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-menu-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.drawer-logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.drawer-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: #e2e8f0;
}

.drawer-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-search form {
  display: flex;
  position: relative;
}

.drawer-search input {
  width: 100%;
  padding: 8px 38px 8px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  background: #f8fafc;
}

.drawer-search input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
}

.drawer-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
}

.drawer-body {
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s, color 0.15s;
}

.drawer-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.drawer-item:hover a,
.drawer-item.active a {
  background: #f0fdf4;
  color: var(--primary-color);
}

.drawer-contact-info {
  margin: 20px 16px 16px;
  padding: 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 12px;
}

.drawer-contact-info h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.drawer-contact-info p {
  color: var(--text-muted);
  margin-bottom: 5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.drawer-contact-info p:last-child {
  margin-bottom: 0;
}

.drawer-contact-info i {
  color: var(--primary-color);
  margin-top: 2px;
}

/* Mobile Bottom Navigation App Bar */
.mobile-bottom-app-bar,
.mobile-app-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 2100;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}

.mobile-app-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  position: relative;
  padding: 0 4px;
}

.mobile-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  text-align: center;
  padding: 2px 0;
  transition: color 0.2s;
}

.mobile-app-item span {
  font-size: 10.5px;
  color: #475569;
  margin-top: 2px;
  font-weight: 700;
  text-transform: capitalize;
}

.app-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
}

.bg-blue {
  background-color: var(--primary-color);
}

.bg-zalo {
  background-color: #0068ff;
}

.bg-messenger {
  background-color: #0084ff;
}

.bg-edit {
  background-color: var(--accent-color);
}

/* Center Floating Phone Call Button */
.center-phone-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d70018 0%, #b80015 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.4);
  border: 3px solid #ffffff;
  margin-top: -20px;
  animation: hotlinePulse 1.8s infinite;
}

@keyframes hotlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(215, 0, 24, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(215, 0, 24, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(215, 0, 24, 0);
  }
}

.call-now-pill {
  background-color: var(--danger-color);
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  display: inline-block;
}

/* ==========================================================================
   05. FOOTER, FLOATING WIDGETS, BACK TO TOP & MODAL / TOAST
   ========================================================================== */
/* Footer Styles */
.footer {
  background-color: #1e293b;
  color: #cbd5e1;
  font-size: 13.5px;
  margin-top: auto;
}

.footer-top {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 16px 0;
}

.footer-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.btn-hethong {
  background-color: #597bd9;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
}

.footer-main {
  padding: 35px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 25px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  background-color: #0f172a;
  padding: 15px 0;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  border-top: 1px solid #334155;
}

/* Floating Contact Widgets (Desktop) */
.floating-widgets {
  position: fixed;
  bottom: 25px;
  left: 15px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}

.float-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.float-zalo {
  background-color: #0084ff;
}

.float-fb {
  background-color: #1877f2;
}

.float-hotline {
  background-color: var(--danger-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 75px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Toast Container & Notification */
.toast-container {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #ffffff;
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Prescription / Consultation Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 15px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 92%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.form-control:focus {
  border-color: var(--primary-color);
}

/* ==========================================================================
   06. HOMEPAGE SECTIONS
   ========================================================================== */
/* Hero Banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  line-height: 0;
}

.slide-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Bar */
.features-bar {
  background-color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(52, 153, 71, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 13px;
  font-weight: 700;
}

.feature-text p {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Flash Sale Section */
.flash-sale-section {
  padding: 30px 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
  border-top: 1px solid #fed7d7;
  border-bottom: 1px solid #fed7d7;
  position: relative;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--danger-color), var(--accent-color));
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(215, 0, 24, 0.25);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flash-sale-title i {
  font-size: 22px;
  animation: pulse-fire 1.2s infinite ease-in-out;
}

@keyframes pulse-fire {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.timer-box {
  background: #ffffff;
  color: var(--danger-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 900;
  min-width: 30px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.timer-sep {
  font-weight: 900;
  color: #ffffff;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--danger-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stock-progress-wrap {
  margin-top: 6px;
  margin-bottom: 8px;
}

.stock-bar-outer {
  height: 12px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.stock-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--danger-color));
  border-radius: var(--radius-full);
}

.stock-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Flash Sale Action Buttons */
.flash-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: stretch;
  width: 100%;
}

.btn-flash-cart,
.flash-sale-section .btn-add-cart {
  background: #ffffff;
  color: #d32f2f !important;
  border: 1.5px solid #d32f2f !important;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  text-decoration: none;
}

.btn-flash-cart i,
.flash-sale-section .btn-add-cart i {
  color: #d32f2f !important;
  font-size: 13px;
  filter: none;
  transition: transform 0.2s ease;
}

.btn-flash-cart:hover,
.flash-sale-section .btn-add-cart:hover {
  background: #d32f2f !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-flash-cart:hover i,
.flash-sale-section .btn-add-cart:hover i {
  color: #ffffff !important;
  transform: scale(1.1);
}

.btn-flash-buy,
.flash-sale-section .btn-flash-buy {
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(215, 0, 24, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  flex: 1;
  text-align: center;
  text-decoration: none;
}

.btn-flash-buy i,
.flash-sale-section .btn-flash-buy i {
  color: #ffd600 !important;
  font-size: 13px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

.btn-flash-buy:hover,
.flash-sale-section .btn-flash-buy:hover {
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(215, 0, 24, 0.45);
}

.btn-flash-buy.btn-flash-contact {
  flex: 1;
  width: 100%;
}

/* Flash Sale Header Right & Navigation */
.flash-sale-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flash-sale-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flash-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.flash-nav-btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--danger-color);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flash-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Flash Sale Slider Wrapper & Scroll Track */
.flash-sale-slider-wrapper {
  position: relative;
  width: 100%;
}

.flash-sale-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 4px 2px 14px 2px;
}

.flash-sale-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Flash Sale Card Peek Calculation:
   - Desktop (>= 1200px): 4 full cards + peek of 5th card (~45% exposed)
   - Laptop (992px - 1199px): 3 full cards + peek of 4th card (~45% exposed)
   - Tablet (768px - 991px): 2 full cards + peek of 3rd card (~45% exposed)
   - Mobile Landscape (480px - 767px): 2 full cards + peek of 3rd card (~35% exposed)
   - Small Mobile (< 480px): 1 full card + peek of 2nd card (~48% exposed)
*/
.flash-sale-product-card {
  flex: 0 0 calc((100% - (4 * 16px)) / 4.45) !important;
  max-width: calc((100% - (4 * 16px)) / 4.45) !important;
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .flash-sale-scroll-track {
    gap: 14px;
  }
  .flash-sale-product-card {
    flex: 0 0 calc((100% - (3 * 14px)) / 3.45) !important;
    max-width: calc((100% - (3 * 14px)) / 3.45) !important;
  }
}

@media (max-width: 991px) {
  .flash-sale-scroll-track {
    gap: 12px;
  }
  .flash-sale-product-card {
    flex: 0 0 calc((100% - (2 * 12px)) / 2.45) !important;
    max-width: calc((100% - (2 * 12px)) / 2.45) !important;
  }
}

@media (max-width: 767px) {
  .flash-sale-scroll-track {
    gap: 10px;
    padding-bottom: 8px;
  }
  .flash-sale-product-card {
    flex: 0 0 calc((100% - (2 * 10px)) / 2.35) !important;
    max-width: calc((100% - (2 * 10px)) / 2.35) !important;
  }
}

@media (max-width: 479px) {
  .flash-sale-scroll-track {
    gap: 10px;
  }
  .flash-sale-product-card {
    flex: 0 0 calc((100% - 10px) / 1.48) !important;
    max-width: calc((100% - 10px) / 1.48) !important;
  }
}

/* Floating Navigation Arrows on Desktop */
.flash-floating-arrow {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

.flash-floating-arrow:hover {
  background: #d32f2f;
  color: #ffffff;
  border-color: #d32f2f;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.flash-floating-prev {
  left: -20px;
}

.flash-floating-next {
  right: -20px;
}

@media (max-width: 991px) {
  .flash-floating-arrow {
    display: none;
  }
}

/* Combo Hero Section */
.combo-hero-section {
  padding: 35px 0;
  background: #ffffff;
}

.combo-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.combo-badge-top {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-bottom-right-radius: var(--radius-md);
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(52, 153, 71, 0.25);
  letter-spacing: 0.5px;
}

.combo-thumb {
  position: relative;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(52, 153, 71, 0.18);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.combo-thumb img,
.combo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: inherit;
  transition: transform 0.35s ease;
}

.combo-thumb:hover img,
.combo-thumb:hover .combo-img {
  transform: scale(1.04);
}

.combo-btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  font-weight: 800 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 12px rgba(52, 153, 71, 0.3) !important;
  transition: all 0.25s ease !important;
}

.combo-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.combo-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.combo-checklist {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.combo-checklist li {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.combo-checklist li i {
  color: var(--primary-color);
}

.combo-price-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.combo-price-main {
  font-size: 24px;
  font-weight: 900;
  color: var(--danger-color);
}

.combo-price-old {
  font-size: 15px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.combo-save-pill {
  background: rgba(215, 0, 24, 0.1);
  color: var(--danger-color);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Categories Section */
.categories-section {
  padding: 35px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.category-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 15px 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}

.category-card:nth-child(odd) {
  background-color: #e8f5fd;
}

.category-card:nth-child(even) {
  background-color: #fef7dc;
}

.category-icon {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.category-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* Products Section & Card */
.products-section {
  padding: 35px 0;
  background: linear-gradient(180deg, #edf2f8 0%, #ffffff 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 15px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.product-thumb {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background: #f8fafc;
}

.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: auto;
  right: auto;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  z-index: 2;
  line-height: 1.4;
  height: auto;
  white-space: nowrap;
}

.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
  height: 35px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
  margin-bottom: 10px;
}

.btn-add-cart {
  width: 100%;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: stretch;
  width: 100%;
}

.product-card-actions .btn-add-cart {
  flex: 1;
  padding: 8px 10px;
  font-size: 12.5px;
  text-align: center;
  white-space: nowrap;
}

.btn-contact-price {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-detail-outline {
  background: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-detail-outline:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* About Us Section */
.about-section {
  padding: 35px 0;
  background-color: #ffffff;
}

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

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.about-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.about-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
}

.about-contact-list {
  background-color: var(--bg-light);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
  font-size: 13px;
}

.about-contact-list p {
  margin-bottom: 6px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* Social Proof Reviews Section */
.social-proof-section {
  padding: 35px 0;
  background-color: #ffffff;
}

.proof-summary-bar {
  text-align: center;
  margin-bottom: 25px;
}

.stars-wrap {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 4px;
}

.proof-summary-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.review-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.user-meta h5 {
  font-size: 13.5px;
  font-weight: 800;
}

.verified-tag {
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 700;
}

.review-comment {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* News Section */
.news-section {
  padding: 35px 0;
  background-color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.featured-article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.featured-thumb {
  height: 200px;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 15px;
}

.article-date {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.news-item-thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

/* ==========================================================================
   07. SHOP & PRODUCT DETAIL SECTIONS
   ========================================================================== */
/* Breadcrumb */
.breadcrumb-section {
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  font-size: 10px;
  color: #94a3b8;
}

.breadcrumb-active {
  color: var(--text-main);
  font-weight: 700;
}

/* Mobile Quick Category Scroll Bar */
.mobile-category-bar {
  background: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-category-bar::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  gap: 8px;
  padding: 0 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-pill.active,
.category-pill:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
  margin-bottom: 40px;
}

.filter-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.filter-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-list .filter-item {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  flex: 1;
}

.filter-list a:hover,
.filter-list .filter-item.active a {
  color: var(--primary-color);
  font-weight: 800;
}

.filter-count {
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #475569;
}

.sidebar-product-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-product-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-product-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-product-info a {
  font-size: 12.5px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-product-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--danger-color);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.shop-toolbar-result {
  font-size: 13.5px;
  color: var(--text-muted);
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Rating Stars */
.rating-stars {
  color: #f59e0b;
  font-size: 11px;
  margin-bottom: 5px;
  display: flex;
  gap: 2px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Desktop Visibility: Hide Mobile Filters by Default */
@media (min-width: 992px) {
  .mobile-quick-filter-bar,
  .filter-drawer-overlay,
  .filter-drawer-header,
  .filter-drawer-footer {
    display: none !important;
  }
}

/* Product Detail Page Layout */
.product-detail-section {
  padding: 25px 0 35px 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  background: #ffffff;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

/* Gallery Column */
.product-gallery {
  position: relative;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-main .origin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  bottom: auto;
  right: auto;
  height: auto;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.4;
  z-index: 2;
  background: var(--primary-color);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb-item {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--primary-color);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Column */
.product-info-column {
  display: flex;
  flex-direction: column;
}

.product-detail-title,
.detail-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.product-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.price-card,
.detail-price-box {
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

.price-card .price-current,
.detail-price-current {
  font-size: 26px;
  font-weight: 900;
  color: var(--danger-color);
}

.price-card .price-original,
.detail-price-old {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-save-badge {
  background: #fee2e2;
  color: var(--danger-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
}

.product-short-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.quick-specs-list {
  list-style: none;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #f8fafc;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
}

.quick-specs-list li strong {
  color: var(--dark-navy);
}

.purchase-actions-wrap {
  margin-bottom: 22px;
}

.quantity-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quantity-control-group label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.quantity-selector,
.quantity-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.quantity-selector .qty-btn,
.quantity-box .qty-btn {
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s;
}

.quantity-selector .qty-btn:hover,
.quantity-box .qty-btn:hover {
  background: #e2e8f0;
}

.quantity-selector .qty-input,
.quantity-box .qty-input {
  width: 48px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-group-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.btn-buy-now {
  background: var(--danger-color);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.25);
  transition: all 0.2s ease;
}

.btn-buy-now:hover {
  background: #b80015;
  transform: translateY(-2px);
}

.btn-add-cart-lg {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-add-cart-lg:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.service-commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
}

.commitment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.commitment-item i {
  font-size: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Product Tabs Section */
.product-tabs-section {
  padding: 30px 0 40px 0;
}

.product-tabs-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tab-headers,
.product-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-headers::-webkit-scrollbar,
.product-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 800;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: #ffffff;
}

.tab-content-body {
  padding: 25px 30px;
}

.tab-pane {
  display: none;
  line-height: 1.75;
  color: #334155;
}

.tab-pane.active {
  display: block;
}

.specs-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-detail-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.specs-detail-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.specs-detail-table td:first-child {
  font-weight: 700;
  width: 30%;
  color: var(--secondary-color);
}

/* ==========================================================================
   08. NEWS & BLOG EDITORIAL SECTIONS
   ========================================================================== */
.news-page-header {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 35px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.news-page-header h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-breadcrumb {
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-breadcrumb a {
  color: #ffffff;
  opacity: 0.9;
}

.news-breadcrumb a:hover {
  color: #fbbf24;
  opacity: 1;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
}

@media (min-width: 992px) {
  .news-layout {
    grid-template-columns: 2.8fr 1.2fr;
  }
}

.news-main-content {
  min-width: 0;
}

/* Mobile Quick Categories Filter Bar */
.mobile-cat-filter {
  display: none;
  white-space: nowrap;
  overflow-x: auto;
  padding: 5px 0 15px 0;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-cat-filter::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cat-pill.active,
.cat-pill:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Hero Featured Article */
.hero-news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-news-img-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.hero-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-news-card:hover .hero-news-img-wrap img {
  transform: scale(1.04);
}

.hero-news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.hero-news-body {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-meta i {
  color: var(--primary-color);
}

.hero-news-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-news-title a:hover {
  color: var(--primary-color);
}

.hero-news-excerpt {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 14px;
  transition: gap 0.2s ease;
}

.btn-readmore:hover {
  gap: 12px;
  color: var(--primary-hover);
}

/* Grid News Posts */
.news-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .news-grid-list {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
}

.page-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.page-link:hover,
.page-link.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.category-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  transition: all 0.2s ease;
}

.category-list a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.category-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.popular-news-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.popular-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-news-thumb {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.popular-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-news-info {
  flex: 1;
}

.popular-news-info h5 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-news-info h5 a:hover {
  color: var(--primary-color);
}

.popular-news-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

.banner-cta-box {
  background: linear-gradient(145deg, #17479e, #072d94);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.banner-cta-box h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fbbf24;
}

.banner-cta-box p {
  font-size: 13px;
  margin-bottom: 18px;
  opacity: 0.9;
  line-height: 1.5;
}

.banner-cta-box .btn-primary {
  width: 100%;
  background: #349947;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  box-sizing: border-box;
}

/* Single Article Detail Page Styles (chi-tiet-tin-tuc.html) */
.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 35px;
}

.article-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content h2,
.article-content h3 {
  color: var(--dark-navy);
  font-weight: 800;
  margin: 28px 0 14px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 15px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: #1e293b;
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Single Article Full Layout (chi-tiet-tin-tuc.html) */
.article-page-header {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 30px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.article-breadcrumb {
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: #ffffff;
  opacity: 0.9;
}

.article-breadcrumb a:hover {
  color: #fbbf24;
  opacity: 1;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (min-width: 992px) {
  .news-detail-layout {
    grid-template-columns: 2.8fr 1.2fr;
  }
}

.article-main-content {
  min-width: 0;
}

.article-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  width: 100%;
}

.article-tag-badge {
  display: inline-block;
  background: rgba(52, 153, 71, 0.1);
  color: var(--primary-color);
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-main-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta-bar i {
  color: var(--primary-color);
  margin-right: 4px;
}

.article-lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: #334155;
  background: #f8fafc;
  padding: 16px 20px;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.article-image-box {
  margin: 24px 0;
  text-align: center;
}

.article-image-box img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.article-image-caption {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

.article-product-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-product-cta img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-product-cta-info {
  flex: 1;
  min-width: 200px;
}

.article-product-cta-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 6px;
}

.article-product-cta-info p {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 10px;
}

.article-product-cta-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--danger-color);
}

.article-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag-item {
  background: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.article-tag-item:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
}

.share-fb { background: #1877f2; }
.share-zalo { background: #0068ff; }
.share-link { background: #64748b; }

.related-articles-section {
  margin-top: 40px;
}

.related-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-thumb {
  height: 140px;
  width: 100%;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-body {
  padding: 12px;
}

.related-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   09. LIVESTOCK KNOWLEDGE PORTAL
/* ==========================================================================
   09. LIVESTOCK KNOWLEDGE PORTAL (ky-thuat-chan-nuoi.html)
   ========================================================================== */
.livestock-hero-search {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 40px 0 45px 0;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.hero-search-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-search-wrap h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-search-wrap p {
  font-size: 14.5px;
  opacity: 0.9;
  margin-bottom: 22px;
}

.doc-search-box {
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doc-search-input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  outline: none;
}

.doc-search-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.doc-search-btn:hover {
  background: var(--primary-hover);
}

/* Quick Filter Topics (Chips Bar) */
.topic-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 30px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topic-filter-bar::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topic-chip.active,
.topic-chip:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Layout Main */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (min-width: 992px) {
  .portal-layout {
    grid-template-columns: 2.8fr 1.2fr;
  }
}

.portal-main-content {
  min-width: 0;
}

/* Section Title */
.portal-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Document Grid */
.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

@media (max-width: 640px) {
  .doc-card-grid {
    grid-template-columns: 1fr;
  }
}

.doc-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.doc-preview-thumb {
  position: relative;
  width: 90px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.doc-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.doc-item-card:hover .doc-preview-thumb img {
  transform: scale(1.08);
}

.file-format-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
}

.file-format-badge.pdf { background: #d70018; }
.file-format-badge.doc { background: #17479e; }

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 3px;
  display: inline-block;
}

.doc-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-title a:hover {
  color: var(--primary-color);
}

.doc-excerpt {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-doc-view {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color);
  background: #f0fdf4;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-doc-view:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-doc-download {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--secondary-color);
  background: #eff6ff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-doc-download:hover {
  background: var(--secondary-color);
  color: #ffffff;
}

/* Fast Diagnostic Table */
.diagnostic-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

.diagnostic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 10px;
}

.diagnostic-table th {
  background: #f8fafc;
  color: var(--dark-navy);
  font-weight: 800;
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border-color);
}

.diagnostic-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.badge-animal {
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   10. CONTACT PAGE (lien-he.html)
   ========================================================================== */
.contact-page-header {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 35px 0;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.contact-page-header h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-breadcrumb {
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-breadcrumb a {
  color: #ffffff;
  opacity: 0.9;
}

.contact-breadcrumb a:hover {
  color: #fbbf24;
  opacity: 1;
}

/* 4 Highlight Info Cards */
.contact-info-grid,
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .contact-info-grid,
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info-grid,
  .contact-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card,
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-icon-circle,
.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(52, 153, 71, 0.1);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.info-card h3,
.contact-info-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-card p,
.contact-info-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

.info-card a {
  color: var(--primary-color);
  font-weight: 700;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Contact Main Layout: Form + Map & Branch */
.contact-main-grid,
.contact-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (min-width: 992px) {
  .contact-main-grid,
  .contact-main-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Form Container */
.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-title-wrap {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.form-title-wrap h2,
.contact-form-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-title-wrap p,
.contact-form-box p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.form-grid-2,
.contact-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid-2,
  .contact-input-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group-full,
.contact-form-box .form-group {
  margin-bottom: 18px;
}

.form-group-full label,
.contact-form-box label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control-input,
.contact-form-box .form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.form-control-input:focus,
.contact-form-box .form-control:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 153, 71, 0.15);
}

textarea.form-control-input,
.contact-form-box textarea.form-control {
  resize: vertical;
}

.btn-submit-contact {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.btn-submit-contact:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Map & Office Box */
.contact-map-box,
.map-and-branches {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-frame-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 320px;
}

.map-frame-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.branch-office-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.branch-office-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
}

.office-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.office-item:last-child {
  margin-bottom: 0;
}

.office-item i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   11. CART & CHECKOUT FLOW (gio-hang.html, thong-tin-thanh-toan.html, xac-nhan-don-hang.html)
   ========================================================================== */
.cart-page-header,
.checkout-page-header,
.success-page-header {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 30px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.cart-page-header h1,
.checkout-page-header h1,
.success-page-header h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-breadcrumb,
.checkout-breadcrumb {
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-breadcrumb a,
.checkout-breadcrumb a {
  color: #ffffff;
  opacity: 0.9;
}

.cart-breadcrumb a:hover,
.checkout-breadcrumb a:hover {
  color: #fbbf24;
  opacity: 1;
}

/* Steps Progress Bar (thong-tin-thanh-toan.html, xac-nhan-don-hang.html) */
.checkout-steps-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 10px auto 35px auto;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.step-item.active {
  color: var(--primary-color);
}

.step-item.completed {
  color: var(--dark-navy);
}

.step-number,
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-item.active .step-number,
.step-item.active .step-circle {
  background: var(--primary-color);
  color: #ffffff;
}

.step-item.completed .step-number,
.step-item.completed .step-circle {
  background: var(--dark-navy);
  color: #ffffff;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  min-width: 15px;
  max-width: 50px;
}

/* Cart Page Layout (gio-hang.html) */
.cart-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-main-content {
  min-width: 0;
}

.cart-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cart-table th,
.cart-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-table th {
  background: #f8fafc;
  color: var(--dark-navy);
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  font-size: 13px;
}

.cart-product-item,
.cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product-thumb,
.cart-prod-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-product-thumb img,
.cart-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-product-title,
.cart-prod-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-product-title a:hover,
.cart-prod-title a:hover {
  color: var(--primary-color);
}

.cart-prod-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-unit-price,
.cart-item-price,
.cart-price {
  font-weight: 700;
  color: #334155;
}

.cart-subtotal-price,
.cart-subtotal {
  color: var(--danger-color);
  font-weight: 800;
  font-size: 15px;
}

/* Quantity Control Box */
.qty-box,
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
}

.qty-btn,
.cart-qty-ctrl button {
  width: 30px;
  height: 32px;
  background: transparent;
  border: none;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover,
.cart-qty-ctrl button:hover {
  background: #e2e8f0;
}

.qty-input,
.cart-qty-ctrl input {
  width: 40px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-remove-item {
  color: #94a3b8;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}

.btn-remove-item:hover {
  color: var(--danger-color);
}

.cart-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-continue-shop,
.btn-continue-shopping {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-continue-shop:hover,
.btn-continue-shopping:hover {
  color: var(--primary-hover);
}

.coupon-box {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 420px;
}

.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.coupon-input:focus {
  border-color: var(--primary-color);
}

.btn-apply-coupon {
  background: var(--dark-navy);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-apply-coupon:hover {
  background: var(--secondary-color);
}

.cart-sidebar {
  min-width: 0;
}

.order-summary-card,
.cart-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.summary-title,
.cart-summary-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
}

.summary-row,
.summary-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: #475569;
}

.summary-row.total-row,
.summary-calc-row.total-row {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.summary-total-price,
.total-amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--danger-color);
}

.btn-checkout-now,
.btn-proceed-checkout {
  width: 100%;
  background: var(--danger-color);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.3);
  transition: background 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.btn-checkout-now:hover,
.btn-proceed-checkout:hover {
  background: #b80015;
  transform: translateY(-2px);
}

.cart-guarantee-box {
  margin-top: 20px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 8px;
}

.guarantee-item:last-child {
  margin-bottom: 0;
}

.guarantee-item i {
  color: var(--primary-color);
}

/* Checkout Page Layout (thong-tin-thanh-toan.html) */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.payment-option-item.selected {
  border-color: var(--primary-color);
  background: #f0fdf4;
}

.qr-payment-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
  border: 1px dashed var(--primary-color);
  text-align: center;
}

.qr-code-img {
  max-width: 180px;
  margin: 10px auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: #ffffff;
}

.btn-copy-account {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
}

/* Specific Checkout Customer Card & Summary List */
.checkout-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.payment-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.payment-icon {
  font-size: 22px;
  color: var(--primary-color);
  width: 32px;
  text-align: center;
}

.payment-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.payment-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.bank-qr-box {
  display: none;
  background: #ffffff;
  border: 1px dashed var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 10px;
  text-align: center;
}

.bank-qr-box.active {
  display: block;
}

.qr-img {
  width: 160px;
  height: 160px;
  margin: 10px auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.order-item-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.order-item-mini:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.mini-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-qty-price {
  font-size: 12.5px;
  color: var(--text-muted);
}

.btn-place-order {
  width: 100%;
  background: var(--danger-color);
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(215, 0, 24, 0.35);
  transition: background 0.2s, transform 0.2s;
  margin-top: 15px;
}

.btn-place-order:hover {
  background: #b80015;
  transform: translateY(-2px);
}

/* Order Success Page (xac-nhan-don-hang.html) */
.success-card,
.success-main-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.success-main-card h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 153, 71, 0.12);
  color: var(--primary-color);
  font-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid #bbf7d0;
}

.order-code-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 15px;
}

.success-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .success-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: #334155;
}

.detail-row strong {
  color: var(--text-main);
}

.order-table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.order-table-mini td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.btn-return-home {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-return-home:hover {
  background: var(--primary-hover);
}

.order-info-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.bank-transfer-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

/* ==========================================================================
   12. ACCOUNT & ORDER DASHBOARD (tai-khoan.html & quan-ly-don-hang.html)
   ========================================================================== */
.auth-page-header,
.account-page-header {
  background: linear-gradient(135deg, #072d94 0%, #17479e 50%, #349947 100%);
  color: #ffffff;
  padding: 30px 0;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.auth-page-header h1,
.account-page-header h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-breadcrumb,
.account-breadcrumb {
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-breadcrumb a,
.account-breadcrumb a {
  color: #ffffff;
  opacity: 0.9;
}

.auth-breadcrumb a:hover,
.account-breadcrumb a:hover {
  color: #fbbf24;
  opacity: 1;
}

/* Authentication Page Dual Forms (tai-khoan.html) */
.auth-container {
  max-width: 960px;
  margin: 0 auto 50px auto;
}

.auth-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.auth-tab-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-tab-btn.active {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(52, 153, 71, 0.3);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-navy);
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
}

.auth-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #f8fafc;
  color: var(--text-main);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.auth-input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
}

.auth-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #475569;
}

.forgot-pass-link {
  color: var(--primary-color);
  font-weight: 700;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(52, 153, 71, 0.25);
}

.btn-auth-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-auth-register {
  background: var(--dark-navy);
  box-shadow: 0 4px 10px rgba(7, 45, 148, 0.25);
}

.btn-auth-register:hover {
  background: #17479e;
}

.social-login-separator {
  text-align: center;
  position: relative;
  margin: 22px 0;
}

.social-login-separator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.social-login-separator span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-social.google {
  color: #ea4335;
}

.btn-social.facebook {
  color: #1877f2;
}

.btn-social:hover {
  background: #f8fafc;
}

/* Order Management Dashboard (quan-ly-don-hang.html) */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 50px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 991px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.account-sidebar-col,
.orders-main-col {
  min-width: 0;
  max-width: 100%;
}

.account-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-name-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 2px;
}

.user-name-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.account-menu-list {
  list-style: none;
}

.account-menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: #475569;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.account-menu-item.active a,
.account-menu-item a:hover {
  background: #f0fdf4;
  color: var(--primary-color);
}

.account-menu-item a i {
  width: 20px;
  text-align: center;
}

.orders-main-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.order-status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.order-status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.status-tab-btn.active {
  background: var(--dark-navy);
  color: #ffffff;
}

.order-card-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.order-card-header {
  background: #f8fafc;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id-meta {
  font-size: 13.5px;
  color: var(--text-main);
}

.order-status-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.order-status-tag.delivering {
  background: #eff6ff;
  color: #1d4ed8;
}

.order-status-tag.completed {
  background: #f0fdf4;
  color: #15803d;
}

.order-status-tag.pending {
  background: #fffbe6;
  color: #d97706;
}

.order-product-row {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.order-product-row:last-child {
  border-bottom: none;
}

.order-prod-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.order-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-prod-info {
  flex: 1;
  min-width: 0;
}

.order-prod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.35;
}

.order-prod-qty {
  font-size: 12.5px;
  color: var(--text-muted);
}

.order-prod-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--danger-color);
  white-space: nowrap;
}

.order-card-footer {
  background: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

.order-total-sum {
  font-size: 14px;
  color: #475569;
}

.order-total-sum strong {
  font-size: 16px;
  color: var(--danger-color);
  font-weight: 900;
}

.order-action-btns {
  display: flex;
  gap: 8px;
}

.btn-order-detail {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-order-detail:hover {
  background: #e2e8f0;
}

.btn-order-reorder {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-order-reorder:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   13. MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {

  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .header-top {
    display: none !important;
  }

  .header-nav {
    display: none !important;
  }

  .floating-widgets {
    display: none !important;
  }

  .mobile-bottom-app-bar,
  .mobile-app-bottom-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #ffffff !important;
    z-index: 2100 !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.12) !important;
  }

  .back-to-top {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .product-detail-layout,
  .dashboard-layout,
  .cart-layout,
  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout {
    gap: 24px;
    padding: 18px;
  }

  .gallery-main img {
    height: 340px;
  }

  .service-commitments {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-specs-list {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .shop-main {
    width: 100%;
    max-width: 100%;
  }

  /* Mobile Shop Quick Filter Bar */
  .mobile-quick-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .mobile-filter-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--dark-navy);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .mobile-filter-trigger-btn:hover {
    background: var(--secondary-color);
  }

  .mobile-category-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
  }

  .mobile-category-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .mobile-cat-chip.active,
  .mobile-cat-chip:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
  }

  /* Mobile Off-Canvas Filter Drawer */
  .filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
  }

  .filter-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.18);
  }

  .shop-sidebar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--dark-navy);
    color: #ffffff;
    flex-shrink: 0;
  }

  .filter-drawer-header h3 {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filter-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
  }

  .filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  .filter-drawer-body .filter-box {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: none;
  }

  .filter-drawer-footer {
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    display: block;
  }

  .btn-apply-filter {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
  }

  .btn-apply-filter:hover {
    background: var(--primary-hover);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 65px;
  }

  .header-top {
    display: none !important;
  }

  .floating-widgets {
    display: none !important;
  }

  .mobile-bottom-app-bar,
  .mobile-app-bottom-bar {
    display: block !important;
  }

  .header-main {
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
  }

  .header-main.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .header-main .container {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .logo img {
    max-height: 44px;
  }

  .search-box {
    order: 0;
    flex: 1;
    max-width: 100%;
    margin-top: 0;
  }

  .search-form {
    border-width: 1.5px;
  }

  .search-input {
    padding: 5px 10px;
    font-size: 12px;
    height: 30px;
  }

  .search-btn {
    padding: 0 12px;
    height: 30px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
    padding-right: 6px;
  }

  .btn-prescription span,
  .cart-info {
    display: none !important;
  }

  .btn-prescription {
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    justify-content: center;
    font-size: 12px;
  }

  .cart-widget {
    padding: 0;
    border: none;
    width: 30px;
    height: 30px;
    justify-content: center;
    position: relative;
  }

  .cart-icon {
    font-size: 17px;
  }

  .cart-badge {
    top: -5px;
    right: -6px;
    width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .header-nav {
    display: none;
  }

  /* Breadcrumb & Shop Layout Mobile */
  .breadcrumb-section {
    padding: 8px 0;
    margin-bottom: 12px;
  }

  .breadcrumb-list {
    font-size: 12px;
  }

  .shop-section {
    padding: 10px 0 35px 0;
  }

  /* Product Detail Mobile Optimizations */
  .product-detail-layout {
    padding: 14px;
    gap: 16px;
    margin-bottom: 20px;
  }

  .product-detail-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .gallery-main img {
    height: 260px;
  }

  .gallery-thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .thumb-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .price-card {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 15px;
  }

  .price-card .price-current {
    font-size: 22px;
  }

  .btn-group-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-buy-now,
  .btn-add-cart-lg {
    padding: 11px 14px;
    font-size: 12.5px;
    width: 100%;
  }

  .product-tabs-section {
    padding: 15px 0 30px 0;
  }

  .tab-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .tab-btn {
    padding: 12px 6px;
    font-size: 12.5px;
    text-align: center;
    white-space: normal;
  }

  .tab-content-body {
    padding: 16px 14px;
  }

  .specs-detail-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .specs-detail-table td:first-child {
    width: 42%;
  }

  .shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .shop-toolbar-result {
    font-size: 12px;
  }

  .shop-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .sort-label {
    display: none;
  }

  .sort-select {
    padding: 4px 8px;
    font-size: 12px;
  }

  .flash-sale-header {
    padding: 10px 14px;
  }

  .flash-sale-title {
    font-size: 14px;
  }

  .combo-card {
    grid-template-columns: 1fr;
    padding: 38px 14px 18px 14px;
    gap: 16px;
  }

  .combo-badge-top {
    font-size: 10.5px;
    padding: 4px 12px;
  }

  .combo-thumb {
    height: 220px;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .combo-thumb img,
  .combo-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .combo-content h3 {
    font-size: 17px;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 6px;
  }

  .combo-desc {
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    margin-bottom: 12px;
  }

  .combo-checklist {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .combo-checklist li {
    font-size: 12px;
  }

  .combo-price-wrap {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .combo-price-main {
    font-size: 20px;
  }

  .combo-price-old {
    font-size: 13px;
  }

  .combo-btn-cta {
    width: 100% !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .feature-card {
    padding: 8px 10px;
    gap: 8px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .feature-text h4 {
    font-size: 11.5px;
  }

  .feature-text p {
    font-size: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-title {
    font-size: 18px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .category-card {
    padding: 10px 6px;
  }

  .category-icon {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .category-card h4 {
    font-size: 11px;
    line-height: 1.25;
  }

  /* Product Grid Mobile - Exact 2 Columns Clean Fit */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
  }

  .product-card {
    border-radius: var(--radius-sm);
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .product-body {
    padding: 8px;
  }

  .rating-stars {
    font-size: 9.5px;
    margin-bottom: 3px;
  }

  .product-title {
    font-size: 11.5px;
    height: 32px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .product-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: stretch;
    width: 100%;
  }

  .product-card-actions .btn-add-cart,
  .btn-add-cart {
    flex: 1;
    padding: 6px 4px !important;
    font-size: 11px !important;
    gap: 3px !important;
    white-space: nowrap !important;
    height: 34px;
    min-width: 0;
  }

  /* Flash Sale Buttons Mobile - Exact Clean Fit */
  .flash-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: stretch;
    width: 100%;
  }

  .flash-card-actions .btn-flash-cart,
  .flash-sale-section .btn-flash-cart,
  .flash-sale-section .btn-add-cart {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 35px !important;
    padding: 0 !important;
    min-width: 36px !important;
    border-radius: var(--radius-sm);
    background: #fff5f5 !important;
    border: 1.5px solid #ef4444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
  }

  .flash-card-actions .btn-flash-cart .flash-cart-text,
  .flash-sale-section .btn-flash-cart .flash-cart-text,
  .flash-sale-section .btn-add-cart .flash-cart-text,
  .flash-sale-section .btn-add-cart .cart-text {
    display: none !important;
  }

  .flash-card-actions .btn-flash-cart i,
  .flash-sale-section .btn-flash-cart i,
  .flash-sale-section .btn-add-cart i {
    font-size: 14px !important;
    color: #ef4444 !important;
    margin: 0 !important;
  }

  .btn-flash-buy,
  .flash-sale-section .btn-flash-buy {
    flex: 1 !important;
    height: 35px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.2px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-flash-buy i,
  .flash-sale-section .btn-flash-buy i {
    font-size: 11.5px !important;
    flex-shrink: 0 !important;
  }

  .btn-flash-buy span,
  .flash-sale-section .btn-flash-buy span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* News Mobile Layout */
  .news-page-header {
    padding: 20px 0;
    margin-bottom: 15px;
  }

  .news-page-header h1 {
    font-size: 19px;
  }

  .mobile-cat-filter {
    display: flex;
  }

  .news-layout {
    display: flex;
    flex-direction: column;
  }

  .hero-news-img-wrap {
    height: 200px;
  }

  .hero-news-body {
    padding: 16px;
  }

  .hero-news-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .hero-news-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Horizontal List Layout for Mobile Articles */
  .news-card-mobile-horizontal {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px 10px;
    gap: 12px;
  }

  .news-card-mobile-horizontal .news-card-thumb {
    width: 110px;
    height: 95px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .news-card-mobile-horizontal .news-card-body {
    padding: 0;
    min-width: 0;
    flex: 1;
  }

  .news-card-mobile-horizontal .news-card-title {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-mobile-horizontal .news-card-excerpt {
    display: -webkit-box;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-mobile-horizontal .btn-readmore {
    display: none;
  }

  .news-card-mobile-horizontal .news-meta {
    margin-bottom: 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured-thumb {
    height: 150px;
  }

  .article-title {
    font-size: 14px;
  }

  .news-item {
    padding: 8px;
  }

  .news-item-thumb {
    width: 75px;
    height: 60px;
  }

  .news-item-content h4 {
    font-size: 12px;
  }

  /* Livestock Portal Mobile Layout */
  .livestock-hero-search {
    padding: 24px 0 28px 0;
    margin-bottom: 20px;
  }

  .hero-search-wrap h1 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .hero-search-wrap p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .doc-search-box {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 10px;
    padding: 0;
  }

  .doc-search-input {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    font-size: 13.5px;
  }

  .doc-search-btn {
    width: 100%;
    border-radius: var(--radius-md);
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }

  .topic-filter-bar {
    padding: 5px 0 12px 0;
    margin-bottom: 20px;
  }

  .topic-chip {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .portal-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .portal-section-title {
    font-size: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .doc-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .doc-item-card {
    padding: 14px;
    gap: 12px;
  }

  .doc-preview-thumb {
    width: 75px;
    height: 85px;
  }

  .doc-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .doc-meta {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .doc-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-doc-view, .btn-doc-download {
    font-size: 11.5px;
    padding: 6px 10px;
    flex: 1;
    justify-content: center;
  }

  .diagnostic-table-card {
    padding: 14px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .diagnostic-table {
    min-width: 520px;
    font-size: 12.5px;
  }

  .diagnostic-table th, .diagnostic-table td {
    padding: 9px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-col h4 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  /* Cart Page Mobile Responsive Transformation */
  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
  }

  .cart-main-content,
  .cart-sidebar {
    width: 100%;
    min-width: 0;
  }

  .cart-table-card {
    padding: 16px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: visible;
  }

  .cart-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: block;
    width: 100%;
  }

  .cart-table tr.cart-item-row {
    display: block;
    position: relative;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
    width: 100%;
    box-sizing: border-box;
  }

  .cart-table tr.cart-item-row:first-child {
    padding-top: 0;
  }

  .cart-table tr.cart-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cart-table tr.cart-item-row td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    width: 100%;
  }

  /* Product Thumbnail + Title Row */
  .cart-table tr.cart-item-row td:first-child {
    margin-bottom: 10px;
    padding-right: 32px;
  }

  .cart-product-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-product-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .cart-product-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
  }

  /* Unit price cell: hide on mobile */
  .cart-table tr.cart-item-row td:nth-child(2) {
    display: none;
  }

  /* Quantity Box + Subtotal Price row */
  .cart-table tr.cart-item-row td:nth-child(3) {
    display: inline-block;
    vertical-align: middle;
    width: auto;
  }

  .qty-box {
    background: #f1f5f9;
  }

  .qty-btn {
    width: 28px;
    height: 30px;
    font-size: 14px;
  }

  .qty-input {
    width: 36px;
    height: 30px;
    font-size: 13px;
  }

  .cart-table tr.cart-item-row td:nth-child(4) {
    display: inline-block;
    float: right;
    text-align: right;
    line-height: 30px;
    width: auto;
  }

  .cart-subtotal-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--danger-color);
  }

  /* Delete Button top-right */
  .cart-table tr.cart-item-row td:nth-child(5) {
    position: absolute;
    top: 14px;
    right: 0;
    width: auto;
  }

  .cart-table tr.cart-item-row:first-child td:nth-child(5) {
    top: 0;
  }

  .btn-remove-item {
    padding: 4px;
    font-size: 16px;
    color: #94a3b8;
  }

  .cart-table-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
  }

  .btn-continue-shop {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 0;
  }

  .coupon-box {
    margin-top: 14px;
    flex-direction: column;
    max-width: 100%;
    gap: 8px;
  }

  .coupon-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
  }

  .btn-apply-coupon {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 13.5px;
  }

  .order-summary-card,
  .cart-summary-card {
    padding: 18px 14px;
  }

  .summary-title {
    font-size: 15.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .btn-checkout-now {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Checkout Steps Progress Mobile (thong-tin-thanh-toan.html, xac-nhan-don-hang.html) */
  .checkout-steps-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    margin: 5px auto 25px auto;
    padding: 0 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    white-space: normal;
    line-height: 1.3;
  }

  .step-number,
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin: 0 auto;
  }

  .step-divider {
    height: 2px;
    background: #e2e8f0;
    flex: 0 0 20px;
    margin-top: 13px;
    min-width: 10px;
    max-width: 35px;
  }

  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
  }

  .checkout-left-col,
  .checkout-right-col {
    width: 100%;
    min-width: 0;
  }

  .checkout-card {
    padding: 18px 14px;
  }

  /* Order Management & Account Dashboard Mobile */
  .account-page-header {
    padding: 22px 0;
    margin-bottom: 24px;
  }

  .account-page-header h1 {
    font-size: 19px;
    line-height: 1.35;
  }

  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
    min-width: 0;
    width: 100%;
  }

  .account-sidebar-col,
  .orders-main-col {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .account-sidebar-card {
    padding: 16px 14px;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .user-name-info h4 {
    font-size: 14.5px;
  }

  .account-menu-item a {
    padding: 9px 12px;
    font-size: 13px;
  }

  .orders-main-card {
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .order-status-tabs {
    margin-bottom: 16px;
    padding-bottom: 8px;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }

  .order-status-tabs::-webkit-scrollbar {
    display: none;
  }

  .status-tab-btn {
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .order-card-item {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
  }

  .order-card-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-id-meta {
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
  }

  .order-status-tag {
    font-size: 11px;
    padding: 3px 10px;
    align-self: flex-start;
  }

  .order-product-row {
    padding: 12px 10px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
  }

  .order-prod-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .order-prod-info {
    flex: 1 1 calc(100% - 64px);
    min-width: 0;
  }

  .order-prod-title {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .order-prod-qty {
    font-size: 12px;
  }

  .order-prod-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--danger-color);
    width: 100%;
    text-align: right;
    margin-top: 2px;
  }

  .order-card-footer {
    padding: 12px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .order-total-sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
  }

  .order-total-sum strong {
    font-size: 15px;
  }

  .order-action-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .btn-order-detail,
  .btn-order-reorder {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-order-detail,
  .btn-order-reorder {
    font-size: 11.5px;
    padding: 7px 6px;
  }

  .flash-card-actions {
    gap: 5px;
  }

  .flash-card-actions .btn-flash-cart,
  .flash-sale-section .btn-flash-cart,
  .flash-sale-section .btn-add-cart {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .btn-flash-buy,
  .flash-sale-section .btn-flash-buy {
    height: 34px !important;
    font-size: 11px !important;
    padding: 0 6px !important;
    gap: 3px !important;
  }

  .btn-flash-buy i,
  .flash-sale-section .btn-flash-buy i {
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  .flash-card-actions .btn-flash-cart,
  .flash-sale-section .btn-flash-cart,
  .flash-sale-section .btn-add-cart {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 32px !important;
    min-width: 30px !important;
  }

  .btn-flash-buy,
  .flash-sale-section .btn-flash-buy {
    height: 32px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
    letter-spacing: 0 !important;
    gap: 3px !important;
  }

  .btn-flash-buy i,
  .flash-sale-section .btn-flash-buy i {
    font-size: 10px !important;
  }

  .combo-card {
    padding: 34px 10px 14px 10px;
    gap: 12px;
  }

  .combo-thumb {
    height: 185px;
    padding: 0;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .combo-thumb img,
  .combo-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .combo-content h3 {
    font-size: 15px;
  }

  .combo-desc {
    font-size: 11.5px;
  }

  .combo-checklist li {
    font-size: 11px;
  }

  .combo-price-main {
    font-size: 18px;
  }

  .combo-save-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .combo-btn-cta {
    font-size: 11.5px !important;
    padding: 9px 8px !important;
    letter-spacing: -0.2px;
  }
}

/* ==========================================================================
   14. SKELETON & API DATA LOADING SYSTEM
   ========================================================================== */

/* Shimmer Animation & Keyframes */
@keyframes agriShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes agriSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes agriPulseScale {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes agriProgressLine {
  0% {
    left: -40%;
    width: 35%;
  }
  50% {
    left: 30%;
    width: 50%;
  }
  100% {
    left: 100%;
    width: 35%;
  }
}

/* Base Skeleton Building Blocks */
.skeleton-box,
.skeleton-line,
.skeleton-img,
.skeleton-badge,
.skeleton-btn,
.skeleton-circle,
.skeleton-tag {
  background: linear-gradient(90deg, #edf3ee 25%, #f8faf8 50%, #edf3ee 75%);
  background-size: 200% 100%;
  animation: agriShimmer 1.5s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: block;
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.full { width: 100%; }

/* --- 1. SKELETON PRODUCT CARD --- */
.skeleton-product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.skeleton-product-thumb {
  width: 100%;
  padding-top: 85%;
  position: relative;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: linear-gradient(90deg, #e8f0e9 25%, #f4f8f5 50%, #e8f0e9 75%);
  background-size: 200% 100%;
  animation: agriShimmer 1.5s infinite ease-in-out;
  overflow: hidden;
}

.skeleton-product-origin {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 65px;
  height: 18px;
  border-radius: 12px;
  background: #dfebe1;
}

.skeleton-product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 55px;
  height: 18px;
  border-radius: 12px;
  background: #fed7aa;
}

.skeleton-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.skeleton-product-stars {
  width: 75px;
  height: 11px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: #edf3ee;
}

.skeleton-product-title-1 {
  height: 13px;
  width: 95%;
  margin-bottom: 6px;
}

.skeleton-product-title-2 {
  height: 13px;
  width: 65%;
  margin-bottom: 12px;
}

.skeleton-product-price {
  height: 18px;
  width: 45%;
  margin-top: auto;
  margin-bottom: 10px;
  background: #dcfce7;
  border-radius: 4px;
}

.skeleton-product-btn {
  height: 34px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: #e2ede4;
}

/* --- 2. SKELETON NEWS CARD --- */
.skeleton-news-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.skeleton-news-thumb {
  width: 100%;
  height: 175px;
  background: linear-gradient(90deg, #e8f0e9 25%, #f4f8f5 50%, #e8f0e9 75%);
  background-size: 200% 100%;
  animation: agriShimmer 1.5s infinite ease-in-out;
}

.skeleton-news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.skeleton-news-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.skeleton-news-meta-item {
  width: 80px;
  height: 12px;
}

.skeleton-news-title {
  height: 16px;
  width: 90%;
  margin-bottom: 6px;
}

.skeleton-news-title-sub {
  height: 16px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-news-desc {
  height: 12px;
  width: 100%;
  margin-bottom: 6px;
}

.skeleton-news-desc-short {
  height: 12px;
  width: 80%;
  margin-bottom: 14px;
}

.skeleton-news-link {
  height: 14px;
  width: 85px;
  margin-top: auto;
  background: #dcfce7;
}

/* --- 3. SKELETON PRODUCT DETAIL LAYOUT --- */
.skeleton-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.skeleton-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-detail-main-img {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #e8f0e9 25%, #f4f8f5 50%, #e8f0e9 75%);
  background-size: 200% 100%;
  animation: agriShimmer 1.5s infinite ease-in-out;
}

.skeleton-detail-thumbs {
  display: flex;
  gap: 12px;
}

.skeleton-detail-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
}

.skeleton-detail-info {
  display: flex;
  flex-direction: column;
}

.skeleton-detail-tag {
  width: 90px;
  height: 22px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #dcfce7;
}

.skeleton-detail-title {
  height: 24px;
  width: 95%;
  margin-bottom: 8px;
}

.skeleton-detail-title-2 {
  height: 24px;
  width: 70%;
  margin-bottom: 16px;
}

.skeleton-detail-rating {
  width: 140px;
  height: 14px;
  margin-bottom: 18px;
}

.skeleton-detail-price-box {
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.skeleton-detail-price {
  width: 160px;
  height: 28px;
  background: #dcfce7;
}

.skeleton-detail-oldprice {
  width: 90px;
  height: 16px;
}

.skeleton-detail-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.skeleton-detail-label {
  width: 100px;
  height: 14px;
}

.skeleton-detail-value {
  width: 180px;
  height: 14px;
}

.skeleton-detail-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.skeleton-detail-qty {
  width: 110px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.skeleton-detail-btn-main {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #dcfce7;
}

.skeleton-detail-btn-sub {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fed7aa;
}

/* --- 4. SKELETON ORDER MANAGEMENT CARD --- */
.skeleton-order-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.skeleton-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.skeleton-order-id {
  width: 130px;
  height: 16px;
}

.skeleton-order-status {
  width: 90px;
  height: 24px;
  border-radius: 12px;
  background: #dcfce7;
}

.skeleton-order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.skeleton-order-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-order-item-info {
  flex: 1;
}

.skeleton-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 14px;
}

.skeleton-order-total {
  width: 140px;
  height: 18px;
}

.skeleton-order-btn {
  width: 110px;
  height: 32px;
  border-radius: var(--radius-sm);
}

/* --- 5. FULLSCREEN GLOBAL API LOADER OVERLAY --- */
.app-global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.app-global-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.app-loader-card {
  background: #ffffff;
  padding: 30px 36px;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(52, 153, 71, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  width: 90%;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.app-global-loader.is-active .app-loader-card {
  transform: scale(1);
}

.app-loader-spinner-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3.5px solid rgba(52, 153, 71, 0.15);
  border-top-color: var(--primary-color);
  border-right-color: var(--accent-color);
  animation: agriSpin 1.1s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.app-loader-ring-outer {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  border: 2px dashed rgba(52, 153, 71, 0.3);
  animation: agriSpin 7s infinite linear reverse;
}

.app-loader-icon {
  font-size: 26px;
  color: var(--primary-color);
  animation: agriPulseScale 1.8s infinite ease-in-out;
}

.app-loader-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.app-loader-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.app-loader-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.app-loader-bar-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  animation: agriProgressLine 1.8s infinite ease-in-out;
}

/* --- 6. SECTION / CONTAINER INLINE LOADER --- */
.section-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  min-height: 140px;
}

.is-loading-container {
  position: relative !important;
  min-height: 180px;
}

.section-loader-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.section-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3.5px solid rgba(52, 153, 71, 0.18);
  border-top-color: var(--primary-color);
  border-right-color: var(--accent-color);
  animation: agriSpin 0.9s infinite cubic-bezier(0.65, 0, 0.35, 1);
  margin-bottom: 12px;
}

.section-loader-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .skeleton-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  .skeleton-detail-main-img {
    height: 270px;
  }
  .skeleton-detail-actions {
    flex-direction: column;
  }
  .skeleton-detail-qty {
    width: 100%;
  }
}

/* Loading Demo Showcase Helper Styles */
.loading-demo-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 35px 0;
  border-bottom: 1px solid #bbf7d0;
  margin-bottom: 30px;
}
.loading-demo-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.loading-demo-header p {
  color: var(--text-muted);
  font-size: 14px;
}
.demo-controls-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}
.demo-controls-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-demo {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-demo-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-demo-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 153, 71, 0.3);
}
.btn-demo-accent {
  background-color: var(--accent-color);
  color: #ffffff;
}
.btn-demo-accent:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 137, 0, 0.3);
}
.btn-demo-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
}
.btn-demo-outline:hover {
  background-color: #eff6ff;
  transform: translateY(-2px);
}
.demo-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-card-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}
.code-snippet-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin-top: 15px;
}
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-func { color: #38bdf8; }
.code-str { color: #4ade80; }
.code-comment { color: #64748b; font-style: italic; }

/* ==========================================================================
   15. 404 ERROR PAGE STYLES
   ========================================================================== */
.error-404-section {
  padding: 40px 0 60px;
  background: #f8fafc;
}

.error-404-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto 40px;
}

.error-404-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: var(--danger-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}

.error-404-graphic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.error-404-number {
  font-size: 125px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(52, 153, 71, 0.15);
}

.error-404-leaf-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: var(--accent-color);
  opacity: 0.95;
  animation: agriPulseScale 2s infinite ease-in-out;
}

.error-404-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.error-404-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.error-404-search-box {
  max-width: 500px;
  margin: 0 auto 28px;
}

.error-404-search-form {
  display: flex;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(52, 153, 71, 0.15);
}

.error-404-search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.error-404-search-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.error-404-search-btn:hover {
  background-color: var(--primary-hover);
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.error-404-actions .btn-primary {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(52, 153, 71, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.error-404-actions .btn-outline {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.error-404-actions .btn-outline:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

.error-404-actions .btn-hotline {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  background: #eff6ff;
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.error-404-actions .btn-hotline:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Quick Categories Grid for 404 */
.error-quick-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.error-cat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.error-cat-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.error-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.error-cat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.error-cat-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .error-quick-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .error-404-number {
    font-size: 80px;
  }
  .error-404-card {
    padding: 35px 18px;
  }
  .error-404-title {
    font-size: 19px;
  }
  .error-quick-categories {
    grid-template-columns: 1fr;
  }
  .error-404-actions {
    flex-direction: column;
    width: 100%;
  }
  .error-404-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* Hide Next.js Dev Indicator / Issues Badge */
nextjs-portal,
[data-nextjs-toast],
[data-nextjs-dialog-overlay],
#next-dev-overlay,
#nextjs-dev-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}