/*
Theme Name: Moblak Store | فروشگاه اختصاصی مبلک
Theme URI: https://moblak.com
Author: Moblak Team
Author URI: https://moblak.com
Description: قالب اختصاصی، فوق‌سریع و مینیمال برای فروشگاه اینترنتی مبلک. با معماری Zero-Bloat، بدون فریمورک‌های سنگین، سازگاری کامل با ووکامرس، جایگاه، مگا آدرس، ورودیار، مبلک یو UX، مجهز به حالت شب، و بهینه‌سازی شدید موبایل.
Version: 2.9.102
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moblak-store
Domain Path: /languages
Tags: e-commerce, woocommerce, custom-colors, featured-images, full-width-template, rtl-language-support, dark-mode, mobile-friendly
*/

/* ==========================================================================
   01. Design Tokens & CSS Custom Properties (Native Light & OLED Dark)
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --brand-gold: #c5a059;
  --brand-gold-hover: #b08d46;
  --brand-gold-soft: rgba(197, 160, 89, 0.12);
  --brand-gold-border: rgba(197, 160, 89, 0.35);
  --brand-navy: #0f172a;
  --brand-navy-light: #1e293b;
  --brand-ikea-blue: #0058a3;
  --brand-ikea-yellow: #ffcc00;
  --brand-red: #ef4444;
  --brand-red-soft: rgba(239, 68, 68, 0.1);
  --brand-green: #10b981;
  --brand-green-soft: rgba(16, 185, 129, 0.1);

  /* Light Theme Defaults */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-alt: #f8fafc;
  --bg-header: #ffffff;
  --bg-header-top: #0f172a;
  --text-header-top: #e2e8f0;
  --bg-footer: #eceff3;
  --bg-footer-rgb: 236, 239, 243;
  --text-footer: #475569;
  --footer-title: #0f172a;
  --footer-border: #dbe0e8;
  --footer-link: #334155;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #c5a059;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.14);
  --shadow-drawer: -8px 0 32px rgba(15, 23, 42, 0.18);
  --shadow-drawer-left: 8px 0 32px rgba(15, 23, 42, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --site-container-width: 1480px;
  --scroll-top-bottom: 30px;
  --scroll-top-side: 30px;
  --scroll-top-bottom-mobile: 85px;
  --scroll-top-side-mobile: 16px;
  /* --font-family is dynamically controlled by Theme Options */
}

/* Native OLED Dark Theme */
[data-theme="dark"],
body.moblak-dark-mode {
  --bg-body: #070b14;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #161f32;
  --bg-surface-subtle: #1e293b;
  --bg-surface-alt: #131b2e;
  --bg-header: #0f172a;
  --bg-header-top: #05080f;
  --text-header-top: #94a3b8;
  --bg-footer: #05080f;
  --bg-footer-rgb: 5, 8, 15;
  --text-footer: #94a3b8;
  --footer-title: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-link: #94a3b8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --border-subtle: #1e293b;
  --border-medium: #334155;
  --border-focus: #eab308;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.7);
  --shadow-drawer: -8px 0 36px rgba(0, 0, 0, 0.65);
  --shadow-drawer-left: 8px 0 36px rgba(0, 0, 0, 0.65);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  margin-bottom: 0 !important;
}

.website-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.website-wrapper > .store-footer,
.store-footer {
  margin-top: auto;
  margin-bottom: 0 !important;
}

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

button {
  font-family: inherit;
}
