/* ==========================================================================
   SHARED.CSS — Core structural + design-token stylesheet
   Theme: Military / Post-Apocalyptic / Survival — premium dark card layout
   All Tebex functional selectors, JS state classes and popup/drawer
   mechanics are preserved exactly. Design is driven entirely by the
   :root custom properties below (overridable per-theme via generic.css
   and per-store via the config() bindings in head.twig).
   ========================================================================== */

@media (width > 960px) {
  :root {
    --content-padding: calc(var(--widget-padding) * 2);
  }
}
@media (max-width: 900px) {
  :root {
    --tebex-footer-height: 70px;
  }
}
@media (max-width: 600px) {
  :root {
    --tebex-footer-height: 80px;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: baseline;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

input[type=submit],
button {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

textarea { resize: none; }
symbol, use, svg { overflow: visible; }
svg, img { display: block; }
li { display: block; }
button { display: block; }
a { color: inherit; text-decoration: none; }
:root *[hidden] { display: none; }
:focus { outline: 0; }
::placeholder { color: var(--color-text-muted); opacity: 1; }

:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@view-transition { navigation: auto; }
::view-transition-group(root) {
  animation-duration: var(--page-transition-duration);
  animation-timing-function: ease;
}

@keyframes pageMoveOut {
  0% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes pageMoveIn {
  0%, 50% { scale: 0.98; opacity: 0; }
  100% { scale: 1; opacity: 1; }
}
::view-transition-old(siteContent) {
  animation: var(--page-transition-duration) ease both pageMoveOut;
  transform-origin: center top;
}
::view-transition-new(siteContent) {
  animation: var(--page-transition-duration) ease both pageMoveIn;
  transform-origin: center top;
}
::view-transition-group(siteContent) { z-index: 2; }
::view-transition-group(siteHeaderTop),
::view-transition-group(siteHeader),
::view-transition-group(siteNavigation),
::view-transition-group(siteBgImage),
::view-transition-group(siteFooter) {
  animation-duration: var(--page-transition-duration);
  animation-timing-function: ease;
  z-index: 3;
}
::view-transition-group(siteBgImage) { z-index: 1; }

html, body { min-height: 100vh; }
html {
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) var(--color-bg);
  scrollbar-gutter: stable;
}
html.no-scroll {
  overflow: hidden;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  max-width: 100%;
  width: 100%;
  line-height: normal;
  color: var(--color-text);
  background: var(--color-bg);
  accent-color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
body::before {
  view-transition-name: siteBgImage;
}

::selection {
  color: var(--color-primary-text);
  background-color: var(--color-primary);
  text-shadow: none;
}

input, textarea, select, [contenteditable="true"] {
  cursor: auto;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

a, button, label, summary, select,
[type="button"], [type="submit"], [type="reset"], [role="button"], [onclick],
.btn-primary, .btn-secondary, .btn-tertiary, .btn-icon, .btn-glyph, .btn-glyph-text,
.toggle, .toggle-navigation, .close-navigation, .adjust,
.popup-close, .toast-close, .product-details-link, .carousel-nav a {
  cursor: pointer;
}

select option {
  color: var(--color-text);
  background-color: var(--color-surface);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Text content
   ========================================================================== */

.text-content {
  line-height: 1.6;
  word-wrap: break-word;
  word-break: break-word;
  color: var(--color-text-secondary) !important;
}
.text-content h1:not(:last-child),
.text-content h2:not(:last-child),
.text-content h3:not(:last-child),
.text-content h4:not(:last-child),
.text-content h5:not(:last-child),
.text-content h6:not(:last-child) {
  margin-bottom: 20px;
  color: var(--color-text-darker);
}

.text-content h2:not(:last-child){ color: var(--color-primary) !important; }

.text-content p:not(:last-child) { margin-bottom: 14px; }
.text-content h1 { font-size: 32px; }
.text-content h2 { font-size: 26px; }
.text-content h3 { font-size: 20px; color: var(--color-text) !important; }
.text-content h4 { font-size: 18px; }
.text-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.text-content ol, .text-content ul { margin-left: 1.2em; }
.text-content ol:not(:last-child), .text-content ul:not(:last-child) { margin-bottom: 14px; }
.text-content li { display: list-item; }
.text-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Rich description components (for detailed package write-ups) ---- */
.text-content h2, .text-content h3 {
  position: relative;
  padding-left: 14px;
}
.text-content h2::before, .text-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.text-content .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (width > 700px) {
  .text-content .feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.text-content .feature-card {
  padding: 18px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.text-content .feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  background-color: rgb(from var(--color-primary) r g b/0.14);
  border-radius: var(--radius-full);
  font-size: 16px;
}
.text-content .feature-card h4 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-darker);
}
.text-content .feature-card p { font-size: 13px; color: var(--color-text-secondary); margin: 0; }

.text-content .check-list,
.text-content .cross-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-content .check-list li,
.text-content .cross-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.text-content .check-list li::before,
.text-content .cross-list li::before {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
}
.text-content .check-list li::before {
  content: "\2713";
  background-color: rgb(from var(--color-primary) r g b/0.14);
  color: var(--color-primary);
}
.text-content .cross-list li::before {
  content: "\2715";
  background-color: rgb(from var(--color-removed) r g b/0.14);
  color: var(--color-removed);
}

.text-content .callout {
  margin: 20px 0;
  padding: 16px;
  background-color: rgb(from var(--color-removed) r g b/0.1);
  border: 1px solid rgb(from var(--color-removed) r g b/0.4);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text-secondary);
}
.text-content .callout::before {
  content: "\26A0";
  flex: none;
  color: var(--color-removed);
  font-size: 16px;
  line-height: 1.4;
  margin-right: 5px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-darker);
  word-break: break-word;
}

.callout code {
  background-color: rgb(from var(--color-removed) r g b / 0.15);
  border-color: rgb(from var(--color-removed) r g b / 0.4);
  color: var(--color-removed);
}

.text-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  overflow: hidden;
  font-size: 13px;
}
.text-content th, .text-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.text-content tr:last-child th, .text-content tr:last-child td { border-bottom: none; }
.text-content th {
  width: 35%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  font-weight: 600;
  background-color: var(--color-surface-2);
}
.text-content td { color: var(--color-text); }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
  border: 2px solid rgb(from var(--color-primary) r g b/0.4);
  transition: 0.3s ease;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed:hover{
    border: 2px solid var(--color-primary);
}

.carousel {
  position: relative;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
}
.carousel-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  margin: 0;
  border-radius: 0;
}

.carousel-radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.carousel-radio:nth-of-type(1):checked ~ .carousel-viewport img:nth-of-type(1),
.carousel-radio:nth-of-type(2):checked ~ .carousel-viewport img:nth-of-type(2),
.carousel-radio:nth-of-type(3):checked ~ .carousel-viewport img:nth-of-type(3),
.carousel-radio:nth-of-type(4):checked ~ .carousel-viewport img:nth-of-type(4),
.carousel-radio:nth-of-type(5):checked ~ .carousel-viewport img:nth-of-type(5),
.carousel-radio:nth-of-type(6):checked ~ .carousel-viewport img:nth-of-type(6) {
  opacity: 1;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgb(0 0 0 / 45%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius-full);
  color: #fff;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.carousel-arrow:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.7;
}
.carousel-prev::before {
  rotate: -135deg;
  margin-left: 3px;
}
.carousel-next::before {
  rotate: 45deg;
  margin-right: 3px;
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    z-index: 20 !important;
    pointer-events: auto !important;
}
.carousel-nav label {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-border-strong);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}
.carousel-radio:nth-of-type(1):checked ~ .carousel-nav label:nth-of-type(1),
.carousel-radio:nth-of-type(2):checked ~ .carousel-nav label:nth-of-type(2),
.carousel-radio:nth-of-type(3):checked ~ .carousel-nav label:nth-of-type(3),
.carousel-radio:nth-of-type(4):checked ~ .carousel-nav label:nth-of-type(4),
.carousel-radio:nth-of-type(5):checked ~ .carousel-nav label:nth-of-type(5),
.carousel-radio:nth-of-type(6):checked ~ .carousel-nav label:nth-of-type(6) {
  background-color: var(--color-primary);
}

