/*
Theme Name: GameCode Pro
Theme URI: http://localhost/gamecode
Description: Professional E-Learning & Game Source Code Marketplace
Version: 2.0
Author: GameCode
Text Domain: gamecode-pro

License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

*/

/* ============================================
   PROFESSIONAL GAMECODE MARKETPLACE THEME v2.0
   ============================================= */

:root {
  /* PRIMARY COLORS */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  
  /* SECONDARY COLORS */
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  
  /* ACCENT COLORS */
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  
  /* NEUTRAL */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  
  /* SPACING */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================= */

header {
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.site-logo img {
  height: 50px;
  margin-right: var(--spacing-sm);
}

.site-logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* Navigation Menu */
.main-navigation {
  display: flex;
  gap: var(--spacing-lg);
}

.main-navigation ul,
.main-navigation .menu,
.main-navigation .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-btn {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================= */

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-btn-primary {
  background: white;
  color: var(--primary-color);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.hero-btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* ============================================
   PRODUCTS GRID
   ============================================= */

.products-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--accent-gold);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.product-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

.stars {
  color: var(--accent-gold);
}

.rating-count {
  color: var(--text-light);
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.price-main {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-currency {
  font-size: 12px;
  color: var(--text-light);
}

.price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 14px;
}

.product-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.product-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   COURSES SECTION
   ============================================= */

.courses-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: white;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--secondary-color);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.course-body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-level {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: var(--spacing-sm);
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.course-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
  color: var(--text-light);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.course-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.course-btn:hover {
  background: var(--secondary-dark);
}

/* ============================================
   CTA SECTION
   ============================================= */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: var(--primary-color);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FEATURES SECTION
   ============================================= */

.features-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-box {
  text-align: center;
  padding: var(--spacing-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================= */

footer {
  background: var(--text-dark);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom-text {
  color: #9ca3af;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-md);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .main-navigation {
    gap: var(--spacing-sm);
  }

  .header-container {
    padding: 0 var(--spacing-md);
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .main-navigation {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   WOOCOMMERCE CUSTOMIZATION
   ============================================= */

.woocommerce-message,
.woocommerce-error,
.woocommerce-notice {
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
}

.woocommerce .button {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce .button:hover {
  background: var(--primary-dark);
}

.star-rating span {
  color: var(--accent-gold);
}

/* ============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================= */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-success {
  background: var(--secondary-color);
  color: white;
}

.badge-warning {
  background: var(--accent-gold);
  color: white;
}

/* Hidden by default */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   MARKETPLACE UPGRADE
   ============================================= */

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.24;
}

.hero-section::before {
  width: 280px;
  height: 280px;
  top: -120px;
  left: 6%;
  background: #ffffff;
}

.hero-section::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  right: 6%;
  background: #f59e0b;
}

.market-strip {
  background: linear-gradient(90deg, #0b1220, #1e293b);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.market-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  padding: 14px 0;
}

.market-strip-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.market-strip-text {
  font-size: 14px;
}

.market-section {
  padding: 64px 0;
}

.market-section-dark {
  background: radial-gradient(circle at top right, #1f2937, #0f172a 70%);
}

.market-section-dark .section-title,
.market-section-dark .section-subtitle {
  color: #f8fafc;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.source-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.source-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.source-card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.source-card-desc {
  color: #475569;
  min-height: 72px;
}

.source-thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.source-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.source-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0;
}

.source-price-main {
  font-weight: 800;
  color: #0f172a;
}

.source-price-sub {
  color: #4f46e5;
  font-size: 0.86rem;
  font-weight: 700;
}

.source-card-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
}

.source-card-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

.learning-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learning-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(30, 41, 59, 0.52);
  border-radius: 12px;
  padding: 14px;
}

.learning-thumb {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.36);
}

.learning-index {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.learning-title {
  color: #e2e8f0;
  margin: 0;
  font-weight: 600;
}

.learning-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learning-price {
  margin: 0;
  color: #bfdbfe;
  font-size: 0.88rem;
  font-weight: 600;
}

.learning-desc {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.learning-link {
  color: #fde68a;
  font-size: 0.88rem;
  font-weight: 700;
}

.learning-link:hover {
  color: #fef3c7;
}

.learning-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.learning-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  padding: 5px 11px;
}

.learning-link-buy {
  border-color: rgba(20, 184, 166, 0.65);
  color: #99f6e4;
}

.learning-link-buy:hover {
  color: #ccfbf1;
}

.policy-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.policy-box,
.company-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.section-title-left {
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-list li {
  position: relative;
  color: #334155;
  margin-bottom: 10px;
  padding-left: 16px;
}

.policy-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6366f1;
  position: absolute;
  left: 0;
  top: 9px;
}

.company-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.company-line {
  color: #334155;
  margin-bottom: 8px;
}

.company-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.company-cta:hover {
  color: #fff;
  background: #1e293b;
}

@media (max-width: 900px) {
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    width: 180px;
  }

  .learning-list,
  .policy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .market-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROFESSIONAL UI OVERHAUL
   ============================================= */

:root {
  --primary-color: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --text-dark: #0b1220;
  --text-light: #475569;
  --bg-light: #f2f5f9;
  --bg-white: #ffffff;
  --accent-gold: #d97706;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.10), transparent 36%),
    radial-gradient(circle at 100% 10%, rgba(217, 119, 6, 0.08), transparent 36%),
    #f2f5f9;
  color: var(--text-dark);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-container {
  min-height: 88px;
}

.main-navigation .menu {
  display: flex;
  align-items: center;
}

.main-navigation ul,
.main-navigation .menu ul,
.main-navigation .main-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  padding: 10px 14px;
  border-radius: 10px;
  border-bottom: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
}

.main-navigation a:hover,
.main-navigation .current_page_item > a {
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

.header-actions {
  gap: 10px;
}

.header-btn {
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0f766e, #0f766e);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.18);
}

.header-btn:hover {
  background: linear-gradient(135deg, #115e59, #0f766e);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.24);
}

.hero-section {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(140deg, #0f766e, #0b3b57);
  padding: 84px 20px 72px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(240, 253, 250, 0.95);
}

.hero-btn {
  border-radius: 12px;
  font-size: 15px;
}

.hero-btn-primary {
  color: #0f172a;
}

.market-strip {
  background: linear-gradient(90deg, #0b1220, #1f2937);
}

.market-strip-badge {
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.market-section {
  padding-top: 76px;
  padding-bottom: 76px;
}

.section-title {
  color: #0f172a;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.section-subtitle {
  color: #475569;
}

.source-grid {
  gap: 22px;
}

.source-card {
  border-radius: 18px;
  border: 1px solid #dbe4ee;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.source-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
}

.source-thumb {
  height: 182px;
}

.source-card-title {
  font-size: 1.12rem;
  color: #0b1220;
}

.source-card-desc {
  font-size: 0.93rem;
  line-height: 1.65;
}

.source-price-main {
  font-size: 1.02rem;
}

.source-card-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #0f766e);
}

.source-card-btn:hover {
  background: linear-gradient(135deg, #115e59, #0f766e);
}

.market-section-dark {
  background: linear-gradient(160deg, #0b1220, #1e293b);
}

.learning-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.learning-index {
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.learning-thumb {
  width: 110px;
  height: 68px;
  border-radius: 10px;
}

.learning-title {
  color: #f8fafc;
  font-size: 0.95rem;
}

.learning-desc {
  color: #cbd5e1;
  font-size: 0.84rem;
}

.learning-price {
  color: #93c5fd;
}

.policy-box,
.company-box {
  border-radius: 18px;
  border: 1px solid #dbe4ee;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.policy-list li::before {
  background: #0f766e;
}

.company-cta {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.company-cta:hover {
  background: linear-gradient(135deg, #0b1220, #0f172a);
}

@media (max-width: 980px) {
  .header-container {
    min-height: 78px;
  }

  .main-navigation ul,
  .main-navigation .menu ul,
  .main-navigation .main-menu {
    gap: 4px;
  }

  .main-navigation a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .main-navigation {
    display: none;
  }

  .hero-section {
    padding: 62px 14px 56px;
  }

  .market-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ============================================
   SOURCE METRICS + STATIC PAGE STYLES
   ============================================= */

.source-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.source-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  color: #334155;
  font-size: 0.86rem;
}

.source-metric strong {
  color: #0f172a;
  font-weight: 800;
}

.gc-page-main {
  padding: 60px 0;
}

.gc-page-wrap {
  padding: 10px 0 30px;
}

.gc-page-container {
  max-width: 980px;
}

.gc-page-article {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.gc-page-header {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #0f766e, #0b3b57);
  color: #f8fafc;
}

.gc-page-tag {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
}

.gc-page-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.gc-page-content {
  padding: 26px 30px 30px;
  color: #334155;
  line-height: 1.72;
}

.gc-page-shell {
  display: grid;
  gap: 18px;
}

.gc-page-hero {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 18px;
}

.gc-page-hero h1 {
  margin: 0 0 8px;
  color: #0b1220;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

.gc-kicker {
  margin: 0 0 6px;
  color: #0f766e;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.gc-page-card {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 18px;
}

.gc-page-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

.gc-page-card ul {
  margin: 0;
  padding-left: 18px;
}

.gc-page-card li {
  margin-bottom: 7px;
}

/* ============================================
   WOOCOMMERCE PRODUCT/CART/CHECKOUT STYLES
   ============================================= */

.woocommerce-main .product {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.woocommerce div.product .product_title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: #0b1220;
  margin-bottom: 10px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #0f766e;
  font-weight: 800;
  font-size: 1.4rem;
}

.woocommerce div.product form.cart {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: linear-gradient(135deg, #0f766e, #0b3b57);
  border: none;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: linear-gradient(135deg, #115e59, #0f766e);
  color: #fff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid #dbe4ee;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 10px 10px 0 0;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: #ffffff;
  border-bottom-color: #ffffff;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.woocommerce table.shop_table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe4ee;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 14px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #0f766e, #0b3b57);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.woocommerce-checkout #payment {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #dbe4ee;
}

.woocommerce-checkout #payment div.payment_box {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
}

.wc-block-cart,
.wc-block-checkout {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-cart__totals-title {
  border-color: #dbe4ee;
}

.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
  background: linear-gradient(135deg, #0f766e, #0b3b57) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  border: none !important;
}

.wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: linear-gradient(135deg, #115e59, #0f766e) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

@media (max-width: 768px) {
  .gc-page-main {
    padding: 40px 0;
  }

  .gc-page-header,
  .gc-page-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .woocommerce-main .product {
    padding: 14px;
  }
}

/* ============================================
   VIETNAM MARKETPLACE REBUILD
   ============================================= */

:root {
  --gc-bg: #eef3f8;
  --gc-surface: #ffffff;
  --gc-text: #101828;
  --gc-muted: #475467;
  --gc-line: #d0dae5;
  --gc-brand: #007a6d;
  --gc-brand-dark: #005f55;
  --gc-brand-soft: #e6f5f2;
  --gc-accent: #f59e0b;
  --gc-shadow: 0 14px 30px rgba(16, 24, 40, 0.09);
}

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 0% 10%, rgba(0, 122, 109, 0.08), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08), transparent 28%),
    var(--gc-bg);
  color: var(--gc-text);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
}

.site-header {
  position: sticky;
  top: 32px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(208, 218, 229, 0.75);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

.header-container {
  min-height: 82px;
  max-width: 1280px;
}

.brand-logo {
  width: 190px;
}

.main-navigation .main-menu {
  gap: 4px;
  flex-wrap: wrap;
}

.main-navigation a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #1d2939;
  font-weight: 700;
  font-size: 14px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--gc-brand-soft);
  color: var(--gc-brand);
}

.header-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gc-brand), #0a8f80);
  box-shadow: 0 10px 24px rgba(0, 122, 109, 0.24);
}

.header-btn:hover {
  background: linear-gradient(135deg, var(--gc-brand-dark), var(--gc-brand));
}

.hero-section {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.13), transparent 25%),
    linear-gradient(135deg, #005f55 0%, #007a6d 45%, #0b3b57 100%);
  padding: 86px 20px 78px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 980px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  color: rgba(236, 253, 245, 0.96);
}

.hero-btn {
  border-radius: 12px;
  font-weight: 800;
}

.hero-btn-primary {
  color: #05312d;
}

.market-strip {
  background: linear-gradient(90deg, #0f172a, #1e293b);
}

.market-strip-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.section-title {
  letter-spacing: -0.02em;
}

.woocommerce-shop .woocommerce-main {
  padding-top: 6px;
}

.woocommerce-shop .woocommerce-main .container {
  max-width: 1240px;
}

.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering {
  margin-bottom: 14px;
}

.woocommerce-shop .woocommerce-ordering .orderby {
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  background: #ffffff;
}

.woocommerce-shop .woocommerce ul.products,
.woocommerce-page .woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce-shop .woocommerce ul.products::before,
.woocommerce-shop .woocommerce ul.products::after {
  display: none;
}

.woocommerce-shop .woocommerce ul.products li.product,
.woocommerce-page .woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: #ffffff;
  border: 1px solid #d0dae5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-shop .woocommerce ul.products li.product:hover,
.woocommerce-page .woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.12);
}

.woocommerce-shop .woocommerce ul.products li.product a img,
.woocommerce-page .woocommerce ul.products li.product a img {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}

.woocommerce-shop .woocommerce ul.products li.product .product-title,
.woocommerce-page .woocommerce ul.products li.product .product-title {
  font-size: 1rem;
  min-height: 46px;
  margin: 0 0 8px;
  color: #0f172a;
}

.woocommerce-shop .woocommerce ul.products li.product .product-price,
.woocommerce-page .woocommerce ul.products li.product .product-price {
  margin-top: auto;
}

.woocommerce-shop .woocommerce ul.products li.product .button,
.woocommerce-page .woocommerce ul.products li.product .button {
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.source-card {
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--gc-shadow);
}

.source-card-title {
  font-size: 1.08rem;
  min-height: 56px;
  margin: 2px 0 8px;
}

.source-thumb-wrap {
  margin-bottom: 10px;
  border-radius: 12px;
}

.source-thumb {
  height: 130px;
}

.source-metrics {
  gap: 6px;
  margin: 8px 0 10px;
}

.source-metric {
  padding: 7px 10px;
  background: #f5f8fc;
  border: 1px solid #dde6ef;
  border-radius: 9px;
  font-size: 0.8rem;
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.source-metric-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.source-metric-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f5f2;
  color: #007a6d;
}

.source-metric-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.source-metric-label {
  line-height: 1;
}

.single-product .woocommerce-main .product {
  background: #ffffff;
  border: 1px solid #d0dae5;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 38px rgba(16, 24, 40, 0.1);
}

.single-product .woocommerce-product-gallery {
  background: #f7fafc;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 12px;
}

.single-product div.product .summary {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 18px;
}

.single-product .woocommerce div.product .product_title {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  margin-bottom: 8px;
  color: #101828;
}

.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price {
  color: #007a6d;
  font-size: 1.5rem;
  font-weight: 800;
}

.gc-product-insights {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f2f7fd);
  display: grid;
  gap: 8px;
}

.gc-product-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}

.gc-product-insight-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.gc-product-insight-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e6f5f2;
  color: #007a6d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gc-product-insight-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.gc-product-insight-text {
  color: #334155;
  font-size: 0.9rem;
}

.gc-product-insight-label {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.gc-product-insight-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.gc-product-insight-text strong {
  color: #0f172a;
  font-weight: 800;
  margin-right: 4px;
}

.gc-rating-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gc-product-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gc-product-star {
  width: 14px;
  height: 14px;
  line-height: 1;
}

.gc-product-star svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.gc-product-star.is-full {
  color: #f59e0b;
}

.gc-product-star.is-off {
  color: #d0d7e2;
}

.gc-rating-score {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.single-product .woocommerce div.product form.cart {
  margin-top: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.single-product .woocommerce div.product form.cart div.quantity {
  margin: 0;
  width: 88px;
}

.single-product .woocommerce .quantity .qty {
  width: 100%;
  min-height: 44px;
  text-align: center;
}

.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 800;
}

.single-product .woocommerce div.product .summary .product_meta,
.single-product .woocommerce div.product .summary .sku_wrapper,
.single-product .woocommerce div.product .summary .posted_in,
.single-product .woocommerce div.product .summary .tagged_as,
.single-product .woocommerce-breadcrumb {
  display: none;
}

.single-product .woocommerce div.product .woocommerce-tabs {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #ffffff;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: none;
  padding-bottom: 10px;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #f8fafc;
  margin: 0;
  padding: 0;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 9px 14px;
  font-weight: 700;
  color: #334155;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #007a6d;
}

.single-product #reviews #comments ol.commentlist li .comment-text {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .single-product .woocommerce-main .product {
    padding: 14px;
  }

  .single-product div.product .summary,
  .single-product .woocommerce-product-gallery {
    padding: 12px;
  }

  .single-product .woocommerce div.product form.cart {
    grid-template-columns: 1fr;
  }

  .single-product .woocommerce div.product form.cart div.quantity {
    width: 100%;
  }
}

.source-price-row {
  margin: 10px 0 8px;
}

.source-price-main {
  font-size: 1.05rem;
  font-weight: 800;
}

.source-price-sub {
  font-size: 0.82rem;
}

.source-card-btn {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, var(--gc-brand), #0a8f80);
}

.source-card-btn:hover {
  background: linear-gradient(135deg, var(--gc-brand-dark), var(--gc-brand));
}

.market-section-dark {
  background: linear-gradient(160deg, #0f172a 0%, #111f36 100%);
}

.learning-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.policy-box,
.company-box {
  border-radius: 16px;
  box-shadow: var(--gc-shadow);
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-section a {
  color: #cbd5e1;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-socials a {
  border-radius: 12px;
}

.footer-legal {
  margin-top: 4px;
  margin-bottom: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  border-radius: 14px;
  padding: 16px;
}

.footer-legal-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #f8fafc;
}

.footer-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.footer-legal-grid p {
  margin: 0;
  color: #dbe6f2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-legal-grid strong {
  color: #f8fafc;
}

.gc-page-article {
  border-radius: 18px;
  box-shadow: var(--gc-shadow);
}

.gc-page-header {
  background: linear-gradient(135deg, #005f55, #0b3b57);
}

.gc-page-card,
.gc-page-hero {
  border: 1px solid var(--gc-line);
}

.woocommerce-main .product,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.wc-block-cart,
.wc-block-checkout {
  border-color: var(--gc-line);
  box-shadow: var(--gc-shadow);
}

.woocommerce .quantity .qty {
  border-radius: 10px;
  border: 1px solid var(--gc-line);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: linear-gradient(135deg, var(--gc-brand), #0a8f80) !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: none !important;
  font-weight: 800 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: linear-gradient(135deg, var(--gc-brand-dark), var(--gc-brand)) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border-color: #c6d3e1;
  border-radius: 10px;
}

@media (max-width: 1200px) {
  .source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce-shop .woocommerce ul.products,
  .woocommerce-page .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .site-header {
    top: 32px;
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-section {
    padding: 62px 12px 54px;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-shop .woocommerce ul.products,
  .woocommerce-page .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .source-thumb {
    height: 158px;
  }

  .footer-legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CART/CHECKOUT WIDTH FIX
   ============================================= */

.woocommerce-cart .woocommerce-main .container,
.woocommerce-checkout .woocommerce-main .container,
.woocommerce-account .woocommerce-main .container {
  max-width: 1260px !important;
  width: 100%;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: 100% !important;
  width: 100% !important;
}

.woocommerce-cart .wc-block-cart,
.woocommerce-checkout .wc-block-checkout,
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  max-width: 100% !important;
  width: 100% !important;
}

.woocommerce-cart .wc-block-components-main,
.woocommerce-checkout .wc-block-components-main,
.woocommerce-cart .wc-block-components-sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  width: 100% !important;
}

.woocommerce-cart .wc-block-cart,
.woocommerce-checkout .wc-block-checkout {
  padding: 20px;
  border-radius: 16px;
}

/* ============================================
   CUSTOM AUTH UI
   ============================================= */

.gc-auth-page .site-main {
  padding: 56px 0;
}

.gc-auth-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 12px;
}

.gc-auth-card {
  background: #ffffff;
  border: 1px solid #d0dae5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
}

.gc-auth-title {
  margin: 0 0 8px;
  color: #101828;
  font-size: 1.65rem;
}

.gc-auth-note {
  margin: 0 0 16px;
  color: #475467;
}

.gc-auth-form {
  display: grid;
  gap: 12px;
}

.gc-auth-field {
  display: grid;
  gap: 6px;
}

.gc-auth-field span {
  color: #344054;
  font-weight: 600;
  font-size: 0.92rem;
}

.gc-auth-field input {
  min-height: 44px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
}

.gc-auth-field input:focus {
  border-color: #007a6d;
  box-shadow: 0 0 0 3px rgba(0, 122, 109, 0.12);
}

.gc-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 0.9rem;
}

.gc-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 11px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #007a6d, #0a8f80);
}

.gc-auth-btn:hover {
  background: linear-gradient(135deg, #005f55, #007a6d);
  color: #ffffff;
}

.gc-auth-btn-ghost {
  background: #f2f7fd;
  color: #007a6d;
  border: 1px solid #cfd8e3;
}

.gc-auth-switch {
  margin: 6px 0 0;
  color: #475467;
  font-size: 0.9rem;
}

.gc-auth-switch a {
  color: #007a6d;
  font-weight: 700;
}

.gc-auth-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.gc-auth-alert p {
  margin: 0;
}

.gc-auth-alert p + p {
  margin-top: 4px;
}

.gc-auth-alert-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.gc-auth-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.gc-auth-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* ============================================
   RELATED PRODUCTS FIX (SINGLE PRODUCT)
   ============================================= */

.single-product .related {
  margin-top: 26px;
}

.single-product .related > h2 {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1.7rem;
}

.single-product .related ul.products,
.single-product .upsells ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 16px;
  margin: 0;
  padding: 0;
  width: 100% !important;
}

.single-product .related ul.products::before,
.single-product .related ul.products::after,
.single-product .upsells ul.products::before,
.single-product .upsells ul.products::after {
  display: none !important;
}

.single-product .related ul.products li.product,
.single-product .upsells ul.products li.product,
.single-product .related ul.products[class*="columns-"] li.product,
.single-product .upsells ul.products[class*="columns-"] li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  max-width: none !important;
  border-radius: 14px;
  padding: 12px;
}

.single-product .related ul.products li.product a img,
.single-product .upsells ul.products li.product a img {
  height: 132px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.single-product .related ul.products li.product .product-title,
.single-product .upsells ul.products li.product .product-title {
  min-height: 44px;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.single-product .related ul.products li.product .price-main,
.single-product .upsells ul.products li.product .price-main {
  font-size: 1.2rem;
  line-height: 1.2;
}

.single-product .related ul.products li.product .button,
.single-product .upsells ul.products li.product .button {
  min-height: 42px;
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 0 10px;
}

/* Navigation should stay static (non-sticky). */
header,
.site-header {
  position: relative !important;
  top: auto !important;
}

.header-btn-secondary-action {
  background: #e6f5f2;
  color: #007a6d;
  border: 1px solid #bde7e1;
  box-shadow: none;
}

.header-btn-secondary-action:hover {
  background: #d7f0eb;
  color: #005f55;
}

/* Product cards: apply on both Shop and shortcode catalogs (e-learning/source pages). */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce-page .woocommerce ul.products,
.woocommerce .products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce-page .woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: #ffffff;
  border: 1px solid #d0dae5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.woocommerce ul.products li.product a img,
.woocommerce-page .woocommerce ul.products li.product a img {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}

.woocommerce ul.products li.product .product-title,
.woocommerce-page .woocommerce ul.products li.product .product-title {
  font-size: 1rem;
  line-height: 1.45;
  min-height: 52px;
  margin: 0 0 8px;
  color: #0f172a;
}

.woocommerce ul.products li.product .product-rating {
  margin: 0 0 8px;
  min-height: 20px;
}

.woocommerce ul.products li.product .rating-count {
  color: #64748b;
  font-weight: 600;
}

.woocommerce ul.products li.product .product-price,
.woocommerce-page .woocommerce ul.products li.product .product-price {
  margin-top: auto;
}

.woocommerce ul.products li.product .price-main {
  font-size: 1.85rem;
  color: #0f766e;
}

.woocommerce ul.products li.product .button,
.woocommerce-page .woocommerce ul.products li.product .button {
  width: 100% !important;
  margin-top: 10px;
  border-radius: 10px;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce-page .woocommerce ul.products,
  .woocommerce .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce-page .woocommerce ul.products,
  .woocommerce .products {
    grid-template-columns: 1fr;
  }
}
