/*
Theme Name: MongolBee
Theme URI: https://mongolbee.beez.mn
Author: MongolBee
Author URI: https://mongolbee.beez.mn
Description: A premium light theme for MongolBee WordPress template store — clean, modern, developer-grade.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mongolbee
Domain Path: /languages
Tags: light, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  /* Color system — light */
  --navy-900:  #FFFFFF;
  --navy-800:  #F8FAFC;
  --navy-700:  #F1F5F9;
  --navy-600:  #E8EDF5;
  --navy-500:  #DDE4EF;
  --navy-400:  #C8D3E8;
  --navy-300:  #B8C6E0;
  --border-dim: rgba(0,0,0,0.07);
  --border-mid: rgba(0,0,0,0.13);
  --border-hi:  rgba(0,0,0,0.22);

  /* Brand */
  --blue-500: #e81a5a;
  --blue-400: #e81a5a;
  --blue-300: #e81a5a;
  --sky-400:  #e81a5a;
  --sky-300:  #e81a5a;
  --amber:    #e81a5a;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-headline {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.card-headline {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 60ch;
}

.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-400);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: var(--section-pad);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-bee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  border-radius: 8px;
  font-size: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.primary-nav a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}

.btn-outline:hover {
  border-color: var(--border-hi);
  background: rgba(0,0,0,0.03);
}

.btn-primary {
  background: var(--blue-500);
  color: #fff;
  border: 1px solid var(--blue-400);
}

.btn-primary:hover {
  background: var(--blue-400);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  text-align: center;
  background: #FFFFFF !important;
  color: var(--text-primary) !important;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 40%, rgba(37,99,235,0.08) 0%, rgba(2,132,199,0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-500);
  margin-bottom: 1.5rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--text-primary) !important;
}

.hero h1 .accent-word {
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2,
.hero p,
.hero span {
  color: var(--text-primary) !important;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dim);
  flex-wrap: wrap;
  color: var(--text-primary) !important;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary) !important;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-section,
section.hero,
.front-page-hero,
[class*="hero"] {
  background: #FFFFFF !important;
  color: var(--text-primary) !important;
}

.home .site-main,
.mongolbee-home .site-main,
body.home,
body.front-page {
  background: #FFFFFF !important;
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip {
  padding-block: 2rem;
  border-block: 1px solid var(--border-dim);
  background: var(--navy-800);
}

.category-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.category-list::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  background: transparent;
  border: 1px solid var(--border-dim);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover,
.cat-chip.active {
  background: rgba(37,99,235,0.07);
  border-color: rgba(37,99,235,0.25);
  color: var(--blue-500);
}

/* ============================================================
   TEMPLATE GRID
   ============================================================ */
.template-grid-section {
  padding-block: var(--section-pad);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Default: 4 columns on home, 3 on shop */
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  transition: opacity 0.15s ease;
}

.template-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Shop page stays at 3 columns on desktop */
.mongolbee-shop .template-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-700);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.template-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.template-card:hover .card-preview-overlay {
  opacity: 1;
}

.card-preview {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--navy-600);
  overflow: hidden;
  display: block;
}

.card-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.template-card:hover .card-preview img {
  transform: scale(1.03);
}

.card-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--navy-500) 0%, var(--navy-600) 100%);
}

.placeholder-ui {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.placeholder-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.08);
}

.placeholder-bar.w-60 { width: 60%; }
.placeholder-bar.w-80 { width: 80%; }
.placeholder-bar.w-40 { width: 40%; }
.placeholder-bar.accent { background: rgba(37,99,235,0.25); }

.card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-400);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--amber);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.card-footer {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dim);
  margin-bottom: 0.75rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.card-actions .btn-view {
  flex: 0 0 auto;
}

.card-actions .card-add-to-cart,
.card-actions a.button,
.card-actions .added_to_cart {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.card-actions .added_to_cart {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--blue-500);
}

.card-actions a.button.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.card-actions a.button.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 0.4rem;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.3);
  border-top-color: var(--blue-500);
  display: inline-block;
  animation: mongolbee-spin 0.6s linear infinite;
}

@keyframes mongolbee-spin {
  to { transform: rotate(360deg); }
}

.card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-price .price-free {
  color: var(--blue-500);
}

.card-price .price-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}