.carousel-arrow.arrow-for-0,
.carousel-arrow.arrow-for-1,
.carousel-arrow.arrow-for-2,
.carousel-arrow.arrow-for-3,
.carousel-arrow.arrow-for-4,
.carousel-arrow.arrow-for-5 {
    display: none;
}

.carousel-radio:nth-of-type(1):checked ~ .carousel-viewport .arrow-for-0,
.carousel-radio:nth-of-type(2):checked ~ .carousel-viewport .arrow-for-1,
.carousel-radio:nth-of-type(3):checked ~ .carousel-viewport .arrow-for-2,
.carousel-radio:nth-of-type(4):checked ~ .carousel-viewport .arrow-for-3,
.carousel-radio:nth-of-type(5):checked ~ .carousel-viewport .arrow-for-4,
.carousel-radio:nth-of-type(6):checked ~ .carousel-viewport .arrow-for-5 {
    display: flex;
}

.carousel .product-badge-countdown {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background-color: rgb(0 0 0 / 70%);
  box-shadow: inset 0 0 0 1px var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  --btn-color-text: var(--color-text);
  --btn-color-text-hover: var(--btn-color-text);
  --btn-color-bg: var(--color-bg);
  --btn-color-bg-hover: var(--btn-color-bg);
  display: block;
  width: fit-content;
  height: 46px;
  padding: 0 18px;
  line-height: 46px;
  color: var(--btn-color-text);
  background-color: var(--btn-color-bg);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (width > 960px) {
  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    padding: 0 20px;
  }
}
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary:hover, .btn-primary:focus-visible,
.btn-secondary:hover, .btn-secondary:focus-visible,
.btn-tertiary:hover, .btn-tertiary:focus-visible {
  color: var(--btn-color-text-hover);
  background-color: var(--btn-color-bg-hover);
}

.btn-primary {
  --btn-color-text: var(--color-primary-text);
  --btn-color-bg: var(--color-primary);
  --btn-color-text-hover: var(--color-primary-text-hover);
  --btn-color-bg-hover: var(--color-primary-hover);
  box-shadow: 0 8px 20px -8px rgb(194 178 128 / 45%);
}
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 10px 24px -8px rgb(194 178 128 / 60%);
  translate: 0 -1px;
}

.btn-secondary {
  --btn-color-text: var(--color-secondary-text);
  --btn-color-bg: var(--color-secondary);
  --btn-color-text-hover: var(--color-secondary-text-hover);
  --btn-color-bg-hover: var(--color-secondary-hover);
  border: 1px solid var(--color-border-strong) !important;
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--color-primary) !important;
}

.btn-tertiary {
  --btn-color-text: var(--color-tertiary-text);
  --btn-color-bg: var(--color-tertiary);
  --btn-color-text-hover: var(--color-tertiary-text-hover);
  --btn-color-bg-hover: var(--color-tertiary-hover);
}

.open-basket-cta:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-primary);
  background-color: rgb(from var(--color-primary) r g b/0.1);
  border: 1px solid var(--color-primary);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  border-radius: 0;
}
.open-basket-cta::before {
  content: "\2713";
  font-size: 13px;
  font-weight: 700;
}
.open-basket-cta:hover, .open-basket-cta:focus-visible {
  background-color: rgb(from var(--color-primary) r g b/0.18);
}

.btn-icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 18px;
  border-radius: var(--radius-sm);
}
:root .btn-icon { line-height: 0; font-size: 0; color: transparent; }

.btn-icon-text {
  display: flex;
  align-items: center;
  min-width: 46px;
}
.btn-icon-text::before {
  content: "";
  display: block;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  flex: none;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media (width <= 960px) {
  :root .btn-icon-text { justify-content: center; font-size: 0; color: transparent; }
  :root .btn-icon-text::before { margin-right: 0; }
}

.btn-glyph::before,
.btn-glyph-text::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  background-color: var(--btn-color-text);
  mask-position: center center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: background-color 0.15s ease-in-out;
}
.btn-glyph:hover::before, .btn-glyph:focus::before,
.btn-glyph-text:hover::before, .btn-glyph-text:focus::before {
  background-color: var(--btn-color-text-hover);
}

.btn-glyph {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
}
:root .btn-glyph { padding: 0; line-height: 0; font-size: 0; color: transparent; }
.btn-glyph::before { position: absolute; inset: 0; margin: auto; }

.btn-glyph-text {
  display: flex;
  align-items: center;
  min-width: 46px;
  border-radius: var(--radius-sm);
}
.btn-glyph-text::before { margin-right: 8px; }
@media (width <= 480px) {
  :root .btn-glyph-text { justify-content: center; font-size: 0; color: transparent; }
  :root .btn-glyph-text::before { margin-right: 0; }
}

.link-text {
  color: var(--color-text-darker);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-position: under;
  transition: color 0.15s ease-in-out;
}
.link-text:hover { color: var(--color-primary); }

