/* ============================================================
   HORIZON WEBSTORE — NUI rack for FiveM scripts
   Title: Evogria | Body: Quicksand | Accent: #ff914d | BG: #242424
   ============================================================ */

:root {
  --hz-accent: #ff914d;
  --hz-accent-light: #ffb070;
  --hz-accent-deep: #e07636;
  --hz-accent-rgba: rgba(255, 145, 77, 0.34);
  --hz-bg: #242424;
  --hz-ink: #1a1a1a;
  --hz-panel: linear-gradient(180deg, rgba(28, 28, 28, 0.98) 0%, rgba(16, 16, 16, 0.96) 100%);
  --hz-surface: rgba(255, 255, 255, 0.1);
  --hz-surface-soft: rgba(255, 255, 255, 0.06);
  --hz-line: rgba(255, 255, 255, 0.1);
  --hz-dot: rgba(0, 0, 0, 0.75);
  --hz-font: "Quicksand", sans-serif;
  --hz-display: "Evogria", "Oswald", Impact, sans-serif;
  --hz-cubic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --color-bg: #1c1c1c;
  --color-brighter-bg: #2a2a2a;
  --color-primary: var(--hz-accent);
  --color-primary-hover: var(--hz-accent-light);
  --color-primary-text: #fff;
  --color-primary-text-hover: #fff;
  --color-secondary: var(--hz-surface);
  --color-secondary-hover: var(--hz-accent-rgba);
  --color-secondary-text: #fff;
  --color-secondary-text-hover: #fff;
  --color-tertiary: transparent;
  --color-tertiary-hover: var(--hz-accent-rgba);
  --btn-size: 42px;
}

html {
  background: #0a0a0a;
}

html,
body {
  font-family: var(--hz-font);
  color: #fff;
}

body {
  background: transparent !important;
}

body::before {
  display: none !important;
  content: none !important;
}

.hz-video-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden;
  pointer-events: none !important;
  background: transparent !important;
  view-transition-name: siteBgImage;
}

.hz-video-bg video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.7;
  transform: none;
  filter: none;
}

.hz-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hz-video-bg video {
    display: none;
  }
}

.hz-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.28), transparent 52%);
}

.site {
  position: relative;
  z-index: 1;
  gap: 18px;
  background: transparent;
}

.site::after {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  border-radius: 14px;
  outline: 2px dotted var(--hz-dot);
  outline-offset: 6px;
}

/* ---------- NUI primitives ---------- */
.hz-panel,
.store-text,
.category-description,
.no-products,
.store-product-full,
.widget,
.store-category-tiered,
.store-quote {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.94) 0%, rgba(12, 12, 12, 0.96) 100%);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 10px;
  outline: 2px dotted var(--hz-dot);
  outline-offset: 0.28vh;
  box-shadow:
    0 1.2vh 3vh rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.popup-content {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.97) 0%, rgba(12, 12, 12, 0.98) 100%);
}

.hz-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 0.9rem 4.2rem;
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.32vh;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: visible;
  text-align: center;
}

.hz-titlebar-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.hz-kicker {
  display: none !important;
}

