/* ══════════════════════════════════════════════════════════════════
   Creatrix Theme — layout.css
   Dark mode portfolio/agency design. Bootstrap 5 klase + vanilla override.
   Primary: #0d6efd | Dark bg: #0d0d0d | Light accent: #6ea8fe
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 16px;
}
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }

:root {
  --cx-primary:   var(--color-primary,   #0d6efd);
  --cx-secondary: var(--color-secondary, #6ea8fe);
  --cx-accent:    var(--color-accent,    #0dcaf0);
  --cx-bg:        #0a0a0a;
  --cx-surface:   #141414;
  --cx-surface2:  #1a1a1a;
  --cx-border:    rgba(255,255,255,.08);
  --cx-text:      #e2e8f0;
  --cx-muted:     #94a3b8;
  --cx-gradient:  linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
  --container-w:  1240px;
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 1.5rem }

/* ── HEADER ─────────────────────────────────────────────────────── */
.cx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cx-border);
}
.cx-nav { display: flex; align-items: center; height: 72px; gap: 2rem; max-width: var(--container-w); margin: 0 auto; padding: 0 1.5rem }
.cx-brand {
  font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
  background: var(--cx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.cx-brand img { height: 36px; -webkit-text-fill-color: initial }
.cx-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none }
.cx-links li { position: relative }
.cx-links a {
  display: block; padding: .5rem .875rem; border-radius: 8px;
  font-size: .875rem; font-weight: 500; color: var(--cx-muted);
  transition: background .15s, color .15s;
}
.cx-links a:hover { background: rgba(255,255,255,.07); color: var(--cx-text) }
.cx-links .nav-item.has-children:hover .nav-dropdown { display: block }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #1a1a1a; border: 1px solid var(--cx-border);
  border-radius: 12px; min-width: 180px; padding: .5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.5); z-index: 200;
}
.nav-dropdown a { display: block; padding: .5rem .75rem; border-radius: 8px; font-size: .84rem; color: var(--cx-muted) }
.nav-dropdown a:hover { background: rgba(255,255,255,.07); color: var(--cx-text) }
.cx-cta-btn {
  margin-left: .5rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.15rem; border-radius: 8px;
  background: var(--cx-primary); color: #fff !important; -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important; font-size: .82rem !important; transition: opacity .15s !important;
}
.cx-cta-btn:hover { opacity: .85 !important }
.cart-nav-btn { display: flex; align-items: center; gap: .4rem }
.cart-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #0a0a0a }
.cx-hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--cx-text); margin-left: auto; }
.cx-mobile-nav { display: none; flex-direction: column; gap: .25rem; padding: 1rem 1.5rem; background: var(--cx-surface); border-bottom: 1px solid var(--cx-border) }
.cx-mobile-nav.open { display: flex }
.cx-mobile-nav a { padding: .65rem .85rem; border-radius: 8px; font-size: .9rem; color: var(--cx-muted) }
.cx-mobile-nav a:hover { background: rgba(255,255,255,.07); color: var(--cx-text) }
.site-lang-switch { display: flex; gap: .25rem }
.site-lang-btn { padding: .3rem .55rem; border-radius: 6px; font-size: .75rem; font-weight: 600; color: var(--cx-muted) }
.site-lang-btn.active { background: rgba(13,110,253,.2); color: var(--cx-secondary) }

/* ── HERO ─────────────────────────────────────────────────────────── */
.cx-hero {
  background: linear-gradient(145deg, #0a0a0a 0%, #0f1629 60%, #0a1128 100%);
  padding: 6rem 0 5rem; overflow: hidden; position: relative;
}
.cx-hero::after {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,253,.15) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.cx-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1 }
.cx-hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 6px; border: 1px solid rgba(13,110,253,.4);
  background: rgba(13,110,253,.1); color: var(--cx-secondary);
  font-size: .78rem; font-weight: 600; margin-bottom: 1.25rem;
}
.cx-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 1.25rem }
.cx-hero h1 .cx-hl { background: var(--cx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent }
.cx-hero-desc { color: var(--cx-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem }
.cx-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap }
.cx-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; border-radius: 8px;
  background: var(--cx-primary); color: #fff; font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.cx-btn-primary:hover { opacity: .88; transform: translateY(-1px) }
.cx-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; border-radius: 8px;
  border: 1px solid var(--cx-border); color: var(--cx-text); font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.cx-btn-ghost:hover { background: rgba(255,255,255,.07) }

/* ── CARDS/SECTIONS ─────────────────────────────────────────────── */
.cx-section { padding: 5rem 0 }
.cx-card {
  background: var(--cx-surface); border: 1px solid var(--cx-border);
  border-radius: 16px; padding: 1.75rem; transition: border-color .2s, transform .2s;
}
.cx-card:hover { border-color: rgba(13,110,253,.35); transform: translateY(-2px) }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem }
.cx-section-label {
  display: inline-block; padding: .3rem .85rem; border-radius: 6px;
  border: 1px solid rgba(13,110,253,.3); background: rgba(13,110,253,.08);
  color: var(--cx-secondary); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.cx-section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 1rem }
