/*
Theme Name: Anh & Em Premium
Theme URI: https://ane.vn
Author: Antigravity AI
Description: A high-end, custom-coded WordPress theme for Anh & Em, featuring Liquid Glass aesthetics and Bento Grid layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ane-premium
*/

/*
  Dropdown Menus & Sub-navigation
*/
.main-navigation ul {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  /* Enable wrapping */
  justify-content: center;
}

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  min-width: 260px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99999;
  display: block !important;
}

/* Mega menu for items with many children */
.main-navigation ul li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* If submenu has more than 8 items, make it 3 columns (Mega Menu) */
#menu-item-18634 ul.sub-menu {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  min-width: 900px;
  padding: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

#menu-item-18634:hover>ul.sub-menu {
  transform: translateX(-50%) translateY(0);
}

.main-navigation li {
  position: relative;
}

.main-navigation li:hover>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  padding: 10px 24px;
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4A5568 !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-navigation ul ul a:hover {
  background: #F1F5F9;
  color: #415097 !important;
}

.main-navigation ul ul a::after {
  display: none !important;
}

/*
  Core Design System Tokens
  ------------------------
*/
:root {
  --color-primary: #415097;
  --color-primary-dark: #2D3A74;
  --color-primary-light: #E9ECF7;
  --color-accent: #6768AB;
  --color-background: #F8FAFC;
  --color-text: #1A202C;
  --color-white: #FFFFFF;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  --font-heading: 'Figtree', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
}

/* Reset & Base */
body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  /* Increased from 15px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.main-navigation a {
  font-size: 16px !important;
  white-space: nowrap;
}

/* Fix for Store page and general pages */
.site-main {
  padding-top: 140px;
  /* Default for all pages to clear fixed header */
}

/* WooCommerce Shop Navigation Area */
.shop-category-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.shop-category-nav a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.shop-category-nav a:hover,
.shop-category-nav a.active {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.home .site-main {
  padding-top: 180px;
}

.woocommerce-archive .site-main {
  padding-top: 60px !important;
  /* Archive has its own padding in template */
}

small,
.text-sm,
.product-category,
.wp-block-post-date,
.post-date,
.site-footer p,
.site-footer a,
.main-navigation ul ul a {
  font-size: 14px !important;
  /* Ensuring readable minimum size across site */
}

.site-footer h5,
.site-footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
}
