/*
Theme Name: Aiflorax AI 3D Marketplace
Theme URI: https://aiflorax.com/theme
Author: Aiflorax Engineering
Author URI: https://aiflorax.com
Description: Production hybrid WordPress & WooCommerce theme integrating a lazy-loaded React Three Fiber 3D hero, glassmorphic 95+ product catalog, and first-class EN (LTR), AR (RTL), and FA (RTL / Vazirmatn) localization.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-3d-marketplace
Domain Path: /languages
Tags: e-commerce, woocommerce, rtl-language-support, custom-menu, dark-mode, featured-images
*/

:root {
  --mp-bg: #08090b;
  --mp-surface: #0e1117;
  --mp-border: rgba(255, 255, 255, 0.085);
  --mp-text: #f1f5f9;
  --mp-muted: #94a3b8;
  --mp-accent: #60a5fa;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--mp-bg);
  color: var(--mp-text);
  overflow-x: clip;
}

/* Global WordPress Typography across EN / AR / FA */
html[lang^="en"] body {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

html[lang^="ar"] body,
html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h4 {
  font-family: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: normal;
  line-height: 1.75;
}

html[lang^="fa"] body,
html[lang^="fa"] h1,
html[lang^="fa"] h2,
html[lang^="fa"] h3,
html[lang^="fa"] h4,
html[lang^="fa"] p,
html[lang^="fa"] li,
html[lang^="fa"] label,
html[lang^="fa"] input,
html[lang^="fa"] button {
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: normal;
}

html[lang^="fa"] body {
  line-height: 1.78;
  font-feature-settings: "kern" 1, "liga" 1;
}

html[lang^="fa"] h1,
html[lang^="fa"] h2,
html[lang^="fa"] h3,
html[lang^="fa"] h4 {
  line-height: 1.45;
}

/* Accessibility Skip Link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: 0.5rem;
  color: #020617;
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  inset-inline-start: 1rem;
  line-height: normal;
  padding: 0.75rem 1rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* WordPress Alignment Helpers */
.alignwide {
  max-width: 72rem;
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
}

/* Dark Titanium WooCommerce Cart / Checkout / Account Wrapper */
.mp-wp-shell {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: 3rem;
  padding-inline: 1.25rem;
}

.mp-wc-card {
  background: linear-gradient(180deg, rgba(24, 27, 34, 0.82) 0%, rgba(14, 16, 21, 0.92) 100%);
  border: 1px solid var(--mp-border);
  border-radius: 1rem;
  padding: 2rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select {
  background-color: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  color: #ffffff;
  padding: 0.65rem 0.85rem;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #ffffff;
  color: #020617;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #e2e8f0;
  color: #020617;
}

.woocommerce-info,
.woocommerce-message {
  background-color: #0e1117;
  border-top-color: var(--mp-accent);
  color: var(--mp-text);
}

.aiflorax-3d-hero-mount {
  width: 100%;
  min-height: 460px;
}
