/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: 'Be Vietnam Pro', sans-serif; color: #333; background: #f5f5f5; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: #2e7d32; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-weight: 500; font-size: .9rem; color: #555; transition: color .2s; }
.nav a:hover { color: #2e7d32; }
.nav-cta { background: linear-gradient(135deg, #ff6b35, #e53e3e); color: #fff !important; padding: 8px 18px; border-radius: 20px; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; transition: .3s; }

/* ===== PRODUCT HERO - SHOPEE STYLE ===== */
.product-hero { padding-top: 80px; padding-bottom: 30px; background: #fff; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Gallery */
.product-gallery { position: sticky; top: 80px; }
.product-main-image { position: relative; border-radius: 12px; overflow: hidden; background: #f8f8f8; aspect-ratio: 1; }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-main-image:hover img { transform: scale(1.05); }
.badge-hot { position: absolute; top: 12px; left: 12px; background: #e53e3e; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.thumb.active, .thumb:hover { border-color: #2e7d32; }

/* Product Info */
.product-info-buy { padding: 0; }
.product-title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 12px; }
.product-rating-bar { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #888; margin-bottom: 16px; flex-wrap: wrap; }
.rating-text { color: #ff6b35; font-weight: 600; }
.divider { color: #ddd; }
.sold-count { color: #888; }

/* Price Box */
.product-price-box { background: #fef5f0; padding: 16px 20px; border-radius: 8px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-current { font-size: 2rem; font-weight: 800; color: #e53e3e; }
.product-price-box .price-old { font-size: 1rem; color: #999; text-decoration: line-through; }
.price-discount { background: #e53e3e; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600; }

/* Combo Selection */
.combo-section { margin-bottom: 20px; }
.combo-label { font-weight: 600; margin-bottom: 10px; color: #555; }
.combo-options { display: flex; gap: 10px; }
.combo-card { flex: 1; border: 2px solid #e0e0e0; border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .2s; position: relative; background: #fff; }
.combo-card:hover { border-color: #4caf50; }
.combo-card.selected { border-color: #2e7d32; background: #f0fff0; box-shadow: 0 0 0 1px #2e7d32; }
.combo-qty { font-weight: 700; font-size: 1.1rem; color: #1a1a1a; }
.combo-price { font-weight: 600; color: #e53e3e; font-size: .95rem; margin-top: 4px; }
.combo-badge { position: absolute; top: -10px; right: -5px; background: #ff6b35; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.combo-badge.best { background: #2e7d32; }

/* Product Specs */
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.spec-item { background: #f5f5f5; padding: 8px 14px; border-radius: 6px; font-size: .85rem; color: #555; }

/* Buy Form */
.buy-form { display: flex; flex-direction: column; gap: 10px; }
.buy-form input, .buy-form textarea { padding: 12px 16px; border: 1.5px solid #ddd; border-radius: 8px; font-size: .95rem; font-family: inherit; transition: border-color .2s; }
.buy-form input:focus, .buy-form textarea:focus { outline: none; border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,.1); }
.btn-buy { background: linear-gradient(135deg, #ff6b35, #e53e3e); color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 1.15rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; text-transform: uppercase; letter-spacing: .5px; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229,62,62,.4); }
.btn-buy:active { transform: scale(.98); }
.buy-trust { text-align: center; font-size: .8rem; color: #888; margin-top: 4px; }

/* ===== TRUST BAR ===== */
.trust-bar { background: #2e7d32; padding: 16px 0; }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: #fff; }
.trust-icon { font-size: 1.3rem; }
.trust-text { font-size: .9rem; }
.trust-text strong { font-size: 1.05rem; }

/* ===== CHI TIẾT SẢN PHẨM ===== */
.product-detail { padding: 50px 0; background: #fff; margin-top: 10px; }
.product-detail h2 { text-align: center; font-size: 1.6rem; margin-bottom: 30px; color: #1a1a1a; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.detail-card { text-align: center; padding: 24px 16px; border-radius: 12px; background: #f8fdf8; border: 1px solid #e8f5e9; }
.detail-icon { font-size: 2rem; margin-bottom: 10px; }
.detail-card h3 { font-size: 1rem; margin-bottom: 8px; color: #2e7d32; }
.detail-card p { font-size: .85rem; color: #666; }

/* Grow Guide */
.grow-guide { padding-top: 30px; border-top: 1px solid #eee; }
.grow-guide h2 { text-align: center; font-size: 1.4rem; margin-bottom: 30px; }
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-step { text-align: center; padding: 20px; }
.step-number { width: 40px; height: 40px; background: #2e7d32; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; font-size: 1.1rem; }
.guide-step h4 { margin-bottom: 8px; color: #1a1a1a; }
.guide-step p { font-size: .85rem; color: #666; }

/* ===== REVIEWS ===== */
.reviews-section { padding: 50px 0; background: #f8f8f8; }
.reviews-section h2 { text-align: center; font-size: 1.6rem; margin-bottom: 30px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.review-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-name { font-weight: 600; font-size: .95rem; }
.review-stars { font-size: .8rem; }
.review-badge { margin-left: auto; font-size: .75rem; color: #2e7d32; background: #e8f5e9; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.review-card p { font-size: .9rem; color: #555; font-style: italic; }
.review-location { font-size: .75rem; color: #999; margin-top: 2px; }

/* Gallery Row */
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-row img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }

/* ===== CHÍNH SÁCH ===== */
.policy-section { padding: 50px 0; background: #fff; }
.policy-section h2 { text-align: center; font-size: 1.6rem; margin-bottom: 30px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy-card { background: #f8fdf8; border: 1px solid #e8f5e9; border-radius: 12px; padding: 24px; }
.policy-card h3 { font-size: 1.05rem; margin-bottom: 14px; color: #2e7d32; }
.policy-card ul { list-style: none; }
.policy-card li { padding: 6px 0; padding-left: 20px; position: relative; font-size: .9rem; color: #555; }
.policy-card li::before { content: '✓'; position: absolute; left: 0; color: #4caf50; font-weight: 700; }

/* ===== FOOTER ===== */
.footer { background: #1a3a1a; color: #ccc; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 20px; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer h3 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: #aaa; font-size: .9rem; transition: color .2s; }
.footer-contact a:hover { color: #4caf50; }
.footer-bottom { border-top: 1px solid #2a4a2a; padding-top: 16px; text-align: center; font-size: .8rem; color: #777; }

/* ===== STICKY BUY MOBILE ===== */
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.15); display: none; align-items: center; justify-content: space-between; padding: 10px 16px; z-index: 99; }
.sticky-price { font-size: 1.2rem; font-weight: 800; color: #e53e3e; }
.sticky-btn { background: linear-gradient(135deg, #ff6b35, #e53e3e); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: .95rem; }

/* ===== TOAST ===== */
.toast { position: fixed; top: 80px; right: 20px; padding: 16px 24px; border-radius: 10px; color: #fff; font-weight: 500; z-index: 9999; transform: translateX(120%); transition: transform .4s ease; max-width: 360px; font-size: .95rem; }
.toast.show { transform: translateX(0); }
.toast.success { background: linear-gradient(135deg, #2e7d32, #4caf50); }
.toast.error { background: linear-gradient(135deg, #c62828, #e53e3e); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .nav.active { display: flex; }
  .nav-toggle { display: flex; }

  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery { position: static; }
  .product-main-image { aspect-ratio: 1; }
  .product-title { font-size: 1.2rem; }
  .price-current { font-size: 1.6rem; }
  .combo-options { gap: 8px; }
  .combo-card { padding: 10px 6px; }
  .combo-qty { font-size: .95rem; }
  .product-specs { gap: 6px; }
  .spec-item { font-size: .8rem; padding: 6px 10px; }

  .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .review-list { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .policy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  .sticky-buy { display: flex; }
  body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .product-title { font-size: 1.1rem; }
  .price-current { font-size: 1.4rem; }
  .thumb { width: 56px; height: 56px; }
  .detail-grid { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr 1fr; }
  .trust-items { gap: 16px; }
  .trust-item { font-size: .85rem; }
}
