/*
Theme Name: Ponaz Cigar
Theme URI: http://ponaz-cigar.local/
Author: PONAZ Luxury Team
Description: Giao diện WordPress cao cấp phong cách Black & Gold sang trọng, sắc nét chuẩn Luxury cho PONAZ CIGAR & VIP Club
Version: 2.5.4
Text Domain: ponaz-cigar
*/

/* ==========================================================================
   1. HỆ BIẾN MÀU & THIẾT LẬP CỐT LÕI (NÂNG SÁNG, TƯƠNG PHẢN CAO CẤP)
   ========================================================================== */
:root {
  /* Tông nền đen sâu Obsidian, khử sạch sắc tố nâu đất xỉn màu */
  --bg-main: #070606;
  --bg-surface: #0e0d0c;
  --bg-card: #141210;
  --bg-card-hover: #1c1916;

  /* Đường viền sắc nét, nổi khối rõ rệt */
  --border-subtle: #2b2319;
  --border-gold: #735732;

  /* Sắc vàng Champagne Hoàng gia sáng bóng, bắt sáng mạnh */
  --gold-primary: #e2b46c;
  --gold-light: #f5dfb0;
  --gold-dark: #b8863b;

  /* Hệ thống chữ sắc nét, độ tương phản cao, chống mờ mắt */
  --text-primary: #ffffff;
  --text-secondary: #ece5db;
  --text-muted: #b5a999;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 85px;
}

/* ==========================================================================
   2. THIẾT LẬP CƠ BẢN (BASE RESETS & SHARPNESS)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: contrast(106%) brightness(103%);
  image-rendering: -webkit-optimize-contrast;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

#top,
#collection,
#lifestyle,
#cigar-club,
#events,
#news,
#testimonials {
  scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   3. TIÊU ĐỀ SECTION & NHÃN NGHỆ THUẬT (HEADINGS & EYEBROWS)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: var(--gold-primary);
}

h2.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

h2.section-title span {
  color: var(--gold-primary);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 45px 0;
}

/* ==========================================================================
   4. NÚT BẤM (BUTTONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #060504;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(226, 180, 108, 0.25);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #000000;
  box-shadow: 0 6px 22px rgba(226, 180, 108, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(226, 180, 108, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   5. ĐẦU TRANG & THANH ĐIỀU HƯỚNG CHÍNH (HEADER & NAVIGATION)
   ========================================================================== */
.site-header,
#masthead,
header.site-header,
header.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
  background: rgba(7, 6, 6, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: top 0.2s ease, background 0.3s ease;
}

body.admin-bar .site-header,
body.admin-bar #masthead,
body.admin-bar header.site-header,
body.admin-bar header.header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar #masthead,
  body.admin-bar header.site-header,
  body.admin-bar header.header {
    top: 46px !important;
  }
}

.site-header nav,
#masthead nav,
header.site-header nav,
header.header nav,
.site-header .nav-links,
#masthead .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-header nav a,
#masthead nav a,
header.site-header nav a,
header.header nav a,
.site-header .nav-links a,
.site-header .menu-item a {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 !important;
  transition: color 0.25s ease !important;
}

.site-header nav a:hover,
#masthead nav a:hover,
header.site-header nav a:hover,
header.header nav a:hover,
.site-header .nav-links a:hover,
.site-header .menu-item a:hover {
  color: var(--gold-primary) !important;
}

.site-header nav a.active,
.site-header nav .current-menu-item > a,
.site-header .nav-links a.active,
.site-header .current-menu-item > a {
  color: var(--gold-primary) !important;
}

.site-header nav a.active::after,
.site-header nav .current-menu-item > a::after,
.site-header .nav-links a.active::after,
.site-header .current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(226, 180, 108, 0.6);
}

.site-header .header-account-btn,
.site-header a.my-account,
.site-header a[href*="my-account"],
#masthead .header-account-btn,
#masthead a[href*="my-account"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 20px !important;
  border: 1px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.site-header .header-account-btn:hover,
.site-header a.my-account:hover,
.site-header a[href*="my-account"]:hover,
#masthead .header-account-btn:hover,
#masthead a[href*="my-account"]:hover {
  background: var(--gold-primary) !important;
  color: #070606 !important;
  box-shadow: 0 4px 15px rgba(226, 180, 108, 0.3) !important;
}

/* Tự động bù khoảng đệm cho toàn bộ trang con tránh bị menu che khuất */
body:not(.home) main,
body:not(.home) .site-main,
body.woocommerce-page main,
body.woocommerce-account main,
.vip-page-wrapper,
.page-template-default main {
  padding-top: 165px !important;
}

/* ==========================================================================
   6. HERO BANNER
   ========================================================================== */
