/* =============================================
   Template24 — Stitch Screen 4 Design
   ============================================= */

:root {
  --green: #4CAF50;
  --dark-green: #388E3C;
  --light-green: #8BC34A;
  --red: #E53935;
  --red-dark: #C62828;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --border: #e0e0e0;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

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

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

/* ===== CONTAINER ===== */
.t24-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.t24-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: none;
}
@media (min-width: 768px) { .t24-topbar { display: block; } }

.t24-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

.t24-topbar-phone i { margin-right: 5px; color: var(--dark-green); }

.t24-topbar-cart { display: flex; align-items: center; gap: 5px; color: var(--text-light); }
.t24-topbar-cart:hover { color: var(--dark-green); }

/* ===== MAIN HEADER ===== */
.t24-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.t24-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.t24-logo img { height: 52px; width: auto; }

/* Search */
.t24-search {
  flex: 1;
  display: flex;
  max-width: 440px;
  position: relative;
}

.t24-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 44px 9px 18px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.t24-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

.t24-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
}

/* Header right */
.t24-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.t24-header-phone {
  display: none;
  align-items: center;
  gap: 10px;
}
@media (min-width: 640px) { .t24-header-phone { display: flex; } }

.t24-header-phone > i { font-size: 20px; color: var(--red); }

.t24-phone-label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1;
}

.t24-phone-number {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1;
}

.t24-cart-icon {
  position: relative;
  font-size: 22px;
  color: var(--text-dark);
}
.t24-cart-icon:hover { color: var(--dark-green); }

.t24-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t24-mobile-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--dark-green);
  cursor: pointer;
  display: block;
}
@media (min-width: 1024px) { .t24-mobile-toggle { display: none; } }

/* ===== NAVIGATION ===== */
.t24-nav {
  background: var(--dark-green);
  display: none;
}
@media (min-width: 1024px) { .t24-nav { display: block; } }

.t24-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.t24-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.t24-nav-menu li a,
.t24-nav-menu li > span {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.t24-nav-menu li a:hover,
.t24-nav-menu li > span:hover {
  color: var(--light-green);
  background: rgba(255,255,255,0.05);
}

/* Mobile nav */
.t24-mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}
.t24-mobile-nav.open { display: block; }
.t24-mobile-nav .t24-nav-menu { flex-direction: column; align-items: stretch; }
.t24-mobile-nav .t24-nav-menu li a { color: var(--text-dark); padding: 10px 20px; }
.t24-mobile-nav .t24-nav-menu li a:hover { color: var(--dark-green); }

/* ===== HERO SECTION ===== */
.t24-hero { overflow: hidden; }

.t24-hero-slider, .t24-hero-default {
  position: relative;
  min-height: 480px;
  /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), var(--dark-green); */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  /* .t24-hero-slider, .t24-hero-default { min-height: 600px; } */
}

.t24-slide {
  display: none;
  width: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  align-items: center;
  padding: 60px 20px;
}
.t24-slide.active { display: flex; }
@media (min-width: 768px) { .t24-slide { min-height: 560px; } }

.t24-hero-default { padding: 60px 20px; }

.t24-slide-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.t24-hero-sub {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-green);
  margin-bottom: 12px;
}

.t24-hero-title, .t24-slide-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 640px;
}
@media (min-width: 768px) {
  .t24-hero-title, .t24-slide-content h2 { font-size: 52px; }
}

.t24-hero-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(229,57,53,0.4);
}
.t24-hero-btn:hover { background: var(--red-dark); transform: translateY(-2px); }

.t24-slide-prev, .t24-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.t24-slide-prev { left: 20px; }
.t24-slide-next { right: 20px; }
.t24-slide-prev:hover, .t24-slide-next:hover { background: rgba(255,255,255,0.4); }

/* ===== SECTION HEADING ===== */
.t24-section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.t24-section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-green);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}

.t24-heading-line {
  width: 72px;
  height: 4px;
  background: var(--green);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== SERVICES SECTION ===== */
.t24-services-section {
  padding: 70px 0;
  background: var(--white);
}

.t24-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) {
  .t24-services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .t24-services-grid { grid-template-columns: 1fr; gap: 20px; }
}

.t24-service-card {
  /* background: var(--white);
  border: 1px solid var(--border); */
  background-color: rgb(0 56 117 / var(--tw-bg-opacity, 1));
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.t24-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(76,175,80,0.08), transparent); */
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.t24-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: var(--green);
}
.t24-service-card:hover::after { opacity: 1; }

.t24-service-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  /* background: linear-gradient(135deg, #f0f0f0, #e8e8e8); */
}
.t24-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.t24-service-card:hover .t24-service-img img { transform: scale(1.08) rotate(1deg); }

.t24-service-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(76,175,80,0.3);
  transition: var(--transition);
}
.t24-service-card:hover .t24-service-icon {
  background: #003875;
  transform: scale(1.1) rotateZ(-5deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.t24-service-body {
  padding: 24px 20px;
  text-align: center;
}

.t24-service-name {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.t24-service-desc {
  font-size: 13px;
  color: rgb(170 199 255 / var(--tw-text-opacity, 1));
  margin-bottom: 20px;
  line-height: 1.7;
}

.t24-service-btn {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}
.t24-service-btn:hover {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 12px rgba(76,175,80,0.3);
  transform: translateY(-2px);
}

/* ===== PRODUCTS SECTION ===== */
.t24-products-section {
  padding: 70px 0;
  background: var(--bg-light);
}

.t24-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1200px) {
  .t24-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .t24-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .t24-products-grid { grid-template-columns: 1fr; }
}

.t24-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.t24-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: var(--green); }

.t24-product-img { position: relative; height: 200px; background: var(--bg-light); overflow: hidden; }
.t24-product-img a { display: block; width: 100%; height: 100%; }
.t24-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.t24-product-card:hover .t24-product-img img { transform: scale(1.06); }

.t24-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

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

.t24-product-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; min-height: 36px; overflow: hidden; }
.t24-product-name a { color: var(--text-dark); }
.t24-product-name a:hover { color: var(--dark-green); }