.hz-titlebar h1,
.hz-titlebar h2,
.hz-titlebar .site-title,
.hz-titlebar .site-title a,
.widget-title,
.section-title,
.basket-title,
.store-form h2,
.store-product-options .product-title,
.store-category-tiered-header h2,
.store-product-full .product-title {
  font-family: var(--hz-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

.hz-titlebar-icon {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%) rotate(-25deg);
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  color: #fff;
  line-height: 1;
}

.hz-titlebar-icon .iconify {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.hz-chip,
.hz-mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.55rem;
  border-radius: 5px;
  background: var(--hz-surface);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.store-product .add,
.store-product .subscribe,
.store-form button,
.gift-card-input + .check {
  font-family: var(--hz-font);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 5px;
  border: none;
  box-shadow: none;
  transition: background 0.25s var(--hz-cubic), color 0.25s var(--hz-cubic), transform 0.2s var(--hz-cubic);
}

.btn-primary,
.store-product .add.btn-primary,
.store-product .subscribe,
.store-form .btn-primary,
.basket .checkout {
  --btn-color-text: #fff;
  --btn-color-text-hover: #fff;
  --btn-color-bg: var(--color-primary);
  --btn-color-bg-hover: var(--color-primary-hover);
  background: var(--color-primary);
  color: #fff;
  border: 3px solid #00000040;
}

.btn-primary:hover,
.btn-primary:focus,
.store-product .add.btn-primary:hover,
.basket .checkout:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary,
.store-product .add.btn-secondary,
.btn-secondary.wide {
  --btn-color-text: #fff;
  --btn-color-bg: var(--hz-surface);
  --btn-color-bg-hover: var(--hz-accent-rgba);
  background: var(--hz-surface);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--hz-accent-rgba);
  color: #fff;
}

.btn-tertiary {
  --btn-color-text: #fff;
  --btn-color-bg: var(--hz-surface);
  --btn-color-bg-hover: var(--hz-accent-rgba);
  background: var(--hz-surface);
}

.quantity-field {
  background: var(--hz-surface-soft);
  border: 1px solid var(--hz-line);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-field .open-basket:hover,
.quantity-field .open-basket:focus {
  color: var(--color-primary);
}

/* ---------- Header as command rack ---------- */
.site-header {
  padding-top: 18px;
}

.site-header-inner {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px !important;
  position: relative;
}

.site-header-inner .actions,
.site-header-inner .log-in,
.site-header-inner .user-actions,
.site-header-inner .site-title,
.site-header-inner .info {
  position: static !important;
  inset: auto !important;
  width: auto;
  max-width: none;
  height: auto;
  padding: 0;
  margin: 0;
  text-align: left;
}

.site-header-inner .site-title {
  line-height: 1.1 !important;
  font-size: clamp(1.7rem, 3.6vw, 2.55rem) !important;
  font-weight: 400 !important;
  text-align: center !important;
  margin: 0;
}

.site-header-inner .site-title img {
  margin: 0 auto !important;
  max-height: 58px !important;
  object-fit: contain;
}

.hz-titlebar .site-title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.hz-titlebar h2,
.store-products .hz-titlebar h2,
.hz-hero .hz-titlebar h2,
.hz-login .hz-titlebar,
.login-popup-content .hz-titlebar {
  margin: 0;
  width: 100%;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.hz-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hz-command .actions {
  display: flex;
  gap: 8px;
}

.hz-command .user-actions,
.hz-command .log-in {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hz-command .log-in,
.hz-command .open-basket {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  line-height: 1;
  white-space: nowrap;
}

.hz-command .user-name {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 42px !important;
  color: #fff !important;
  white-space: nowrap;
  overflow: visible !important;
  max-width: none !important;
}

@media (width <= 960px) {
  .site-header-inner .user-name {
    display: inline-flex !important;
    font-size: 13px !important;
    color: #fff !important;
  }
}

.hz-command .open-basket.btn-glyph-text {
  font-size: 13px !important;
  color: #fff !important;
}

.hz-command .open-basket.btn-glyph-text::before {
  margin-right: 8px;
}

.hz-command .log-in + .user-actions {
  margin-left: 0;
}

.site-header-inner .info {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 12px !important;
  background: var(--hz-surface);
  border-radius: 8px;
}

.site-header-inner .info .image {
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  flex: none;
}

.site-header-inner .info.discord {
  text-align: left !important;
}

.site-header-inner .info .title {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.site-header-inner .info .action {
  font-size: 0.7rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-primary) !important;
}

.site-header-inner .toggle-navigation {
  --btn-icon: url("https://template-assets.tebex.io/images/burger.svg");
}

.site-header-inner .open-basket {
  --btn-icon: url("https://template-assets.tebex.io/images/checkout.svg");
}

.site-header-inner .user-name {
  --btn-icon: url("https://template-assets.tebex.io/images/user.svg");
}

.site-sale-banner {
  margin: 8px auto 0;
  padding: 0.55rem 1rem;
  font-family: var(--hz-display);
  font-style: italic;
  text-transform: uppercase;
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.28vh;
  border-radius: 12px;
}

@media (width > 960px) {
  .site-header-inner .toggle-navigation {
    display: none;
  }
}

@media (width <= 960px) {
  .site-header-inner {
    padding: 10px !important;
  }

  .hz-command .user-actions,
  .site-header-inner .log-in {
    margin-left: auto;
  }

  .site-header-inner .user-name {
    display: none;
  }
}

/* ---------- Navigation as garage tabs ---------- */
@media (width > 960px) {
  .navigation-horizontal > ul,
  .navigation-horizontal .menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: auto;
    scrollbar-width: none;
  }

  .navigation-horizontal .menu > li {
    flex: 1 1 0;
    min-width: 0;
  }

  .navigation-horizontal .menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
    background: var(--hz-surface);
    border-radius: 5px;
    color: #fff;
    max-width: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .navigation-horizontal a:hover {
    background: var(--hz-accent-rgba);
    color: #fff;
  }

  .navigation-horizontal a.link-active,
  .navigation-horizontal li.active > a {
    background: #fff !important;
    color: var(--color-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .navigation-horizontal .has-children > ul {
    background: #1c1c1c;
    outline: 2px dotted var(--hz-dot);
    border-radius: 8px;
    padding: 6px;
  }

  .navigation-horizontal li li a:hover,
  .navigation-horizontal li li a.link-active {
    background: #fff !important;
    color: var(--color-primary) !important;
    border-radius: 5px;
  }
}

@media (width <= 960px) {
  .site-navigation .menu {
    background: var(--hz-panel) !important;
    outline: 2px dotted var(--hz-dot);
  }

  .site-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
}

.navigation-vertical.widget {
  padding: 10px;
}

.navigation-vertical a {
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.navigation-vertical a.link-active {
  background: #fff;
  color: var(--color-primary) !important;
}

/* ---------- Home / categories ---------- */
.hz-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
}

.hz-hero .store-text {
  background: transparent;
  outline: none;
  box-shadow: none;
  padding: 8px 12px 4px;
  text-align: center;
}

.hz-hero .store-text h1,
.hz-hero .store-text h2,
.hz-hero .store-text h3,
.hz-hero .store-text h4,
.hz-hero .store-text p {
  text-align: center;
}

.site-home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.site-home-categories .category {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  gap: 10px !important;
  min-height: 92px;
  padding: 14px 12px;
  background: var(--hz-surface);
  border-radius: 8px;
  font-family: var(--hz-font);
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center !important;
  transition: background 0.25s var(--hz-cubic);
}

.site-home-categories .category:hover {
  background: var(--hz-accent-rgba);
  color: #fff;
}

.site-home-categories .category .image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.store-text,
.category-description,
.no-products {
  padding: 16px;
}

.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4 {
  font-family: var(--hz-display);
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
}

.category-description {
  text-align: center;
}

.store-products .hz-titlebar {
  margin-bottom: 16px;
}

/* ---------- Product rack ---------- */
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.store-products-list {
  gap: 8px;
}

.store-product:not(.store-product-full) {
  gap: 10px;
  padding: 10px;
  background: var(--hz-surface);
  border-radius: 8px;
  outline: none;
  box-shadow: none;
  transition: background 0.25s var(--hz-cubic), transform 0.25s var(--hz-cubic);
}

.store-product:not(.store-product-full):hover {
  background: var(--hz-accent-rgba);
}

.hz-mod {
  display: flex;
  flex-direction: column;
}

.hz-mod-shot {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.hz-mod-shot .image,
.hz-mod-shot .image-default {
  width: 100%;
  height: 150px;
  max-width: none !important;
  object-fit: cover;
  margin: 0 !important;
}

.hz-mod-shot .image-default {
  aspect-ratio: auto;
}

.hz-mod-peek {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--hz-cubic), transform 0.25s var(--hz-cubic);
}

.hz-mod:hover .hz-mod-peek {
  opacity: 1;
  transform: none;
}

.hz-mod-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.store-product .product-title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.store-product .price strong {
  font-family: var(--hz-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.store-products-list .hz-mod {
  flex-direction: row;
  align-items: center;
}

.store-products-list .hz-mod-shot {
  width: 84px !important;
  flex: none;
}

.store-products-list .hz-mod-shot .image,
.store-products-list .hz-mod-shot .image-default {
  width: 84px;
  height: 64px;
}

.store-products-list .hz-mod-meta {
  flex: 1;
}

.store-product-full {
  padding: 12px;
  gap: 12px;
}

.store-product-full .product-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.32vh;
  border-radius: 12px;
  padding: 0.9rem 3.2rem;
  text-align: center;
}

.store-product-full .image,
.store-product-full .media-slider {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.store-product-full .actions {
  background: rgba(20, 20, 20, 0.82) !important;
  border-radius: 0 0 10px 10px;
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -12px;
}

.store-product .descr,
.text-content {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Widgets ---------- */
.widget {
  padding: 10px;
}

.widget-title {
  margin: 0 0 12px;
  padding: 0.8rem 1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.28vh;
  border-radius: 12px;
  text-align: center;
}

.widget-recent .purchase,
.admin-location {
  padding: 8px;
  background: var(--hz-surface);
  border-radius: 6px;
}

.widget-gift-card .gift-card-input,
.store-form input,
.store-form select,
.store-form textarea {
  background: var(--hz-surface) !important;
  color: #fff !important;
  border-radius: 5px;
  border: none;
  font-family: var(--hz-font);
  font-weight: 600;
}

.widget-community-goal .progress,
.widget-goal .progress {
  height: 10px;
  background: var(--hz-surface);
  border-radius: 999px;
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  background: var(--color-primary);
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--hz-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-success { background: #22c55e; color: #fff; }
.badge-danger { background: #ef4444; color: #fff; }

/* ---------- Basket / popups ---------- */
.popup {
  background: rgba(0, 0, 0, 0.55);
}

.popup-content {
  padding: 12px;
}

.popup-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hz-surface);
  opacity: 1;
}

.basket-popup .popup-scroll-cont {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.basket-popup .popup-content,
.basket-popup-content {
  width: min(420px, 100%) !important;
  max-width: 420px !important;
  height: 100dvh !important;
  padding: 16px 14px 20px !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%) !important;
  outline: 2px dotted var(--hz-dot);
  outline-offset: -10px;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
}

.basket-popup-content .popup-close {
  top: 14px;
  right: 14px;
  z-index: 5;
}

.basket .basket-header {
  padding: 8px 8px 4px 0;
  background: transparent;
}

.basket .basket-title {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.2rem;
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.28vh;
  border-radius: 12px;
  justify-content: center;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  text-align: center;
}

.basket .basket-title::before {
  display: none;
}

.basket .basket-second-header {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--hz-surface);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}

.basket .basket-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.basket .basket-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  margin: 16px 0;
  padding: 28px 16px;
  background: var(--hz-surface);
  border-radius: 10px;
  font-family: var(--hz-display);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
}

.basket .basket-item {
  background: var(--hz-surface);
  border-radius: 8px;
  padding: 12px;
}

.basket .basket-item .title {
  font-family: var(--hz-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1rem;
}

.basket .basket-checkout {
  padding: 12px 0 8px;
}

.basket .checkout {
  min-height: 48px;
  width: 100%;
  text-align: center;
}

.toast {
  background: #1c1c1c;
  outline: 2px dotted var(--hz-dot);
  border-radius: 10px;
}

.toast-success { background: #166534; }
.toast-error { background: #7f1d1d; }
.toast-warning { background: #854d0e; }

/* ---------- Forms ---------- */
.store-form input:focus,
.store-form select:focus,
.gift-card-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 145, 77, 0.55);
}

select option {
  background: #1a1a1a;
}

.site-footer {
  background: transparent;
}

.site-footer-inner {
  padding-top: 8px;
  padding-bottom: 28px;
}

.site-footer-inner .copyright {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.store-category-tiered .store-product-tiered {
  background: var(--hz-surface);
  outline: none;
}

@media (width <= 700px) {
  .site::after {
    inset: 6px;
  }

  .store-products-list .hz-mod {
    flex-direction: column;
    align-items: stretch;
  }

  .store-products-list .hz-mod-shot,
  .store-products-list .hz-mod-shot .image,
  .store-products-list .hz-mod-shot .image-default {
    width: 100% !important;
    height: 140px;
  }
}

.site-header-inner .site-navigation {
  width: 100%;
}

.site-content .hz-hero {
  min-width: 0;
}

.widget-featured .hz-mod {
  background: transparent;
}

.widget-featured .hz-mod:hover {
  background: var(--hz-accent-rgba);
}

.widget-featured .hz-mod-shot .image,
.widget-featured .hz-mod-shot .image-default {
  height: 118px;
}

.store-form .btn-primary,
.field .btn-primary,
.hz-login .btn-primary,
.login-popup-content .btn-primary {
  width: 100%;
  max-width: none;
  text-align: center;
}

.hz-login,
.login-popup-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.hz-login {
  max-width: 460px;
  margin: 32px auto;
  padding: 16px;
  background: var(--hz-panel);
  border-radius: 10px;
  outline: 2px dotted var(--hz-dot);
  outline-offset: 0.28vh;
  box-shadow:
    0 1.2vh 3vh rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-popup .popup-content,
.login-popup-content {
  max-width: 460px;
  padding: 52px 20px 24px !important;
  background: var(--hz-panel);
}

.login-popup-content.store-form h1,
.login-popup-content.store-form h2,
.login-popup-content.store-form p,
.login-popup-content.store-form .field,
.hz-login.store-form h2,
.hz-login.store-form p,
.hz-login.store-form .field {
  margin: 0 !important;
}

.login-popup-content .popup-close {
  top: 12px;
  right: 12px;
}

.hz-login .hz-titlebar,
.login-popup-content .hz-titlebar,
.login-popup-content h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  min-height: 74px;
  padding: 1rem 1.2rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-align: center;
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.28vh;
  border-radius: 12px;
}

.hz-login-actions,
.login-popup-content .field,
.hz-login .field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
}

.hz-login-actions .btn-primary,
.login-popup-content .field .btn-primary,
.login-popup-content a.btn-primary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 52px;
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

.login-popup-content input[type="text"] {
  width: 100%;
  min-height: 48px;
}

.store-product-options .product-title {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--color-primary);
  border: 4px solid #00000040;
  outline: 2px solid #00000038;
  outline-offset: 0.28vh;
  border-radius: 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  text-align: center;
}

.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}

.alert-danger { background: rgba(239, 68, 68, 0.2); color: #fecaca; }
.alert-warning { background: rgba(245, 158, 11, 0.2); color: #fde68a; }

