/* ==========================================================================
   THEME STYLES - TEMPLATE #8312-F CỬA HÀNG THIẾT BỊ Y TẾ (MATBAO WS 3.0)
   ========================================================================== */

:root {
  --primary-color: #0f8db3;
  --primary-dark: #0a6b88;
  --primary-light: #e6f5f9;
  --secondary-color: #12ad9d;
  --secondary-dark: #0d8276;
  --accent-color: #f39c12;
  --success-color: #7a9c59;
  --alert-color: #e74c3c;
  --star-color: #efbf04;
  
  --text-color: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --heading-color: #222222;
  
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f2f4f7;
  --border-color: #e5e7eb;
  --border-dark: #d1d5db;
  
  --topbar-bg: #282828;
  --header-height: 120px;
  --container-width: 1250px;
  
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-alt: "Dancing Script", cursive;
  
  --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);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------- Reset & Base ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ----------------- Header & Navigation ----------------- */
.site-header {
  width: 100%;
  background: #fff;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.topbar {
  background-color: var(--topbar-bg);
  color: #a8a8a8;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: #a8a8a8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  color: #fff;
}

.topbar .hotline-highlight {
  color: #2ecc71;
  font-weight: 700;
}

.header-main {
  padding: 20px 0;
  background: #fff;
  transition: var(--transition);
}

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

.site-logo {
  flex-shrink: 0;
  width: 180px;
}

.site-logo img {
  max-height: 55px;
  width: auto;
}

/* Search Box with Category Selector */
.header-search {
  flex-grow: 1;
  max-width: 620px;
}

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

.search-category-select {
  border: none;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--text-color);
  border-right: 1px solid var(--border-color);
  outline: none;
  cursor: pointer;
  font-weight: 500;
}

.search-input {
  flex-grow: 1;
  border: none;
  padding: 0 15px;
  outline: none;
  font-size: 0.95rem;
}

.search-button {
  background: var(--primary-color);
  color: #fff;
  padding: 0 22px;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: var(--primary-dark);
}

/* Header Right: Hotline & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

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

.header-phone-box .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.header-phone-box .phone-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-phone-box .phone-text strong {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.header-cart-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.cart-icon-wrap {
  position: relative;
  font-size: 1.3rem;
  color: var(--primary-color);
}

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

.cart-info-text {
  text-align: left;
}

.cart-info-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-info-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--heading-color);
}

/* Bottom Navigation Bar */
.header-nav-bar {
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.header-nav-bar .container {
  display: flex;
  align-items: center;
  height: 48px;
}

/* Category Dropdown (Left) */
.category-dropdown-wrap {
  position: relative;
  width: 270px;
  height: 100%;
  flex-shrink: 0;
}

.category-dropdown-btn {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.category-dropdown-btn i:first-child {
  margin-right: 8px;
}

.category-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 99;
}

.category-dropdown-wrap:hover .category-dropdown-menu,
.category-dropdown-wrap.open .category-dropdown-menu,
.category-dropdown-menu.always-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.92rem;
  color: #374151;
  transition: var(--transition);
}

.category-dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  padding-left: 22px;
}

.category-dropdown-menu li a i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 18px;
  text-align: center;
}

/* Main Navigation Menu (Right) */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: 20px;
  height: 100%;
}

.main-nav > li {
  height: 100%;
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
}

.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.main-nav > li:hover > a,
.main-nav > li.active > a {
  color: var(--primary-color);
}

.main-nav > li:hover > a::after,
.main-nav > li.active > a::after {
  transform: scaleX(1);
}

/* Sticky Header State */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideDown 0.35s ease-out;
}

.site-header.is-sticky .topbar {
  display: none;
}

.site-header.is-sticky .header-main {
  padding: 10px 0;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ----------------- Hero Banner Slider ----------------- */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background: #f0f4f8;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 480px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 30px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.slide-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 15px;
}

.slide-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(15, 141, 179, 0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 141, 179, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: var(--transition);
}

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

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--heading-color);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.slider-nav:hover {
  background: #fff;
  color: var(--primary-color);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-color);
  width: 28px;
  border-radius: 6px;
}

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

