/* ===========================================
   🌟 STYLE CHUẨN OPFE.VN (PREMIUM & CLEAN)
   Font: Nunito (Thân thiện nhưng hiện đại)
=========================================== */
:root {
  --primary-color: #d66b1e; /* Cam đất (Giống màu điểm nhấn logo) */
  --secondary-color: #2c3e50; /* Xanh than đậm (Chữ chính - tạo sự tin cậy) */
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --text-gray: #666;
  --border-radius: 8px;
  --shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--secondary-color);
  background-color: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ===== HEADER (Sticky & Clean) ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 5%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img { height: 50px; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { 
  font-weight: 700; 
  font-size: 1rem; 
  text-transform: uppercase;
  color: var(--secondary-color);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

.header-actions .cart-link {
  position: relative;
  font-size: 1.2rem;
  color: var(--secondary-color);
}
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ===== HERO SECTION (Banner lớn) ===== */
.hero {
  position: relative;
  height: 500px;
  background-image: url('image/banner.png'); /* Đảm bảo file ảnh banner đẹp */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); /* Lớp phủ đen mờ để rõ chữ */
}
.hero-content {
  position: relative; z-index: 1; max-width: 800px; padding: 20px;
}
.hero h1 {
  font-size: 3rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px;
}
.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }
.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
}
.btn-primary:hover {
  background: transparent; color: var(--white);
}

/* ===== SECTIONS CHUNG ===== */
.section { padding: 80px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem; color: var(--secondary-color);
  text-transform: uppercase; margin-bottom: 10px;
  position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--primary-color); margin: 10px auto 0;
}
.section-title p { color: var(--text-gray); }

/* ===== CORE VALUES (Giá trị cốt lõi - Giống OPFE) ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.value-card {
  text-align: center; padding: 30px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.value-card:hover { transform: translateY(-10px); }
.value-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.value-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.value-card p { font-size: 0.95rem; color: var(--text-gray); }

/* ===== FEATURED PRODUCTS (Sản phẩm nổi bật) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border: 1px solid #eee;
}
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-img {
  width: 100%; height: 280px; object-fit: cover;
  border-bottom: 1px solid #eee;
}
.product-info { padding: 20px; text-align: center; }
.product-name { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.product-price-preview { color: var(--primary-color); font-weight: bold; margin-bottom: 15px; display: block; }

/* ===== STORY SECTION (Về chúng tôi) ===== */
.story-wrap {
  display: flex; align-items: center; gap: 50px;
}
.story-img img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.story-content h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--secondary-color); }
.story-content p { margin-bottom: 20px; color: var(--text-gray); text-align: justify; }

/* ===== FOOTER (Chuyên nghiệp 3 cột) ===== */
footer {
  background: var(--secondary-color);
  color: white;
  padding: 60px 5% 20px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px; max-width: 1200px; margin: 0 auto 40px;
}
.footer-col h4 {
  font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-color); text-transform: uppercase;
}
.footer-col p, .footer-col li {
  margin-bottom: 10px; color: #ccc; font-size: 0.95rem;
}
.bct-logo {
  width: 250px;  /* <-- Tăng số này lên để ảnh to hơn (cũ là 160px) */
  height: auto;  /* Giữ nguyên dòng này để ảnh không bị méo */
  margin-top: 15px;
  display: block;
}
.footer-col a:hover { color: var(--primary-color); }
.copyright {
  text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; font-size: 0.9rem; color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 15px 0; }
  .main-nav ul { margin-top: 15px; gap: 15px; }
  .story-wrap { flex-direction: column; }
  .hero h1 { font-size: 2rem; }
}

/* ===== CART & CHECKOUT PAGE ===== */
.cart-section {
  padding: 40px 10%;
  min-height: 60vh;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.cart-table th, .cart-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.cart-table th {
  background-color: #f8f8f8;
}

.total-section {
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.checkout-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.payment-methods {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.payment-option {
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.payment-option.active {
  border-color: #f08146;
  background-color: #fff5eb;
}

#qr-code-image {
  display: none;
  margin-top: 15px;
  text-align: center;
}
#qr-code-image img {
  max-width: 200px;
  border: 2px solid #222;
}

.btn-checkout {
  width: 100%;
  background: #f08146;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

.btn-checkout:hover {
  background: #d66b1e;
}