/* ==========================================================================
   Quantity field
   ========================================================================== */

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: var(--color-surface-2);
  height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.quantity-field input[type=number] {
  position: relative;
  z-index: 1;
  flex: none;
  appearance: textfield;
  field-sizing: content;
  min-width: 36px;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: transparent;
}
.quantity-field input[type=number]:focus, .quantity-field input[type=number]:hover {
  color: var(--color-primary);
}
.quantity-field input[type=number]::-webkit-inner-spin-button,
.quantity-field input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-field.with-open-basket input[type=number] {
  margin: 0 -12px 0 -15px;
  min-width: auto;
  padding: 0 15px;
  order: 1;
  text-align: center;
  transition: color 0.15s ease-in-out;
}
.quantity-field .open-basket {
  margin-right: 5px;
  width: fit-content;
  height: 100%;
  order: 2;
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease-in-out;
}
.quantity-field .open-basket:focus, .quantity-field .open-basket:hover { color: var(--color-primary); }
.quantity-field .open-basket:focus ~ input[type=number],
.quantity-field .open-basket:hover ~ input[type=number] { color: var(--color-primary); }
.quantity-field .adjust {
  position: relative;
  z-index: 2;
  flex: none;
  box-sizing: border-box;
  width: 36px;
  height: 100%;
  padding: 0;
  line-height: 0;
  font-size: 0;
  color: transparent;
  background-color: var(--color-bg);
  transition: background-color 0.15s ease-in-out;
}
.quantity-field .adjust:hover { background-color: var(--color-primary); }
.quantity-field .adjust:hover::before { background-color: var(--color-primary-text); }
.quantity-field .adjust.decrease {
  margin-right: auto;
  order: -1;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.quantity-field .adjust.increase {
  margin-left: auto;
  order: 100;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.quantity-field .adjust::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  mask: url("https://webstore-template-assets.tebex.io/images/plus.svg") no-repeat center center;
  mask-size: 11px;
}
.quantity-field .adjust.decrease::before {
  mask-image: url("https://webstore-template-assets.tebex.io/images/minus.svg");
}

/* ==========================================================================
   Utilities
   ========================================================================== */

@media (width > 960px) { .mobile-only { display: none; } }
@media (width <= 960px) { .desktop-only { display: none; } }

/* ==========================================================================
   Page shell
   ========================================================================== */

.site {
  display: grid;
  grid-auto-rows: auto 1fr auto;
  grid-template-columns: 100%;
  align-items: start;
  gap: var(--widget-padding);
  min-height: calc(100vh - var(--tebex-footer-height));
  font-size: 14px;
  view-transition-name: site;
  background-image:
    radial-gradient(circle at 1px 1px, rgb(194 178 128 / 8%) 1px, transparent 0);
  background-size: 28px 28px;
  background-attachment: fixed;
}
@media (width > 960px) {
  .site { gap: calc(var(--widget-padding) * 1.5); }
}
.page-index.home-categories-enabled .site {
  grid-auto-rows: auto auto 1fr auto;
}

.site-header,
.site-sale-banner,
.site-home-categories,
.site-content,
.site-footer-inner {
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: 100%;
}
@media (width > 960px) {
  .site-header,
  .site-sale-banner,
  .site-home-categories,
  .site-content,
  .site-footer-inner {
    max-width: var(--content-width);
  }
}

/* ==========================================================================
   Header — clean flex navbar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 0 !important;
  max-width: 100% !important;
  background: var(--color-bg-elevated);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-primary);
  view-transition-name: siteHeader;
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  max-width: var(--content-width);
  height: var(--header-height);
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        var(--color-primary-nav-patter) 8px,
        var(--color-primary-nav-patter) 16px
    );
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.site-header-inner .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  order: -2;
}
.site-header-inner .toggle-navigation {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  background-image: url("https://webstore-template-assets.tebex.io/images/burger.svg");
  background-size: 16px;
  opacity: 0.8;
  transition: 0.24s ease;
}
.site-header-inner .toggle-navigation:hover{
    opacity: 1 !important;
}

.site-header-inner .site-title {
  order: -1;
  min-width: 0;
  max-width: 45vw;
  line-height: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header-inner .site-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.site-header-inner .site-title img.storeLogo,
.site-header-inner .site-title img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
@media (width <= 400px) { .site-header-inner .site-title img { max-height: 36px; } }

@media (width <= 380px) { .site-header-inner .site-title img { max-height: 40px; } }

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

.site-header-inner .info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  line-height: 1.15;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out;
}
.site-header-inner .info:hover { border-color: var(--color-primary); }
.site-header-inner .info .image {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  padding: 4px;
}
.site-header-inner .info .title {
  display: block;
  color: var(--color-text-darker);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}
.site-header-inner .info .action {
  display: block;
  color: var(--color-primary);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.15s ease-in-out;
}
.site-header-inner .info:hover .action { color: var(--color-primary-hover); }
.site-header-inner .info .value {
  display: none;
}
@media (width <= 960px) {
  .site-header-inner .info { display: none; }
}

.site-header-inner .user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.socialButtonContent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.socialButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.socialButton > svg {
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(0) invert(0.87) sepia(0.15);
  opacity: 0.75;
  transform: none;
  transition: 0.2s ease-in-out;
}
.socialButton:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}
.socialButton:hover > svg {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(5%) sepia(4%) saturate(17%) hue-rotate(314deg) brightness(86%) contrast(92%);
}

@media (width <= 600px){
    #gitbook, #youtube, #discord{
        display: none;
    }
}

.site-header-inner .user-name {
  contain: paint;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  max-width: 180px;
}
.site-header-inner .user-name:hover{background: rgb(from var(--color-primary) r g b/0.24);}
.site-header-inner .user-name::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  background-color: var(--color-primary);
  mask: url("https://webstore-template-assets.tebex.io/images/user.svg") center center/contain no-repeat;
}
.site-header-inner .user-name .text,
.site-header-inner .user-name .text-hover {
  display: inline-block;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  transition: opacity 0.15s ease-in-out, font-size 0.15s ease-in-out, visibility 0.15s ease-in-out;
}
.site-header-inner .user-name:not(:hover):not(:focus-within) .text-hover {
  visibility: hidden; color: transparent; font-size: 0;
}
.site-header-inner .user-name:hover .text,
.site-header-inner .user-name:focus-within .text {
  visibility: hidden; opacity: 0; font-size: 0;
}
.site-header-inner .log-in {
  height: 40px;
  line-height: 40px;
}
.site-header-inner .open-basket {
  position: relative;
}
.site-header-inner .open-basket::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-color: var(--color-primary-text);
  mask: url("https://webstore-template-assets.tebex.io/images/checkout.svg") center center/contain no-repeat;
}

@media (width <= 650px) {
  .site-header-inner .user-name { display: none; }
}

@media (width <= 520px) {
  .site-header-inner .open-basket::before { 
      width: 18px;
      height: 18px;
      margin-right: 4px;  
  }
}

/* ==========================================================================
   Sale banner
   ========================================================================== */

.site-sale-banner {
  margin-top: var(--widget-padding);
  padding: 14px var(--content-padding);
  color: var(--color-sale-banner-text);
  background: var(--color-sale-banner-bg);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 24px !important;
}
.copyright {
  width: 100%;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (width <= 960px) {
  .site-footer-inner .site-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
@media (width > 960px) {
  .site-footer-inner .site-footer-nav ul { display: flex; gap: 24px; }
}
.site-footer-inner .site-footer-nav a {
  color: var(--color-text-secondary);
  transition: color 0.15s ease-in-out;
}
.site-footer-inner .site-footer-nav a:hover { color: var(--color-primary); }

.site-footer-inner .we-accept {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-inner .we-accept img { height: 20px; opacity: 0.6; }

.site-footer-credit {
  background: var(--color-bg-elevated);
}
.site-footer-credit .site-footer-credit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}
.site-footer-credit .copyright { color: var(--color-text-muted); font-size: 12px; }
.site-footer-credit .legal { display: flex; gap: 16px; }
.site-footer-credit .legal a { color: var(--color-text-muted); font-size: 12px; transition: color 0.15s ease-in-out; }
.site-footer-credit .legal a:hover { color: var(--color-primary); }

/* ==========================================================================
   Home category tiles
   ========================================================================== */

.site-home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.site-home-categories .category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 700;
  transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out, background 0.2s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  translate: 0 -2px;
}
.site-home-categories .category img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

/* ==========================================================================
   Store text / forms
   ========================================================================== */

.store-text {
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  box-shadow: var(--shadow-card);
}

.storeName{
    text-transform: uppercase;
    color: var(--color-primary);
}
@media (width <= 450px) { .storeName { font-size: large; } }
@media (width <= 425px) { .storeName { display: none; } }

.store-form { font-size: 16px; }
.store-form h1, .store-form h2, .store-form h3,
.store-form h4, .store-form h5, .store-form h6,
.store-form p { margin-bottom: 20px; }
.store-form .input-group,
.store-form .field,
.store-form .field-inline { margin-bottom: 20px; }
.store-form .input-group > p,
.store-form .field > p,
.store-form .field-inline > p { margin-bottom: 10px; color: var(--color-text-secondary); }
.store-form .field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}
@media (width > 600px) {
  .store-form .field-inline { gap: 0 24px; }
}
.store-form input,
.store-form select,
.store-form textarea { display: block; }
.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea {
  margin-bottom: 12px;
  width: 100%;
  padding: 13px 14px;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.15s ease-in-out;
}
.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus { border-color: var(--color-primary); }
.popup .store-form input[type=text],
.popup .store-form input[type=password],
.popup .store-form input[type=email],
.popup .store-form input[type=number],
.popup .store-form input[type=search],
.popup .store-form input[type=url],
.popup .store-form input[type=tel],
.popup .store-form input[type=date],
.popup .store-form input[type=time],
.popup .store-form input[type=datetime-local],
.popup .store-form input[type=file],
.popup .store-form input[type=month],
.popup .store-form input[type=week],
.popup .store-form select,
.popup .store-form textarea {
  background: var(--color-bg);
}
.popup.drawer .store-form input[type=text],
.popup.drawer .store-form input[type=password],
.popup.drawer .store-form input[type=email],
.popup.drawer .store-form input[type=number],
.popup.drawer .store-form input[type=search],
.popup.drawer .store-form input[type=url],
.popup.drawer .store-form input[type=tel],
.popup.drawer .store-form input[type=date],
.popup.drawer .store-form input[type=time],
.popup.drawer .store-form input[type=datetime-local],
.popup.drawer .store-form input[type=file],
.popup.drawer .store-form input[type=month],
.popup.drawer .store-form input[type=week],
.popup.drawer .store-form select,
.popup.drawer .store-form textarea { user-select: auto; }
@media (width > 960px) {
  .store-form input[type=text],
  .store-form input[type=password],
  .store-form input[type=email],
  .store-form input[type=number],
  .store-form input[type=search],
  .store-form input[type=url],
  .store-form input[type=tel],
  .store-form input[type=date],
  .store-form input[type=time],
  .store-form input[type=datetime-local],
  .store-form input[type=file],
  .store-form input[type=month],
  .store-form input[type=week],
  .store-form select,
  .store-form textarea { padding: 13px 14px; font-size: 15px; }
}
.store-form .field-inline input,
.store-form .field-inline select,
.store-form .field-inline textarea { width: auto; }
.store-form .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.store-form .actions .link-text { align-self: center; font-size: 15px; font-weight: 600; margin: 0 8px; }

.log-in {
  color: var(--color-primary-text) !important;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  border: none;
  transition: 0.2s ease-in-out;
}
.log-in:hover {
  background-color: var(--color-primary-hover);
}

/* ==========================================================================
   Sidebar / widgets grid
   ========================================================================== */

@media (width <= 960px) {
  .site-content-widgets {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }
}
@media (width > 960px) {
  .site-content-widgets {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }
  
  body.is-sidebar-right .site-content-widgets { grid-template-columns: 1fr; }
  body:not(.is-sidebar-right) .site-content-widgets { grid-template-columns: 1fr; }
}
.site-content-widgets .store-sidebar {
  display: none;
}
@media (width > 960px) {
  .site-content-widgets .store-sidebar { order: -1; }
  body.is-sidebar-right .site-content-widgets .store-sidebar { order: 1; }
  .site-content-widgets .store-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
  }
}

