/*
Theme Name: EYEDIA
Theme URI: https://www.eyedia.org/
Author: DMI Beirut
Author URI: https://www.eyedia.org/
Description: Custom bilingual (EN/AR) theme for EYEDIA — Where Art Meets Impact. Built without page builders or required plugins; includes native product pages, email ordering, optional Stripe Checkout, Instagram/Meta integration, SEO, and vanilla-JavaScript motion.
Version: 1.2.10
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: eyedia
Tags: bilingual, rtl-language-support, custom-colors, custom-menu
*/

/* ==========================================================================
   EYEDIA — Design tokens & base layer
   All component styles live in assets/css/theme.css
   Motion lives in assets/css/motion.css
   ========================================================================== */

:root {
  /* Core palette — carried over from the original static site */
  --bg: #050505;
  --bg-deep: #010101;
  --bg-panel: #0a0a0f;
  --bg-panel-2: #0c0c10;
  --bg-panel-3: #05050a;
  --surface: rgba(20, 20, 30, 0.65);
  --surface-solid: rgba(15, 15, 20, 0.7);

  /* Gold accent */
  --gold: #c7a17a;
  --gold-bright: #e0b68c;
  --gold-pale: #e9cba7;
  --gold-15: rgba(199, 161, 122, 0.15);
  --gold-20: rgba(199, 161, 122, 0.2);
  --gold-30: rgba(199, 161, 122, 0.3);

  /* Text */
  --text: #e8e9ed;
  --text-muted: #bcbcbc;
  --text-dim: #aaa;

  /* Lines */
  --line: rgba(255, 215, 170, 0.15);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;

  /* Rhythm */
  --radius: 2rem;
  --radius-sm: 1rem;
  --container: 1400px;
  --section-y: 100px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 0.2s;
  --dur: 0.4s;
  --dur-slow: 0.8s;

  /* Header offset used by scroll-spy and anchor scrolling */
  --header-h: 78px;
}

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

/*
 * The `hidden` attribute must actually hide.
 *
 * Browsers implement it as `[hidden] { display: none }` in the USER-AGENT
 * origin, which any author-origin `display` declaration silently outranks. The
 * theme sets `display: grid` on the quick-view modal and `display: flex` on
 * product cards, so `el.hidden = true` stopped hiding them: the modal stayed a
 * full-viewport, z-index 1400, opacity-0 layer that swallowed every click on
 * the shop page, and the category filter flagged cards without hiding any.
 * Declaring it here, in the author origin, is the standard remedy.
 */
[hidden] {
  display: none !important;
}

html {
  /* Anchor links land below the fixed header */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Native smooth scrolling, unless the visitor asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

h1,
h2,
h3,
h4,
.logo,
.nav-links,
.btn {
  font-family: var(--font-head);
  font-weight: 600;
}

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

a {
  color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

::selection {
  background: var(--gold);
  color: #0a0a0a;
}

/* Accessibility: visible focus for keyboard users only */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 100000;
  background: var(--gold);
  color: #0a0a0a;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 0;
}