.cx-section-subtitle { color: var(--cx-muted); font-size: 1rem; max-width: 520px }
.cx-section-header { text-align: center; margin-bottom: 3.5rem }
.cx-section-header .cx-section-subtitle { margin: 0 auto }

/* ── NEWS ─── */
.cx-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem }
.cx-news-card { background: var(--cx-surface); border: 1px solid var(--cx-border); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column }
.cx-news-card:hover { transform: translateY(-3px); border-color: rgba(13,110,253,.3) }
.cx-news-img { width: 100%; height: 200px; object-fit: cover }
.cx-news-img-ph { height: 200px; background: linear-gradient(135deg, #111827, #1e2940); display: flex; align-items: center; justify-content: center; font-size: 2.5rem }
.cx-news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column }
.cx-news-cat { font-size: .7rem; font-weight: 700; color: var(--cx-secondary); text-transform: uppercase; margin-bottom: .4rem }
.cx-news-body h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .5rem; line-height: 1.4 }
.cx-news-body p { font-size: .875rem; color: var(--cx-muted); flex: 1; margin-bottom: .75rem }
.cx-news-meta { font-size: .72rem; color: #475569 }
.cx-read-more { font-size: .8rem; color: var(--cx-secondary); font-weight: 600; margin-top: .75rem }

/* ── SHOP ─────────────────────────────────────────────────────── */
.cx-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem }
.cx-product-card { background: var(--cx-surface); border: 1px solid var(--cx-border); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column }
.cx-product-card:hover { transform: translateY(-3px); border-color: rgba(13,110,253,.3) }
.cx-product-img { width: 100%; height: 220px; object-fit: cover }
.cx-product-img-ph { height: 220px; background: var(--cx-surface2); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--cx-muted) }
.cx-product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem }
.cx-product-cat { font-size: .7rem; font-weight: 600; color: var(--cx-secondary); text-transform: uppercase }
.cx-product-name { font-size: .95rem; font-weight: 700; color: #fff }
.cx-product-price { font-size: 1.1rem; font-weight: 800; color: var(--cx-secondary) }
.cx-product-footer { padding: .85rem 1rem; border-top: 1px solid var(--cx-border); display: flex; gap: .5rem }
.cx-btn-cart { flex: 1; padding: .55rem; border-radius: 8px; font-size: .82rem; font-weight: 700; background: var(--cx-primary); color: #fff; border: none; cursor: pointer; transition: opacity .15s }
.cx-btn-cart:hover { opacity: .88 }

/* ── FOOTER ──────────────────────────────── */
.cx-footer { background: #060606; border-top: 1px solid var(--cx-border); padding: 3.5rem 0 2rem }
.cx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem }
.cx-footer-brand { font-size: 1.15rem; font-weight: 800; margin-bottom: .75rem; background: var(--cx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent }
.cx-footer-desc { font-size: .875rem; color: #475569 }
.cx-footer h4 { color: #94a3b8; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .875rem }
.cx-footer-links { display: flex; flex-direction: column; gap: .45rem }
.cx-footer-links a { font-size: .875rem; color: #475569; transition: color .15s }
.cx-footer-links a:hover { color: var(--cx-secondary) }
.cx-footer-bottom { border-top: 1px solid var(--cx-border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: #334155 }
.cx-footer-bottom a { color: var(--cx-secondary) }

/* ── Cart Toast ── */
.cart-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; background: #1a1a1a; border: 1px solid var(--cx-border); border-left: 4px solid var(--cx-primary); color: var(--cx-text); padding: .85rem 1.25rem; border-radius: 12px; font-size: .875rem; font-weight: 500; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s }
.cart-toast.show { opacity: 1; transform: translateY(0) }

@media (max-width: 900px) {
  .cx-links { display: none }
  .cx-hamburger { display: flex; align-items: center }
  .cx-hero-inner { grid-template-columns: 1fr; gap: 2rem }
  .cx-hero-visual { display: none }
  .cx-footer-grid { grid-template-columns: 1fr }
}
@media (max-width: 600px) {
  .cx-hero { padding: 3rem 0 2.5rem }
  .cx-section { padding: 3rem 0 }
  .cx-news-grid, .cx-shop-grid { grid-template-columns: 1fr }
}
