/* ===== 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: #3d2c1e; background: #fdf8f3; 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: rgba(255,252,247,.95); backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(139,90,43,.08); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(139,90,43,.15); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #8b5a2b; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-weight: 500; font-size: .9rem; color: #6d4c2a; transition: color .2s; position: relative; }
.nav a:hover { color: #c0792a; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #c0792a; transition: width .3s; }
.nav a:hover::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, #c0792a, #e8a849) !important; color: #fff !important; padding: 8px 20px; border-radius: 24px; font-weight: 600 !important; box-shadow: 0 4px 15px rgba(192,121,42,.3); transition: transform .2s, box-shadow .2s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,121,42,.4) !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: #6d4c2a; transition: .3s; }

/* ===== PRODUCT HERO ===== */
.product-hero { padding-top: 84px; padding-bottom: 40px; background: linear-gradient(180deg, #fffcf7 0%, #fdf4e8 100%); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.product-gallery { position: sticky; top: 84px; }
.product-main-image { position: relative; border-radius: 16px; overflow: hidden; background: #f8f0e5; aspect-ratio: 1; box-shadow: 0 8px 30px rgba(139,90,43,.1); }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-main-image:hover img { transform: scale(1.05); }
.badge-hot { position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; box-shadow: 0 2px 8px rgba(229,62,62,.3); animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.badge-handmade { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #8b5a2b, #a0522d); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600; }
.product-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.product-thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 64px; height: 64px; min-width: 64px; object-fit: cover; border-radius: 10px; border: 2.5px solid transparent; cursor: pointer; transition: all .2s; }
.thumb.active { border-color: #c0792a; box-shadow: 0 0 0 2px rgba(192,121,42,.2); }
.thumb:hover { border-color: #c0792a; transform: translateY(-2px); }

/* Product Info */
.product-info-buy { padding: 0; }
.product-title { font-size: 1.6rem; font-weight: 800; color: #3d2c1e; line-height: 1.4; margin-bottom: 12px; }
.product-subtitle { font-size: .95rem; color: #8b6d4c; margin-bottom: 16px; font-style: italic; }
.product-rating-bar { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #8b6d4c; margin-bottom: 16px; flex-wrap: wrap; }
.rating-text { color: #c0792a; font-weight: 600; }
.divider { color: #d4c4b0; }
.sold-count { color: #8b6d4c; }

/* Price Box */
.product-price-box { background: linear-gradient(135deg, #fef5e7, #fdf0d5); padding: 18px 22px; border-radius: 12px; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; border: 1px solid #f0dfc0; }
.price-current { font-size: 2.2rem; font-weight: 800; color: #c0792a; }
.product-price-box .price-old { font-size: 1rem; color: #b0a090; text-decoration: line-through; }
.price-discount { background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff; padding: 3px 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; }

/* Combo Selection */
.combo-section { margin-bottom: 22px; }
.combo-label { font-weight: 600; margin-bottom: 12px; color: #6d4c2a; font-size: .95rem; }
.combo-options { display: flex; gap: 12px; }
.combo-card { flex: 1; border: 2px solid #e8ddd0; border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .25s; position: relative; background: #fff; }
.combo-card:hover { border-color: #c0792a; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(192,121,42,.1); }
.combo-card.selected { border-color: #8b5a2b; background: linear-gradient(135deg, #fdf8f0, #fef5e7); box-shadow: 0 0 0 1px #8b5a2b, 0 4px 15px rgba(139,90,43,.15); }
.combo-qty { font-weight: 700; font-size: 1.1rem; color: #3d2c1e; }
.combo-price { font-weight: 600; color: #c0792a; font-size: .95rem; margin-top: 4px; }
.combo-badge { position: absolute; top: -10px; right: -5px; background: linear-gradient(135deg, #c0792a, #e8a849); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.combo-badge.best { background: linear-gradient(135deg, #8b5a2b, #a0522d); }
.combo-ship { font-size: .7rem; color: #b0a090; margin-top: 2px; }

/* Product Specs */
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.spec-item { background: linear-gradient(135deg, #fdf8f0, #fef5e7); padding: 8px 16px; border-radius: 8px; font-size: .85rem; color: #6d4c2a; border: 1px solid #f0dfc0; }

/* Buy Form */
.buy-form { display: flex; flex-direction: column; gap: 12px; }
.buy-form input, .buy-form textarea { padding: 13px 18px; border: 1.5px solid #e0d4c4; border-radius: 10px; font-size: .95rem; font-family: inherit; transition: all .2s; background: #fff; }
.buy-form input:focus, .buy-form textarea:focus { outline: none; border-color: #c0792a; box-shadow: 0 0 0 3px rgba(192,121,42,.12); }
.btn-buy { background: linear-gradient(135deg, #c0792a, #e8a849); color: #fff; border: none; padding: 18px; border-radius: 12px; font-size: 1.15rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; text-transform: uppercase; letter-spacing: .5px; position: relative; overflow: hidden; }
.btn-buy::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: left .5s; }
.btn-buy:hover::before { left: 100%; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(192,121,42,.4); }
.btn-buy:active { transform: scale(.98); }
.buy-trust { text-align: center; font-size: .8rem; color: #b0a090; margin-top: 6px; }

/* ===== TRUST BAR ===== */
.trust-bar { background: linear-gradient(135deg, #8b5a2b, #6d4c2a); padding: 18px 0; }
.trust-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #fff; }
.trust-icon { font-size: 1.4rem; }
.trust-text { font-size: .9rem; }
.trust-text strong { font-size: 1.1rem; }

/* ===== USP SECTION ===== */
.usp-section { padding: 60px 0; background: #fff; }
.usp-section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 12px; color: #3d2c1e; }
.usp-section .section-desc { text-align: center; color: #8b6d4c; margin-bottom: 40px; font-size: 1rem; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp-card { text-align: center; padding: 28px 18px; border-radius: 16px; background: linear-gradient(135deg, #fdf8f0, #fff); border: 1px solid #f0dfc0; transition: all .3s; }
.usp-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139,90,43,.1); }
.usp-icon { font-size: 2.2rem; margin-bottom: 14px; }
.usp-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: #8b5a2b; }
.usp-card p { font-size: .85rem; color: #6d4c2a; line-height: 1.5; }

/* ===== CHI TIẾT SẢN PHẨM ===== */
.product-detail { padding: 60px 0; background: #fdf8f3; }
.product-detail h2 { text-align: center; font-size: 1.7rem; margin-bottom: 14px; color: #3d2c1e; }
.product-detail .section-desc { text-align: center; color: #8b6d4c; margin-bottom: 40px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 50px; }
.detail-card { display: flex; gap: 18px; padding: 24px; border-radius: 14px; background: #fff; border: 1px solid #f0dfc0; transition: all .3s; }
.detail-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139,90,43,.08); }
.detail-icon { font-size: 2rem; flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fef5e7, #fdf0d5); border-radius: 12px; }
.detail-card h3 { font-size: 1rem; margin-bottom: 6px; color: #8b5a2b; }
.detail-card p { font-size: .85rem; color: #6d4c2a; }

/* Usage Guide */
.usage-guide { padding-top: 40px; border-top: 1px solid #f0dfc0; }
.usage-guide h2 { text-align: center; font-size: 1.5rem; margin-bottom: 32px; color: #3d2c1e; }
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.guide-step { text-align: center; padding: 24px 16px; position: relative; }
.guide-step:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 30px; font-size: 1.4rem; color: #d4c4b0; }
.step-number { width: 44px; height: 44px; background: linear-gradient(135deg, #c0792a, #e8a849); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(192,121,42,.3); }
.guide-step h4 { margin-bottom: 8px; color: #3d2c1e; font-size: 1rem; }
.guide-step p { font-size: .85rem; color: #6d4c2a; }

/* ===== REVIEWS ===== */
.reviews-section { padding: 60px 0; background: #fff; }
.reviews-section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 14px; color: #3d2c1e; }
.reviews-section .section-desc { text-align: center; color: #8b6d4c; margin-bottom: 40px; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.review-card { background: #fdf8f3; border-radius: 14px; padding: 22px; border: 1px solid #f0dfc0; transition: all .3s; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139,90,43,.08); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #f0dfc0; }
.review-name { font-weight: 600; font-size: .95rem; color: #3d2c1e; }
.review-stars { font-size: .8rem; }
.review-badge { margin-left: auto; font-size: .75rem; color: #8b5a2b; background: #fef5e7; padding: 4px 12px; border-radius: 14px; white-space: nowrap; font-weight: 500; }
.review-card p { font-size: .9rem; color: #6d4c2a; font-style: italic; line-height: 1.6; }
.review-location { font-size: .75rem; color: #b0a090; margin-top: 2px; }

/* Gallery Row */
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.gallery-row img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; cursor: pointer; }
.gallery-row img:hover { transform: scale(1.03); }

/* ===== CHÍNH SÁCH ===== */
.policy-section { padding: 60px 0; background: #fdf8f3; }
.policy-section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 40px; color: #3d2c1e; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.policy-card { background: #fff; border: 1px solid #f0dfc0; border-radius: 14px; padding: 28px; transition: all .3s; }
.policy-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139,90,43,.08); }
.policy-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: #8b5a2b; }
.policy-card ul { list-style: none; }
.policy-card li { padding: 7px 0; padding-left: 24px; position: relative; font-size: .9rem; color: #6d4c2a; }
.policy-card li::before { content: '✓'; position: absolute; left: 0; color: #c0792a; font-weight: 700; }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 60px 0; background: linear-gradient(135deg, #8b5a2b, #6d4c2a); color: #fff; text-align: center; }
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; margin-bottom: 28px; opacity: .9; }
.cta-btn { display: inline-block; background: linear-gradient(135deg, #e8a849, #c0792a); color: #fff; padding: 16px 40px; border-radius: 30px; font-weight: 700; font-size: 1.1rem; transition: all .3s; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }

/* ===== FOOTER ===== */
.footer { background: #2c1e0f; color: #c4b09a; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 24px; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: #e8a849; margin-bottom: 12px; }
.footer h3 { color: #e8d4b8; margin-bottom: 14px; font-size: 1rem; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: #a09080; font-size: .9rem; transition: color .2s; }
.footer-contact a:hover { color: #e8a849; }
.footer-bottom { border-top: 1px solid #3d2c1e; padding-top: 18px; text-align: center; font-size: .8rem; color: #6d5a48; }

/* ===== STICKY BUY MOBILE ===== */
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,252,247,.95); backdrop-filter: blur(10px); box-shadow: 0 -2px 12px rgba(139,90,43,.15); display: none; align-items: center; justify-content: space-between; padding: 12px 16px; z-index: 99; }
.sticky-price { font-size: 1.2rem; font-weight: 800; color: #c0792a; }
.sticky-btn { background: linear-gradient(135deg, #c0792a, #e8a849); color: #fff; padding: 12px 30px; border-radius: 10px; font-weight: 700; font-size: .95rem; box-shadow: 0 4px 15px rgba(192,121,42,.3); }

/* ===== TOAST ===== */
.toast { position: fixed; top: 80px; right: 20px; padding: 16px 24px; border-radius: 12px; color: #fff; font-weight: 500; z-index: 9999; transform: translateX(120%); transition: transform .4s ease; max-width: 380px; font-size: .95rem; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.toast.show { transform: translateX(0); }
.toast.success { background: linear-gradient(135deg, #8b5a2b, #c0792a); }
.toast.error { background: linear-gradient(135deg, #c62828, #e53e3e); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,252,247,.98); backdrop-filter: blur(10px); flex-direction: column; padding: 20px; gap: 14px; box-shadow: 0 4px 16px rgba(139,90,43,.1); }
  .nav.active { display: flex; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }

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

  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .guide-steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .guide-step::after { display: none !important; }
  .review-list { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .policy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

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

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