.hero {
  position: relative !important;
  width: 100% !important;
  height: 90vh !important;
  min-height: 650px !important;
  max-height: 880px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background-color: var(--bg-main) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-slider {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.hero-slider .hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 8% !important;
  filter: brightness(115%) contrast(108%) saturate(106%) !important;
  image-rendering: -webkit-optimize-contrast !important;
  opacity: 0;
  transition: opacity 0.8s ease-in-out !important;
}

.hero-slider .hero-slide.active {
  opacity: 1 !important;
}

.hero::before {
  display: none !important;
}

.hero-inner {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  justify-content: flex-start !important;
}

.hero-content {
  max-width: 480px !important;
  margin: 0 !important;
  text-align: left !important;
}

.hero-wordmark {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.8rem, 5vw, 4.1rem) !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  color: var(--gold-primary) !important;
  letter-spacing: 1.8px !important;
  margin: 0 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.hero-sub-wordmark {
  font-family: var(--font-serif) !important;
  font-size: clamp(2rem, 3.5vw, 2.9rem) !important;
  font-weight: 400 !important;
  letter-spacing: 11px !important;
  color: #ffffff !important;
  margin: 0 0 14px 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95) !important;
}

.hero-tagline {
  font-size: 10.5px !important;
  letter-spacing: 2.8px !important;
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95) !important;
}

.hero-text {
  font-size: 13.5px !important;
  color: #f7f3ec !important;
  line-height: 1.7 !important;
  margin: 0 0 28px 0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
}

.hero-ctas {
  display: flex !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}

.hero-ctas .btn {
  font-size: 10.5px !important;
  letter-spacing: 1.8px !important;
  padding: 12px 26px !important;
}

.hero-dots {
  position: absolute !important;
  bottom: 25px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  display: flex !important;
  gap: 8px !important;
}

.hero-dots span {
  width: 24px !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border-radius: 2px !important;
  cursor: pointer !important;
}

.hero-dots span.active {
  background: var(--gold-primary) !important;
  width: 34px !important;
  box-shadow: 0 0 8px rgba(226, 180, 108, 0.6) !important;
}

.hero-social,
.hero .social-links,
.hero .social-icons {
  display: none !important;
}

/* ==========================================================================
   7. 4 TIÊU CHÍ (FEATURES)
   ========================================================================== */
.features {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 38px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  background: rgba(226, 180, 108, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.feature-item h4 {
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   8. SẢN PHẨM NỔI BẬT (COLLECTION)
   ========================================================================== */
.collection {
  padding: 90px 0;
  background: var(--bg-main);
  text-align: center;
}

.collection-slider {
  position: relative;
  margin: 40px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(226, 180, 108, 0.18);
}

.product-media {
  position: relative;
  height: 220px;
  background: #000000;
  overflow: hidden;
}

.product-media .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #991b1b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
}

.product-info {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.product-price {
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.product-cta {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #201a14;
  padding-top: 12px;
}

.product-card:hover .product-cta {
  color: var(--gold-primary);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.slider-arrow.left { left: -20px; }
.slider-arrow.right { right: -20px; }
.slider-arrow:hover {
  background: var(--gold-primary);
  color: #000000;
  box-shadow: 0 0 12px rgba(226, 180, 108, 0.4);
}

/* ==========================================================================
   9. LIFESTYLE (ĐẲNG CẤP QUÝ ÔNG)
   ========================================================================== */
.lifestyle {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  min-height: 460px;
}

.lifestyle-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
  text-align: center;
}

.lifestyle-center-inner h3 {
  color: var(--gold-primary);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.lifestyle-center-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.lifestyle-center-inner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 26px 0;
}

/* ==========================================================================
   10. VIP CIGAR CLUB (ĐỒNG BỘ VIỀN VÀNG & CỠ CHỮ CHUẨN)
   ========================================================================== */
.vip {
  padding: 90px 0;
  background: var(--bg-main);
}

.vip-grid {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 50px;
  align-items: center;
}

.vip-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 10px 0 18px 0;
}

.vip-text h2 span {
  color: var(--gold-primary);
}

.vip-text p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0 0 28px 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Đã hợp nhất: Loại bỏ hoàn toàn khối trùng lặp cũ */
.tier-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-primary) !important;
  border-radius: 4px !important;
  padding: 38px 24px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(226, 180, 108, 0.08) !important;
  transition: all 0.3s ease !important;
}

.tier-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 35px rgba(226, 180, 108, 0.22) !important;
}

.tier-card.featured {
  border: 1px solid var(--gold-primary) !important;
  box-shadow: 0 10px 32px rgba(226, 180, 108, 0.2) !important;
  transform: scale(1.03);
  background: #171412 !important;
}

.tier-card.featured:hover {
  transform: scale(1.03) translateY(-4px) !important;
}

