/*
  Shapex – EasyOrders Custom Theme (v1.0)
  Author: ayman + ChatGPT
  Purpose: Drop-in CSS theme for EasyOrders stores following the
           Get Started → Custom Theme Creation guide.

  How to use (quick):
  1) Upload this file as shapex-theme-v1.css in Store → Upload Assets.
  2) Copy its file URL and paste this tag in Settings → Header Code:
     <link rel="stylesheet" href="https://files.easy-orders.net/your/shapex-theme-v1.css" />

  Notes:
  - Designed to work without editing HTML. Uses safe, generic selectors
    that match typical EasyOrders blocks (product grids, cards, buttons,
    modals, forms, header/footer, etc.).
  - Heavily themed for a cosmic/galaxy aesthetic with neon accents.
  - RTL aware. Minimal overrides included.
  - Tweak variables in :root to rebrand quickly.
*/

/* --------------------------------------------------
   1) Root variables (brand system)
-------------------------------------------------- */
:root {
  /* Brand palette */
  --sx-deepspace: #070b2d;      /* deep space blue */
  --sx-deepspace-2: #0a0f3d;    /* slightly lighter */
  --sx-violet: #7e4fff;         /* neon violet */
  --sx-cyan: #00ffe6;           /* neon cyan */
  --sx-pink: #ff33cc;           /* neon pink */
  --sx-lime: #a8ff60;           /* accent lime */
  --sx-white: #f8f9fb;
  --sx-muted: #99a0c0;          /* muted text */

  /* Surfaces */
  --sx-surface: #0b1038;        /* card surface */
  --sx-surface-2: #10164a;      /* hover surface */
  --sx-border: rgba(255,255,255,0.08);
  --sx-border-strong: rgba(255,255,255,0.16);

  /* Typography */
  --sx-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --sx-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sx-text: #dfe6ff;           /* default text */
  --sx-text-weak: #c3c9e6;      /* secondary text */
  --sx-link: var(--sx-cyan);

  /* Effects */
  --sx-radius: 16px;
  --sx-radius-lg: 24px;
  --sx-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--sx-border);
  --sx-shadow-glow-cyan: 0 0 20px rgba(0,255,230,0.35);
  --sx-shadow-glow-violet: 0 0 22px rgba(126,79,255,0.35);

  /* Layout */
  --sx-maxw: 1200px;
  --sx-gap: 16px;
  --sx-gap-lg: 24px;
  --sx-gap-xl: 32px;
}

/* Dark theme base */
html, body {
  background: var(--sx-deepspace);
  color: var(--sx-text);
  font-family: var(--sx-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------
   2) Starfield background (non-intrusive, layered)
-------------------------------------------------- */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* subtle nebula gradient */
body::before {
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(126,79,255,0.18), transparent 50%),
    radial-gradient(900px 700px at 85% 20%, rgba(0,255,230,0.18), transparent 55%),
    radial-gradient(800px 600px at 60% 85%, rgba(255,51,204,0.15), transparent 60%),
    linear-gradient(180deg, var(--sx-deepspace-2), var(--sx-deepspace));
}

/* tiny star dots layer */
body::after {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(255,255,255,0.65), transparent 60%),
    radial-gradient(1px 1px at 90% 75%, rgba(255,255,255,0.6), transparent 60%);
  animation: sx-parallax 60s linear infinite;
  opacity: .35;
}

@keyframes sx-parallax {
  0% { transform: translateY(0); }
  100% { transform: translateY(-600px); }
}

/* --------------------------------------------------
   3) Global type + links
-------------------------------------------------- */

h1, h2, h3, h4, h5 {
  color: var(--sx-white);
  line-height: 1.2;
}

