/*
Theme Name: خانه فوراور (Forever Premium)
Theme URI: https://foreverliving.com
Author: Forever Premium Team
Author URI: https://foreverliving.com
Description: قالب فروشگاهی خانه فوراور – RTL، ووکامرس، لوگو سفارشی، محل اینماد، سئو و امنیت پایه.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forever-premium
Tags: e-commerce, rtl-language-support, custom-menu, featured-images, theme-options, translation-ready, woocommerce

Forever Premium – Luxury Wellness E-commerce Theme
*/

/* ==========================================================================
   Base – Critical CSS (loaded first)
   ========================================================================== */

:root {
  --deep-forest: #123B2A;
  --forest: #1F5A3D;
  --aloe: #6FAF62;
  --soft-aloe: #DCEED9;
  --cream: #F7F5EE;
  --soft-bg: #F5F8F3;
  --dark-text: #17251E;
  --secondary-text: #68766E;
  --accent-gold: #C8A96B;
  --radius-xl: 1.5rem;
  --shadow-soft: 0 4px 24px -4px rgba(18, 59, 42, 0.08);
  --shadow-premium: 0 20px 60px -12px rgba(18, 59, 42, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Yekan Bakh', 'Vazirmatn', Tahoma, system-ui, sans-serif;
  background-color: var(--soft-bg);
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--aloe);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--deep-forest);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100000;
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}

/* Glass */
.fp-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Product card hover (GPU-friendly) */
.fp-product-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.fp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}
.fp-product-card img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.fp-product-card:hover img {
  transform: scale(1.05);
}

/* Reveal */
.fp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fp-product-card,
  .fp-product-card img,
  .fp-reveal {
    transition: none !important;
  }
}

/* Print */
@media print {
  header, footer, .mobile-bottom-nav, .fp-glass { display: none !important; }
}

/* ===== Emergency layout (works even if CDN blocked) ===== */
.fp-theme { background: #1E2A22; color: #fff; }
.fp-theme.admin-bar { }
body.fp-home { background: #1E2A22; color: #fff; min-height: 100vh; }
#main-header { position: relative; z-index: 50; }
.fp-front-content { min-height: 40vh; }
.container { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