.category-description {
  margin-bottom: var(--widget-padding);
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  line-height: 1.6;
  font-size: 16px;
}

.no-products {
  padding: 40px var(--widget-padding);
  background: var(--color-surface);
  border: 1px dashed var(--color-text-muted);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: 16px;
  text-align: center;
  opacity: 0.7;
}

.moduleTitle {
  margin-bottom: var(--widget-padding);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-darker);
  -webkit-box-shadow: inset 0px 0px 5px 5px rgb(from var(--color-primary) r g b/0.24); 
  box-shadow: inset 0px 0px 5px 5px rgb(from var(--color-primary) r g b/0.24);
  text-shadow: 0px 0px 10px rgb(from var(--color-primary-text) r g b/0.4);
}
@media (width <= 600px) {
  .moduleTitle { font-size: 20px; }
}

/* ==========================================================================
   Product grids & cards
   ========================================================================== */

.store-products-list,
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--widget-padding);
}

.store-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease-in-out, translate 0.2s ease-in-out;
}
.store-product:hover .product-title a{
    color: var(--color-primary) !important;
}

.store-products-images .store-product:hover,
.store-products-list .store-product:hover {
  border-color: var(--color-border-strong);
  translate: 0 -3px;
}

.store-product .product-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.store-products-images .store-product .product-title,
.store-products-list .store-product .product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.store-product .product-title a {
  color: inherit;
  transition: color 0.15s ease-in-out;
}
.store-product .product-title a:hover { color: var(--color-primary); }

.store-product .product-title .countdown {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgb(from var(--color-removed) r g b/0.15);
  color: var(--color-removed);
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.store-product .product-title .countdown::before {
  content: "";
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.35em;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("https://webstore-template-assets.tebex.io/images/countdown.svg") center center/contain no-repeat;
}

.store-product .descr {
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-size: 14px;
}

.store-product .actions {
  display: flex;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.store-product .actions.updating { pointer-events: none; }
.store-product .actions.updating > * { opacity: 0.3; filter: grayscale(100%); }
.store-product .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background: url("https://webstore-template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
}

.store-product:not(.store-product-full) .actions { flex-wrap: wrap; }

.store-products-images .store-product:not(.store-product-full) .actions,
.store-products-list .store-product:not(.store-product-full) .actions {
  flex: 1 1 auto;
  align-content: flex-end;
  margin-top: auto;
  padding: 0;
}

.store-product .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 4px;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 13px;
}
.store-product .price .discount {
  color: var(--color-text-muted);
  font-weight: 400;
  text-decoration-line: line-through;
}
.store-product .price strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.store-product:not(.store-product-full) .price { width: 100%; }
.store-products-images .store-product:not(.store-product-full) .price,
.store-products-list .store-product:not(.store-product-full) .price { 
  order: -1;
  width: 100%;
  margin-bottom: 2px;
  padding: 0; 
}

.store-product .quantity-field { height: 46px; }
.store-product .half { flex: 0 1 calc(50% - 5px); }
.store-product .wide { flex: 1 1 auto; }

.store-product .gift {
  position: relative;
  flex: none;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  transition: var(--fade-duration) ease;
}
.store-product .gift::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("https://webstore-template-assets.tebex.io/images/gift.svg");
    filter: grayscale(1) brightness(0) invert(0.87) sepia(0.15);
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}
.store-product .gift:hover{
    border-color: var(--color-primary); 
    background-color: rgb(from var(--color-primary) r g b/0.24); 
}

.store-product .gift:hover::before{
    filter: brightness(0) saturate(100%) invert(83%) sepia(6%) saturate(1700%) hue-rotate(8deg) brightness(88%) contrast(84%) !important;
    opacity: 1;
}

.store-product .remove {
  flex: none;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  background-image: url("https://webstore-template-assets.tebex.io/images/delete.svg");
}

.store-products-list .store-product,
.store-products-images .store-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.store-products-list .store-product .image-link,
.store-products-images .store-product .image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--color-surface-2);
}

.store-products-list .store-product .image,
.store-products-images .store-product .image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center top;
  transition: scale 0.35s ease;
}

.store-products-list .store-product:hover .image,
.store-products-images .store-product:hover .image {
  scale: 1.06;
}

.store-products-list .store-product .product-badge,
.store-products-images .store-product .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 2;
}

.store-products-list .store-product .product-badge-sale,
.store-products-images .store-product .product-badge-sale {
  background-color: var(--color-removed);
  color: #fff;
}

.store-products-list .store-product .product-badge-countdown,
.store-products-images .store-product .product-badge-countdown {
  left: auto;
  right: 10px;
  background-color: rgb(0 0 0 / 70%);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
  text-transform: uppercase;
}

.store-products-list .store-product .descr,
.store-products-list .store-product .product-summary,
.store-products-images .store-product .descr,
.store-products-images .store-product .product-summary {
  display: none;
}

.store-products-list .store-product .product-body,
.store-products-images .store-product .product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 0;
}