.t24-product-price { margin-bottom: 12px; margin-top: auto; }

.t24-price-sale { display: block; font-size: 16px; font-weight: 700; color: var(--red); }

.t24-price-original { font-size: 12px; color: #999; text-decoration: line-through; }

.t24-add-cart {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 9px 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.t24-add-cart:hover { background: var(--red-dark); }

/* ===== WHY CHOOSE US ===== */
.t24-why-section {
  padding: 70px 0;
  background: var(--white);
}

.t24-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 1200px) {
  .t24-why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .t24-why-grid { grid-template-columns: 1fr; gap: 24px; }
}

.t24-why-item { text-align: center; padding: 20px 10px; }

.t24-why-icon {
  width: 72px;
  height: 72px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: white;
  transition: var(--transition);
}
.t24-why-item:hover .t24-why-icon { background: var(--green); }
.t24-why-icon img { width: 36px; height: 36px; object-fit: contain; }

.t24-why-title { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text-dark); margin-bottom: 10px; }

.t24-why-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== NEWS SECTION ===== */
.t24-news-section {
  padding: 70px 0;
  background: var(--bg-light);
}

.t24-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .t24-news-grid { grid-template-columns: 1fr; gap: 20px; }
}

.t24-news-card {
  display: flex;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.t24-news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.t24-news-img { width: 160px; flex-shrink: 0; overflow: hidden; }
.t24-news-img a { display: block; width: 100%; height: 100%; }
.t24-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.t24-news-card:hover .t24-news-img img { transform: scale(1.06); }

.t24-news-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.t24-news-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.t24-news-title a { color: var(--dark-green); }
.t24-news-title a:hover { color: var(--green); }

.t24-news-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.t24-news-more { font-size: 12px; font-weight: 700; color: var(--green); }
.t24-news-more:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.t24-footer { background: var(--dark-green); color: rgba(255,255,255,0.9); }

.t24-footer-inner { padding: 60px 0 30px; }

.t24-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .t24-footer-grid { grid-template-columns: repeat(3, 1fr); } }

.t24-footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--light-green);
}

.t24-footer-links { list-style: none; }

.t24-footer-links p,
.t24-footer-links li {
  font-size: 13px;
  margin-bottom: 10px;
  opacity: 0.9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.t24-footer-links li a { color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 6px; }
.t24-footer-links li a:hover { color: var(--light-green); }
.t24-footer-links i { color: var(--light-green); font-size: 11px; flex-shrink: 0; margin-top: 2px; }

.t24-social-links { display: flex; gap: 10px; margin-bottom: 20px; }

.t24-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: var(--transition);
}
.t24-social-btn:hover { background: var(--light-green); }

.t24-newsletter p { font-size: 13px; margin-bottom: 10px; opacity: 0.9; }

.t24-newsletter-form { display: flex; border-radius: 6px; overflow: hidden; }

.t24-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  padding: 10px 14px;
  color: white;
  font-size: 13px;
  outline: none;
  border-radius: 6px 0 0 6px;
}
.t24-newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.t24-newsletter-input:focus { background: rgba(255,255,255,0.18); }

.t24-newsletter-btn {
  background: var(--light-green);
  border: none;
  padding: 10px 16px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  transition: var(--transition);
}
.t24-newsletter-btn:hover { background: var(--green); }

.t24-footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* ===== FLOATING CONTACTS ===== */
.t24-floating {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.t24-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 3px solid transparent;
  animation: float-shake 3s ease-in-out infinite;
  opacity: 1;
}

.t24-float-btn:hover {
  /* transform: scale(1.1); */
  /* animation: none; */
  opacity: 1;
}

.t24-float-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Zalo Button - Blue */
.t24-float-zalo {
  background: #0068ff;
  border-color: rgba(0, 104, 255, 0.4);
}

/* Phone/Call Button - Red */
.t24-float-call {
  background: #d63031;
  border-color: rgba(214, 48, 49, 0.4);
}

/* Shake animation - Ring like bell */
@keyframes float-shake {
  0% {
    transform: rotate(0deg);
  }
  5% {
    transform: rotate(12deg);
  }
  10% {
    transform: rotate(-12deg);
  }
  15% {
    transform: rotate(10deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  25% {
    transform: rotate(8deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  35% {
    transform: rotate(6deg);
  }
  40% {
    transform: rotate(-6deg);
  }
  45% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  55% {
    transform: rotate(2deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.t24-float-btn {
  animation: float-shake 0.8s ease-in-out infinite;
}

.t24-float-btn:hover {
  transform: scale(1.15);
  animation: float-shake 0.6s ease-in-out infinite;
}

/* ===== ISTEMPLATE BAR ===== */
#istemplate {
  background: #333;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
#istemplate img { height: 24px; }
#istemplate .big-link { color: #ffeb3b; font-weight: 600; }

/* ===== MISC ===== */
#clear { clear: both; height: 0; visibility: hidden; }
.img-responsive { max-width: 100%; height: auto; }
