/* ==========================================================================
   TÔNG TRẮNG - XANH LÁ (LIGHT/EMERALD) - TỐI ƯU MOBILE 100%
   ========================================================================== */
html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0;}

@font-face {
    font-family: 'vni.common.VAVON';
    src: url('https://static.wfonts.com/data/2014/05/31/vni-avo/vni.common.VAVON.ttf') format('truetype');
    font-display: swap;
}

#preview-render {
  font-family: 'vni.common.VAVON', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #373c44;
}

:root {
    --primary-color: #55baaa;
    --secondary-color: #55baaa;
    --accent-color: #65bfb0;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(12px);
    --text-color: #0f172a;
    --text-muted: #64748b;
    --contact-color: #f97316;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-color); color: 
    var(--text-color); position: relative; padding-top: 80px; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.5; }

/* AQUARIUM ICON BAY */
.aquarium-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, transparent 60%); z-index: -1; pointer-events: none; }
.fish { position: absolute; color: rgba(22, 163, 74, 0.15); font-size: 54px; pointer-events: none; animation: swim linear infinite; }
@keyframes swim { 
    0% { transform: translateX(-50px) translateY(0) rotate(0deg); opacity: 0; } 
    10% { opacity: 0.8; } 
    90% { opacity: 0.8; } 
    100% { transform: translateX(calc(100vw + 50px)) translateY(-100px) rotate(15deg); opacity: 0; } 
}

/* CHUYỂN TRANG */
.page-section { display: none; opacity: 0; transform: translateY(15px); transition: opacity 0.4s ease-out, transform 0.4s ease; }
.page-section.active-page { display: block; }
.page-section.fade-in-active { opacity: 1; transform: translateY(0); }

/* HEADER */
.main-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: #55baaa; backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-border); z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.header-container { max-width: 1300px; margin: 0 auto; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text-color); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--primary-color); }
.logo i { margin-right: 6px; color: var(--primary-color); }

.nav-menu { display: flex; gap: 25px; }
.nav-link { color: white; text-decoration: none; font-size: 14px; font-weight: 600; padding: 5px 2px; transition: all 0.3s; position: relative; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: red; transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.cart-icon-wrapper { position: relative; cursor: pointer; width: 42px; height: 42px; background: #ffffff; border: 1px solid var(--glass-border); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; color: var(--text-color); transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cart-icon-wrapper:hover { background: #65bfb0; color: white; transform: scale(1.05); }
@keyframes neonPulse { 0% { box-shadow: 0 0 5px rgba(58, 105, 77, 0.4); border-color: rgba(255, 255, 255, 0.4); } 100% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(22, 163, 74, 0.4); border-color: var(--primary-color); } }
.cart-has-items { animation: neonPulse 1.5s infinite alternate; }
.cart-count { position: absolute; top: -5px; right: -5px; background: #ef4444; color: white; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid #ffffff; }

/* màu logo */
.main-header .long-text{
    color: white;
    font-family: 'vni.common.VAVON', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: inline-block;
    transform: translateY(-50%);

}

.main-header .lens-text{
    color: red;
    margin-left: -5px;
    font-family: 'vni.common.VAVON', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: inline-block;
    transform: translateY(-50%);
}

.logo-ll{
    width: 46px;
    height: 46px;
    margin-top: 10px;
    display: inline-block;
}




/* HERO & NÚT BẤM */
.main-content { max-width: 1300px; margin: 0 auto; padding: 20px; min-height: calc(100vh - 150px); }
.hero-section { text-align: center; padding: 40px 10px; }

.hero-section h1 { font-size: 40px; font-weight: 900; letter-spacing: 1px; margin-bottom: 15px; display:inline-block; }
.hero-section .long-h{font-family: 'vni.common.VAVON', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}
.hero-section .lens-h{color: red; font-family: 'vni.common.VAVON', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}
.hero-section p { font-size: 16px; color: black; max-width: 700px; margin: 0 auto 30px auto; font-weight: 500; }
.hero-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 15px; }

.btn-primary, .btn-secondary, .btn-combo-select, .btn-send-order, .btn-checkout, .btn-copy-text, .btn-add-cart, .btn-suggest-add { font-family: inherit; outline: none; text-transform: none; position: relative; overflow: hidden; }
.btn-primary::before, .btn-combo-select::before, .btn-send-order::before, .btn-checkout::before, .btn-copy-text::before, .btn-suggest-add::before { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); }
@keyframes buttonShine { 0% { left: -150%; } 100% { left: 150%; } }
.btn-primary:hover::before, .btn-combo-select:hover::before, .btn-send-order:hover::before, .btn-checkout:hover::before, .btn-copy-text:hover::before, .btn-suggest-add:hover::before { animation: buttonShine 0.8s forwards; }