.tier-icon {
  font-size: 24px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.tier-card h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.tier-price {
  color: var(--text-muted);
  font-size: 13px !important;
  margin-bottom: 24px;
}

.tier-price strong {
  color: var(--gold-primary);
  font-size: 1.35rem;
}

.tier-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
  text-align: left !important;
  font-size: 13.5px !important;
  color: #f5efe6 !important;
  line-height: 2.1 !important;
}

.tier-list li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13.5px !important;
  color: #f5efe6 !important;
}

.tier-list li i {
  color: var(--gold-primary) !important;
  font-size: 12px !important;
  flex-shrink: 0;
}

.tier-list li strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   11. SỰ KIỆN SẮP DIỄN RA (EVENTS)
   ========================================================================== */
.events-section {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.event-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(226, 180, 108, 0.18);
}

/* ==========================================================================
   12. TESTIMONIALS (CẢM NHẬN HỘI VIÊN)
   ========================================================================== */
.testimonials {
  padding: 90px 0;
  background: var(--bg-main);
  text-align: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 35px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.testi-quote {
  color: var(--gold-primary);
  font-size: 20px;
  margin-bottom: 14px;
  opacity: 0.9;
}

.testi-text {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.stars {
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 20px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid #201912;
  padding-top: 16px;
}

.testi-person .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  overflow: hidden;
}

.testi-person h5 {
  color: var(--text-primary);
  margin: 0;
  font-size: 13.5px;
}

.testi-person span {
  color: var(--text-muted);
  font-size: 11.5px;
}

/* ==========================================================================
   13. BÀI VIẾT TIN TỨC (NEWS)
   ========================================================================== */
.news {
  padding: 90px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(226, 180, 108, 0.18);
}

.news-media {
  position: relative;
  height: 190px;
  background: #000000;
  overflow: hidden;
}

.news-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-info h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.news-link {
  margin-top: auto;
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   14. DẢI THƯƠNG HIỆU (BRANDS TRACK)
   ========================================================================== */
.brands {
  background: #050505;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.brands-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.brands-track span i {
  color: var(--gold-primary);
  font-size: 11px;
}

/* ==========================================================================
   15. CHÂN TRANG (SITE FOOTER SÁNG RÕ, SẮC NÉT)
   ========================================================================== */
.site-footer {
  background: #090807;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary) !important;
}

.footer-heading {
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
}

.footer-links a {
  color: #d8cfc4 !important;
  font-size: 12.5px !important;
  transition: color 0.25s ease !important;
}

.footer-links a:hover {
  color: var(--gold-primary) !important;
}

.site-footer p {
  color: #c9bfb2 !important;
  line-height: 1.7 !important;
}

.site-footer ul li span {
  color: var(--text-secondary) !important;
  font-size: 12.5px !important;
}

.site-footer ul li i {
  color: var(--gold-primary) !important;
}

.site-footer input[type="email"] {
  background: #141210 !important;
  border: 1px solid var(--border-subtle) !important;
  color: #ffffff !important;
}

.site-footer input[type="email"]::placeholder {
  color: var(--text-muted) !important;
}

/* Thay thế các selector thô cứng cũ bằng class đồng bộ */
.site-footer .footer-bottom,
.site-footer div[style*="border-top"] {
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

.site-footer .footer-bottom a,
.site-footer div[style*="border-top"] a {
  color: var(--text-muted) !important;
}

.site-footer .footer-bottom a:hover,
.site-footer div[style*="border-top"] a:hover {
  color: var(--gold-primary) !important;
}

/* ==========================================================================
   16. THANH NỔI MÉP PHẢI (RIGHT FLOATING SIDEBAR)
   ========================================================================== */
.fixed-right-sidebar {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.floating-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(14, 12, 10, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.3s ease;
}

.floating-social-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(226, 180, 108, 0.3);
}

/* ==========================================================================
   17. THÍCH ỨNG THIẾT BỊ (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid,
  .product-grid,
  .events-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .lifestyle-grid,
  .vip-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-wordmark {
    font-size: 2.8rem !important;
  }
  .hero-sub-wordmark {
    font-size: 1.8rem !important;
    letter-spacing: 6px !important;
  }
  .tier-grid,
  .testi-grid,
  .features-grid,
  .product-grid,
  .events-grid,
  .news-grid {
    grid-template-columns: 1fr !important;
  }
  .fixed-right-sidebar {
    display: none !important;
  }
}

/* ==========================================================================
   18. POPUP TÌM KIẾM (SEARCH MODAL)
   ========================================================================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 6, 0.96);
  backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  position: relative;
  width: 90%;
  max-width: 650px;
}

.search-box form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 8px;
}

.search-box input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.4rem;
  padding: 10px 12px;
  font-family: var(--font-serif);
}

.search-box input[type="text"]::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.search-box button[type="submit"] {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 10px;
}

.close-search {
  position: absolute;
  top: -55px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-search:hover {
  color: var(--gold-primary);
}
/* ==========================================================================
   TỐI ƯU HÓA HOÀN HẢO CHO TABLET & MOBILE (RESPONSIVE MASTER)
   ========================================================================== */

/* 1. MÀN HÌNH TABLET (Max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 16px !important;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* 2. MÀN HÌNH ĐIỆN THOẠI (Max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Điều chỉnh khoảng đệm đầu trang con cho vừa vặn */
  body:not(.home) main,
  body:not(.home) .site-main,
  body.woocommerce-page main,
  body.woocommerce-account main,
  .vip-page-wrapper,
  .page-template-default main {
    padding-top: 105px !important;
  }

  /* Thu gọn Header trên Mobile để tránh vỡ giao diện */
  .site-header, #masthead {
    height: 70px !important;
    padding: 0 14px !important;
  }
  
  /* Ẩn bớt dàn menu chữ ngang thô kệch, cuộn ngang tạm thời nếu chưa dựng drawer */
  .site-header nav, #masthead nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 16px !important;
    -webkit-overflow-scrolling: touch;
  }
  .site-header nav a {
    font-size: 13px !important;
  }

  /* Khối Banner Hero */
  .hero {
    height: 75vh !important;
    min-height: 520px !important;
  }
  .hero-content {
    max-width: 100% !important;
  }
  .hero-wordmark {
    font-size: 2.4rem !important;
  }
  .hero-sub-wordmark {
    font-size: 1.6rem !important;
    letter-spacing: 5px !important;
  }

  /* Khối 4 Tiêu Chí */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Thẻ VIP Cigar Club xếp gọn */
  .tier-card {
    padding: 28px 18px !important;
  }
  .tier-card.featured {
    transform: none !important; /* Bỏ phóng to gây lệch mép màn hình */
  }

  /* Dải thương hiệu cuộn mượt bằng ngón tay */
  .brands-track {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }
}
/* ==========================================================================
   HAMBURGER DRAWER MENU CHO MOBILE & TABLET (BLACK & GOLD LUXURY)
   ========================================================================== */