/* ============================================================
   WOOCOMMERCE BUTTONS
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  border-color: var(--border-hi);
  background: rgba(0,0,0,0.03);
}

.woocommerce button.button[name="apply_coupon"] {
  background: var(--blue-500);
  border-color: var(--blue-400);
  color: #fff;
}

.woocommerce button.button[name="apply_coupon"]:hover {
  background: var(--blue-400);
}

/* ============================================================
   WOOCOMMERCE NOTICES
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  list-style: none;
  background: var(--navy-700);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--blue-500);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.woocommerce-error {
  border-left-color: #EF4444;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
  flex-shrink: 0;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.woocommerce-cart .container,
.woocommerce-checkout .container {
  padding-block: var(--section-pad);
}

.woocommerce-cart-form,
.cart-empty,
.cart-collaterals {
  max-width: var(--container);
  margin-inline: auto;
}

.cart-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 3rem 0;
}

.return-to-shop {
  text-align: center;
  margin-top: 1rem;
}

.return-to-shop .button {
  display: inline-flex;
}

table.shop_table.cart {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

table.shop_table.cart thead th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 1rem 0.5rem;
  font-weight: 600;
}

table.shop_table.cart thead .product-remove,
table.shop_table.cart tbody .product-remove {
  width: 2.5rem;
}

table.shop_table.cart tbody tr.cart_item {
  background: var(--navy-700);
  border: 1px solid var(--border-dim);
}

table.shop_table.cart tbody tr.cart_item td {
  padding: 1rem;
  vertical-align: middle;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

table.shop_table.cart tbody tr.cart_item td:first-child {
  border-left: 1px solid var(--border-dim);
  border-radius: 10px 0 0 10px;
}

table.shop_table.cart tbody tr.cart_item td:last-child {
  border-right: 1px solid var(--border-dim);
  border-radius: 0 10px 10px 0;
}

.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  color: #EF4444 !important;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none !important;
}

.product-remove a.remove:hover {
  background: rgba(239,68,68,0.16);
}

.product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.product-name a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-name .variation {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.product-price,
.product-subtotal {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-quantity .quantity .qty {
  width: 3rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem 0.25rem;
  -moz-appearance: textfield;
}

.product-quantity .quantity .qty::-webkit-outer-spin-button,
.product-quantity .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-quantity .quantity .qty-step {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  width: 1.8rem;
  height: 2.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-quantity .quantity .qty-step:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.cart-actions,
tr td.actions {
  padding-top: 0.5rem !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.actions .coupon {
  display: flex;
  gap: 0.5rem;
}

.actions .coupon #coupon_code {
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.actions .coupon #coupon_code::placeholder {
  color: var(--text-muted);
}

.cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.cart_totals {
  width: 100%;
  max-width: 380px;
  background: var(--navy-700);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 1.5rem;
}

.cart_totals h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-dim);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
}

.cart_totals table th {
  font-weight: 500;
  width: 40%;
}

.cart_totals table tr:first-child th,
.cart_totals table tr:first-child td {
  border-top: none;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.wc-proceed-to-checkout {
  margin-top: 1.25rem;
}

.wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--blue-500);
  color: #fff;
  border: 1px solid var(--blue-400);
}

.wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--blue-400);
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-block: var(--section-pad);
}

.woocommerce div.product div.images {
  flex: 1 1 420px;
  max-width: 480px;
}

.woocommerce div.product div.summary {
  flex: 1 1 420px;
  max-width: 560px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  max-width: 60ch;
}
.woocommerce-product-gallery__wrapper {
  max-width: 100%;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  background: var(--navy-800);
  border-block: 1px solid var(--border-dim);
}

.features-intro {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.features-intro .label-text {
  margin-bottom: 0.75rem;
  display: block;
}

.features-intro .section-headline {
  margin-bottom: 0.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  position: relative;
  background: var(--navy-700);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box .label-text {
  display: block;
  margin-bottom: 0.75rem;
}

.cta-box .section-headline {
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box .body-text {
  margin-inline: auto;
  margin-bottom: 2rem;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid var(--border-dim);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 26ch;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-loop-product__title {
  font-family: var(--font-sans) !important;
  font-weight: 600;
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
}

.price {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.woocommerce ul.products li.product .price {
  color: var(--blue-500) !important;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE — consolidated, widest to narrowest
   ============================================================ */

