:root {
  --color-primary: #375BFF;
  --color-primary-hover: #5B7CFF;
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-display);
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 400px;
  z-index: -1;
  background: var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* ==========================================================================
   Buttons — pill shape, brand font, on top of Exo's existing colour/icon
   custom-property system (unchanged: --btn-color-bg, --btn-icon, etc).
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 6px 20px rgb(from var(--btn-color-bg-hover) r g b/0.35);
}

.btn-tertiary {
  border: 1px solid rgb(from var(--color-text) r g b/0.14);
}

.quantity-field {
  border-radius: 999px;
}

.site-header-inner .info .image {
  border-radius: 5px;
}

.site-sale-banner {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Header / Navigation — compact floating glass navbar.
   Structure and JS hooks (toggle-navigation, open-basket, log-in,
   user-actions, site-navigation, menu, has-children, toggle, link-active)
   are all untouched — this only restyles appearance and desktop layout.
   ========================================================================== */
.site-header {
  view-transition-name: siteHeader;
}

@media (width > 960px) {
  body.is-navigation-horizontal .site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
  }

  body.is-navigation-horizontal .site-header-inner {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 18px;
    background: rgb(255 255 255/0.04);
    border: 1px solid rgb(255 255 255/0.08);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 8px 30px rgb(0 0 0/0.3);
  }

  body.is-navigation-horizontal .site-header-inner .toggle-navigation {
    display: none;
  }

  body.is-navigation-horizontal .site-header-inner .site-title {
    position: static;
    order: 1;
    margin-right: auto;
    inset: auto;
    width: auto;
    height: auto;
    line-height: 1;
    font-size: 20px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.3px;
    text-transform: none;
  }
  body.is-navigation-horizontal .site-header-inner .site-title img {
    display: block;
    height: 38px;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  body.is-navigation-horizontal .site-header-inner .log-in,
  body.is-navigation-horizontal .site-header-inner .user-actions {
    position: static;
    order: 3;
  }

  body.is-navigation-horizontal .site-header-inner .info {
    display: none;
  }

  body.is-navigation-horizontal .site-navigation.navigation-horizontal {
    order: 2;
    flex: 1;
  }
  body.is-navigation-horizontal .navigation-horizontal .menu {
    background: transparent;
    padding: 0;
    justify-content: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  body.is-navigation-horizontal .navigation-horizontal .menu > li > a {
    padding: 8px 12px;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: rgb(255 255 255/0.7);
  }
  body.is-navigation-horizontal .navigation-horizontal .menu > li.has-children > a {
    padding-right: 4px;
  }
  body.is-navigation-horizontal .navigation-horizontal a:hover,
  body.is-navigation-horizontal .navigation-horizontal a.link-active {
    color: var(--color-text);
  }
  body.is-navigation-horizontal .navigation-horizontal .has-children > ul {
    background: rgb(11 10 13/0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgb(255 255 255/0.08);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgb(0 0 0/0.5);
  }

  body.is-navigation-horizontal .site-sale-banner {
    margin-top: 14px;
    border-radius: 12px;
  }
}

@media (width <= 960px) {
  .site-header-inner {
    background: rgb(255 255 255/0.04);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-radius: 16px;
  }
  .site-header-inner .site-title {
    font-family: var(--font-display);
    font-weight: 800;
  }
  .site-navigation.drawer {
    background: rgb(11 10 13/0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .site-navigation .menu {
    font-family: var(--font-display);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* The hero is inserted as its own top-level row in the .site grid, ahead
   of site-home-categories/site-content — re-sequence grid-auto-rows so
   site-content still gets the 1fr track (keeps the footer pinned down). */
.site:has(.hero) {
  grid-auto-rows: auto auto 1fr auto;
}
.page-index.home-categories-enabled .site:has(.hero) {
  grid-auto-rows: auto auto auto 1fr auto;
}

.hero {
  position: relative;
  margin: 0 0 8px;
  height: 82vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--hero-bg-image, none) center center/cover no-repeat, #0B0A0D;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-character {
  position: absolute;
  bottom: 0;
  right: 2%;
  height: 62%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-shade-top {
  background: linear-gradient(to bottom, rgb(6 5 8/0.55) 0%, rgb(6 5 8/0) 22%);
}
.hero-shade-bottom {
  background: linear-gradient(to top, rgb(6 5 8/0.8) 0%, rgb(6 5 8/0) 40%);
}
.hero-shade-vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(4 3 6/0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 44px;
}

.hero-inner {
  width: 100%;
  max-width: 640px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary-hover);
  margin: 0 0 16px;
  opacity: 0;
  animation: hero-reveal 0.6s ease-out 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
  text-shadow: 0 4px 30px rgb(0 0 0/0.4);
  opacity: 0;
  animation: hero-reveal 0.7s cubic-bezier(0.16, 0.8, 0.3, 1) 0.25s forwards;
}

.hero-desc {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: rgb(255 255 255/0.65);
  max-width: 480px;
  margin: 0 0 28px;
  opacity: 0;
  animation: hero-reveal 0.7s ease-out 0.4s forwards;
}

.hero-cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: auto;
  line-height: 1.2;
  padding: 8px 26px 8px 8px !important;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-btn-reveal 0.6s cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}
.hero-cta-wrapper .btn-primary.hero-btn {
  animation-delay: 0.55s;
}
.hero-cta-wrapper .btn-secondary.hero-btn {
  background: rgb(255 255 255/0.05);
  border: 1px solid rgb(255 255 255/0.14);
  color: #fff;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  animation-delay: 0.65s;
}

.hero-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0/0.08);
}
.hero-cta-wrapper .btn-secondary.hero-btn .hero-btn-icon {
  background: rgb(255 255 255/0.12);
}
.hero-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes hero-reveal {
  to { opacity: 1; }
}
@keyframes hero-btn-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Homepage promo cards
   ========================================================================== */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 620px;
  margin-top: 34px;
}

.promo-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgb(255 255 255/0.035);
  border: 1px solid rgb(255 255 255/0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-btn-reveal 0.6s cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.promo-row .promo-card:nth-child(1) { animation-delay: 0.78s; }
.promo-row .promo-card:nth-child(2) { animation-delay: 0.86s; }

.promo-card::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -26px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(55 91 255/0.3) 0%, rgb(55 91 255/0) 70%);
  pointer-events: none;
}

.promo-card:hover {
  transform: translateY(-3px);
  border-color: rgb(255 255 255/0.16);
  background: rgb(255 255 255/0.06);
}

.promo-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(55 91 255/0.14);
  border: 1px solid rgb(55 91 255/0.3);
  color: var(--color-primary-hover);
}
.promo-icon svg {
  width: 20px;
  height: 20px;
}