h1 { font-size: clamp(28px, 3vw, 42px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }

p { color: var(--sx-text-weak); }

a { color: var(--sx-link); text-decoration: none; }
a:hover { text-decoration: underline; filter: drop-shadow(0 0 8px rgba(0,255,230,.3)); }

/* --------------------------------------------------
   4) Containers & sections
-------------------------------------------------- */
.container, .page, .wrapper, .content, [class*="container"], [class*="Wrapper"], [class*="Content"] {
  max-width: var(--sx-maxw);
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding-block: clamp(32px, 6vw, 72px);
}

/* Hero block enhancer */
.hero, [class*="Hero"], header.site-header {
  position: relative;
  border-radius: var(--sx-radius-lg);
  background: linear-gradient(135deg, rgba(126,79,255,0.12), rgba(0,255,230,0.08));
  box-shadow: var(--sx-shadow), var(--sx-shadow-glow-violet);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: -60% -40% auto auto; height: 160%; width: 160%;
  background: radial-gradient(closest-side, rgba(0,255,230,0.15), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* 
--------------------------------------------------
  5) Cards: product, collection, generic
-------------------------------------------------- */
.card, .product-card, [class*="ProductCard"], [class*="card" i] {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(4px);
}

.card:hover, .product-card:hover {
  transform: translateY(-4px);
  border-color: var(--sx-border-strong);
  box-shadow: var(--sx-shadow), var(--sx-shadow-glow-cyan);
}

/* product image fit */
.card img, .product-card img {
  width: 100%; height: auto; display: block;
}

/* product title & price */
.product-card .title, [class*="ProductTitle"], .product .title {
  font-weight: 700; color: var(--sx-white); margin-top: 8px;
}
.product-card .price, [class*="ProductPrice"], .product .price {
  color: var(--sx-lime); font-weight: 700; margin-top: 4px;
}
.product-card .compare, .price .compare { color: #b06cff; text-decoration: line-through; opacity: .8; }

/* grid for product lists */
.grid, .product-grid, [class*="Grid"], [class*="Products"] {
  display: grid; gap: var(--sx-gap);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* badges */
.badge, .product-badge, [class*="Badge"] {
  display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--sx-border);
  background: linear-gradient(135deg, rgba(126,79,255,0.18), rgba(0,255,230,0.12));
  color: var(--sx-white);
}

/* --------------------------------------------------
   6) Buttons
-------------------------------------------------- */
.btn, button, [type="button"], [type="submit"], .button {
  --bg: linear-gradient(135deg, var(--sx-violet), var(--sx-cyan));
  --bg-hover: linear-gradient(135deg, var(--sx-cyan), var(--sx-pink));
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--sx-border-strong); color: #0b0f2e; font-weight: 800;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 0 1px var(--sx-border-strong);
  text-transform: uppercase; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover, button:hover, .button:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), var(--sx-shadow-glow-violet);
}
.btn:active { transform: translateY(0); }
.btn--ghost, .button--ghost {
  background: transparent; color: var(--sx-white);
  border: 1px solid var(--sx-border-strong);
}

/* icon inside button */
.btn svg, .button svg { width: 18px; height: 18px; }

/* --------------------------------------------------
   7) Forms (search, checkout fields)
-------------------------------------------------- */
input, select, textarea {
  background: rgba(255,255,255,0.03);
  color: var(--sx-white);
  border: 1px solid var(--sx-border);
  border-radius: 12px; padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #a9b1d6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--sx-border-strong);
  box-shadow: 0 0 0 3px rgba(0,255,230,0.18);
  background: rgba(255,255,255,0.06);
}

/* search bar sizing */
.search, [class*="Search"] input[type="search"], input[type="search"] {
  width: 100%; max-width: 520px;
}

/* quantity stepper */
.quantity, [class*="Quantity"] {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04);
  padding: 8px; border-radius: 12px; border: 1px solid var(--sx-border);
}
.quantity button { padding: 8px 10px; }

/* --------------------------------------------------
   8) Header, nav, footer
-------------------------------------------------- */
header, .header, [class*="Header"] {
  background: linear-gradient(180deg, rgba(15,20,60,0.75), rgba(15,20,60,0.35));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sx-border);
}
header .logo img, .header .logo img {
  filter: drop-shadow(0 0 18px rgba(126,79,255,0.28));
}

.nav a, nav a { padding: 10px 12px; border-radius: 10px; }
.nav a:hover, nav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }

footer, .footer, [class*="Footer"] {
  margin-top: 56px; padding: 40px 0;
  background: linear-gradient(0deg, rgba(8,12,36,0.9), rgba(8,12,36,0.6));
  border-top: 1px solid var(--sx-border);
}
footer a { color: var(--sx-text-weak); }
footer a:hover { color: var(--sx-white); }

/* --------------------------------------------------
   9) PDP (product page) helpers
-------------------------------------------------- */
.product, .product-page, [class*="ProductPage"] {
  display: grid; gap: var(--sx-gap-xl);
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) {
  .product, .product-page, [class*="ProductPage"] { grid-template-columns: 1fr; }
}

/* image gallery polishing */
.product .gallery, [class*="Gallery"] {
  border-radius: var(--sx-radius);
  overflow: hidden; border: 1px solid var(--sx-border);
}

/* buy box */
.product .buybox, [class*="BuyBox"], .add-to-cart {
  padding: 18px; border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

/* trust row */
.sx-trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px;
}
.sx-trust-row .item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sx-border); background: rgba(255,255,255,0.03); }
.sx-trust-row .item b { color: var(--sx-white); }

