:root {
  --ev-blue: #2f6df6;
  --ev-blue-soft: #7ea7ff;
  --ev-ink: #07101f;
  --ev-ink-soft: #122443;
  --ev-white: #ffffff;
  --ev-mist: #dce7ff;
  --ev-border: rgba(255, 255, 255, 0.12);
  --ev-card: rgba(255, 255, 255, 0.04);
  --ev-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(47, 109, 246, 0.2), transparent 30%),
    linear-gradient(180deg, #091222 0%, #07101f 100%);
  color: var(--ev-white);
}

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

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

.ev-main {
  min-height: 100vh;
}

.ev-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 31, 0.78);
  border-bottom: 1px solid var(--ev-border);
}

.ev-header__notice {
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--ev-border);
}

.ev-header__inner,
.ev-footer__inner,
.ev-hero,
.ev-section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.ev-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.ev-mobile-menu {
  display: none;
  position: relative;
}

.ev-mobile-menu__toggle {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
  border-radius: 16px;
  border: 1px solid var(--ev-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  list-style: none;
}

.ev-mobile-menu__toggle::-webkit-details-marker {
  display: none;
}

.ev-mobile-menu__toggle span {
  width: 20px;
  height: 2px;
  background: var(--ev-white);
  border-radius: 999px;
}

.ev-mobile-menu__panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  width: min(340px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--ev-border);
  background: rgba(7, 16, 31, 0.98);
  box-shadow: var(--ev-shadow);
}

.ev-mobile-menu__nav {
  display: grid;
  gap: 0.55rem;
}

.ev-mobile-menu__nav a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.ev-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ev-brand img {
  width: 52px;
  height: 52px;
}

.ev-nav ul,
.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ev-header__icon {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ev-border);
  background: rgba(255, 255, 255, 0.04);
}

.ev-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 3rem;
}

.ev-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ev-blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

.ev-hero h1,
.ev-section__heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.ev-lead {
  max-width: 48rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 1.4rem 0 0;
}

.ev-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ev-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(126, 167, 255, 0.28);
  background: linear-gradient(135deg, var(--ev-blue), #8ab2ff);
  color: var(--ev-white);
  box-shadow: var(--ev-shadow);
  font-weight: 700;
}

.ev-button--ghost {
  background: transparent;
  box-shadow: none;
}

.ev-hero__visual {
  justify-self: end;
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ev-border);
}

.ev-section {
  padding: 2rem 0 3rem;
}

.ev-section__heading {
  margin-bottom: 1.5rem;
}

.ev-section__heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.ev-trust-grid,
.ev-promo-grid,
.ev-category-grid,
.ev-product-grid {
  display: grid;
  gap: 1rem;
}

.ev-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ev-promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ev-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ev-trust-card,
.ev-promo-card,
.ev-category-card,
.ev-testimonial,
.ev-content article,
.ev-post {
  padding: 1.5rem;
  background: var(--ev-card);
  border: 1px solid var(--ev-border);
  border-radius: 24px;
}

.ev-category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(47, 109, 246, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.ev-category-card__label {
  font-size: 1.35rem;
  font-weight: 700;
}

.ev-category-card__meta {
  color: rgba(255, 255, 255, 0.72);
}

.ev-product-grid,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.ev-product-card {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--ev-border);
}

.ev-product-card__image {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.ev-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  background: radial-gradient(circle at center, rgba(126, 167, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.ev-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
}

.ev-product-card__category {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ev-blue-soft);
  line-height: 1.45;
}

.ev-product-card__category a {
  color: inherit;
}

.ev-product-card h2,
.woocommerce ul.products li.product h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-product-card__price,
.woocommerce ul.products li.product .price {
  margin: 0;
  font-weight: 700;
  color: var(--ev-white);
}

.ev-stock {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.ev-stock--in {
  background: rgba(77, 195, 111, 0.14);
  color: #99f2ae;
}

.ev-stock--out {
  background: rgba(240, 77, 77, 0.14);
  color: #ffaaaa;
}

.ev-product-card__actions,
.woocommerce ul.products li.product .button {
  margin-top: auto;
}

.ev-testimonial blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.4;
}

.ev-footer {
  border-top: 1px solid var(--ev-border);
  background: rgba(0, 0, 0, 0.22);
}

.ev-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

.ev-footer__credit {
  white-space: nowrap;
  color: var(--ev-blue-soft);
}

.ev-messenger-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  min-height: 54px;
  padding: 0.95rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ev-blue), #8ab2ff);
  color: var(--ev-white);
  box-shadow: var(--ev-shadow);
  font-weight: 700;
  cursor: pointer;
}

.ev-social-login {
  margin-top: 1rem;
}

.ev-social-login__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ev-social-login__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--ev-border);
  background: rgba(255, 255, 255, 0.04);
}

.ev-social-login__button--google {
  border-color: rgba(126, 167, 255, 0.35);
}

.ev-social-login__button--facebook {
  border-color: rgba(47, 109, 246, 0.45);
}

.ev-social-login__button--apple {
  border-color: rgba(255, 255, 255, 0.2);
}

.ev-shop-archive .woocommerce-notices-wrapper,
.ev-single-product .woocommerce-notices-wrapper {
  margin-bottom: 1rem;
}

.woocommerce .quantity .qty {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--ev-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ev-white);
}

.woocommerce div.product form.cart .button {
  min-height: 52px;
}

@media (max-width: 1024px) {
  .ev-hero,
  .ev-trust-grid,
  .ev-promo-grid,
  .ev-category-grid,
  .ev-footer__inner,
  .ev-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ev-hero {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .ev-header__inner {
    display: grid;
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
  }

  .ev-nav--desktop {
    display: none;
  }

  .ev-mobile-menu {
    display: block;
  }

  .ev-header__actions {
    gap: 0.4rem;
  }

  .ev-header__icon {
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 0.7rem;
    font-size: 0;
    border-radius: 14px;
  }

  .ev-header__icon::before {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .ev-header__icon--shop::before {
    content: "Shop";
  }

  .ev-header__icon--cart::before {
    content: "Cart";
  }

  .ev-header__icon--account::before {
    content: "Acct";
  }

  .ev-brand {
    justify-self: center;
    gap: 0;
  }

  .ev-brand span {
    display: none;
  }

  .ev-brand img {
    width: 60px;
    height: 60px;
  }

  .ev-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .ev-trust-grid,
  .ev-promo-grid,
  .ev-category-grid,
  .ev-footer__inner {
    grid-template-columns: 1fr;
  }

  .ev-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .woocommerce ul.products li.product,
  .ev-product-card {
    padding: 0.8rem;
    border-radius: 18px;
  }

  .ev-product-card h2,
  .woocommerce ul.products li.product h2 {
    font-size: 0.92rem;
    min-height: 0;
  }

  .ev-product-card__category {
    font-size: 0.72rem;
  }

  .woocommerce ul.products li.product .button,
  .ev-button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    min-height: 44px;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }
}