.promo-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.promo-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.promo-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-primary-hover);
}

.promo-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.promo-desc {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: rgb(255 255 255/0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-cta-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgb(55 91 255/0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.promo-card:hover .promo-cta-icon {
  transform: translateX(3px);
}
.promo-cta-icon svg {
  width: 15px;
  height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-desc, .hero-btn, .promo-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (width <= 900px) {
  .hero {
    height: auto;
    min-height: 0;
    border-radius: 0 0 20px 20px;
    padding: 100px 0 60px;
  }
  .hero-character {
    position: relative;
    height: auto;
    max-height: 260px;
    margin: 20px auto 0;
    display: block;
  }
  .hero-content {
    position: relative;
    padding: 0 24px;
  }
  .hero-inner {
    max-width: 100%;
  }
  .promo-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .promo-title, .promo-desc {
    white-space: normal;
  }
}

/* ==========================================================================
   Misc component styling (inherited from the Exo base, tuned to match)
   ========================================================================== */
.site-home-categories .category {
  border-radius: 14px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: color 0.15s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
}

.category-description {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}

.store-text {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
  font-family: var(--font-display);
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}

.store-products-images .store-product {
  text-align: center;
}

.widget-title {
  text-align: center;
  font-family: var(--font-display);
}

.widget .store-product {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border-radius: 14px;
}

.store-product-full {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}

.store-product .quantity-field {
  border-radius: 999px;
  background: var(--color-brighter-bg);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

.widget {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
  }
}

.widget-gift-card .gift-card-input {
  border-radius: 999px;
}

.widget-top-donator .avatar {
  border-radius: 50%;
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 4px;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 4px;
}

.popup-content {
  border-radius: 14px;
}

.popup-close {
  border-radius: 0 14px 0 14px;
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: 12px;
}
.basket-item .quantity {
  border-radius: 999px;
}

.toast {
  border-radius: 10px;
}

.toast-close {
  border-radius: 4px;
}

.store-category-tiered {
  border-radius: 14px;
  background: var(--color-brighter-bg);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
  font-family: var(--font-display);
}

.store-product-tiered {
  border-radius: 14px;
  background: rgb(from var(--color-bg) r g b/0.5);
}

.media-slider .slider,
.media-slider .thumb {
  border-radius: 14px;
}
.media-slider .open-lightbox {
  border-radius: 4px;
}

.popup.popup-media-slider .thumb {
  border-radius: 14px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 14px;
}
