:root {
  --c-green: #294A2D;
  --c-green-dark: #1f3a22;
  --c-red: #ea232a;
  --c-red-hover: #c41c22;
  --c-yellow: #f8c92a;
  --c-text: #333333;
  --c-text-muted: #666666;
  --c-border: #eaeaea;
  --c-bg: #f4f6f8;
  --f-body: 'Inter', Arial, sans-serif;
  --container-width: 1200px;
}

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

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.5;
  font-size: 15px;
}

img {
  max-width: 100%;
  padding: 0;
}

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

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

/* Header Area */
.header-top {
  background: #fff;
  padding: 15px 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.search-bar {
  flex: 0 1 500px;
  display: flex;
  border: 1px solid var(--c-green);
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
}

.search-bar button {
  background: var(--c-green);
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-weight: bold;
}

.cart-icon {
  font-size: 24px;
  color: var(--c-green);
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Navbar */
.navbar {
  background: var(--c-green);
  color: #fff;
}

.nav-inner {
  display: flex;
}

.nav-category {
  background: #1f3a22;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  width: 250px;
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-category:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--c-text);
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
  color: var(--c-green);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

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

.nav-links a {
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--c-yellow);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 5px; left: 50%;
  background-color: var(--c-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 60%;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  font-size: 13px;
  background: #fff;
  color: var(--c-text-muted);
}
.breadcrumbs a {
  color: var(--c-text-muted);
}

/* Main Layout */
.main-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar {
  width: 300px;
}

/* Hero Content in Main Content */
.product-hero {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.product-gallery {
  width: 45%;
}

.main-image {
  border: 1px solid var(--c-border);
  margin-bottom: 10px;
}

.thumbnails {
  display: flex;
  gap: 10px;
}
.thumbnail {
  border: 1px solid var(--c-border);
  width: 80px;
  cursor: pointer;
}

.product-info {
  width: 55%;
}

.product-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--c-text);
}

.product-meta {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 15px;
}

.product-price-block {
  margin-bottom: 20px;
}

.price-current {
  color: var(--c-red);
  font-size: 28px;
  font-weight: bold;
}

.price-old {
  text-decoration: line-through;
  color: var(--c-text-muted);
  margin-left: 10px;
}

.stars {
  color: var(--c-yellow);
  font-size: 14px;
  margin-left: 10px;
}

.product-short-desc {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-stats {
  margin-bottom: 20px;
  font-size: 14px;
}

.btn-buy-hero {
  background: var(--c-red);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}
.btn-buy-hero:hover {
  background: var(--c-red-hover);
}

/* Sections inside Main Content */
.content-section {
  margin-top: 40px;
  padding-top: 20px;
}

.section-title {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.content-section p, .content-section ul {
  font-size: 15px;
  margin-bottom: 15px;
  color: var(--c-text);
}

.content-section ul {
  padding-left: 20px;
}

.content-section ul li {
  margin-bottom: 8px;
}

.content-section strong {
  color: var(--c-text);
}

/* Form Quick Order */
.quick-order-form {
  border-top: 2px solid var(--c-border);
  padding-top: 20px;
  margin-top: 30px;
}

.quick-order-form .form-title {
  color: #f28200;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-group {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.form-group label {
  width: 120px;
  font-size: 14px;
  font-weight: bold;
}

.form-group input, .form-group textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  margin-left: 120px;
  font-size: 13px;
}
.form-checkbox input {
  margin-top: 3px;
}

.submit-btn-wrap {
  margin-left: 120px;
  margin-top: 20px;
}

.btn-submit {
  background: var(--c-red);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

/* Sidebar */
.support-box {
  background: #fdfdfd;
  padding: 20px;
  border: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.support-box h3 {
  font-size: 14px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.support-box .phone {
  font-size: 20px;
  font-weight: bold;
  color: var(--c-text);
  margin-bottom: 5px;
}

.sidebar-products {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--c-border);
}

.sidebar-title {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sidebar-item {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--c-border);
}
.sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--c-border);
}
.sidebar-item-info h4 {
  font-size: 13px;
  font-weight: normal;
  color: var(--c-text);
  margin-bottom: 5px;
}
.sidebar-item-info .price {
  font-weight: bold;
  font-size: 14px;
}
.sidebar-item-info .old-price {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--c-text-muted);
}

/* Footer */
.footer-top {
  background: var(--c-green);
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

.footer-main {
  background: #8e9e8f; /* Lighter olive green from screenshot */
  padding: 50px 0;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-main h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-main p, .footer-main a {
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.subscribe-box {
  background: #fff;
  padding: 20px;
  text-align: center;
}

.subscribe-box img {
  max-width: 150px;
  margin-bottom: 10px;
}

/* Utility to override styles based on the prompt's layout */
.component-graphic {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}
.component-graphic img {
  max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .main-wrapper { flex-direction: column; }
  .sidebar { width: 100%; margin-top: 30px; }
  .product-hero { flex-direction: column; }
  .product-gallery, .product-info { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-top-inner { flex-direction: column; gap: 15px; }
  .search-bar { width: 100%; flex: auto; }
  
  .nav-inner { flex-direction: column; }
  .nav-category { width: 100%; text-align: center; }
  .dropdown-menu { width: 100%; }
  .nav-links { flex-wrap: wrap; justify-content: center; padding: 10px 0; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  
  .form-group { flex-direction: column; align-items: flex-start; }
  .form-group label { width: 100%; margin-bottom: 5px; }
  .form-group input, .form-group textarea { width: 100%; }
  .form-checkbox { margin-left: 0; align-items: flex-start; }
  .submit-btn-wrap { margin-left: 0; width: 100%; }
  .btn-submit { width: 100%; }

  .price-current { font-size: 24px; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .upsell-grid { grid-template-columns: 1fr; }
  
  .component-graphic > div { flex-direction: column; align-items: center; text-align: center; }
  .component-graphic > div > div { text-align: center !important; }
}

/* Blinking/Pulsing Animation for the button */
@keyframes buyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 35, 42, 0.7); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(234, 35, 42, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 35, 42, 0); }
}

.btn-pulse {
  animation: buyPulse 1.5s infinite;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content {
  background: #fff; width: 90%; max-width: 600px; border-radius: 12px;
  padding: 30px; text-align: center; position: relative;
  transform: translateY(-20px); transition: all 0.3s ease;
}
.popup-overlay.active .popup-content { transform: translateY(0); }
.popup-close {
  position: absolute; top: 15px; right: 15px; font-size: 24px;
  cursor: pointer; color: #999; border: none; background: transparent;
}
.popup-title { color: var(--c-green); font-size: 24px; margin-bottom: 10px; }
.popup-desc { color: var(--c-text-muted); margin-bottom: 25px; font-size: 14px;}
.upsell-section { border-top: 1px dashed var(--c-border); padding-top: 20px; margin-top: 20px; }
.upsell-title { font-size: 16px; font-weight: bold; color: var(--c-red); margin-bottom: 15px; text-transform: uppercase; }
.upsell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.upsell-card { border: 1px solid var(--c-border); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; text-align: left; }
.upsell-card img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px; border: 1px solid #eee; }
.upsell-card h4 { margin:0 0 5px 0; font-size: 13px; color: var(--c-text); line-height:1.2;}
.upsell-card .price { font-weight: bold; font-size: 14px; color: var(--c-red); }
.upsell-card button { background: var(--c-green); color: white; border: none; padding: 5px 10px; font-size: 11px; border-radius: 4px; cursor: pointer; margin-top:5px;}

/* Reviews Styling */
.review-card {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  background: #fdfdfd;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}
.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-green);
}
.review-content {
  flex: 1;
}
.review-stars {
  color: var(--c-yellow);
  font-size: 14px;
  margin-bottom: 5px;
}
.review-name {
  font-weight: bold;
  color: var(--c-green);
  margin-bottom: 5px;
}
.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  font-style: italic;
}

/* Zalo Floating Button */
.zalo-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #0068ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
  animation: ZaloPulse 2s infinite;
}

.zalo-floating img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

@keyframes ZaloPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}