/* ----------------- Highlight Categories ----------------- */
.section-padding {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.category-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-card .card-thumb {
  height: 180px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.category-card:hover .card-thumb img {
  transform: scale(1.08);
}

.category-card .card-body {
  padding: 16px;
}

.category-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
  transition: var(--transition);
}

.category-card:hover h4 {
  color: var(--primary-color);
}

.category-card .btn-view-all {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ----------------- Service Promo Banner ----------------- */
.service-banner-section {
  background: url('../images/service-banner.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 40px 0;
  color: #fff;
  margin: 30px 0;
}

.service-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 141, 179, 0.88);
}

.service-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.service-banner-text h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.service-banner-text p {
  font-size: 1rem;
  opacity: 0.9;
}

.service-banner-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.service-banner-phone {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-white {
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-white:hover {
  background: var(--heading-color);
  color: #fff;
}

/* ----------------- Product Grid & Card ----------------- */
.product-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #fff;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

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

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

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

.badge-sale { background: var(--alert-color); color: #fff; }
.badge-new { background: var(--secondary-color); color: #fff; }
.badge-hot { background: var(--accent-color); color: #fff; }

.product-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f8fafc;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-actions {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 3;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--heading-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

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

.product-category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.product-rating {
  display: flex;
  gap: 3px;
  color: var(--star-color);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
}

.old-price {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  padding: 9px 0;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

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

/* ----------------- Feature Icons (4 Columns) ----------------- */
.features-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 35px 0;
}

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

.feature-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.feature-box .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----------------- News / Blog Section ----------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.news-thumb {
  height: 170px;
  overflow: hidden;
}

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

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

.news-body {
  padding: 16px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ----------------- Footer ----------------- */
.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding-top: 55px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 30px;
  margin-bottom: 45px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-list li i {
  color: var(--primary-color);
  margin-top: 4px;
}

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

.footer-links a {
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid #374151;
  background: #111827;
  color: #fff;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0 18px;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ----------------- Mini-Cart Drawer ----------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
}

.close-drawer-btn {
  font-size: 1.3rem;
  color: #999;
  transition: var(--transition);
}

.close-drawer-btn:hover {
  color: var(--alert-color);
}

.cart-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f2f5;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #555;
  background: #f8fafc;
}

.qty-val {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  position: absolute;
  top: 0;
  right: 0;
  color: #bbb;
  font-size: 1rem;
}

.cart-item-remove:hover {
  color: var(--alert-color);
}

.cart-empty-message {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.cart-empty-message i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.cart-subtotal .total-amount {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.cart-drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----------------- Toast Notifications ----------------- */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  border-radius: 4px;
  min-width: 280px;
  max-width: 360px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.toast-success { border-left-color: var(--success-color); }
.toast.toast-error { border-left-color: var(--alert-color); }

.toast-icon {
  font-size: 1.4rem;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--alert-color); }

.toast-message h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.toast-message p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----------------- Floating Action Buttons ----------------- */
.floating-actions {
  position: fixed;
  bottom: 30px;
  left: 25px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition);
}

.btn-float-phone {
  background: #2ecc71;
  animation: pulseGreen 2s infinite;
}

.btn-float-zalo {
  background: #0088ff;
}

.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ----------------- Inner Pages Common ----------------- */
.breadcrumb-wrap {
  background: #f8fafc;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

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

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span.current {
  color: var(--heading-color);
  font-weight: 600;
}

.page-banner {
  background: linear-gradient(rgba(15, 141, 179, 0.9), rgba(15, 141, 179, 0.8)), url('../images/hero-banner-2.jpg') center/cover;
  padding: 45px 0;
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

/* ----------------- Product Detail Page ----------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image-wrap {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-bottom: 15px;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.thumb-item {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.product-detail-info h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.product-meta-row .status-in-stock {
  color: var(--success-color);
  font-weight: 700;
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 20px;
}

.product-price-section .detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.product-price-section .detail-old-price {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-summary-box {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-purchase-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  height: 44px;
  background: #fff;
}

.quantity-selector button {
  width: 38px;
  height: 100%;
  font-size: 1.1rem;
  background: #f8fafc;
  transition: var(--transition);
}

.quantity-selector button:hover {
  background: #e2e8f0;
}

.quantity-selector input {
  width: 50px;
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}

.btn-buy-now {
  background: #e67e22;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  height: 44px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-buy-now:hover {
  background: #d35400;
}

/* Tabs Section */
.product-tabs-container {
  margin-top: 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.tab-nav-item {
  padding: 14px 25px;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-nav-item.active {
  color: var(--primary-color);
  background: #fff;
  border-bottom-color: var(--primary-color);
}

.tab-panel {
  padding: 30px;
  display: none;
  line-height: 1.8;
}

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

/* ----------------- Cart & Checkout Pages ----------------- */
.cart-table-wrap {
  margin-bottom: 30px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.cart-table th {
  background: #f8fafc;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.cart-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.checkout-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading-color);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 141, 179, 0.15);
}

/* ----------------- Mobile Responsive ----------------- */
.mobile-toggle-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--heading-color);
  padding: 8px;
}

@media (max-width: 1024px) {
  .category-grid, .products-grid, .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cart-checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: block;
  }
  .header-main .container {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .header-nav-bar {
    display: none;
  }
  .hero-slider-section .slider-container {
    height: 360px;
  }
  .slide-title {
    font-size: 1.8rem;
  }
  .category-grid, .products-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar-left {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-grid, .products-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .service-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .product-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }
}