/* ---- 1024px: home grid drops to 3 columns ---- */
@media (max-width: 1024px) {
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- 900px: single product stacks, all grids go to 2 columns ---- */
@media (max-width: 900px) {
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .template-grid,
  .mongolbee-shop .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 800px: cart table → card layout ---- */
@media (max-width: 800px) {
  div.product {
    max-width: 100vw;
  }

  table.shop_table.cart thead { display: none; }

  table.shop_table.cart td::before {
    content: none !important;
    display: none !important;
  }

  table.shop_table.cart tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "thumb name remove"
      "thumb qty price";
    gap: 0.5rem 0.75rem;
    border-radius: 10px !important;
  }

  table.shop_table.cart tbody tr.cart_item td {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.35rem 0 !important;
  }

  .product-thumbnail { grid-area: thumb; }
  .product-name      { grid-area: name; }
  .product-remove    { grid-area: remove; text-align: right; }
  .product-quantity  { grid-area: qty; }
  .product-price     { grid-area: price; text-align: right; }

  .product-subtotal {
    display: none !important;
  }

  .cart-collaterals { justify-content: stretch; }
  .cart_totals { max-width: none; padding: 1.25rem; }

  .actions .coupon { flex-wrap: wrap; }
  .actions .coupon #coupon_code { flex: 1 1 160px; min-width: 0; }
}

/* ---- 768px: nav, footer, section headers, hero stats ---- */
@media (max-width: 768px) {
  .primary-nav { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

/* ---- 560px: card buttons stay side-by-side ---- */
@media (max-width: 560px) {
  .card-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 0.5rem;
  }

  .card-actions .btn-view,
  .card-actions .card-add-to-cart,
  .card-actions a.button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    font-size: 0.78rem;
    padding: 0.55rem 0.5rem;
  }
}

/* ---- 480px: header, footer, grid ---- */
@media (max-width: 480px) {
  .nav-inner { gap: 0.5rem; }

  .site-logo { font-size: 0.95rem; }

  .nav-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .nav-actions .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-actions .btn-lg {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .template-grid,
  .mongolbee-shop .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
/* ============================================================
   MOBILE BOTTOM NAVIGATION
   Paste this block at the bottom of style.css
   ============================================================ */

/* Hidden by default on desktop — only shown on mobile */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* ── The bar itself ── */
    .mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        height: 64px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-dim);

        /* iPhone home-bar clearance */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* ── Each tab link ── */
    .mbnav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding-top: 8px;
        padding-bottom: 6px;
        text-decoration: none;
        color: var(--text-muted);
        transition: color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }

    .mbnav-item:hover {
        color: var(--text-secondary);
    }

    /* ── Active state ── */
    .mbnav-item.is-active {
        color: var(--blue-500);
    }

    /* ── Icon wrapper ── */
    .mbnav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        position: relative;
    }

    .mbnav-icon .ti {
        font-size: 22px;
        line-height: 1;
    }

    /* Active icon gets a soft pill background */
    .mbnav-item.is-active .mbnav-icon::before {
        content: '';
        position: absolute;
        inset: -4px -10px;
        background: rgba(37, 99, 235, 0.09);
        border-radius: 99px;
    }

    /* ── Label ── */
    .mbnav-label {
        font-family: var(--font-sans);
        font-size: 9px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        max-width: 56px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        /*
         * "Ажил мэргэжлийн оношилгоо" is long — allow wrapping for that one tab.
         * Remove white-space and overflow rules below if you prefer the
         * label to wrap instead of truncate.
         */
    }

    /* ── Push page content above the bar ── */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Keep WooCommerce mini-cart and notices above the nav */
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        margin-bottom: calc(1.5rem + 64px + env(safe-area-inset-bottom, 0px));
    }

    /* Prevent the sticky site-header competing with bottom nav z-index */
    .site-header {
        z-index: 150;
    }
}
/* ============================================================
   END MOBILE BOTTOM NAVIGATION
   ============================================================ */
/* ============================================================
   MOBILE BOTTOM NAV — colorful icons
   Replace the existing ".mbnav-item", ".mbnav-icon", ".mbnav-item.is-active"
   and ".mbnav-item.is-active .mbnav-icon::before" rules inside your
   "MOBILE BOTTOM NAVIGATION" block in style.css with these.
   ============================================================ */

/* Each tab now carries its own colour via --mb-color / --mb-bg
   (set inline per link in mobile-bottom-nav.php). */
.mbnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-top: 8px;
    padding-bottom: 6px;
    text-decoration: none;
    color: var(--mb-color, var(--text-muted));
    opacity: 0.72;
    transition: opacity 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mbnav-item:hover {
    opacity: 1;
}

/* Active state: full colour + soft tinted pill behind the icon */
.mbnav-item.is-active {
    color: var(--mb-color, var(--blue-500));
    opacity: 1;
}

.mbnav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.mbnav-icon .ti {
    font-size: 22px;
    line-height: 1;
}

.mbnav-item.is-active .mbnav-icon::before {
    content: '';
    position: absolute;
    inset: -4px -10px;
    background: var(--mb-bg, rgba(37, 99, 235, 0.09));
    border-radius: 99px;
}