.store-products-list .store-product .product-tags,
.store-products-images .store-product .product-tags,
.store-products-list .store-product .product-tag,
.store-products-images .store-product .product-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-products-list .store-product .tag,
.store-products-images .store-product .tag,
.store-products-list .store-product .product-tag,
.store-products-images .store-product .product-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background-color: rgb(from var(--color-primary) r g b / 10%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.store-products-list .store-product .tag[data-tag="NEW"],
.store-products-images .store-product .tag[data-tag="NEW"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

.store-products-list .store-product .tag-more,
.store-products-images .store-product .tag-more {
  background-color: transparent;
  border-style: dashed;
  color: var(--color-text-dim);
}

/* ---- Globális Product Tags ---- */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-tags .tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background-color: rgb(from var(--color-primary) r g b / 10%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.product-tags .tag[data-tag="NEW"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

.store-products-list .store-product .product-title,
.store-products-images .store-product .product-title {
  min-width: 0;
  margin: 0;
  font-size: 16px;
}

.store-products-list .store-product .product-footer,
.store-products-images .store-product .product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px;
}

.store-products-list .store-product .product-details-link,
.store-products-images .store-product .product-details-link {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background-color: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.store-products-list .store-product .product-details-link:hover,
.store-products-images .store-product .product-details-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgb(from var(--color-primary) r g b/0.15);
}

.store-products-list .store-product .product-details-link svg,
.store-products-images .store-product .product-details-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.store-products-list .store-product .add,
.store-products-images .store-product .add,
.store-products-list .store-product .subscribe,
.store-products-images .store-product .subscribe,
.store-products-list .store-product .open-basket-cta:not([hidden]),
.store-products-images .store-product .open-basket-cta:not([hidden]),
.store-products-list .store-product .quantity-field,
.store-products-images .store-product .quantity-field {
  flex: 1 1 auto;
}

.store-products-list .store-product .wide,
.store-products-images .store-product .wide {
  width: auto;
}

.store-product-full,
.store-product-full.popup-content {
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding-top: 60px;
}
.store-product-full {
  display: flex;
  flex-direction: column;
  gap: var(--widget-padding);
}
.store-product-full .actions {
  position: sticky !important;
  align-items: center;
  bottom: 0;
  margin: 0 calc(var(--widget-padding) * -1) calc(var(--widget-padding) * -1);
  padding: var(--widget-padding);
  background-color: rgb(from var(--color-surface) r g b/0.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (width <= 600px) {
  .store-product-full .actions { order: 1; }
}
.store-product-full .actions .wide { max-width: 260px; }
.store-product-full .price { margin-right: auto; padding: 0; }

.store-product-options .product-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.store-product-options .actions {
  position: sticky !important;
  bottom: var(--widget-padding);
  justify-content: start;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}
.store-product-options .actions.updating { pointer-events: none; }
.store-product-options .actions.updating > * { opacity: 0.3; filter: grayscale(100%); }
.store-product-options .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background: url("https://webstore-template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
}
.store-product-options .actions .btn-primary,
.store-product-options .actions .btn-secondary,
.store-product-options .actions .btn-tertiary { width: 230px; }
.store-product-options .actions-multiple { width: auto; }
.store-product-options .actions-multiple .btn-primary,
.store-product-options .actions-multiple .btn-secondary,
.store-product-options .actions-multiple .btn-tertiary { width: auto; flex: 1 1 auto; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-navigation { --fade-duration: 200ms; view-transition-name: siteNavigation; }

@media (width <= 1048px) {
  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 0;
    transition: display var(--fade-duration) allow-discrete, opacity var(--fade-duration) ease, visibility var(--fade-duration) allow-discrete;
  }
  @starting-style { .site-navigation { opacity: 0; } }
  body:not(.show-navigation) .site-navigation { visibility: hidden; opacity: 0; }

  html:has(body.show-navigation) {
    overflow: hidden !important;
    overscroll-behavior-y: none !important;
  }
  .site-navigation .mobile-close-btn {
    position: absolute !important;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 36px;
    height: 36px;
  }

  .site-navigation.drawer { user-select: none; }
  .site-navigation .close-navigation {
    width: 36px;
    height: 36px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background-image: url("https://webstore-template-assets.tebex.io/images/close.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, filter 0.15s ease-in-out !important;
    
    position: static !important; 
  }
  .site-navigation .close-navigation:hover{
      border-color: var(--color-primary);
      background-color: rgb(from var(--color-primary) r g b/0.24);
      filter: brightness(0) saturate(100%) invert(83%) sepia(6%) saturate(1700%) hue-rotate(8deg) brightness(88%) contrast(84%);
      opacity: 1;
  }
  
  .site-navigation .menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 0;
    padding: 84px 20px 20px;
    height: 100vh;
    background: var(--color-bg-elevated);
    border-right: 1px solid var(--color-border);
    line-height: 24px;
    color: var(--color-text-secondary);
    font-size: 16px;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) var(--color-bg);
    transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease, translate var(--fade-duration) ease;
  }
  @starting-style { .site-navigation .menu { translate: -100% 0; } }
  .site-navigation.drawer .menu::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 7px;
    bottom: 0;
    margin-block: auto;
    width: 4px;
    height: 100px;
    background: var(--color-border-strong);
    border-radius: 2px;
    pointer-events: none;
  }
  body:not(.show-navigation) .site-navigation .menu { translate: -100% 0; }
  .site-navigation.touching .menu { transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease; }
  body:not(.show-navigation) .site-navigation .menu { opacity: 1; scale: 1; }
  .site-navigation.may-close .menu { opacity: 0.8; }
  .site-navigation ul ul { padding-left: 16px; line-height: 22px; font-size: 14px; }
  .site-navigation li {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .site-navigation .log-out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-border); }
  .site-navigation .log-out a { display: flex; align-items: center; gap: 8px; }
  .site-navigation .log-out a::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask: url("https://webstore-template-assets.tebex.io/images/log-out.svg") center center no-repeat;
    mask-size: contain;
  }
  .site-navigation .has-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .site-navigation .has-children > a { flex: 1 1 auto; }
  .site-navigation .has-children .toggle {
    background-image: url("https://webstore-template-assets.tebex.io/images/chevron.svg");
    background-size: 18px;
    transition: rotate 0.15s ease-in-out;
  }
  .site-navigation .has-children.expanded > .toggle { rotate: 180deg; }
  .site-navigation .has-children > ul { width: 100%; }
  .site-navigation .has-children:not(.expanded) > ul { display: none; }
  .site-navigation a {
    display: block;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  }
  .site-navigation a:hover { color: var(--color-primary); background: var(--color-surface); }
  .site-navigation a.active,
  .site-navigation a.link-active {
    color: var(--color-primary-text);
    background: var(--color-primary);
    font-weight: 700;
  }
  .site-navigation ul ul a { padding: 8px 10px; }
  
  .site-navigation.widget::before, 
  .site-navigation.widget::after{
      opacity: 0 !important;
  }
  
  .widget .widget-top-donator{
      display: none;
  }
  
  .widget .widget-recent{
      display: none;
  }
  
  body:not(.page-index) .widget-top-donator,
  body:not(.page-index) .widget-recent {
    display: none;
  }
  
 #site-navigation {
   position: fixed;
 }
}

@media (width > 1048px) {
  .navigation-horizontal .close-navigation { display: none; }
  .navigation-horizontal .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    line-height: 22px;
    font-size: 14px;
    font-weight: 600;
  }
  .navigation-horizontal .menu > li > a {
    padding: 10px 18px;
    border-radius: var(--radius-full);
  }
  .navigation-horizontal .menu > li.has-children > a { padding-right: 0; }
  .navigation-horizontal ul ul { line-height: 22px; font-size: 14px; font-weight: 500; }
  .navigation-horizontal > ul > li > a {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 18ch;
  }
  .navigation-horizontal .has-children {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .navigation-horizontal .has-children .toggle {
    flex: none;
    width: 24px;
    height: 24px;
    background-color: transparent;
    background-image: url("https://webstore-template-assets.tebex.io/images/chevron.svg");
    background-size: 16px;
    transition: rotate 0.15s ease-in-out;
  }
  .navigation-horizontal .has-children:hover > .toggle { rotate: 180deg; }
  .navigation-horizontal .has-children > ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    padding: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    transition: all 0.15s ease-in-out;
  }
  .navigation-horizontal .has-children:not(:hover) > ul {
    visibility: hidden;
    opacity: 0;
    translate: 0 -10px;
  }
  .navigation-horizontal a {
    display: block;
    color: var(--color-text-secondary);
    transition: color 0.15s ease-in-out;
  }
  .navigation-horizontal > ul > li > a:hover,
  .navigation-horizontal > ul > li > a.link-active { color: var(--color-text-darker); }
  .navigation-horizontal > ul > li.active > a { color: var(--color-primary-text); background: var(--color-primary); }
  .navigation-horizontal li li a {
    width: 100%;
    max-width: 24ch;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease-in-out;
  }
  .navigation-horizontal li li a:hover,
  .navigation-horizontal li li a.link-active {
    color: var(--color-primary-text);
    background-color: var(--color-primary);
  }
}

