/* ==========================================================================
   HMSHOP – Wine & Spirits
   Bootstrap 5.3 + jQuery 3.7 + Slick 1.8
   ========================================================================== */

/* 1. Biến & nền tảng ------------------------------------------------------ */
:root {
  --primary: #7b1e2b;
  --primary-dark: #5a1420;
  --primary-light: #f6e9eb;
  --gold: #c8a253;
  --gold-dark: #a8853a;
  --dark: #1c1416;
  --text: #3a3335;
  --muted: #8a7f81;
  --cream: #faf7f2;
  --border: #ece4dc;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(60, 20, 28, .08);
  --shadow-lg: 0 14px 40px rgba(60, 20, 28, .16);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-primary: #7b1e2b;
  --bs-primary-rgb: 123, 30, 43;
  --bs-link-color: #7b1e2b;
  --bs-link-hover-color: #5a1420;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 15px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .font-head { font-family: var(--font-head); color: var(--dark); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.bg-cream { background: var(--cream); }
.bg-primary { background-color: var(--primary) !important; }

.btn { border-radius: 6px; font-weight: 500; padding: .55rem 1.2rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-active-bg: var(--primary); --bs-btn-active-border-color: var(--primary); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-zalo { background: #0068ff; color: #fff; border-color: #0068ff; }
.btn-zalo:hover { background: #0052cc; color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(200, 162, 83, .2); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

/* Tiêu đề section kiểu "chai rượu" */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.section-title { font-size: 1.75rem; margin: 0; position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 2px; }
.section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-head.center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: var(--muted); margin: 6px 0 0; }
.link-more { font-weight: 500; white-space: nowrap; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* 2. Topbar & header ------------------------------------------------------ */
.topbar { background: var(--dark); color: #cfc4c6; font-size: 13px; }
.topbar a { color: #cfc4c6; }
.topbar a:hover { color: var(--gold); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar-links a + a { margin-left: 18px; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 1030; transition: box-shadow .25s; }
.site-header.is-sticky { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.header-main { padding: 14px 0; }
.header-main .container { display: flex; align-items: center; gap: 24px; }
.logo img { height: 50px; width: auto; display: block; }
.header-search { flex: 1; max-width: 560px; position: relative; }
.header-search .form-control { height: 46px; border-radius: 50px; padding-left: 20px; padding-right: 56px; border: 2px solid var(--border); background: var(--cream); }
.header-search .btn-search { position: absolute; right: 4px; top: 4px; height: 38px; width: 46px; border-radius: 50px; padding: 0; background: var(--primary); color: #fff; border: 0; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: none; z-index: 20; }
.search-suggest.show { display: block; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text); }
.search-suggest a:hover { background: var(--cream); }
.search-suggest img { width: 34px; height: 46px; object-fit: contain; }
.search-suggest .s-price { color: var(--primary); font-weight: 600; font-size: 13px; }
.search-tags { font-size: 12px; color: var(--muted); padding: 4px 8px; }
.search-tags a { display: inline-block; padding: 2px 10px; margin: 4px 4px 0 0; background: var(--cream); border-radius: 20px; color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.hotline { display: flex; align-items: center; gap: 10px; color: var(--dark); }
.hotline i { font-size: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }
.hotline small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.hotline strong { color: var(--primary); font-size: 16px; }
.icon-btn { position: relative; color: var(--dark); font-size: 22px; line-height: 1; background: none; border: 0; padding: 4px; }
.icon-btn:hover { color: var(--primary); }
.icon-btn .badge-count { position: absolute; top: -6px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--gold); color: #fff; display: grid; place-items: center; }
.btn-menu { display: none; }

/* 3. Menu & mega menu ----------------------------------------------------- */
.main-nav { background: var(--primary); }
.main-nav > .container > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: static; }
.main-nav > .container > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 13px 15px; color: #fff; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.main-nav > .container > ul > li > a .bi-chevron-down { font-size: 10px; opacity: .8; }
.main-nav > .container > ul > li:hover > a, .main-nav > .container > ul > li.active > a { background: var(--primary-dark); color: var(--gold); }
.main-nav .nav-sale > a { color: var(--gold) !important; }
.main-nav > .container { position: relative; }
.mega { position: absolute; left: 12px; right: 12px; top: 100%; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 26px 30px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s; z-index: 50; border-top: 3px solid var(--gold); }
.main-nav li:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega h6 { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega ul li a { display: block; color: var(--text); padding: 4px 0; font-size: 14px; }
.mega ul li a:hover { color: var(--primary); padding-left: 4px; }
.mega-promo { border-radius: var(--radius); overflow: hidden; position: relative; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; padding: 22px; }
.mega-promo img { position: absolute; right: -10px; bottom: -10px; height: 85%; }
.mega-promo h5 { color: var(--gold); font-size: 1.25rem; }
.mega-promo p { max-width: 60%; font-size: 13px; opacity: .85; }
.mega.mega-sm { left: auto; right: auto; width: 260px; padding: 18px 22px; }
.main-nav li.has-sm { position: relative; }

/* 4. Offcanvas mobile ----------------------------------------------------- */
.offcanvas-menu { width: 320px !important; }
.offcanvas-menu .offcanvas-header { background: var(--primary); color: #fff; }
.offcanvas-menu .offcanvas-header img { height: 38px; filter: brightness(0) invert(1); }
.m-menu { list-style: none; padding: 0; margin: 0; }
.m-menu > li { border-bottom: 1px solid var(--border); }
.m-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--dark); font-weight: 500; }
.m-menu .m-row { display: flex; align-items: center; }
.m-menu .m-row a { flex: 1; }
.m-menu .m-toggle { border: 0; border-left: 1px solid var(--border); background: none; width: 50px; height: 46px; flex-shrink: 0; }
.m-menu .m-toggle i { transition: transform .2s; }
.m-menu .m-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.m-menu ul { list-style: none; padding: 0 0 8px 0; margin: 0; background: var(--cream); }
.m-menu ul a { font-weight: 400; padding: 8px 18px 8px 32px; font-size: 14px; color: var(--text); }
.m-contact { padding: 18px; font-size: 14px; }

/* 5. Tiện ích chung ------------------------------------------------------- */
.breadcrumb-wrap { background: var(--cream); padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { margin: 0; font-size: 13.5px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--primary); }
.page-hero { background: linear-gradient(120deg, rgba(28, 20, 22, .92), rgba(123, 30, 43, .88)), url(../img/post-1.svg) center/cover; color: #fff; padding: 46px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 6px; }
.page-hero p { opacity: .85; margin: 0; }
.page-hero .breadcrumb { justify-content: center; margin-top: 10px; }
.page-hero .breadcrumb-item a, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb-item.active { color: var(--gold); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 42px; border: 0; background: var(--cream); font-size: 18px; color: var(--dark); }
.qty button:hover { background: var(--primary-light); color: var(--primary); }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.qty-sm button { width: 30px; height: 34px; font-size: 15px; }
.qty.qty-sm input { width: 40px; height: 34px; }
.toast-container { z-index: 2000; }
.slick-slider .slick-slide { outline: none; }
.slick-arrow-btn { position: absolute; top: 40%; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--dark); box-shadow: var(--shadow); display: grid; place-items: center; transition: all .2s; }
.slick-arrow-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slick-arrow-btn.prev { left: -14px; }
.slick-arrow-btn.next { right: -14px; }
.slick-arrow-btn.slick-disabled { opacity: .35; pointer-events: none; }
.slick-dots { list-style: none; display: flex !important; justify-content: center; gap: 8px; padding: 0; margin: 16px 0 0; }
.slick-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; font-size: 0; background: #d8cfc7; transition: all .25s; }
.slick-dots .slick-active button { width: 26px; background: var(--primary); }
.product-slider { margin: 0 -10px; }
.product-slider .slick-slide > div { padding: 0 10px 6px; }
/* trước khi slick khởi tạo: tránh nhảy layout */
.product-slider:not(.slick-initialized) { display: flex; overflow: hidden; }
.product-slider:not(.slick-initialized) > div { flex: 0 0 20%; padding: 0 10px; }

/* 6. Product card --------------------------------------------------------- */
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card .p-thumb { position: relative; background: radial-gradient(circle at 50% 60%, #fff 0, var(--cream) 70%); aspect-ratio: 1 / 1.08; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.product-card .p-thumb img { max-height: 92%; width: auto; transition: transform .4s; }
.product-card:hover .p-thumb img { transform: scale(1.06); }
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.p-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; color: #fff; line-height: 1.3; }
.p-badge.sale { background: #d0021b; }
.p-badge.new { background: #2e7d32; }
.p-badge.hot { background: var(--gold); }
.p-badge.gift { background: var(--primary); }
.p-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.p-actions button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--dark); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); opacity: 0; transform: translateX(10px); transition: all .25s; }
.p-actions button:nth-child(2) { transition-delay: .05s; }
.product-card:hover .p-actions button { opacity: 1; transform: none; }
.p-actions button:hover, .p-actions button.active { background: var(--primary); color: #fff; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.p-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.p-meta span + span::before { content: "•"; margin-right: 8px; color: var(--gold); }
.p-name { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.p-name a { color: var(--dark); }
.p-name a:hover { color: var(--primary); }
.p-abv { font-size: 12px; color: var(--gold-dark); font-weight: 500; margin-bottom: 8px; }
.p-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .now { color: var(--primary); font-weight: 700; font-size: 17px; }
.p-price .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.p-price .contact { color: var(--gold-dark); font-weight: 700; }
.p-add { margin-top: 10px; width: 100%; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 6px; padding: 7px; font-weight: 500; font-size: 14px; transition: all .2s; }
.p-add:hover { background: var(--primary); color: #fff; }
.p-add.added { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.p-rating { color: #f5a623; font-size: 12px; }
/* list view */
.product-grid.list-view > [class*="col"] { width: 100%; }
.product-grid.list-view .product-card { flex-direction: row; }
.product-grid.list-view .p-thumb { width: 220px; flex-shrink: 0; aspect-ratio: auto; }
.product-grid.list-view .p-body { padding: 20px; }
.product-grid.list-view .p-name { font-size: 17px; -webkit-line-clamp: 1; min-height: 0; }
.product-grid.list-view .p-desc { display: block !important; }
.product-grid.list-view .p-add { width: auto; padding: 8px 26px; align-self: flex-start; }

@media (min-width: 992px) { .row-cols-lg-8 > * { flex: 0 0 auto; width: 12.5%; } }
/* 7. Trang chủ ------------------------------------------------------------ */
.hero { padding: 20px 0 0; }
.hero-slider { border-radius: 14px; overflow: hidden; }
.hero-slide { position: relative; min-height: 420px; display: flex !important; align-items: center; padding: 40px 56px; color: #fff; overflow: hidden; }
.hero-slide.s1 { background: radial-gradient(circle at 75% 50%, #9b2c3d 0, #5a1420 45%, #1c1416 100%); }
.hero-slide.s2 { background: radial-gradient(circle at 75% 50%, #d4b06a 0, #8a5a1e 45%, #2d1a0a 100%); }
.hero-slide.s3 { background: radial-gradient(circle at 75% 50%, #4a6b4a 0, #23361f 50%, #0f1a0c 100%); }
.hero-slide .hero-text { position: relative; z-index: 2; max-width: 52%; }
.hero-slide .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; }
.hero-slide h2 { color: #fff; font-size: 2.8rem; line-height: 1.15; margin: 10px 0 14px; }
.hero-slide p { opacity: .85; margin-bottom: 22px; }
.hero-slide .hero-bottles { position: absolute; right: 7%; bottom: 6%; height: 78%; display: flex; align-items: flex-end; z-index: 1; }
.hero-slide .hero-bottles img { height: 100%; width: auto; margin-left: -18px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
.hero-slide .hero-bottles img:nth-child(2) { height: 116%; z-index: 2; }
.hero-slider .slick-dots { position: absolute; bottom: 18px; left: 56px; margin: 0; }
.hero-slider .slick-dots button { background: rgba(255, 255, 255, .45); }
.hero-slider .slick-dots .slick-active button { background: var(--gold); }
.hero-side { display: grid; gap: 20px; height: 100%; }
.hero-side a { border-radius: 14px; overflow: hidden; position: relative; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 24px; min-height: 200px; }
.hero-side a.b1 { background: linear-gradient(135deg, #c8a253, #7a4a12); }
.hero-side a.b2 { background: linear-gradient(135deg, #3d2a4a, #7b1e2b); }
.hero-side a h4 { color: #fff; font-size: 1.35rem; margin: 4px 0; max-width: 60%; }
.hero-side a small { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: .85; }
.hero-side a span.go { font-size: 13px; margin-top: 8px; }
.hero-side a img { position: absolute; right: 18px; bottom: 8%; height: 84%; transition: transform .4s; }
.hero-side a:hover img { transform: translateY(-8px) rotate(-4deg); }

.services { padding: 28px 0; }
.service-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--cream); height: 100%; }
.service-item i { font-size: 30px; color: var(--primary); flex-shrink: 0; }
.service-item h6 { font-family: var(--font-body); font-weight: 700; margin: 0 0 2px; font-size: 14.5px; }
.service-item p { margin: 0; font-size: 13px; color: var(--muted); }

.cat-item { text-align: center; display: block; color: var(--dark); }
.cat-item .ci-img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); display: grid; place-items: center; padding: 14px; border: 2px solid transparent; transition: all .3s; margin-bottom: 10px; position: relative; overflow: hidden; }
.cat-item .ci-img::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, var(--primary-light), transparent 70%); opacity: 0; transition: opacity .3s; }
.cat-item:hover .ci-img { border-color: var(--gold); transform: translateY(-4px); }
.cat-item:hover .ci-img::before { opacity: 1; }
.cat-item img { height: 92%; position: relative; }
.cat-item h6 { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; margin: 0; }
.cat-item small { color: var(--muted); font-size: 12px; }
.cat-item:hover h6 { color: var(--primary); }

.occasion { position: relative; border-radius: var(--radius); overflow: hidden; display: block; aspect-ratio: 4 / 3.3; color: #fff; }
.occasion img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.occasion:hover img { transform: scale(1.08); }
.occasion .oc-body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.occasion h5 { color: #fff; margin: 0; font-size: 1.25rem; }
.occasion small { color: var(--gold); }
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pills a { padding: 6px 16px; border-radius: 30px; border: 1px solid var(--border); color: var(--text); font-size: 14px; background: #fff; transition: all .2s; }
.tag-pills a:hover, .tag-pills a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.flash-sale { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 50%, #9b2c3d); border-radius: 16px; padding: 26px 24px 30px; }
.flash-sale .section-title { color: #fff; }
.flash-sale .section-title::after { background: var(--gold); }
.flash-sale .fs-title i { color: var(--gold); animation: flash 1.2s infinite; }
@keyframes flash { 50% { opacity: .3; } }
.countdown { display: flex; align-items: center; gap: 6px; color: #fff; }
.countdown span.lbl { margin-right: 6px; font-size: 14px; opacity: .85; }
.countdown .cd { background: var(--dark); color: var(--gold); font-weight: 700; border-radius: 6px; min-width: 42px; text-align: center; padding: 6px 4px; font-size: 18px; font-variant-numeric: tabular-nums; }
.flash-sale .slick-arrow-btn.prev { left: -8px; }
.flash-sale .slick-arrow-btn.next { right: -8px; }
.sold-bar { height: 16px; background: #f3dfe2; border-radius: 10px; margin-top: 10px; position: relative; overflow: hidden; font-size: 10.5px; color: #fff; text-align: center; line-height: 16px; font-weight: 600; }
.sold-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff6a3d, #d0021b); border-radius: 10px; }
.sold-bar em { position: relative; font-style: normal; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }

.nav-tabs-wine { border: 0; gap: 6px; flex-wrap: wrap; }
.nav-tabs-wine .nav-link { border: 1px solid var(--border); border-radius: 30px; color: var(--text); padding: 6px 18px; font-size: 14px; font-weight: 500; }
.nav-tabs-wine .nav-link.active, .nav-tabs-wine .nav-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.promo-banner { border-radius: 16px; overflow: hidden; background: linear-gradient(110deg, #1c1416 0, #3a0b12 55%, #7b1e2b 100%); color: #fff; padding: 44px 50px; position: relative; }
.promo-banner::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(200, 162, 83, .12); }
.promo-banner h3 { color: #fff; font-size: 2rem; }
.promo-banner .hl { color: var(--gold); }
.promo-banner .pb-bottles { position: absolute; right: 8%; bottom: -10px; height: 105%; display: flex; align-items: flex-end; z-index: 1; }
.promo-banner .pb-bottles img { height: 78%; margin-left: -10px; }
.promo-banner .pb-bottles img:nth-child(2) { height: 100%; }
.promo-banner .content { position: relative; z-index: 2; max-width: 55%; }

.country-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--dark); background: #fff; transition: all .25s; height: 100%; }
.country-tile:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--primary); }
.country-tile .flag { width: 46px; height: 32px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.country-tile h6 { margin: 0; font-family: var(--font-body); font-weight: 600; }
.country-tile small { color: var(--muted); }
.flag-fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag-it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.flag-cl { background: linear-gradient(#fff 50%, #d52b1e 50%); position: relative; }
.flag-cl::before { content: ""; position: absolute; left: 0; top: 0; width: 38%; height: 50%; background: #0039a6; }
.flag-au { background: #012169; }
.flag-es { background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-us { background: repeating-linear-gradient(#b22234 0 2.46px, #fff 2.46px 4.92px); position: relative; }
.flag-us::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 54%; background: #3c3b6e; }
.flag-ar { background: linear-gradient(#74acdf 33.3%, #fff 33.3% 66.6%, #74acdf 66.6%); }
.flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card .pc-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.post-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .pc-thumb img { transform: scale(1.06); }
.post-card .pc-cat { position: absolute; left: 12px; top: 12px; background: var(--primary); color: #fff; font-size: 11.5px; padding: 3px 10px; border-radius: 4px; }
.post-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.post-card h5 { font-size: 1.08rem; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h5 a { color: var(--dark); }
.post-card h5 a:hover { color: var(--primary); }
.post-card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.post-card .link-more { margin-top: auto; font-size: 14px; }
.post-card.featured .pc-thumb { aspect-ratio: 16 / 9.2; }
.post-card.featured h5 { font-size: 1.45rem; }

.knowledge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); height: 100%; color: var(--dark); transition: all .25s; }
.knowledge-tile i { font-size: 34px; color: var(--primary); width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-light); margin-bottom: 12px; transition: all .25s; }
.knowledge-tile:hover { border-color: var(--primary); color: var(--primary); }
.knowledge-tile:hover i { background: var(--primary); color: #fff; }
.knowledge-tile h6 { font-family: var(--font-body); font-weight: 600; margin: 0 0 4px; }
.knowledge-tile small { color: var(--muted); }

.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; color: #fff; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); }
.video-card .play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--primary); display: grid; place-items: center; font-size: 28px; z-index: 2; transition: transform .25s; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-card h6 { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; z-index: 2; margin: 0; font-family: var(--font-body); font-weight: 600; }

.store-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); height: 100%; transition: all .25s; }
.store-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.store-card h6 { font-family: var(--font-body); font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.store-card p { font-size: 14px; margin-bottom: 6px; display: flex; gap: 8px; }
.store-card p i { color: var(--gold); }
.store-card .btns { display: flex; gap: 8px; margin-top: 12px; }
.store-card .btns .btn { padding: 5px 12px; font-size: 13px; flex: 1; }

.brands { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brand-logo { height: 70px; display: grid; place-items: center; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #b8aeb0; letter-spacing: 1px; text-transform: uppercase; transition: color .25s; filter: grayscale(1); }
.brand-logo:hover { color: var(--primary); }

.newsletter { background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: #fff; padding: 32px 0; }
.newsletter h4 { color: #fff; margin: 0; }
.newsletter p { margin: 4px 0 0; opacity: .8; font-size: 14px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter .form-control { height: 48px; border-radius: 6px; border: 0; }
.newsletter .btn { height: 48px; white-space: nowrap; padding: 0 24px; }

/* 8. Footer --------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #b8aeb0; font-size: 14px; padding-top: 56px; }
.site-footer h6 { color: #fff; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold); }
.site-footer a { color: #b8aeb0; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-info p { display: flex; gap: 10px; margin-bottom: 9px; }
.footer-info i { color: var(--gold); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--gold); color: #fff; }
.payments { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.payments span { background: #fff; color: var(--dark); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge-bct { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; padding: 4px 10px; font-size: 12px; color: #fff; }
.badge-bct i { color: #e53935; }
.footer-warning { font-size: 12.5px; color: #8a7f81; margin-top: 10px; }
.footer-collapse-btn { display: none; }

/* 9. Nút nổi / bottombar -------------------------------------------------- */
.float-contact { position: fixed; right: 18px; bottom: 90px; z-index: 1020; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); position: relative; }
.float-contact a span.tip { position: absolute; right: 60px; background: var(--dark); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .2s; }
.float-contact a:hover span.tip { opacity: 1; visibility: visible; }
.float-contact .fc-phone { background: #d0021b; animation: ring 1.8s infinite; }
.float-contact .fc-zalo { background: #0068ff; font-weight: 800; font-size: 13px; }
.float-contact .fc-mess { background: linear-gradient(45deg, #0099ff, #a033ff, #ff5280); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(208, 2, 27, .6); } 70% { box-shadow: 0 0 0 16px rgba(208, 2, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(208, 2, 27, 0); } }
.back-top { position: fixed; right: 18px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; z-index: 1020; opacity: 0; visibility: hidden; transition: all .3s; font-size: 18px; }
.back-top.show { opacity: 1; visibility: visible; }
.bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; background: #fff; box-shadow: 0 -2px 14px rgba(0, 0, 0, .1); padding-bottom: env(safe-area-inset-bottom); }
.bottom-bar ul { display: flex; list-style: none; margin: 0; padding: 0; }
.bottom-bar li { flex: 1; }
.bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; color: var(--text); font-size: 11px; width: 100%; border: 0; background: none; position: relative; }
.bottom-bar i { font-size: 20px; }
.bottom-bar .active { color: var(--primary); }
.bottom-bar .bb-call i { width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .1); }
.bottom-bar .badge-count { position: absolute; top: 2px; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }

/* Age gate */
.age-gate .modal-content { border: 0; border-radius: 16px; overflow: hidden; text-align: center; }
.age-gate .ag-top { background: linear-gradient(135deg, var(--primary), var(--dark)); padding: 30px 20px 22px; color: #fff; }
.age-gate .ag-top img { height: 48px; filter: brightness(0) invert(1); }
.age-gate .ag-18 { font-family: var(--font-head); font-size: 54px; color: var(--gold); line-height: 1; margin-top: 14px; }
.age-gate .modal-body { padding: 24px 28px 28px; }
.modal-backdrop.ag-backdrop { --bs-backdrop-opacity: .9; }

/* Quick view */
.qv-img { background: var(--cream); border-radius: var(--radius); display: grid; place-items: center; padding: 20px; height: 100%; min-height: 320px; }
.qv-img img { max-height: 340px; }

/* Mini cart offcanvas */
.mini-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mini-cart-item img { width: 56px; height: 72px; object-fit: contain; background: var(--cream); border-radius: 6px; padding: 4px; }
.mini-cart-item h6 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.mini-cart-item .mc-price { color: var(--primary); font-weight: 600; font-size: 14px; }
.mini-cart-item .mc-remove { margin-left: auto; color: var(--muted); border: 0; background: none; align-self: flex-start; }

/* 10. Trang danh mục ------------------------------------------------------ */
.cat-banner { border-radius: 14px; background: linear-gradient(110deg, var(--dark), var(--primary)); color: #fff; padding: 28px 32px; position: relative; overflow: hidden; margin-bottom: 24px; }
.cat-banner h1 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.cat-banner p { opacity: .85; margin: 0; max-width: 640px; font-size: 14.5px; }
.cat-banner img { position: absolute; right: 40px; bottom: -20px; height: 130%; opacity: .9; }
.sub-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.sub-cats a { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 40px; color: var(--text); font-size: 14px; }
.sub-cats a img { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); object-fit: contain; padding: 2px; }
.sub-cats a:hover { border-color: var(--primary); color: var(--primary); }
.filter-box { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: #fff; }
.filter-box .fb-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; color: var(--dark); border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14.5px; }
.filter-box .fb-head i { transition: transform .2s; font-size: 12px; }
.filter-box .fb-head.collapsed i { transform: rotate(-90deg); }
.filter-box .fb-body { padding: 12px 16px; max-height: 260px; overflow: auto; }
.filter-box .form-check { margin-bottom: 6px; font-size: 14px; }
.filter-box .form-check label { display: flex; justify-content: space-between; width: 100%; cursor: pointer; }
.filter-box .form-check label small { color: var(--muted); }
.filter-box .form-check { display: flex; gap: 8px; align-items: center; padding-left: 0; }
.filter-box .form-check-input { margin: 0; float: none; flex-shrink: 0; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { font-size: 13px; }
.form-range::-webkit-slider-thumb { background: var(--primary); }
.form-range::-moz-range-thumb { background: var(--primary); }
.side-banner { border-radius: var(--radius); background: linear-gradient(160deg, var(--gold), var(--primary)); color: #fff; padding: 22px; text-align: center; }
.side-banner h5 { color: #fff; }
.side-banner img { height: 160px; margin: 10px 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--cream); border-radius: var(--radius); margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .result-count { font-size: 14px; }
.toolbar .form-select { width: auto; font-size: 14px; }
.view-toggle button { border: 1px solid var(--border); background: #fff; width: 38px; height: 38px; border-radius: 6px; color: var(--muted); }
.view-toggle button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .af { background: var(--primary-light); color: var(--primary); border-radius: 20px; padding: 3px 6px 3px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.active-filters .af button { border: 0; background: none; color: var(--primary); padding: 0 4px; line-height: 1; }
.pagination .page-link { color: var(--dark); border-radius: 6px !important; margin: 0 3px; border-color: var(--border); min-width: 40px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.seo-content { position: relative; max-height: 220px; overflow: hidden; transition: max-height .4s; }
.seo-content.expanded { max-height: 3000px; }
.seo-content:not(.expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #fff); }
.empty-filter { text-align: center; padding: 50px 20px; color: var(--muted); display: none; }
.empty-filter i { font-size: 48px; color: var(--border); }

/* 11. Trang chi tiết SP ---------------------------------------------------- */
.pd-gallery .main-img { background: radial-gradient(circle at 50% 60%, #fff 0, var(--cream) 70%); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 30px; position: relative; overflow: hidden; cursor: zoom-in; }
.pd-gallery .main-img img { height: 100%; width: auto; max-height: 460px; transition: transform .3s; }
.pd-gallery .main-img.zoom img { transform: scale(1.7); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { flex: 1; aspect-ratio: 1; background: var(--cream); border: 2px solid transparent; border-radius: 8px; padding: 6px; max-width: 90px; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--gold); }
.pd-thumbs img { height: 100%; width: auto; object-fit: contain; }
.pd-title { font-size: 1.9rem; margin-bottom: 8px; }
.pd-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.pd-sub b { color: var(--dark); font-weight: 600; }
.pd-sub .in-stock { color: #2e7d32; font-weight: 600; }
.pd-price { background: var(--cream); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; border-left: 4px solid var(--primary); }
.pd-price .now { font-size: 2rem; font-weight: 700; color: var(--primary); }
.pd-price .old { color: var(--muted); text-decoration: line-through; margin-left: 10px; }
.pd-price .save { display: inline-block; white-space: nowrap; background: #d0021b; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.pd-price .note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pd-attrs { width: 100%; font-size: 14px; margin-bottom: 18px; }
.pd-attrs td { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.pd-attrs td:first-child { color: var(--muted); width: 38%; }
.pd-attrs td:first-child i { color: var(--gold); margin-right: 8px; width: 16px; display: inline-block; }
.pd-attrs a { font-weight: 500; }
.pd-option { margin-bottom: 16px; }
.pd-option label.t { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: block; }
.pd-option .opt { display: inline-block; border: 1px solid var(--border); border-radius: 6px; padding: 6px 14px; margin: 0 6px 6px 0; cursor: pointer; font-size: 14px; }
.pd-option input:checked + .opt { border-color: var(--primary); color: var(--primary); background: var(--primary-light); font-weight: 600; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-buy .btn { height: 48px; flex: 1; min-width: 150px; font-weight: 600; }
.pd-buy .qty button, .pd-buy .qty input { height: 48px; }
.pd-contact { display: flex; gap: 10px; margin-bottom: 18px; }
.pd-contact .btn { flex: 1; }
.pd-commit { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; }
.pd-commit li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.pd-commit li:last-child { border-bottom: 0; }
.pd-commit li i { font-size: 22px; color: var(--primary); }
.pd-commit li b { display: block; color: var(--dark); }
.pd-commit li span { color: var(--muted); font-size: 13px; }
.pd-share { font-size: 14px; display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); }
.pd-share a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--dark); }
.pd-share a:hover { background: var(--primary); color: #fff; }
.pd-side-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.pd-side-box h6 { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.pd-tabs .nav-link { color: var(--text); font-weight: 600; border: 0; border-bottom: 3px solid transparent; padding: 12px 20px; font-size: 15.5px; }
.pd-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.pd-tabs { border-bottom: 1px solid var(--border); flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.pd-tab-content { padding: 26px 0; }
.entry-content { line-height: 1.8; font-size: 15.5px; }
.entry-content h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.entry-content h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.entry-content img { border-radius: var(--radius); margin: 10px 0; }
.entry-content blockquote { border-left: 4px solid var(--gold); background: var(--cream); padding: 16px 20px; margin: 20px 0; font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content table { width: 100%; }
.tasting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.tasting div { background: var(--cream); border-radius: var(--radius); padding: 16px; }
.tasting i { font-size: 24px; color: var(--primary); }
.tasting b { display: block; margin: 6px 0 4px; color: var(--dark); }
.tasting p { margin: 0; font-size: 14px; line-height: 1.6; }
.flavor-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.flavor-bar span:first-child { width: 90px; color: var(--muted); }
.flavor-bar .dots { display: flex; gap: 5px; }
.flavor-bar .dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--border); display: block; }
.flavor-bar .dots i.on { background: var(--primary); }
.rating-summary { background: var(--cream); border-radius: var(--radius); padding: 22px; text-align: center; }
.rating-summary .big { font-size: 3rem; font-weight: 700; color: var(--primary); line-height: 1; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.rating-row .progress { flex: 1; height: 8px; }
.rating-row .progress-bar { background: #f5a623; }
.review-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-item .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 24px; color: #ddd; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .1); z-index: 1036; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 10px; transform: translateY(110%); transition: transform .3s; }
.sticky-buy.show { transform: none; }
.sticky-buy img { width: 38px; height: 50px; object-fit: contain; }
.sticky-buy .sb-price { color: var(--primary); font-weight: 700; }
.sticky-buy .btn { white-space: nowrap; padding: 9px 14px; }

/* 12. Giỏ hàng / Thanh toán ------------------------------------------------ */
.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 30px; counter-reset: s; }
.steps li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.steps li + li::before { content: ""; width: 70px; height: 2px; background: var(--border); margin: 0 12px; }
.steps li span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 14px; }
.steps li.done, .steps li.current { color: var(--primary); }
.steps li.done span, .steps li.current span { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li.done + li::before, .steps li.current::before { background: var(--primary); }
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cart-table thead th { background: var(--cream); padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--border); }
.cart-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.cart-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 14px; }
.cart-prod img { width: 70px; height: 90px; object-fit: contain; background: var(--cream); border-radius: 8px; padding: 6px; flex-shrink: 0; }
.cart-prod h6 { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.cart-prod h6 a { color: var(--dark); }
.cart-prod small { color: var(--muted); }
.cart-table .c-price { font-weight: 500; }
.cart-table .c-total { color: var(--primary); font-weight: 700; }
.c-remove { border: 0; background: var(--cream); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; }
.c-remove:hover { background: #d0021b; color: #fff; }
.summary-box { border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: #fff; position: sticky; top: 150px; }
.summary-box h5 { font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; }
.summary-row.total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 6px; }
.summary-row.total span:last-child { color: var(--primary); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.freeship-bar { background: var(--cream); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.freeship-bar .progress { height: 7px; margin-top: 8px; }
.freeship-bar .progress-bar { background: linear-gradient(90deg, var(--gold), var(--primary)); }
.cart-empty { text-align: center; padding: 60px 20px; display: none; }
.cart-empty i { font-size: 80px; color: var(--border); }
.checkout-box { border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.checkout-box h5 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.checkout-box h5 .num { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; font-family: var(--font-body); font-size: 14px; display: grid; place-items: center; }
.pay-option { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.pay-option .po-head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.pay-option .po-head i { font-size: 22px; color: var(--primary); }
.pay-option .po-head .ms-auto { font-weight: 500; color: var(--primary); }
.pay-option .po-desc { font-size: 13px; color: var(--muted); margin: 6px 0 0 32px; display: none; }
.pay-option:has(input:checked) .po-desc { display: block; }
.order-items { max-height: 320px; overflow: auto; margin-bottom: 14px; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.order-item .oi-img { position: relative; flex-shrink: 0; }
.order-item img { width: 50px; height: 64px; object-fit: contain; background: var(--cream); border-radius: 6px; padding: 4px; }
.order-item .oi-qty { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }
.order-item h6 { font-family: var(--font-body); font-size: 14px; margin: 0; font-weight: 500; }
.order-item .oi-price { margin-left: auto; font-weight: 600; white-space: nowrap; font-size: 14px; }

/* 13. Tin tức / Bài viết --------------------------------------------------- */
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.widget-title { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--primary); }
.widget ul.w-list { list-style: none; padding: 0; margin: 0; }
.widget ul.w-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.widget ul.w-list li:last-child { border-bottom: 0; }
.widget ul.w-list a { color: var(--text); }
.widget ul.w-list a:hover { color: var(--primary); }
.widget ul.w-list span { background: var(--cream); border-radius: 12px; padding: 0 9px; font-size: 12px; color: var(--muted); }
.mini-post { display: flex; gap: 12px; margin-bottom: 14px; }
.mini-post img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mini-post h6 { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-post h6 a { color: var(--dark); }
.mini-post small { color: var(--muted); font-size: 12px; }
.mini-prod { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.mini-prod img { width: 50px; height: 66px; object-fit: contain; background: var(--cream); border-radius: 6px; padding: 4px; }
.mini-prod h6 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.mini-prod h6 a { color: var(--dark); }
.mini-prod span { color: var(--primary); font-weight: 600; font-size: 14px; }
.tag-cloud a { display: inline-block; font-size: 13px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; margin: 0 4px 6px 0; color: var(--text); }
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-head h1 { font-size: 2.2rem; line-height: 1.3; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.article-meta i { color: var(--gold); margin-right: 4px; }
.article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 24px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.toc { background: var(--cream); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; border: 1px solid var(--border); }
.toc h6 { font-family: var(--font-body); font-weight: 700; margin: 0; display: flex; justify-content: space-between; cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }
.author-box { display: flex; gap: 18px; background: var(--cream); border-radius: var(--radius); padding: 22px; margin: 30px 0; }
.author-box .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-size: 26px; font-family: var(--font-head); flex-shrink: 0; }
.inline-product { display: flex; gap: 16px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 20px 0; background: #fff; }
.inline-product img { width: 70px; height: 96px; object-fit: contain; margin: 0 !important; }
.inline-product .ip-body { flex: 1; line-height: 1.5; }
.inline-product .ip-body b { display: block; }
.inline-product .ip-body span { color: var(--primary); font-weight: 700; }

/* 14. Giới thiệu / Liên hệ -------------------------------------------------- */
.about-img { border-radius: 16px; overflow: hidden; position: relative; }
.about-img .exp { position: absolute; right: 20px; bottom: 20px; background: var(--primary); color: #fff; border-radius: 12px; padding: 16px 20px; text-align: center; border: 3px solid var(--gold); }
.about-img .exp b { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; }
.stat-item { text-align: center; padding: 24px 12px; }
.stat-item .num { font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); font-weight: 700; line-height: 1; }
.stat-item p { margin: 6px 0 0; color: #e8dfe1; }
.stats-band { background: linear-gradient(110deg, var(--dark), var(--primary-dark)); }
.value-card { padding: 28px 24px; border-radius: 14px; border: 1px solid var(--border); height: 100%; transition: all .25s; background: #fff; }
.value-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.value-card i { font-size: 36px; color: var(--primary); }
.value-card h5 { margin: 14px 0 8px; font-size: 1.2rem; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .tl-item { position: relative; margin-bottom: 26px; }
.timeline .tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline .tl-year { font-family: var(--font-head); color: var(--gold-dark); font-weight: 700; font-size: 1.2rem; }
.contact-info-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--cream); height: 100%; }
.contact-info-card i { font-size: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-info-card h6 { font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.contact-info-card p { margin: 0; font-size: 14px; color: var(--muted); }
.map-wrap { border-radius: 14px; overflow: hidden; height: 100%; min-height: 380px; background: var(--cream); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.store-list .store-row { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.store-list .store-row.active, .store-list .store-row:hover { border-color: var(--primary); background: var(--primary-light); }
.store-list .store-row .sr-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.store-list h6 { font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.store-list p { margin: 0; font-size: 13.5px; color: var(--muted); }
.accordion-wine .accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--primary); box-shadow: none; }
.accordion-wine .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.accordion-wine .accordion-item { border-radius: var(--radius) !important; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--border); }
.accordion-wine .accordion-button { font-weight: 600; }

/* 15. Responsive ----------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .main-nav > .container > ul > li > a { padding: 13px 10px; font-size: 14px; }
  .hotline { display: none; }
  .hero-slide h2 { font-size: 2.3rem; }
  .product-slider:not(.slick-initialized) > div { flex-basis: 25%; }
}

/* Tablet */
@media (max-width: 991.98px) {
  .topbar-links { display: none; }
  .topbar .container { justify-content: center; }
  .main-nav { display: none; }
  .btn-menu { display: block; }
  .header-main { padding: 10px 0; }
  .header-main .container { gap: 14px; flex-wrap: wrap; }
  .logo img { height: 42px; }
  .header-search { order: 3; flex: 0 0 100%; max-width: 100%; }
  .header-search .form-control { height: 42px; }
  .header-search .btn-search { height: 34px; }
  .header-actions { gap: 16px; }
  .section { padding: 42px 0; }
  .section-title { font-size: 1.5rem; }
  .hero-slide { min-height: 340px; padding: 30px 36px; }
  .hero-slide .hero-text { max-width: 60%; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-side a { min-height: 150px; }
  .promo-banner { padding: 34px; }
  .promo-banner .content { max-width: 65%; }
  .product-slider:not(.slick-initialized) > div { flex-basis: 33.33%; }
  .summary-box { position: static; }
  .pd-title { font-size: 1.6rem; }
  .bottom-bar { display: block; }
  body { padding-bottom: 62px; }
  .float-contact { bottom: 86px; right: 12px; }
  .float-contact a { width: 44px; height: 44px; font-size: 19px; }
  .back-top { bottom: 196px; right: 15px; width: 40px; height: 40px; }
  .float-contact .fc-mess { display: none !important; }
  .slick-arrow-btn { display: none !important; }
  .cat-banner img { height: 120%; right: 10px; opacity: .35; }
}

/* Mobile */
@media (max-width: 767.98px) {
  body { font-size: 14.5px; }
  .topbar { font-size: 12px; }
  .topbar .container { min-height: 30px; }
  .section { padding: 34px 0; }
  .section-sm { padding: 24px 0; }
  .section-head { margin-bottom: 16px; }
  .section-title { font-size: 1.3rem; }
  .hero { padding-top: 12px; }
  .hero-slider { border-radius: 10px; }
  .hero-slide { min-height: 260px; padding: 24px 20px 40px; }
  .hero-slide .hero-text { max-width: 62%; }
  .hero-slide h2 { font-size: 1.45rem; margin: 6px 0 8px; }
  .hero-slide p { font-size: 13px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slide .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .hero-slide .btn { padding: .4rem .9rem; font-size: 13px; }
  .hero-slide .hero-bottles { right: -4%; height: 78%; }
  .hero-slide .hero-bottles img { margin-left: -50px; }
  .hero-slider .slick-dots { left: 20px; bottom: 12px; }
  .hero-side { gap: 12px; }
  .hero-side a { min-height: 120px; padding: 16px; border-radius: 10px; }
  .hero-side a h4 { font-size: 1rem; }
  .hero-side a span.go { display: none; }
  .hero-side a img { right: 6px; height: 70%; opacity: .55; }
  .hero-side a h4 { max-width: 80%; position: relative; z-index: 1; }
  .service-item { padding: 12px; gap: 10px; flex-direction: column; text-align: center; }
  .service-item i { font-size: 26px; }
  .service-item h6 { font-size: 13px; }
  .service-item p { font-size: 11.5px; }
  .p-body { padding: 10px 10px 12px; }
  .p-name { font-size: 13.5px; }
  .p-price .now { font-size: 15px; }
  .p-price .old { font-size: 12px; }
  .p-add { font-size: 13px; padding: 6px; }
  .p-actions button { opacity: 1; transform: none; width: 32px; height: 32px; font-size: 14px; }
  .p-actions button.qv-btn { display: none; }
  .p-badge { font-size: 10px; padding: 2px 6px; }
  .product-slider { margin: 0 -6px; }
  .product-slider .slick-slide > div { padding: 0 6px 6px; }
  .product-slider:not(.slick-initialized) > div { flex-basis: 50%; }
  .flash-sale { padding: 20px 14px 22px; border-radius: 12px; margin: 0 -4px; }
  .countdown .cd { min-width: 34px; font-size: 15px; padding: 4px 2px; }
  .promo-banner { padding: 26px 20px; }
  .promo-banner h3 { font-size: 1.35rem; }
  .promo-banner .content { max-width: 70%; }
  .promo-banner .pb-bottles { right: -6%; height: 100%; opacity: .7; }
  .promo-banner p { font-size: 13px; }
  .newsletter form { flex-direction: column; }
  .site-footer { padding-top: 36px; }
  .footer-col .footer-collapse-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 700; text-transform: uppercase; font-size: 14px; }
  .footer-col h6 { display: none; }
  .footer-col .footer-collapse-btn i { transition: transform .2s; }
  .footer-col .footer-collapse-btn[aria-expanded="true"] i { transform: rotate(180deg); }
  .footer-col .collapse:not(.show) { display: none; }
  .footer-col ul { padding: 10px 0; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .page-hero { padding: 30px 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .cat-banner { padding: 20px; }
  .cat-banner h1 { font-size: 1.4rem; }
  .cat-banner p { font-size: 13px; }
  .sub-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .sub-cats a { flex-shrink: 0; }
  .toolbar .result-count { display: none; }
  .product-grid.list-view .product-card { flex-direction: column; }
  .product-grid.list-view .p-thumb { width: 100%; aspect-ratio: 1/1; }
  .pd-title { font-size: 1.35rem; }
  .pd-price .now { font-size: 1.6rem; }
  .pd-buy .btn { min-width: 0; }
  .pd-buy .qty { width: 100%; justify-content: space-between; }
  .pd-buy .qty input { flex: 1; }
  .sticky-buy { display: flex; }
  .tasting { grid-template-columns: 1fr; }
  .pd-tabs .nav-link { padding: 10px 14px; font-size: 14.5px; white-space: nowrap; }
  .steps li { font-size: 12px; flex-direction: column; text-align: center; gap: 4px; }
  .steps li + li::before { display: none; }
  .steps { gap: 26px; }
  /* Bảng giỏ hàng chuyển dạng thẻ */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 12px 96px; margin-bottom: 12px; min-height: 120px; }
  .cart-table td { border: 0; padding: 2px 0; }
  .cart-table td.c-prod-cell { position: static; }
  .cart-prod img { position: absolute; left: 12px; top: 12px; width: 72px; height: 96px; }
  .cart-prod h6 { padding-right: 34px; font-size: 14px; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .cart-table td.c-qty-cell::before { display: none; }
  .cart-table td.c-qty-cell { margin-top: 6px; }
  .cart-table td.c-rm-cell { position: absolute; right: 8px; top: 8px; width: auto; padding: 0; }
  .checkout-box { padding: 18px; }
  .article-head h1 { font-size: 1.5rem; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .stat-item .num { font-size: 2rem; }
  .map-wrap, .map-wrap iframe { min-height: 280px; }
  .inline-product { flex-wrap: wrap; }
  .inline-product .btn { width: 100%; }
  .age-gate .ag-18 { font-size: 44px; }
}

@media (max-width: 575.98px) {
  .header-actions .d-wish { display: none; }
  .logo img { height: 38px; }
  .service-item { background: #fff; border: 1px solid var(--border); }
  .cat-item h6 { font-size: 13px; }
  .cat-item small { display: none; }
  .country-tile { padding: 12px; gap: 10px; }
  .country-tile .flag { width: 36px; height: 25px; }
  .country-tile h6 { font-size: 14px; }
  .pd-contact { flex-direction: column; }
}

@media (min-width: 768px) {
  .footer-col .collapse { display: block !important; height: auto !important; }
}

/* Thanh mua nhanh nằm trên bottom bar ở mobile */
@media (max-width: 767.98px) {
  .sticky-buy { bottom: 56px; padding-bottom: 10px; }
  .page-product .float-contact { bottom: 140px; }
}
.coupon .btn { white-space: nowrap; }
