/*
Theme Name: Rượu Vang Ngoại
Theme URI: https://example.com/ruou-vang-ngoai
Author: Tự phát triển
Description: Theme WordPress cho cửa hàng rượu vang ngoại, tông màu đỏ - bạc đô - vàng, tích hợp WooCommerce, hỗ trợ import demo content tiếng Việt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruou-vang-ngoai
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready
*/

/* =======================================================
   0. BIẾN MÀU SẮC (đỏ rượu vang - bạc đô - vàng ánh kim)
   ======================================================= */
:root {
  --color-red: #7a1430;
  --color-red-dark: #4e0c1f;
  --color-red-light: #a52142;
  --color-gold: #c9a227;
  --color-gold-light: #e8c766;
  --color-gold-dark: #9c7c1b;
  --color-silver: #b7bbc2;
  --color-silver-dark: #888d96;
  --color-silver-light: #e3e5e9;
  --color-cream: #f8f4ec;
  --color-dark: #1c1414;
  --color-text: #2e2626;
  --color-muted: #6c6360;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(28, 20, 20, 0.12);
  --container: 1200px;
}

/* =======================================================
   1. RESET CƠ BẢN
   ======================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-gold-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  margin: 0 0 .6em;
}
ul { margin: 0; padding: 0; list-style: none; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  background: var(--color-red);
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid var(--color-red);
  cursor: pointer;
}
.btn:hover { background: var(--color-red-dark); color: #fff; }
.btn-gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}
.btn-gold:hover { background: var(--color-gold-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--color-silver-dark);
  border: 1px solid var(--color-silver-dark);
}
.btn-outline:hover { background: var(--color-silver-light); color: var(--color-dark); }
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 42px;
}
.section-title .eyebrow {
  display: block;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title h2 { font-size: 34px; }
.section-title p { color: var(--color-muted); max-width: 620px; margin: 10px auto 0; }
.section-alt { background: #fff; }

/* =======================================================
   2. HEADER
   ======================================================= */
.site-topbar {
  background: var(--color-dark);
  color: var(--color-silver-light);
  font-size: 13px;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.site-topbar a { color: var(--color-gold-light); }
.site-header {
  background: linear-gradient(180deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  border-bottom: 3px solid var(--color-gold);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 54px; }
.site-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: #fff;
  margin: 0;
  letter-spacing: .5px;
}
.site-title a { color: #fff; }
.site-description {
  color: var(--color-gold-light);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 2px 0 0;
}
.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(201, 162, 39, .2);
  color: var(--color-gold-light);
}
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--color-gold);
  padding: 8px 0;
  z-index: 50;
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a { color: var(--color-text); padding: 10px 18px; }
.main-navigation .sub-menu a:hover { background: var(--color-cream); color: var(--color-red); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions a { color: #fff; font-size: 20px; position: relative; }
.header-actions .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* =======================================================
   3. HERO
   ======================================================= */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, var(--color-red-light), var(--color-red-dark) 70%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,.12), transparent 60%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding-top: 90px;
  padding-bottom: 90px;
}
.hero-eyebrow {
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: 48px;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--color-gold-light); font-style: normal; }
.hero p { color: var(--color-silver-light); font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-figure .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

/* =======================================================
   4. DANH MỤC NỔI BẬT
   ======================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--color-silver-light);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-gold);
}
.category-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-red);
}
.category-card h3 { font-size: 17px; margin-bottom: 6px; }
.category-card span { color: var(--color-muted); font-size: 13px; }

/* =======================================================
   5. SẢN PHẨM
   ======================================================= */
.product-grid,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 26px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.product-card,
ul.products li.product {
  background: #fff;
  border: 1px solid var(--color-silver-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover,
ul.products li.product:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-gold);
}
.product-card .thumb,
ul.products li.product img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--color-cream);
}
.product-card .badge-sale,
.onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}
.product-card .info { padding: 18px; }
.product-card h3,
ul.products li.product h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.product-card .price,
ul.products li.product .price {
  color: var(--color-red);
  font-weight: 700;
  font-size: 16px;
}
.product-card .price del,
ul.products li.product .price del { color: var(--color-muted); font-weight: 400; margin-right: 6px; }
.product-card .btn,
ul.products li.product .button {
  margin-top: 12px;
  width: 100%;
  background: var(--color-dark);
  border-color: var(--color-dark);
  font-size: 13px;
  padding: 10px 16px;
}
.product-card .btn:hover,
ul.products li.product .button:hover { background: var(--color-red); border-color: var(--color-red); }

/* =======================================================
   6. GIỚI THIỆU / CAM KẾT
   ======================================================= */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid h2 { font-size: 32px; }
.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.commitments .item {
  border-left: 3px solid var(--color-gold);
  padding-left: 14px;
}
.commitments .item h4 { font-size: 16px; margin-bottom: 4px; color: var(--color-red); }
.commitments .item p { font-size: 13px; color: var(--color-muted); margin: 0; }

/* =======================================================
   7. ĐÁNH GIÁ KHÁCH HÀNG
   ======================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid var(--color-gold);
  box-shadow: var(--shadow);
}
.testimonial-card .stars { color: var(--color-gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--color-muted); }
.testimonial-card .author { margin-top: 16px; font-weight: 700; color: var(--color-dark); font-style: normal; }

/* =======================================================
   8. ĐĂNG KÝ NHẬN TIN
   ======================================================= */
.newsletter {
  background: linear-gradient(135deg, var(--color-dark), var(--color-red-dark));
  color: #fff;
  text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--color-silver-light); margin-bottom: 26px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-silver);
  font-size: 14px;
}

/* =======================================================
   9. FOOTER
   ======================================================= */
.site-footer {
  background: var(--color-dark);
  color: var(--color-silver-light);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: var(--color-gold-light); font-size: 15px; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { color: var(--color-silver-light); }
.footer-grid a:hover { color: var(--color-gold-light); }
.footer-logo { color: #fff; font-family: var(--font-heading); font-size: 22px; margin-bottom: 12px; }
.footer-about p { font-size: 14px; color: var(--color-silver); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--color-silver-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--color-gold); background: rgba(201,162,39,.15); }
.site-info {
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
  color: var(--color-silver-dark);
}
.age-gate-note {
  background: var(--color-gold);
  color: var(--color-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}

/* =======================================================
   10. BLOG / BÀI VIẾT
   ======================================================= */
.post-list { display: grid; gap: 30px; }
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-card img { height: 100%; object-fit: cover; }
.post-card .info { padding: 24px; }
.post-card .meta { color: var(--color-muted); font-size: 13px; margin-bottom: 8px; }
.post-card h2 { font-size: 20px; }
.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { color: var(--color-red); }
.breadcrumb { color: var(--color-muted); font-size: 13px; padding: 16px 0; }
.breadcrumb a { color: var(--color-red); }

/* =======================================================
   11. RESPONSIVE
   ======================================================= */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .about-grid { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-navigation { display: none; width: 100%; order: 3; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; }
  .main-navigation .sub-menu { position: static; box-shadow: none; }
  .menu-toggle { display: inline-block; }
  .site-header .container { flex-wrap: wrap; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid, ul.products { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
}
