/*
Theme Name: Alo Xe Dien Demo Theme
Theme URI: https://example.com/alo-xe-dien-theme
Author: Alo Xe Dien Team
Author URI: https://example.com
Description: WordPress theme thu&#7847;n code &#273;&#7875; render 39 trang giao di&#7879;n theo b&#7897; HTML demo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: alo-xe-dien
*/

/* Base stylesheet intentionally minimal because each demo page ships its own styles/scripts. */

/* Dynamic post/category layouts */
.alo-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  color: #fff;
  background: #0e0e0e;
}

.alo-archive-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.alo-eyebrow,
.alo-meta {
  color: #b9ffe8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.alo-subtitle,
.alo-card-excerpt,
.alo-term-description {
  color: #c3c3c3;
}

.alo-grid {
  display: grid;
  gap: 20px;
}

.alo-grid-product {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.alo-grid-news {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.alo-card {
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
}

.alo-card-body {
  padding: 16px;
}

.alo-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.alo-card-body a {
  color: #fff;
  text-decoration: none;
}

.alo-thumb-link {
  display: block;
  background: #131313;
}

.alo-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.alo-spec-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.alo-spec-inline li {
  background: #262626;
  color: #8fbcff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.alo-price {
  color: #b9ffe8;
  font-weight: 700;
}

.alo-price-big {
  font-size: 1.8rem;
  margin-top: 12px;
}

.alo-hero-image {
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
}

.alo-product-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.alo-product-spec-box {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 18px;
  height: fit-content;
}

.alo-product-spec-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.alo-product-spec-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alo-product-spec-box li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #2b2b2b;
}

.alo-featured-quote {
  margin: 24px 0;
  padding: 18px;
  border-left: 3px solid #b9ffe8;
  background: #131313;
  font-size: 1.1rem;
}

.alo-news-content,
.alo-product-content {
  line-height: 1.8;
}

.alo-news-content a,
.alo-product-content a {
  color: #8fbcff;
}

.alo-pagination {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .alo-page-wrap {
    padding-top: 90px;
  }

  .alo-product-layout {
    grid-template-columns: 1fr;
  }
}

/* WordPress-driven header menu for demo pages */
.alo-wp-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #090b0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.alo-wp-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.alo-wp-header-home {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
}

.alo-wp-header-logo {
  display: block;
  width: 180px;
  height: 58px;
  object-fit: cover;
}

.alo-wp-header-brand {
  font-size: 22px;
  font-weight: 800;
}

.alo-wp-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.alo-wp-header-nav {
  position: relative;
}

.alo-wp-header-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.alo-wp-header-menu li {
  margin: 0;
  padding: 0;
}

.alo-wp-header-menu > li {
  position: relative;
}

.alo-wp-header-menu a {
  color: #f5f7ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.15px;
}

.alo-wp-header-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.alo-wp-header-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.85;
}

.alo-wp-header-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(15, 19, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  z-index: 120;
}

.alo-wp-header-menu > li.menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.alo-wp-header-menu .sub-menu li {
  width: 100%;
}

.alo-wp-header-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  min-height: auto;
  line-height: 1.35;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.alo-wp-header-menu > li.menu-item-has-children:hover > .sub-menu,
.alo-wp-header-menu > li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.alo-wp-header-menu .sub-menu li.menu-item-has-children {
  position: relative;
}

.alo-wp-header-menu .sub-menu .sub-menu {
  top: -10px;
  left: calc(100% + 6px);
}

.alo-wp-header-menu .current-menu-item > a,
.alo-wp-header-menu .current-menu-ancestor > a,
.alo-wp-header-menu a:hover {
  color: var(--alo-primary, #00e9bf);
}

.alo-wp-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--alo-primary, #00e9bf);
  color: #041c16 !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .alo-wp-header-menu {
    gap: 12px;
  }
  .alo-wp-header-menu a {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .alo-wp-header-inner {
    flex-wrap: wrap;
  }
  .alo-wp-header-right {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }
  .alo-wp-header-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .alo-wp-header-menu > li > a {
    font-size: 14px;
    min-height: 36px;
  }
  .alo-wp-header-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    width: 100%;
    padding: 2px 0 6px 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .alo-wp-header-menu .sub-menu a {
    padding: 8px 0;
    font-size: 14px;
    white-space: normal;
  }
  .alo-wp-header-menu > li.menu-item-has-children > a::after {
    transform: translateY(-1px) rotate(45deg);
  }
  .alo-wp-header-logo {
    width: 150px;
    height: 48px;
  }
}