@media (width > 960px) {
  .navigation-vertical.widget { padding: 12px; }
  .navigation-vertical .close-navigation { display: none; }
  .navigation-vertical .menu { line-height: 26px; color: var(--color-text-secondary); font-size: 15px; font-weight: 500; }
  .navigation-vertical ul ul { padding-left: 12px; line-height: 22px; font-size: 14px; }
  .navigation-vertical li { border-radius: var(--radius-sm); }
  .navigation-vertical .has-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .navigation-vertical .has-children > a { flex: 1 1 auto; max-width: calc(100% - 46px); }
  .navigation-vertical .has-children .toggle {
    background-color: transparent !important;
    background-image: url("https://webstore-template-assets.tebex.io/images/chevron.svg");
    background-size: 18px;
    transition: rotate 0.15s ease-in-out;
  }
  .navigation-vertical .has-children.expanded > .toggle { rotate: 180deg; }
  .navigation-vertical .has-children > ul { width: 100%; }
  .navigation-vertical .has-children:not(.expanded) > ul { display: none; }
  .navigation-vertical a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  }
  .navigation-vertical a:hover { color: var(--color-primary); background: var(--color-surface); }
  .navigation-vertical a.link-active {
    color: var(--color-primary-text);
    background: var(--color-primary);
    font-weight: 700;
  }
  .navigation-vertical ul ul a { padding: 8px 12px; }
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.widget {
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.widget + .widget { margin-top: 0; }

.widget-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-darker);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-featured .store-product { padding: 0; border: none; box-shadow: none; text-align: center; background: transparent; }

.widget-gift-card { text-align: center; }
.widget-gift-card .gift-card-input {
  margin-bottom: 12px;
  width: 100%;
  padding: 13px 12px;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.popup .widget-gift-card .gift-card-input { background: var(--color-bg); }
.widget-gift-card .check { width: 100%; }

.widget-recent .purchase {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}
.widget-recent .purchase:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget-recent .avatar {
  flex: none;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
}
.widget-recent .username { color: var(--color-text-darker); font-weight: 700; font-size: 14px; }
.widget-recent .empty { text-align: center; color: var(--color-text-secondary); }
.widget-recent time { opacity: 0.6; font-size: 0.85em; }
.widget-recent .sep { margin: 0 0.3em; }
.widget-recent .price { color: var(--color-primary); }

.widget-top-donator .avatar {
  margin: 0 auto 12px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  object-fit: cover;
}
.widget-top-donator .widget-content { text-align: center; }
.widget-top-donator .username { margin-bottom: 6px; color: var(--color-text-darker); font-weight: 700; font-size: 16px; }
.widget-top-donator .empty { text-align: center; color: var(--color-text-secondary); }

.widget-community-goal .widget-content,
.widget-goal .widget-content { text-align: center; }
.widget-community-goal p:not(:last-child),
.widget-goal p:not(:last-child) { margin-bottom: 12px; color: var(--color-text-secondary); }
.widget-community-goal .progress,
.widget-goal .progress {
  height: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
}
@keyframes progressBarAnimation { to { background-position: 100% 0; } }
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  height: 10px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.widget-community-goal .progress-bar.striped,
.widget-goal .progress-bar.striped {
  background: var(--color-primary) linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 33%, rgb(from var(--color-primary-hover) r g b/0.35) 33%, rgb(from var(--color-primary-hover) r g b/0.35) 66%, var(--color-primary) 66%, var(--color-primary) 100%) repeat;
  background-size: 20px 100%;
}
.widget-community-goal .progress-bar.striped.animated,
.widget-goal .progress-bar.striped.animated { animation: progressBarAnimation 10s infinite linear; }
.widget-community-goal .goal-image { margin: 0 auto 12px; max-width: 88px; border-radius: var(--radius-md); }
.widget-community-goal .descr { margin-bottom: 12px; color: var(--color-text-secondary); }

.widget-server-status .widget-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--color-border); }
.widget-server-status .widget-content { text-align: center; }
.widget-server-status h6 {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-success { color: var(--color-success); background: rgb(from var(--color-success) r g b/0.15); }
.badge-danger { color: var(--color-danger); background: rgb(from var(--color-danger) r g b/0.15); }

/* ==========================================================================
   Popups & drawers (mechanics preserved)
   ========================================================================== */

.popup {
  --fade-duration: 300ms;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
  background-color: rgba(8, 8, 7, 0.82);
  backdrop-filter: blur(4px);
  transition: background-color var(--fade-duration) ease, opacity var(--fade-duration) ease-in-out, display var(--fade-duration) allow-discrete;
}
@starting-style { .popup { opacity: 0; } }
.popup.drawer { user-select: none; }
.popup.may-close { user-select: none; background-color: rgba(8, 8, 7, 0.4); }
.popup[hidden] { opacity: 0; display: none; }

.popup-scroll-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: calc(var(--content-padding) / 2);
  overscroll-behavior: none;
}
@media (width > 600px) { .popup-scroll-cont { padding: var(--content-padding); } }
@media (pointer: coarse) { .popup .popup-scroll-cont { align-items: flex-center; padding-bottom: 0; } }

.popup-content {
  position: relative;
  width: 100%;
  max-width: 550px;
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  transition: translate var(--fade-duration) ease, opacity var(--fade-duration) ease;
}
@starting-style { .popup-content { translate: 0 20px; } }
@media (pointer: coarse) { .popup-content { padding-bottom: calc(var(--widget-padding) * 2); } }
.popup.touching .popup-content { transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease; }
.popup.may-close .popup-content, .popup.drawer[hidden] .popup-content { opacity: 0.8; scale: 0.95; }
.popup.drawer-up[hidden] .popup-content { translate: 0 -100%; }
.popup.drawer-down[hidden] .popup-content { translate: 0 100%; }
.popup.drawer-right[hidden] .popup-content { translate: 100% 0; }
.popup.drawer-left[hidden] .popup-content { translate: -100% 0; }
.popup:not(.drawer)[hidden] .popup-content { translate: 0 20px; }
.popup.popup-loading .popup-content { min-height: 180px; }
.popup.popup-loading .popup-content::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  background: url("https://webstore-template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
  border: none;
  border-radius: 0;
  opacity: 1;
}
.popup.popup-loading .popup-content::after {
  display: none;
}
.drawer-up .popup-content::after, .drawer-down .popup-content::after,
.drawer-left .popup-content::after, .drawer-right .popup-content::after {
  content: "";
  display: block;
  position: absolute;
  background: var(--color-border-strong);
  border-radius: 2px;
  pointer-events: none;
}
.drawer-up .popup-content::after, .drawer-down .popup-content::after {
  left: 0; right: 0; margin-inline: auto; height: 4px; width: 100px;
}
.drawer-up .popup-content::after { bottom: 7px; }
.drawer-down .popup-content::after { top: 7px; }
.drawer-left .popup-content::after, .drawer-right .popup-content::after {
  top: 0; bottom: 0; margin-block: auto; width: 4px; height: 100px;
}
.drawer-left .popup-content::after { right: 7px; }
.drawer-right .popup-content::after { left: 7px; }

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: url("https://webstore-template-assets.tebex.io/images/close.svg") center center no-repeat;
  background-size: 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  opacity: 0.7;
  line-height: 0;
  font-size: 0;
  color: transparent;
  transition: all 0.15s ease-in-out;
  z-index: 10000 !important;
}
@media (width <= 600px) { .popup-close { width: 40px; height: 40px; background-size: 18px; } }
.popup-close:hover { 
    opacity: 1; 
    border-color: var(--color-primary); 
    background-color: rgb(from var(--color-primary) r g b/0.24); 
    filter: brightness(0) saturate(100%) invert(83%) sepia(6%) saturate(1700%) hue-rotate(8deg) brightness(88%) contrast(84%) !important;
}

.store-product-popup-content { max-width: 820px; }
.product-options-popup .popup-content { max-width: 480px; }

.gift-form-popup .popup-content h1, .gift-form-popup .popup-content h2, .gift-form-popup .popup-content h3,
.gift-form-popup .popup-content h4, .gift-form-popup .popup-content h5, .gift-form-popup .popup-content h6 {
  margin-bottom: 12px;
}
.gift-form-popup .popup-content .btn-primary { width: 240px; }
.gift-form-popup .popup-content .actions { position: relative; width: fit-content; max-width: 100%; }
.gift-form-popup .popup-content .actions.updating { pointer-events: none; }
.gift-form-popup .popup-content .actions.updating > * { opacity: 0.3; filter: grayscale(100%); }
.gift-form-popup .popup-content .actions.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 30px;
  height: 30px;
  background: url("https://webstore-template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
}

