/*
Theme Name: NEXDORO
Theme URI: https://example.invalid/nexdoro
Author: NEXDORO
Description: Brza, pristupačna WooCommerce block tema za NEXDORO.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: nexdoro
*/

:root {
  --nex-cream: #f7f7f2;
  --nex-white: #fff;
  --nex-ink: #151817;
  --nex-green: #123d2b;
  --nex-lime: #b7e44a;
  --nex-mint: #eaf5ec;
  --nex-muted: #6b716e;
  --nex-line: #e4e9e5;
  --nex-radius: 22px;
  --nex-shadow: 0 20px 60px rgba(18, 61, 43, .10);
}

html { scroll-behavior: smooth; }
body { background: var(--nex-cream); color: var(--nex-ink); }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--nex-lime); outline-offset: 3px; }
.wp-site-blocks { overflow: clip; }
.nex-skip { position: fixed; left: 1rem; top: -5rem; z-index: 9999; }
.nex-skip:focus { top: 1rem; }
.nex-announcement { font-size: .78rem; letter-spacing: .02em; }
.nex-demo-pill { border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: .18rem .5rem; }
.nex-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--nex-line); backdrop-filter: blur(18px); transition: padding .22s ease; }
.nex-header.is-compact { box-shadow: 0 8px 30px rgba(21,24,23,.06); }
.nex-header .wp-block-navigation-item__content { text-decoration: none; }
.nex-header .wp-block-navigation-item__content:hover { color: var(--nex-green); }
.nex-brand-lockup { gap: .7rem !important; flex: 0 0 auto; }
.nex-brand-lockup .custom-logo { display: block; width: min(225px, 32vw); height: auto; }
.nex-icon-link { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; border-radius: 99px; }
.nex-hero { border-radius: 0 0 42px 42px; position: relative; isolation: isolate; overflow: hidden; }
.nex-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(18,61,43,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(18,61,43,.055) 1px,transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg,#000,transparent 76%); }
.nex-hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -170px; top: -360px; border: 90px solid rgba(183,228,74,.18); border-radius: 50%; }
.nex-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nex-green); }
.nex-hero h1 { max-width: 780px; text-wrap: balance; }
.nex-hero-visual { min-height: 460px; border: 1px solid rgba(18,61,43,.12); border-radius: 32px; position: relative; overflow: hidden; background: radial-gradient(circle at 60% 30%, #fff 0 17%, transparent 18%), linear-gradient(145deg,#fff,#d8eddc); box-shadow: 0 30px 90px rgba(18,61,43,.14); transform: rotate(1.25deg); }
.nex-hero-visual::after { content: "CURATED / EU READY / 01"; position: absolute; right: -54px; top: 215px; transform: rotate(90deg); letter-spacing: .16em; font-size: .6rem; font-weight: 900; color: var(--nex-green); }
.nex-orbit { position: absolute; border: 1px solid rgba(18,61,43,.18); border-radius: 50%; }
.nex-orbit.one { width: 340px; height: 340px; inset: 60px auto auto 70px; }
.nex-orbit.two { width: 220px; height: 220px; inset: 120px auto auto 130px; }
.nex-mark-card { position: absolute; inset: 90px 75px auto auto; width: 190px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; color: var(--nex-white); background: var(--nex-green); box-shadow: var(--nex-shadow); font-size: 5rem; font-weight: 800; transform: rotate(5deg); }
.nex-float-label { position: absolute; padding: .8rem 1rem; border-radius: 14px; background: #fff; box-shadow: var(--nex-shadow); font-weight: 700; }
.nex-float-label.one { left: 38px; bottom: 50px; }
.nex-float-label.two { right: 30px; bottom: 115px; }
.nex-trust { border-bottom: 1px solid var(--nex-line); }
.nex-trust .wp-block-column { min-width: 150px; }
.nex-dot { display: inline-block; width: .62rem; height: .62rem; margin-right: .45rem; border-radius: 50%; background: var(--nex-lime); box-shadow: 0 0 0 5px rgba(183,228,74,.22); }
.nex-card, .wc-block-product { border: 1px solid var(--nex-line); border-radius: var(--nex-radius); background: var(--nex-white); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.nex-card:hover, .wc-block-product:hover { transform: translateY(-8px); box-shadow: 0 28px 80px rgba(18,61,43,.14); border-color: var(--nex-lime); }
.nex-card-pad { padding: clamp(1.2rem, 3vw, 2rem); }
.nex-product-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; background: linear-gradient(145deg,var(--nex-mint),#dbe6df); color: var(--nex-green); }
.nex-product-placeholder::before { content:""; position:absolute; width:55%; aspect-ratio:1; border:1px solid rgba(18,61,43,.16); border-radius:50%; }
.nex-product-placeholder::after { content: "Demo product image"; position: absolute; bottom: 1rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nex-muted); }
.nex-product-shape { width: 46%; aspect-ratio: 1; border-radius: 28% 50% 38% 42%; background: var(--nex-green); box-shadow: 30px 24px 0 var(--nex-lime); transform: rotate(-8deg); }
.nex-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.nex-category { min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.nex-category.auto { background: linear-gradient(145deg,#dcece0,#fff); }
.nex-category.home { background: linear-gradient(145deg,#f0eee6,#fff); }
.nex-category.travel { background: linear-gradient(145deg,#dce8e5,#fff); }
.nex-category.pet { background: linear-gradient(145deg,#e9edda,#fff); }
.nex-editorial { border-radius: 32px; position: relative; overflow: hidden; box-shadow: 0 35px 100px rgba(18,61,43,.18); }
.nex-editorial::after { content:""; position:absolute; width:260px; height:260px; border:55px solid var(--nex-lime); border-radius:50%; right:-80px; top:-110px; opacity:.9; }
.nex-editorial::before { content:"N"; position:absolute; right:32px; bottom:-120px; font-size:20rem; line-height:1; font-weight:900; color:rgba(255,255,255,.04); }
.nex-faq details { border-top: 1px solid var(--nex-line); padding: 1.1rem 0; }
.nex-faq summary { cursor: pointer; font-weight: 750; min-height: 44px; }
.nex-legal-notice { border-left: 4px solid #b7791f; background: #fff8e6; padding: 1rem 1.2rem; }
.nex-footer { margin-top: 5rem; }
.nex-footer .wp-block-site-logo { display: inline-flex; background: #f7f7f2; border-radius: 16px; padding: 8px 12px; }
.nex-footer .custom-logo { display: block; width: 170px; height: auto; }
.nex-footer a { color: inherit; }
.nex-sticky-cart { display: none; }
.nex-reveal { opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; }
.nex-reveal.is-visible { opacity: 1; transform: none; }
.woocommerce div.product form.cart .button, .wc-block-components-button { min-height: 50px; border-radius: 999px !important; }
.woocommerce div.product div.images img { border-radius: var(--nex-radius); }
.wc-block-cart, .wc-block-checkout { margin-top: 2rem; }

@media (max-width: 900px) {
  .nex-hero .wp-block-columns { flex-direction: column; }
  .nex-hero-visual { min-height: 360px; }
  .nex-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .nex-brand-lockup .custom-logo { width: 150px; }
  .nex-announcement { font-size: .68rem; }
  .nex-hero { border-radius: 0 0 28px 28px; }
  .nex-hero-visual { min-height: 300px; }
  .nex-mark-card { width: 135px; right: 34px; top: 62px; font-size: 3.4rem; }
  .nex-orbit.one { width: 250px; height: 250px; left: 20px; top: 34px; }
  .nex-orbit.two { width: 160px; height: 160px; left: 68px; top: 80px; }
  .nex-float-label { font-size: .78rem; padding: .6rem .75rem; }
  .nex-float-label.two { right: 12px; bottom: 78px; }
  .nex-grid { gap: .7rem; }
  .nex-card-pad { padding: .9rem; }
  .nex-sticky-cart { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: .8rem; align-items: center; justify-content: space-between; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--nex-line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .nex-reveal { opacity: 1; transform: none; }
}