.btn-primary { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); color: #ffffff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5); }
.btn-secondary { background: #ffffff; color: var(--text-color); border: 1px solid var(--glass-border); padding: 12px 24px; font-size: 15px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.btn-secondary:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* SLIDER CHUYÊN NGHIỆP TRANG CHỦ */
.about-slider-wrapper { position: relative; max-width: 1000px; margin: 40px auto 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); background: #000; height: 400px; }
.about-slider-container { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.about-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.about-slide::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); z-index: 1; }
.slide-content { position: relative; z-index: 2; padding: 30px; color: #fff; width: 100%; }
.slide-title { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin-bottom: 5px; color: white; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.slide-subtitle { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #e2e8f0; }
.slide-desc { font-size: 14px; max-width: 700px; color: #cbd5e1; line-height: 1.5; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3); color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; transition: all 0.3s; }
.slider-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
.prev-btn { left: 15px; } .next-btn { right: 15px; }
.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--primary-color); transform: scale(1.3); }


/* ==========================================================================
   GIAO DIỆN COMBO BỐI CẢNH (MỚI THÊM)
   ========================================================================== */
.section-header { text-align: center; margin-bottom: 35px; }
.section-header h2 { font-size: 24px; font-weight: 900; color: var(--text-color); margin-bottom: 8px; text-transform: uppercase; }
.section-header h2 i { color: var(--contact-color); margin-right: 8px; }
.section-header p { font-size: 15px; color: var(--text-muted); font-weight: 500; }

.combos-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin-bottom: 40px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.combo-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 25px; position: relative; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.combo-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 12px 30px rgba(34, 197, 94, 0.12); }
.combo-card.high-tier { border: 2px solid #cbd5e1; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.combo-card.high-tier:hover { border-color: var(--primary-color); }

.combo-badge { position: absolute; top: -14px; right: 20px; background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); color: white; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 20px; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); z-index: 2; text-transform: uppercase; letter-spacing: 0.5px; }
.combo-card.high-tier .combo-badge { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }

.combo-header { margin-bottom: 20px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 15px; }
.combo-header h3 { font-size: 17px; font-weight: 800; color: var(--text-color); margin-bottom: 12px; line-height: 1.4; }
.combo-price { font-size: 26px; font-weight: 900; color: var(--primary-color); }
.combo-price span { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.combo-features { list-style: none; margin-bottom: 25px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.combo-features li { font-size: 14.5px; font-weight: 500; color: #475569; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.combo-features li i { color: var(--primary-color); font-size: 14px; margin-top: 4px; }

.btn-combo-select { width: 100%; background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--secondary-color); padding: 14px; font-size: 15px; font-weight: 800; border-radius: 8px; cursor: pointer; transition: all 0.3s; text-align: center; }
.btn-combo-select:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3); }
.combo-card.high-tier .btn-combo-select { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.combo-card.high-tier .btn-combo-select:hover { background: #f59e0b; color: white; border-color: #f59e0b; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3); }

/* BỘ LỌC THIẾT BỊ */
.advanced-toolbar-wrapper { margin-bottom: 25px; }
.advanced-toolbar { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-top: 22px; }
.toolbar-group { display: flex; flex-direction: column; gap: 6px; }
.toolbar-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; }
.toolbar-group label i { margin-right: 4px; color: var(--primary-color); }
.search-box-group { flex: 1; min-width: 220px; position: relative; justify-content: center; margin-top: 22.5px; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; pointer-events: none; }
.advanced-toolbar input[type="text"], .advanced-toolbar select { background: #ffffff; border: 1px solid #e2e8f0; color: var(--text-color); padding: 10px 14px; font-size: 14px; border-radius: 6px; outline: none; width: 100%; font-weight: 500; font-family: inherit; }
.advanced-toolbar input[type="text"]:focus, .advanced-toolbar select:focus { border-color: var(--primary-color); box-shadow: 0 0 10px rgba(34, 197, 94, 0.15); }
.view-buttons { display: flex; gap: 2px; background: #f1f5f9; padding: 2px; border-radius: 6px; border: 1px solid #e2e8f0; }
.toggle-btn { background: none; border: none; color: var(--text-muted); padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 4px; cursor: pointer; }
.toggle-btn.active { background: var(--primary-color); color: #ffffff; }

/* SẢN PHẨM GRID & HÌNH ẢNH SẢN PHẨM */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.product-card:hover { transform: translateY(-3px); border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.product-thumb { width: 100%; height: 160px; background: #f1f5f9; border-radius: 8px; margin-bottom: 12px; border: 1px solid #e2e8f0; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; padding: 10px; }

/* Hỗ trợ thẻ ảnh */
.product-image { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; transition: transform 0.4s ease; }
.product-card:hover .product-image { transform: scale(1.5); }

/* Hỗ trợ icon nếu không có ảnh */
.placeholder-logo-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #94a3b8; }
.placeholder-logo-icon i { font-size: 32px; transition: all 0.3s; }
.placeholder-logo-icon span { font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.product-card:hover .placeholder-logo-icon i { animation: clapperSnap 0.6s ease-in-out infinite alternate; }
@keyframes clapperSnap { 0% { transform: rotate(0deg); color: var(--primary-color); } 100% { transform: rotate(-12deg); color: var(--accent-color); } }

.brand-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.9); border: 1px solid #cbd5e1; color: #475569; font-size: 9px; text-transform: uppercase; font-weight: 800; padding: 3px 6px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); z-index: 2; }
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 12px; }
.product-title { font-size: 14px; font-weight: 700; color: var(--text-color); margin-bottom: 6px; line-height: 1.4; height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 16px; font-weight: 800; color: var(--primary-color); }
.price-contact { color: var(--contact-color) !important; font-size: 15px; } 

.btn-add-cart { width: 100%; background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--secondary-color); padding: 10px; font-size: 13px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-add-cart:hover { background: var(--primary-color); color: #ffffff; border-color: var(--primary-color); }

/* COMPACT MODE */
.products-grid.compact-mode { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 10px; }
.products-grid.compact-mode .product-card { flex-direction: row; align-items: center; padding: 10px 15px; gap: 15px; height: 80px;}
.products-grid.compact-mode .product-thumb { width: 60px; height: 50px; margin-bottom: 0; padding: 2px; }
.products-grid.compact-mode .placeholder-logo-icon i { font-size: 16px; }
.products-grid.compact-mode .placeholder-logo-icon span, .products-grid.compact-mode .brand-badge { display: none; }
.products-grid.compact-mode .product-info { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 0; width: 100%; gap: 10px; }
.products-grid.compact-mode .product-title { font-size: 13px; height: auto; margin-bottom: 0; max-width: 55%; -webkit-line-clamp: 1; }
.products-grid.compact-mode .product-price { font-size: 14px; min-width: 80px; text-align: right; }
.products-grid.compact-mode .btn-add-cart { width: 35px; height: 35px; padding: 0; border-radius: 50%; }
.products-grid.compact-mode .btn-add-cart span { display: none; }

/* TRANG CHECKOUT */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.checkout-left-col, .checkout-right-col { display: flex; flex-direction: column; gap: 20px; }
.checkout-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.checkout-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.checkout-card h3 i { color: var(--primary-color); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: #475569; }
.form-group input { background: #ffffff; border: 1px solid #cbd5e1; padding: 10px; font-size: 14px; border-radius: 6px; outline: none; transition: border 0.3s; font-weight: 500; font-family: inherit; color: var(--text-color); }
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(34, 197, 94, 0.2); }

.checkout-review-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; max-height: 200px; overflow-y: auto; padding-right: 5px; }
.checkout-review-item { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 6px; }
.checkout-review-info h4 { font-size: 12px; font-weight: 700; color: var(--text-color); margin-bottom: 2px; }
.checkout-review-info span { font-size: 11px; color: var(--secondary-color); font-weight: 600; }
.checkout-review-price { font-size: 13px; font-weight: 700; color: var(--text-color); }
.checkout-review-price.contact-text { color: var(--contact-color); }

.summary-details { display: flex; flex-direction: column; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #475569; font-weight: 600; }
.weight-row span:last-child { color: #f59e0b; font-weight: 700; }
.weight-warning { background: #fffbeb; color: #d97706; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid #fde68a; margin-top: 5px; }
.summary-divider { border: none; border-top: 1px dashed #cbd5e1; margin: 5px 0; }
.total-row { font-size: 16px; font-weight: 800; color: var(--text-color); }
.total-row #summaryTotalText { color: var(--primary-color); font-size: 18px; }

.btn-send-order { width: 100%; background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%); color: white; border: none; padding: 12px; font-size: 14px; font-weight: 800; border-radius: 8px; cursor: pointer; margin-top: 15px; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
.btn-copy-text { width: 100%; background: #ffffff; border: 2px solid var(--primary-color); color: var(--secondary-color); padding: 10px; font-size: 14px; font-weight: 800; border-radius: 8px; cursor: pointer; margin-top: 10px; }

/* SIDEBAR GIỎ HÀNG */
.cart-drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; backdrop-filter: blur(2px); }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 400px; max-width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); border-left: 1px solid var(--glass-border); z-index: 1001; display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1); padding: 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; }
.cart-header h3 { font-size: 15px; font-weight: 800; color: var(--text-color); }
.close-cart-btn { background: none; border: none; color: #94a3b8; font-size: 26px; cursor: pointer; line-height: 1; }
.cart-weight-tracker { background: #fffbeb; border: 1px solid #fde68a; padding: 10px; border-radius: 8px; font-size: 13px; color: #d97706; font-weight: 600; margin-top: 15px; display: flex; align-items: center; gap: 8px; }
.cart-weight-tracker strong { color: #b45309; font-size: 14px; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 12px; border-radius: 8px; }
.cart-item-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cart-item-info span { font-size: 12px; color: var(--secondary-color); font-weight: 600; }
.cart-item-info span.contact-text { color: var(--contact-color); }
.btn-delete-item { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 14px; padding: 5px; }

/* GỢI Ý AC/LIGHTING */
.cart-suggestions-container, #checkoutSuggestionsArea { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.suggest-box { background: #f0fdf4; border: 1px dashed #4ade80; padding: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.suggest-text { font-size: 12px; color: #166534; line-height: 1.4; font-weight: 500; }
.btn-suggest-add { background: var(--primary-color); color: #fff; border: none; padding: 6px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px; }

.cart-footer { border-top: 1px solid #e2e8f0; padding-top: 15px; }
.total-price { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: #475569; margin-bottom: 15px; }
.total-price span { color: var(--primary-color); font-size: 18px; font-weight: 800; }
.btn-checkout { width: 100%; background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%); color: #ffffff; border: none; padding: 12px; font-size: 14px; font-weight: 800; border-radius: 8px; cursor: pointer; text-transform: uppercase; text-align: center; }

.main-footer { text-align: center; padding: 20px; color: #94a3b8; font-size: 12px; font-weight: 600; border-top: 1px solid #e2e8f0; margin-top: 30px; }


/* ==========================================================================
   TỐI ƯU HÓA HOÀN HẢO CHO ĐIỆN THOẠI & TABLET
   ========================================================================== */

/* Tablet & Mobile (Điều chỉnh thanh bộ lọc luôn hiển thị & linh hoạt) */
@media (max-width: 992px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .hero-section h1 { font-size: 32px; }
    .about-slider-wrapper { height: 350px; }
    .advanced-toolbar { padding: 15px; gap: 12px; justify-content: flex-start; }
}

@media (max-width: 768px) {
    /* Co giãn các ô bộ lọc */
    .search-box-group { flex: 1 1 100%; order: -1; margin-bottom: 5px; } 
    .toolbar-group:not(.search-box-group) { flex: 1 1 calc(33% - 10px); }
}

@media (max-width: 576px) { 
    /* ---- COMBO BỐI CẢNH ---- */
    .combos-container { grid-template-columns: 1fr; gap: 20px; }
    .combo-card { padding: 20px; }
    .combo-price { font-size: 22px; }

    /* ---- LƯỚI SẢN PHẨM: ÉP BUỘC 2 CỘT ---- */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .products-grid.compact-mode { grid-template-columns: 1fr; }

    .product-card { padding: 10px; }
    .product-thumb { height: 110px; padding: 5px; margin-bottom: 8px; }
    .placeholder-logo-icon i { font-size: 24px; }
    .product-title { font-size: 12px; height: 34px; margin-bottom: 4px; }
    .product-price { font-size: 13px; }
    .btn-add-cart { padding: 8px; font-size: 11.5px; gap: 4px; }

    /* Thu nhỏ các ô Lọc thiết bị trên khung hẹp */
    .toolbar-group:not(.search-box-group) { flex: 1 1 calc(50% - 8px); }
    .advanced-toolbar input[type="text"], .advanced-toolbar select { font-size: 13px; padding: 8px 10px; }
    .toolbar-group label { font-size: 11px; }

    /* Các thành phần khác */
    .form-grid { grid-template-columns: 1fr; gap: 12px; } 
    .hero-section h1 { font-size: 28px; } 
    .hero-section p { font-size: 14px; }
    .slide-title { font-size: 20px; } 
    .slide-content { padding: 20px; }
    .about-slider-wrapper { 
        height: 280px;}


}

/* ==========================================================================
   VỀ CHÚNG TÔI (STYLE BÁO CHÍ)
   ========================================================================== */
.about-articles-layout { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.news-article { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: transform 0.3s; }
.news-article:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.featured-article { border-color: #cbd5e1; }
.featured-article .article-media { height: 450px; }
.featured-article .article-title { font-size: 28px; color: var(--primary-color); }
.article-media { width: 100%; height: 300px; object-fit: cover; background: #e2e8f0; display: block; }
.article-content { padding: 30px; }
.article-title { font-size: 22px; font-weight: 900; color: var(--text-color); margin-bottom: 10px; line-height: 1.3; }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.article-meta strong { color: var(--secondary-color); }
.article-text { font-size: 15.5px; color: #334155; line-height: 1.7; }
.article-text p { margin-bottom: 15px; }
.article-text .article-lead { font-size: 17px; font-weight: 600; color: #0f172a; margin-bottom: 20px; }

@media (max-width: 768px) {
    .featured-article .article-media { height: 300px; }
}
@media (max-width: 576px) {
    .article-media, .featured-article .article-media { height: 200px; }
    .article-content { padding: 20px; }
    .article-title, .featured-article .article-title { font-size: 20px; }
}


/* cart nhỏ */

/* ==========================================================================
   MINI CART TOAST
   ========================================================================== */
.mini-cart-toast { position: fixed; bottom: -100px; right: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--primary-color); border-radius: 12px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2); z-index: 998; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: 400px; width: calc(100% - 40px); }
.mini-cart-toast.show { bottom: 20px; }
.mini-cart-left { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; overflow: hidden; }
.mini-cart-icon { position: relative; font-size: 20px; color: var(--primary-color); background: #f0fdf4; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0;  }
.mini-cart-badge { position: absolute; bottom: -1%; right: -5px; background: #ef4444; color: white; font-size: 10px; font-weight: bold; width: 14px; height: 14px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.mini-cart-text { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.mini-cart-text strong { font-size: 13px; color: var(--text-color); }
.mini-cart-text span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-right { display: flex; align-items: center; gap: 10px; }
.mini-cart-btn { background: var(--primary-color); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.mini-cart-close { background: none; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; padding: 0 5px; }
.mini-cart-close:hover { color: #ef4444; }

@media (max-width: 576px) {
    .mini-cart-toast { right: 50%; transform: translateX(50%); bottom: -100px; }
    .mini-cart-toast.show { bottom: 15px; }
}


/* TỐI ƯU TÌM KIẾM KO THẤY */

/* ==========================================================================
   GIAO DIỆN THÔNG BÁO TÌM KIẾM (EMPTY STATE)
   ========================================================================== */
.empty-search-prompt {
    background: var(--card-bg);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.empty-search-prompt i {
    font-size: 45px;
    color: #94a3b8;
    margin-bottom: 15px;
}
.empty-search-prompt p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
}
.empty-search-prompt p.suggest-text {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}
.empty-search-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.empty-search-actions .btn-add-cart.suggest-btn {
    width: auto;
    padding: 10px 20px;
}
.btn-zalo {
    background: #0068ff; /* Màu chuẩn của Zalo */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-zalo:hover {
    background: #0054cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 104, 255, 0.3);
}

@media (max-width: 576px) {
    .empty-search-actions { flex-direction: column; }
    .empty-search-actions button { width: 100%; justify-content: center; }
}


/* 3D */

/* ==========================================================================
   HIỆU ỨNG HỎI XEM 3D THÔNG MINH (CHỈ ÁP DỤNG TRÊN PC)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    /* Lớp phủ câu hỏi mờ mờ trên ảnh tĩnh */
    .sketchfab-prompt-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.85); /* Nền mờ che ảnh thật */
        backdrop-filter: blur(4px);
        display: flex; justify-content: center; align-items: center;
        z-index: 5;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease;
        border-radius: 6px;
    }

    /* Khung rỗng để nhúng 3D khi đã click */
    .sketchfab-container {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 6;
        opacity: 0; visibility: hidden; pointer-events: none;
    }
    .sketchfab-container iframe {
        width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
    }

    /* Nội dung của lớp phủ câu hỏi */
    .prompt-content { text-align: center; padding: 10px; }
    .prompt-content i { font-size: 26px; color: var(--primary-color); margin-bottom: 8px; }
    .prompt-content p { font-size: 13px; font-weight: 700; color: var(--text-color); margin-bottom: 12px; line-height: 1.4; }
    .prompt-content button { 
        background: var(--primary-color); color: white; border: none; 
        padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: bold; 
        cursor: pointer; transition: all 0.3s; 
    }
    .prompt-content button:hover { background: var(--secondary-color); transform: translateY(-2px); }

    /* Khi hover chuột vào Thẻ -> Hiện bảng hỏi */
    .product-card.has-3d-model:hover .sketchfab-prompt-overlay {
        opacity: 1; visibility: visible;
    }

    /* KHI ĐÃ BẤM NÚT XEM 3D TRONG JS (Thêm class is-viewing-3d) */
    .product-card.is-viewing-3d .sketchfab-container {
        opacity: 1; visibility: visible; pointer-events: auto; /* Cho phép xoay 3D */
    }
    /* Ẩn bảng hỏi và ảnh tĩnh đi hoàn toàn */
    .product-card.is-viewing-3d .sketchfab-prompt-overlay,
    .product-card.is-viewing-3d .product-image,
    .product-card.is-viewing-3d .placeholder-logo-icon {
        opacity: 0 !important; visibility: hidden !important;
    }

    /* --- Thiết kế Nút Tắt [X] cho khung 3D --- */
    .btn-close-3d {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        cursor: pointer;
        z-index: 10; /* Nổi lên trên cùng của iframe */
        transition: background 0.3s, transform 0.2s;
    }
    .btn-close-3d:hover {
        background: #ef4444; /* Đổi màu đỏ khi đưa chuột vào */
        transform: scale(1.1);
    }
}