.login-popup { z-index: 1002; }
.login-popup-content { max-width: 460px; padding-bottom: calc(var(--widget-padding) - 8px); }
.login-popup-content .btn-primary,
.login-popup-content .log-in {
  color: var(--color-primary-text) !important;
  background-color: var(--color-primary) !important;
}
.login-popup-content .btn-icon-text,
.login-popup-content .btn-glyph-text {
  font-size: 15px !important;
  color: inherit !important;
}
.login-popup-content .btn-icon-text::before,
.login-popup-content .btn-glyph-text::before {
  margin-right: 8px !important;
}

@media (pointer: coarse) {
  .login-popup .popup-scroll-cont {
    align-items: center;
    padding-bottom: calc(var(--content-padding) / 2);
  }
}

/* ==========================================================================
   Basket
   ========================================================================== */

.basket { position: relative; z-index: 1001; display: flex; flex-direction: column; height: 100%; }
.site-content .basket { display: none; }

.basket .basket-empty {
  margin: auto;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.basket .basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px var(--content-padding) 20px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}
@media (width > 960px) { .basket .basket-header { padding-top: 32px; } }
.basket .basket-title { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.basket .basket-title::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-color: var(--color-primary);
  mask: url("https://webstore-template-assets.tebex.io/images/checkout.svg") center center no-repeat;
  mask-size: contain;
}

.basket .basket-second-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--content-padding);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-secondary);
}
.basket .basket-second-header .total { font-size: 13px; }
.basket .basket-second-header .total strong { font-size: 16px; font-weight: 700; color: var(--color-primary); }
.basket .basket-second-header .currency { display: flex; align-items: center; gap: 6px; }
.basket .basket-second-header .currency::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: url("https://webstore-template-assets.tebex.io/images/dropdown-arrow.svg") center center no-repeat;
  background-size: contain;
}

.basket .basket-content { flex: 1; overflow-x: hidden; overflow-y: auto; }
.basket .basket-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px var(--content-padding);
}
.basket .basket-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.basket .basket-item .info { flex: 1 1 auto; min-width: 0; margin-right: auto; }
.basket .basket-item .options { list-style-position: inside; color: var(--color-text-secondary); font-size: 13px; }
.basket .basket-item .options:has(li) { padding: 4px 0; }
.basket .basket-item .options li { display: block; padding: 1px 0; }
.basket .basket-item .options li::before {
  content: "";
  display: inline-block;
  margin-right: 0.4em;
  width: 3px;
  height: 3px;
  vertical-align: middle;
  background-color: currentColor;
  border-radius: 50%;
}
.basket .basket-item .title { color: var(--color-text-darker); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.basket .basket-item .price { color: var(--color-primary); font-family: var(--font-mono); font-size: 13px; }
.basket .basket-item .price strong { font-size: 16px; font-weight: 700; }
.basket .basket-item .quantity-field { height: 36px; }
.basket .basket-item .remove {
  width: 36px;
  height: 36px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.basket .basket-item .remove:hover { border-color: var(--color-removed); }
.basket .basket-item .remove::before {
  mask-image: url("https://webstore-template-assets.tebex.io/images/delete.svg");
}

.basket .basket-checkout {
  margin-top: auto;
  padding: 20px var(--content-padding) 28px;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}
@media (width > 960px) { .basket .basket-checkout { padding-bottom: 32px; } }
.basket .basket-checkout h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.basket .basket-checkout .total { color: var(--color-primary); font-size: 14px; font-weight: 400; }
.basket .basket-checkout .total strong { font-family: var(--font-mono); font-size: 24px; font-weight: 700; }
.basket .basket-checkout .checkout { width: 100%; }

.basket-popup .popup-scroll-cont { 
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end; 
    padding: 0; 
    
}

.basket-popup-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 460px;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 0;
  background: var(--color-bg);
  border: none;
  border-left: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: var(--shadow-elevated);
  transition: translate var(--fade-duration) ease-in-out;
}
@starting-style { .basket-popup-content { translate: 100% 0; } }
:root .basket-popup[hidden] .basket-popup-content { translate: 100% 0; }
.basket-popup-content .popup-close {
  top: 28px;
  right: var(--content-padding);
}
.basket-popup-content.updating { pointer-events: none; }
.basket-popup-content.updating::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  margin: auto;
  width: 38px;
  height: 38px;
  background: url("https://webstore-template-assets.tebex.io/images/loading.svg") center center no-repeat;
  background-size: contain;
}
.basket-popup-content.updating > * { filter: grayscale(100%); }

/* ==========================================================================
   Toaster
   ========================================================================== */

.toaster {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  position: fixed;
  bottom: var(--widget-padding);
  left: 0;
  right: 0;
  z-index: 10000;
  margin: 0 auto;
  padding: 0 var(--widget-padding);
  width: 100%;
  height: 100%;
  max-width: 480px;
  pointer-events: none;
}
.toaster:empty { display: none; }

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 8px 0 20px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  pointer-events: auto;
  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
@starting-style { .toast { opacity: 0; height: 0; } }
.toast[hidden] { display: block; opacity: 0; height: 0; }
.toast.toast-warning { background: var(--color-warning); color: var(--color-primary-text); border-color: transparent; }
.toast.toast-error { background: var(--color-removed); color: #fff; border-color: transparent; }
.toast.toast-success { background: var(--color-success); color: var(--color-primary-text); border-color: transparent; }

.toast-close {
  margin-left: auto;
  flex: none;
  width: 28px;
  height: 28px;
  background: url("https://webstore-template-assets.tebex.io/images/close.svg") center center/16px no-repeat;
  border-radius: var(--radius-xs);
  opacity: 0.6;
  line-height: 0;
  font-size: 0;
  color: transparent;
  transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.toast-close:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   Tiered categories
   ========================================================================== */

.store-category-tiered {
  --gap: 16px;
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.store-category-tiered-header { margin-bottom: var(--widget-padding); font-size: 16px; }
.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,
.store-category-tiered-header p { margin-bottom: 12px; }

.store-products-tiered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--gap);
}

.store-product-tiered {
  --border-color: var(--color-border);
  --primary-color: rgb(from var(--color-primary) r g b / .2);
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease-in-out;
}
.store-product-tiered:hover { border-color: var(--color-border-strong); }
.store-product-tiered.subscribed { border-color: var(--color-primary); }
.store-product-tiered.store-product-cta {
  background-image: linear-gradient(to bottom, transparent 60%, var(--primary-color));
}
.store-product-tiered .image { margin: auto; max-width: 100%; border-radius: var(--radius-sm); object-fit: contain; }
.store-product-tiered .product-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: center; }
.store-product-tiered .countdown {
  display: block;
  margin-top: 4px;
  color: var(--color-removed);
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
}
.store-product-tiered .countdown::before {
  content: "";
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.25em;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("https://webstore-template-assets.tebex.io/images/countdown.svg") center center/contain no-repeat;
}
.store-product-tiered .descr {
  padding-block: var(--gap);
  border-block: 1px solid var(--border-color);
  color: var(--color-text-secondary);
  font-size: 14px;
}
.store-product-tiered .price { display: block; padding: 0; font-size: 13px; text-align: center; font-family: var(--font-mono); color: var(--color-primary); }
.store-product-tiered .price .discount { margin-right: 1ch; color: var(--color-text-muted); font-weight: 400; text-decoration-line: line-through; }
.store-product-tiered .price strong { font-size: 20px; font-weight: 700; }
.store-product-tiered .actions { gap: var(--gap); }
.store-product-tiered .actions .wide { width: 100%; }