/* --------------------------------------------------
   10) Collection / PLP controls (sort, filters)
-------------------------------------------------- */
.toolbar, [class*="Toolbar"], .filters, [class*="Filter"] {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--sx-border); border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.chips, .filter-chip { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.chip, .filter-chip > * { border: 1px solid var(--sx-border); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.03); }
.chip.active { border-color: var(--sx-border-strong); box-shadow: var(--sx-shadow-glow-cyan); }

/* --------------------------------------------------
   11) Badges & status
-------------------------------------------------- */
.status--success { color: #62ffad; }
.status--warning { color: #ffd166; }
.status--danger  { color: #ff6b6b; }

/* stock label example if present */
.stock.in    { color: #a8ff60; }
.stock.low   { color: #ffd166; }
.stock.out   { color: #ff6b6b; }

/* --------------------------------------------------
   12) Tables (cart/checkout summaries)
-------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--sx-border); }
th { text-align: left; color: var(--sx-white); }
tr:hover { background: rgba(255,255,255,0.03); }

/* --------------------------------------------------
   13) Modals, drawers, toasts
-------------------------------------------------- */
.modal, [class*="Modal"], .drawer, [class*="Drawer"] {
  background: linear-gradient(180deg, rgba(11,16,56,0.95), rgba(11,16,56,0.85));
  border: 1px solid var(--sx-border-strong);
  border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow), var(--sx-shadow-glow-violet);
}
.toast, [class*="Toast"] {
  background: rgba(16,22,74,.9); border: 1px solid var(--sx-border-strong);
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--sx-shadow-glow-cyan);
}

/* --------------------------------------------------
   14) Utilities (spacing, layout, helpers)
-------------------------------------------------- */
.sx-hide { display: none !important; }
.sx-center { display: grid; place-items: center; }
.sx-stack { display: grid; gap: var(--sx-gap); }
.sx-stack-lg { display: grid; gap: var(--sx-gap-lg); }
.sx-mt-1 { margin-top: 6px; } .sx-mt-2 { margin-top: 12px; } .sx-mt-3 { margin-top: 18px; }
.sx-mb-1 { margin-bottom: 6px; } .sx-mb-2 { margin-bottom: 12px; } .sx-mb-3 { margin-bottom: 18px; }
.sx-p-1 { padding: 6px; } .sx-p-2 { padding: 12px; } .sx-p-3 { padding: 18px; }
.sx-round { border-radius: var(--sx-radius); }
.sx-glow-cyan { box-shadow: var(--sx-shadow-glow-cyan); }
.sx-glow-violet { box-shadow: var(--sx-shadow-glow-violet); }

/* text gradients */
.sx-text-gradient {
  background: linear-gradient(135deg, var(--sx-cyan), var(--sx-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(126,79,255,0.18));
}

/* small CTA bar */
.sx-cta-bar {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--sx-border);
  background: linear-gradient(135deg, rgba(126,79,255,0.12), rgba(0,255,230,0.08));
}

/* --------------------------------------------------
   15) RTL awareness
-------------------------------------------------- */
:root[dir="rtl"] {
  /* If your store renders with dir=rtl on html element */
}
:root[dir="rtl"] .product, :root[dir="rtl"] .product-page { direction: rtl; }
:root[dir="rtl"] .nav a, :root[dir="rtl"] nav a { margin-inline: 0; }

/* --------------------------------------------------
   16) Animations & keyframes extras
-------------------------------------------------- */
@keyframes sx-fade-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
[data-animate="fade-up"] { animation: sx-fade-up .5s ease both; }

/* --------------------------------------------------
   17) Optional: quick brand components (HTML hooks)
   Use these classes in custom blocks/snippets to get ready styles.
-------------------------------------------------- */
.sx-hero {
  padding: clamp(40px, 9vw, 120px) 24px; border-radius: var(--sx-radius-lg);
  background: linear-gradient(160deg, rgba(126,79,255,0.16), rgba(0,255,230,0.08));
  position: relative; overflow: hidden; box-shadow: var(--sx-shadow), var(--sx-shadow-glow-violet);
}
.sx-hero h1 { margin: 0; }
.sx-hero p { max-width: 720px; }
.sx-hero .sx-kicker { text-transform: uppercase; letter-spacing: .12em; color: var(--sx-cyan); font-weight: 800; }

.sx-feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sx-feature { border: 1px solid var(--sx-border); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.03); }
.sx-feature h3 { margin: 8px 0; }

/* End of Shapex theme */