/* Ẩn nút 3 gạch và bảng trượt trên màn hình máy tính lớn */
.mobile-toggle-btn,
.mobile-menu-overlay,
.mobile-menu-drawer {
  display: none;
}

@media screen and (max-width: 1024px) {
  /* 1. Nút 3 gạch */
  .mobile-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    z-index: 99999;
  }

  .mobile-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* 2. Lớp phủ nền mờ */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* 3. Bảng menu trượt (Drawer) */
  .mobile-menu-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #0d0b09;
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    z-index: 100001;
    transition: right 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
  }

  .mobile-menu-drawer.active {
    right: 0;
  }

  /* Header bảng trượt */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .drawer-brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    font-weight: 700;
  }

  .drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
  }

  .drawer-close-btn:hover {
    color: var(--gold-primary);
  }

  /* Danh sách liên kết */
  .drawer-nav {
    padding: 20px 0;
    flex-grow: 1;
  }

  .drawer-menu-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .drawer-menu-links li a {
    display: block;
    padding: 13px 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
  }

  .drawer-menu-links li a:hover,
  .drawer-menu-links li.current-menu-item > a {
    color: var(--gold-primary);
    background: rgba(226, 180, 108, 0.05);
    padding-left: 32px;
  }

  /* Footer bảng trượt */
  .drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    background: #080605;
  }

  .drawer-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border: 1px solid var(--gold-primary);
    background: rgba(226, 180, 108, 0.08);
    color: var(--gold-primary) !important;
    border-radius: 2px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 14px;
  }

  .drawer-hotline {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
  }

  .drawer-hotline strong {
    color: var(--text-primary);
  }

  /* Ẩn danh sách menu chữ ngang chính trên Header ở Tablet/Mobile */
  .site-header nav:not(.drawer-nav),
  #masthead nav:not(.drawer-nav),
  .site-header .nav-links {
    display: none !important;
  }
}
/* ==========================================================================
   ÉP HIỂN THỊ NÚT 3 GẠCH & ẨN MENU NGANG TRÊN MỌI THIẾT BỊ DI ĐỘNG (< 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  /* Ẩn hoàn toàn menu chữ ngang và nút My Account ngoài Header */
  .site-header .main-navigation,
  .site-header .header-actions .member-btn {
    display: none !important;
  }

  /* Ép hiển thị nút 3 gạch màu vàng */
  .site-header .mobile-toggle-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 19px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: 10px !important;
    z-index: 999999 !important;
  }

  .site-header .mobile-toggle-btn span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #d4af37 !important;
    border-radius: 2px !important;
  }

  .header-inner {
    justify-content: space-between !important;
  }
}