.store-quote {
  padding: var(--widget-padding);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.store-quote .wide { flex: 1 1 50%; }
.quote-actions { display: flex; gap: 12px; }

/* ==========================================================================
   Search Modal
   ========================================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh var(--content-padding) 0;
}
.search-modal[hidden] {
    display: none !important;
}
.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 7, 0.82);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
    background: var(--color-surface);
}
.search-icon {
    color: var(--color-text-secondary);
    flex: none;
}
.search-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.search-header input:focus { 
    border: none; 
    box-shadow: none; 
}
.search-header input::placeholder {
    color: var(--color-text-secondary);
}
.esc-hint {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-family: var(--font-mono);
    flex: none;
}
.search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 14px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    text-decoration: none;
    color: var(--color-text);
}
.search-result-item:hover {
    background: var(--color-surface-hover);
}
.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface-2);
    flex: none;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--color-text-darker);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-price {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    flex: none;
}
.search-result-price span {
    color: inherit;
    font-size: inherit;
}
.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.search-result-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    margin-left: 8px;
    vertical-align: middle;
}

@media (width <= 600px) {
    .esc-hint { 
        display: none; 
    }
    .search-modal { 
        padding-top: 5vh; 
    }
    .search-results {
        max-height: 65vh;
    }
}

/* ==========================================================================
   CSS-Only Lightbox (Checkbox Hack)
   ========================================================================== */

.lightbox-toggle-cb { 
    display: none !important; 
}

.carousel-viewport label:not(.carousel-arrow) {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    display: block;
}

.lightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    background: rgba(8, 8, 7, 0.92) !important;
    backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-toggle-cb:checked ~ .lightbox-overlay {
    opacity: 1;
    visibility: visible;
}

.lightbox-close-bg {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: url("https://webstore-template-assets.tebex.io/images/close.svg") center center no-repeat;
  background-size: 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  opacity: 0.7;
  line-height: 0;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  z-index: 5;
}

@media (width <= 600px) { 
  .lightbox-close-btn { 
    width: 40px; 
    height: 40px; 
    background-size: 18px; 
  } 
}

.lightbox-close-btn:hover { 
  opacity: 1; 
  border-color: var(--color-primary); 
  background-color: rgb(from var(--color-primary) r g b/0.24); 
  filter: brightness(0) saturate(100%) invert(83%) sepia(6%) saturate(1700%) hue-rotate(8deg) brightness(88%) contrast(84%) !important;
}

.lightbox-viewport {
    position: relative;
    width: 85vw;
    height: 85vh;
    z-index: 2;
    pointer-events: none;
}

.lightbox-viewport img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.carousel-radio:nth-of-type(1):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(1),
.carousel-radio:nth-of-type(2):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(2),
.carousel-radio:nth-of-type(3):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(3),
.carousel-radio:nth-of-type(4):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(4),
.carousel-radio:nth-of-type(5):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(5),
.carousel-radio:nth-of-type(6):checked ~ .lightbox-overlay .lightbox-viewport img:nth-of-type(6) {
    opacity: 1;
}

.lightbox-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.lightbox-arrows .carousel-arrow {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-strong);
}

.lightbox-arrows .carousel-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.lightbox-arrows .carousel-prev { left: 40px; }
.lightbox-arrows .carousel-next { right: 40px; }

@media (max-width: 960px) {
    .lightbox-viewport { width: 100vw; }
    .lightbox-arrows .carousel-prev { left: 16px; }
    .lightbox-arrows .carousel-next { right: 16px; }
}

.carousel-radio:nth-of-type(1):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-0,
.carousel-radio:nth-of-type(2):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-1,
.carousel-radio:nth-of-type(3):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-2,
.carousel-radio:nth-of-type(4):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-3,
.carousel-radio:nth-of-type(5):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-4,
.carousel-radio:nth-of-type(6):checked ~ .lightbox-overlay .lightbox-arrows .arrow-for-5 {
    display: flex;
}

/* ---- Shared section wrapper/heading, reused by featured + discord banner ---- */
.home-section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px var(--content-padding);
}
.home-section-title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}

/* ---- Hero ---- */
.home-hero {
  position: relative;
  padding: 110px var(--content-padding) 90px;
  text-align: center;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
}
.home-hero h1 {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-primary);
}
.home-hero-sub {
  max-width: 480px;
  margin: 0 auto 30px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Featured products grid (Egyedi kártyák) ---- */
.home-featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--widget-padding);
  margin-top: 28px;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--widget-padding);
  background-color: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: box-shadow 0.2s ease-in-out, translate 0.2s ease-in-out;
  flex: 1 1 260px;
}

.featured-card:hover {
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
  translate: 0 -2px;
}
.featured-card:hover .featured-card-title{
    color: var(--color-primary);
}

.featured-card::before,
.featured-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  z-index: 2;
}
.featured-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  border-top-left-radius: var(--radius-md);
}
.featured-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  border-bottom-right-radius: var(--radius-md);
}
.featured-card:hover::before,
.featured-card:hover::after { opacity: 1; }

.featured-media-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  flex: 1;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}
.featured-card-title a {
  color: inherit;
  transition: color 0.15s ease-in-out;
}
.featured-card-title a:hover {
  color: var(--color-primary);
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background-color: rgb(from var(--color-primary) r g b / 10%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.featured-tag[data-tag="NEW"] {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

.featured-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.featured-card-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.featured-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.featured-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  font-size: 13px;
  text-decoration: none;
}

.featured-card.featured-skeleton-card {
  opacity: 0.5;
  background-color: var(--color-surface-2);
  translate: none !important;
  box-shadow: inset 0 0 0 1px var(--color-border) !important;
  transition: none !important;
}
.featured-card.featured-skeleton-card:hover {
  translate: none !important;
  box-shadow: inset 0 0 0 1px var(--color-border) !important;
}
.featured-card.featured-skeleton-card:hover .featured-card-title{
    color: inherit;
}
.featured-card.featured-skeleton-card::before,
.featured-card.featured-skeleton-card::after {
  display: none !important;
}
.featured-card.featured-skeleton-card .featured-media-link {
  background: var(--color-surface);
}
.featured-skeleton-card-body{
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}
.featured-card.featured-skeleton-card a {
  pointer-events: none !important;
  cursor: default !important;
}

/* ---- Social Grid Elrendezés ---- */
.home-social {
  width: 100%;
}
.home-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: translate 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  flex: 1 1 300px;
}
.social-card:hover {
  translate: 0 -2px;
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgb(0 0 0 / 10%) 0 10px, transparent 10px 20px);
  pointer-events: none;
  z-index: 0;
}
.social-card > * {
  position: relative;
  z-index: 1;
}

.social-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px 0;
}
.social-card-sub {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.social-card .btn-primary {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.social-header-right {
  text-align: right;
  width: 100%;
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

/* ---- ÚJ: A régi Site Brief (3 ikon) formázása az új stílushoz ---- */
.site-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--widget-padding);
}
.site-brief-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: translate 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.site-brief-item:hover {
  translate: 0 -2px;
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}
.site-brief-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgb(from var(--color-primary) r g b / 10%);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.site-brief-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.site-brief-item p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.page-index.home-categories-enabled .site {
  grid-auto-rows: auto;
}

/* ---- Fejléc navigáció igazítása ---- */
.header-navigation-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ---- Payment Ticker (Kapszula dizájn) ---- */
.ticker-section {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
@media (width < 700px) { .ticker-section { margin-top: 50px !important; } }
.payment-ticker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.ticker-heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.ticker-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to right, transparent 0%, var(--color-surface) 50%, transparent 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: scrollTicker var(--ticker-duration, 30s) linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  white-space: nowrap;
  transition: 0.24s ease;
}
.ticker-pill:not(.empty):hover {
    border: 1px solid rgb(from var(--color-primary) r g b/0.7);
}
.ticker-pill.empty {
  background: transparent !important;
  border: none !important;
  width: 100%;
  padding: 0 20px;
  color: var(--color-text-secondary);
  justify-content: center;
}
.ticker-pill .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-surface-2);
}
.ticker-pill .username {
  font-weight: 700;
  color: var(--color-text-darker);
}
.ticker-pill .package {
  color: var(--color-text-secondary);
}
.ticker-pill .price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
}
.ticker-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Mobile ---- */
@media (width <= 900px) {
  .home-featured-grid {  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (width <= 700px) {
  .home-hero { padding: 70px var(--content-padding) 50px; }
  .home-section-inner { padding: 50px var(--content-padding); padding-bottom: 0px !important; }
  .home-featured-grid {  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 1200px) {
  .site-header-inner {
    gap: 10px;
  }
  
  .navigation-horizontal .menu > li > a {
    padding: 10px 12px; 
  }
}