@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --accent:           #BEEE11;
  --accent-dim:       rgba(190,238,17,0.08);
  --accent-mid:       rgba(190,238,17,0.15);
  --accent-glow:      rgba(190,238,17,0.28);
  --accent-border:    rgba(190,238,17,0.20);

  --bg:               #07090a;
  --surface:          #0d0f11;
  --card:             #121416;
  --card-hover:       #181b1e;
  --card-active:      #1d2023;
  --input:            #0b0d0f;

  --text:             #e2e2e6;
  --text-dim:         #6e6e7a;
  --text-muted:       #363640;
  --text-dark:        #07090a;

  --border:           rgba(255,255,255,0.045);
  --border-light:     rgba(255,255,255,0.08);
  --border-accent:    rgba(190,238,17,0.18);

  --radius-sm:        6px;
  --radius:           10px;
  --radius-lg:        14px;
  --radius-xl:        20px;

  /* Tebex aliases */
  --color-accent:          var(--accent);
  --color-bg:              var(--bg);
  --color-brighter-bg:     rgba(13,15,17,0.94);
  --color-input-bg:        var(--input);
  --color-popup-bg:        rgba(0,0,0,0.72);
  --color-text:            var(--text);
  --color-text-darker:     #c4c4c8;
  --color-text-secondary:  var(--text-dim);
  --color-text-dark:       var(--text-dark);
  --color-text-muted:      var(--text-muted);
  --color-primary:         var(--accent);
  --color-primary-hover:   #ceff22;
  --color-primary-text:    var(--text-dark);
  --color-primary-text-hover: var(--text-dark);
  --color-secondary:       var(--card);
  --color-secondary-hover: var(--card-hover);
  --color-secondary-text:  var(--text);
  --color-secondary-text-hover: var(--text);
  --color-tertiary:        transparent;
  --color-tertiary-hover:  rgba(255,255,255,0.05);
  --color-tertiary-text:   var(--text);
  --color-tertiary-text-hover: var(--text);
  --color-removed:         #f04040;

  --header-height:         260px;
  --tebex-footer-height:   37px;
  --layout-gap:            24px;
  --widget-padding:        20px;
  --content-padding:       var(--widget-padding);
  --content-inner-width:   1280px;
  --content-width:         calc(var(--content-padding)*2 + var(--content-inner-width));
  --sidebar-width:         280px;
  --products-gap:          16px;

  --btn-size:              38px;
  --btn-size-small:        32px;
  --btn-size-xsmall:       28px;
  --btn-icon-size:         16px;
  --btn-color-text:        var(--text);
  --btn-color-text-hover:  var(--text);
  --btn-color-bg:          var(--bg);
  --btn-color-bg-hover:    var(--bg);

  --bg-blur:               blur(10px);
  --page-transition-duration: .28s;

  --tebex-legal-footer-max-width: min(var(--content-inner-width), calc(100vw - var(--content-padding)*2));
  --tebex-legal-footer-background-color: var(--surface);
  --tebex-legal-footer-border-color: var(--border);
  --tebex-legal-footer-text-color: var(--text-dim);
}

@media (width > 600px)  { :root { --widget-padding: 24px; --layout-gap: 48px; } }
@media (width > 960px)  { :root { --layout-gap: 64px; --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; } }

/* Force dark always */
:root,
:root.color-scheme-auto,
:root.color-scheme-light,
:root.color-scheme-dark { color-scheme: only dark; }

/* ================================================================
   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; }
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: inherit; opacity: 1; }

/* ================================================================
   PAGE TRANSITIONS
   ================================================================ */
@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:.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; }

/* ================================================================
   BASE
   ================================================================ */
html, body { min-height: 100vh; min-height: 100svh; }
html {
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg);
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  color-scheme: only dark;
}
html.no-scroll { overflow: hidden; }
body {
  position: relative; max-width: 100%; width: 100%;
  line-height: normal;
  color: var(--text);
  accent-color: var(--accent);
  background-color: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}
::selection { color: var(--text-dark); background-color: var(--accent); }
select option { color: var(--text); background-color: var(--card); }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; }
.text-content { line-height: 1.6; word-wrap: break-word; word-break: break-word; }
.text-content h1,.text-content h2,.text-content h3,
.text-content h4,.text-content h5,.text-content h6 { font-weight: 800; margin-bottom: 16px; }
.text-content p:not(:last-child) { margin-bottom: 10px; }
.text-content h1 { font-size: 28px; }
.text-content h2 { font-size: 22px; }
.text-content h3 { font-size: 18px; }
.text-content h4 { font-size: 15px; }
.text-content ol,.text-content ul { margin-left: 1.2em; margin-bottom: 10px; }
.text-content li { display: list-item; }
.text-content img { display: inline-block; max-width: 100%; height: auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  height: var(--btn-size);
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-primary:disabled,.btn-secondary:disabled,.btn-tertiary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary.btn-small,.btn-secondary.btn-small,.btn-tertiary.btn-small   { --btn-size: var(--btn-size-small); padding: 0 10px; font-size: 10px; }
.btn-primary.btn-xsmall,.btn-secondary.btn-xsmall,.btn-tertiary.btn-xsmall { --btn-size: var(--btn-size-xsmall); padding: 0 10px; font-size: 10px; }

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  border: 1px solid var(--accent);
}
.btn-primary:hover,.btn-primary:focus {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 0 18px var(--accent-glow);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover,.btn-secondary:focus {
  background: var(--card-hover);
  border-color: var(--border-accent);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-tertiary:hover,.btn-tertiary:focus {
  background: var(--color-tertiary-hover);
  color: var(--text);
  border-color: var(--border-light);
}

/* Glyph buttons (icon masks) */
.btn-icon,.btn-icon-text,.btn-glyph,.btn-glyph-text {
  --btn-icon: url("https://template-assets.tebex.io/images/check.svg");
}
.btn-icon {
  position: relative; flex: none;
  width: var(--btn-size); height: var(--btn-size); padding: 0;
  background-image: var(--btn-icon);
  background-position: center; background-size: var(--btn-icon-size); background-repeat: no-repeat;
}
:root .btn-icon { line-height: 0; font-size: 0; color: transparent; }
.btn-icon-text { display: flex; align-items: center; min-width: var(--btn-size); }
.btn-icon-text::before {
  content: ""; display: block; margin-right: 8px;
  width: var(--btn-icon-size); height: var(--btn-icon-size); flex: none;
  background: var(--btn-icon) center/contain no-repeat;
}
.btn-glyph::before,.btn-glyph-text::before {
  content: ""; display: block;
  width: var(--btn-icon-size); height: var(--btn-icon-size); flex: none;
  background-color: var(--btn-color-text);
  mask: var(--btn-icon) center/contain no-repeat;
  transition: background-color 0.2s ease;
}
.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: var(--btn-size); height: var(--btn-size); }
: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: var(--btn-size); height: var(--btn-size); }
.btn-glyph-text::before { margin-right: 8px; }
.link-text { color: var(--text-dim); text-decoration: underline; text-decoration-thickness: 1px; transition: color 0.2s ease; }
.link-text:hover { color: var(--accent); }

/* ================================================================
   QUANTITY FIELD
   ================================================================ */
.quantity-field {
  display: flex; align-items: stretch; justify-content: center;
  height: 36px; overflow: hidden;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.quantity-field input[type=number] {
  position: relative; z-index: 1; flex: none;
  -moz-appearance: textfield; appearance: textfield;
  width: 40px; height: 100%; font-size: 13px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.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-left: calc((40px - 2ch)*-1); margin-right: .25em; order: 1; text-align: right; }
.quantity-field .open-basket { margin-right: 5px; width: fit-content; height: 100%; order: 2; font-size: 12px; white-space: nowrap; transition: color 0.2s ease; }
.quantity-field .open-basket:hover { color: var(--accent); }
.quantity-field .adjust { position: relative; z-index: 2; flex: none; width: 28px; height: 100%; padding: 0; line-height: 0; font-size: 14px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.quantity-field .adjust:hover { background: var(--card-hover); color: var(--text); }
.quantity-field .adjust.decrease { order: -1; border-radius: var(--radius) 0 0 var(--radius); }
.quantity-field .adjust.increase { order: 100; border-radius: 0 var(--radius) var(--radius) 0; }

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

/* ================================================================
   SITE SHELL
   ================================================================ */
.site {
  position: relative; display: flex; align-items: stretch;
  gap: var(--layout-gap); flex-direction: column;
  min-height: calc(100vh - var(--tebex-footer-height));
  min-height: calc(100svh - var(--tebex-footer-height));
}
.site-bg-image {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  view-transition-name: siteBgImage;
  pointer-events: none;
}
.site-header-top,.site-header,.site-navigation,.site-content,.site-footer { width: 100%; flex: none; }
.site-content { flex: 1 0 auto; view-transition-name: siteContent; padding-top: 32px; }
.site-header-top,.site-header,.site-content,.site-footer-inner {
  margin: 0 auto; padding: 0 var(--content-padding); width: 100%;
}
@media (width > 960px) {
  .site-header-top,.site-header,.site-content,.site-footer-inner { max-width: var(--content-width); }
}

/* ================================================================
   TOPBAR
   ================================================================ */
.site-header-top {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  height: 56px;
  background: rgba(7,9,10,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--bg-blur);
  view-transition-name: siteHeaderTop;
  padding: 0 var(--content-padding);
  margin-bottom: 0;
}

.topbar-logo {
  display: flex; align-items: center; flex-shrink: 0;
}
.topbar-logo img { max-height: 30px; width: auto; }
.topbar-logo-text {
  font-size: 15px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text);
}

.toggle-navigation {
  --btn-icon: url("https://template-assets.tebex.io/images/burger.svg");
  margin-right: 4px;
}

.topbar-actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}

.topbar-link {
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px; height: var(--btn-size-xsmall);
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); font-size: 11px; font-weight: 600;
  color: var(--text-dim); transition: all 0.2s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.topbar-link:hover { color: var(--text); border-color: var(--border-accent); }
.topbar-link i { font-size: 12px; color: var(--text-muted); }

.topbar-user {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px; height: var(--btn-size-xsmall);
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); font-size: 11px; font-weight: 600;
  color: var(--text-dim); transition: all 0.2s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.topbar-user:hover { color: var(--color-removed); border-color: rgba(240,64,64,.3); }
.topbar-user i { font-size: 12px; }
.topbar-user .text-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; transition: opacity 0.2s ease; font-size: 11px; }
.topbar-user:hover .text { opacity: 0; }
.topbar-user:hover .text-hover { opacity: 1; }

.topbar-basket {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px; height: var(--btn-size-xsmall);
  background: var(--accent); color: var(--text-dark);
  border: 1px solid var(--accent); border-radius: var(--radius);
  font-size: 11px; font-weight: 800; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.8px;
  transition: all 0.2s ease;
}
.topbar-basket:hover { background: var(--color-primary-hover); box-shadow: 0 0 16px var(--accent-glow); }
.topbar-basket i { font-size: 12px; }

.topbar-login {
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px; height: var(--btn-size-xsmall);
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); font-size: 11px; font-weight: 600;
  color: var(--text-dim); transition: all 0.2s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.topbar-login:hover { color: var(--accent); border-color: var(--border-accent); }

/* Site header (hero) */
.site-header { position: relative; align-content: center; view-transition-name: siteHeader; }
@media (width <= 960px) { .site-header { padding: 0; } }
body.no-hero.is-logo-centered .site-header { min-height: 60px; }
@media (width > 960px) { body.has-hero .site-header { min-height: var(--header-height); } }
.site-header .site-title { font-size: 28px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.site-header .site-title img { max-width: 500px; max-height: 80px; }
body.is-logo-centered .site-header .site-title { margin: auto; width: fit-content; text-align: center; }
body.is-logo-centered .site-header .site-title img { max-height: 120px; }
body.is-logo-centered.has-hero .site-header .site-title { position: absolute; inset: 0; filter: drop-shadow(0 2px 12px rgba(0,0,0,.9)); }
.site-header .hero-image { margin: auto; width: 100%; height: auto; max-height: var(--header-height); object-fit: cover; }
@media (width > 960px) { .site-header .hero-image { border-radius: var(--radius-lg); } }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-navigation {
  --fade-duration: 200ms;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  view-transition-name: siteNavigation;
}

.nav-inner {
  display: flex; align-items: center;
  margin: 0 auto; padding: 0 var(--content-padding);
  max-width: var(--content-width);
  min-height: 46px;
}

.nav-brand { margin-right: 24px; flex-shrink: 0; }
.nav-brand img { max-height: 26px; }
.nav-brand-text { font-size: 14px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

.nav-home-link {
  display: flex; align-items: center; gap: 6px;
  margin-right: 8px; padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-home-link i { font-size: 12px; }
.nav-home-link:hover,.nav-home-link.active { color: var(--accent); background: var(--card-active); border-color: var(--border-accent); }

.menu { display: flex; align-items: center; gap: 2px; flex: 1; }

@media (width <= 960px) {
  .site-navigation {
    position: fixed; inset: 0; z-index: 100000;
    background: transparent; border: none;
    backdrop-filter: var(--bg-blur);
    transition: display var(--fade-duration) allow-discrete, opacity var(--fade-duration) ease;
  }
  @starting-style { .site-navigation { opacity: 0; } }
  body:not(.show-navigation) .site-navigation { display: none; opacity: 0; }
  .site-navigation.drawer { user-select: none; }
  .site-navigation.may-close { backdrop-filter: none; }

  .nav-inner {
    flex-direction: column; align-items: flex-start;
    position: absolute; inset: 0 calc(var(--btn-size)*2) 0 0;
    padding: 64px 20px 20px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    max-width: none;
    transition: translate var(--fade-duration) ease, opacity var(--fade-duration) ease;
  }
  @starting-style { .nav-inner { translate: -100% 0; } }
  body:not(.show-navigation) .nav-inner { translate: -100% 0; }
  body:not(.show-navigation) .nav-inner,.site-navigation.may-close .nav-inner { opacity: 0.8; }

  .menu { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  .menu-item { width: 100%; }
  .menu-link { display: block; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-dim); transition: all 0.2s ease; }
  .menu-link:hover,.menu-link.link-active { color: var(--accent); background: var(--accent-dim); }
  .menu-sub { padding-left: 16px; margin-top: 2px; }
  .menu-sub .menu-link { font-size: 13px; }
  .has-children { position: relative; }
  .has-children .toggle { --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg"); position: absolute; top: 4px; right: 0; --btn-size: 28px; }
  .has-children .toggle::before { transition: rotate 0.15s ease; }
  .has-children.expanded > .toggle::before { rotate: 180deg; }
  .has-children:not(.expanded) .menu-sub { display: none; }

  .nav-close {
    position: absolute; top: 12px; right: calc(var(--btn-size)*2 + 12px);
    --btn-icon: url("https://template-assets.tebex.io/images/close.svg");
  }
  .nav-brand { display: none; }
}

@media (width > 960px) {
  .site-navigation { position: sticky; top: -1px; z-index: 100; transition: background 0.2s ease; }
  .site-navigation.stuck { background: rgba(7,9,10,0.95); backdrop-filter: var(--bg-blur); }

  .menu-item { position: relative; flex: 0 1 auto; }
  .menu-link {
    display: block; padding: 5px 12px; border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-dim); border: 1px solid transparent;
    white-space: nowrap; transition: all 0.2s ease;
  }
  .menu-link:hover,.menu-link.link-active { color: var(--accent); background: var(--card-active); border-color: var(--border-accent); }

  .has-children { display: flex; justify-content: center; align-items: center; }
  .has-children .toggle { --btn-size: 26px; --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg"); --btn-color-bg-hover: transparent; flex: none; transition: rotate 0.15s ease; }
  .has-children:hover > .toggle { rotate: 180deg; }
  .menu-sub {
    position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0;
    width: max-content; min-width: 160px;
    padding: 6px;
    background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius);
    backdrop-filter: var(--bg-blur);
    transition: all 0.15s ease;
  }
  .has-children:not(:hover) > .menu-sub { visibility: hidden; opacity: 0; translate: -50% -6px; }
  .menu-sub .menu-link {
    display: block; width: 100%; padding: 6px 10px; border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px; border-color: transparent;
  }
  .menu-sub .menu-link:hover,.menu-sub .menu-link.link-active {
    color: var(--accent); background: var(--card-active); border-color: transparent;
  }
}

/* ================================================================
   SECTION LABELS
   ================================================================ */
.section-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
}
.section-label i { color: var(--accent); font-size: 12px; }
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ================================================================
   HOME CATEGORIES
   ================================================================ */
.home-categories-section { margin-bottom: var(--layout-gap); }

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

.site-home-categories .category {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.site-home-categories .category::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.site-home-categories .category:hover {
  background: var(--card-hover);
  border-color: var(--border-accent);
  transform: translateX(3px);
}
.site-home-categories .category:hover::before { opacity: 1; }
.site-home-categories .category:hover .category-arrow { color: var(--accent); }

.category-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-dim); border-radius: var(--radius-sm);
  color: var(--accent); font-size: 14px;
}
.category-icon img { width: 24px; height: 24px; object-fit: contain; }
.category-icon i { font-style: normal; }

.category-name {
  flex: 1; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.category-arrow { font-size: 10px; color: var(--text-muted); transition: color 0.2s ease; flex-shrink: 0; }
.category-arrow::before { font-style: normal; }

/* ================================================================
   HOME DESCRIPTION
   ================================================================ */
.home-description-block {
  background: rgba(12,14,16,0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: var(--layout-gap);
}
.store-text { line-height: 1.6; font-size: 14px; color: var(--text-dim); }

/* ================================================================
   STORE HOME — featured packages section
   ================================================================ */
.store-home {
  padding-bottom: 48px;
}
.store-home .store-products-images {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.store-home .store-product {
  background: rgba(12,14,16,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.store-home .store-product:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 1px var(--border-accent);
}
.store-home .no-products {
  background: rgba(12,14,16,0.7);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ================================================================
   CATEGORY HERO
   ================================================================ */
.category-hero {
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  background: rgba(7,9,10,0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}
.category-hero-label {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.category-hero-label i { color: var(--accent); font-style: normal; }
.category-hero-title {
  font-size: 28px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--text); margin-bottom: 8px;
}
@media (width > 600px) { .category-hero-title { font-size: 36px; } }
.category-hero-desc { font-size: 14px; color: var(--text-dim); margin-top: 8px; line-height: 1.6; }
.category-hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.category-count {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--border-accent);
}
.category-count i { font-style: normal; font-size: 10px; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 40px; color: var(--text-muted); font-style: normal; }
.empty-state p { font-size: 14px; font-weight: 500; }
.no-products { font-size: 14px; text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--products-gap);
}
.store-products-list { display: flex; flex-direction: column; gap: 10px; }

/* ================================================================
   PRODUCT CARD (image grid)
   ================================================================ */
.store-product {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.22s ease;
  position: relative;
}
.store-products-images .store-product:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4), 0 0 0 1px var(--border-accent);
}

/* Image wrap */
.product-image-wrap {
  position: relative; display: block; overflow: hidden;
  background: rgba(10,12,14,0.95);
  aspect-ratio: 16/10;
}
.product-image-wrap .image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.store-product:hover .product-image-wrap .image { transform: scale(1.04); }

.image-default {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: rgba(10,12,14,0.95);
  color: var(--text-muted); font-size: 32px;
}
.image-default i { font-style: normal; }

/* Overlay */
.product-image-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity 0.22s ease;
}
.store-product:hover .product-image-overlay { opacity: 1; }
.product-overlay-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  background: var(--accent); color: var(--text-dark);
  border-radius: var(--radius); font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
}
.product-overlay-cta i { font-style: normal; font-size: 12px; }

/* Badges */
.product-badge-sale,
.product-badge-timer {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  z-index: 2;
}
.product-badge-sale {
  background: var(--accent); color: var(--text-dark);
}
.product-badge-timer {
  background: rgba(240,64,64,0.9); color: #fff;
  top: 10px; left: auto; right: 10px;
}
.product-badge-sale i,.product-badge-timer i { font-style: normal; font-size: 8px; }

/* Card body */
.product-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  flex: 1;
}
.product-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--text); line-height: 1.3;
}
.product-title a { transition: color 0.2s ease; }
.product-title a:hover { color: var(--accent); }
.product-countdown {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: var(--color-removed);
}
.product-countdown i { font-style: normal; }

/* Product in list view */
.store-products-list .store-product {
  flex-direction: row; align-items: center; gap: 0;
  padding: 0; border-radius: var(--radius);
}
.store-products-list .product-image-wrap {
  width: 90px; min-width: 90px; height: 70px;
  border-radius: var(--radius) 0 0 var(--radius);
  aspect-ratio: unset; flex-shrink: 0;
}
.store-products-list .product-body {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 14px;
}
.store-products-list .product-title { flex: 1; margin-bottom: 0; }
.store-products-list .product-image-overlay { display: none; }
.store-products-list .store-product:hover { transform: translateX(3px); }

/* ================================================================
   PRODUCT ACTIONS (price + buttons)
   ================================================================ */
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

.product-price-row { width: 100%; }
.price {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 11px; font-weight: 500; color: var(--text-dim);
}
.price strong { font-size: 18px; font-weight: 800; color: var(--accent); }
.price .discount { font-size: 12px; color: var(--color-removed); text-decoration: line-through; }
.price-free {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--accent);
}
.price-free i { font-style: normal; }
.price-custom {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--text-dim);
}
.price-custom i { font-style: normal; }

.product-actions .btn-primary,
.product-actions .btn-secondary { flex: 1; justify-content: center; }
.product-actions .wide { width: 100%; flex: none; }
.product-actions .half { flex: 1; }
.product-actions .gift { flex: none; width: var(--btn-size); padding: 0; justify-content: center; }
.product-actions .gift i { font-style: normal; }
.product-actions .open-basket-cta { width: 100%; justify-content: center; }
.product-actions .quantity-field { width: 100%; }

.product-actions .btn-primary i,
.product-actions .btn-secondary i,
.product-actions .btn-tertiary i { font-style: normal; }

/* ================================================================
   PRODUCT FULL PAGE
   ================================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s ease;
}
.back-link i { font-style: normal; font-size: 11px; }
.back-link:hover { color: var(--accent); }

.store-product-cont {
  padding-top: 28px;
  padding-bottom: 48px;
}

.store-product-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
@media (width > 700px) {
  .store-product-full {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0;
  }
}

/* Left: media panel */
.product-full-media {
  padding: 32px;
  background: rgba(12,14,16,0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
@media (width <= 700px) {
  .product-full-media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 220px;
  }
}

.product-full-media .image {
  width: 100%; height: auto; max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.6));
}
.product-full-media .image-default {
  height: 220px;
  border-radius: var(--radius);
  font-size: 56px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.product-full-media .image-default i { font-style: normal; }

/* Right: info panel */
.product-full-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(7,9,10,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-left: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}
@media (width <= 700px) {
  .product-full-info {
    border-left: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* Info header section */
.product-full-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,20,22,0.6);
}
.product-full-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.product-full-label i { color: var(--accent); font-style: normal; }

.product-full-info .product-title {
  font-size: 24px; font-weight: 900; letter-spacing: -0.3px;
  color: var(--text); line-height: 1.2;
}
@media (width > 600px) { .product-full-info .product-title { font-size: 30px; } }

/* Actions section */
.product-full-info .product-actions {
  flex-direction: column;
  align-items: stretch;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.product-full-info .product-price-row { width: 100%; }
.product-full-info .product-actions .price strong { font-size: 28px; }
.product-full-info .btn-primary,
.product-full-info .btn-secondary {
  width: 100%; max-width: 100%;
  justify-content: center;
  height: 44px;
}
.product-full-info .half { flex: 1; }
.product-full-info .quantity-field { width: 100%; }

/* Description section */
.product-full-divider { display: none; }

.product-full-info .descr.text-content {
  padding: 20px 28px 28px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.product-full-info .descr.text-content strong,
.product-full-info .descr.text-content b { color: var(--text); }
.product-full-info .descr.text-content ul,
.product-full-info .descr.text-content ol {
  margin-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-full-info .descr.text-content li {
  display: list-item;
  color: var(--text-dim);
  font-size: 13px;
}
.product-full-info .descr.text-content li::marker { color: var(--accent); }
.product-full-info .descr.text-content h1,
.product-full-info .descr.text-content h2,
.product-full-info .descr.text-content h3,
.product-full-info .descr.text-content h4 {
  color: var(--text);
  margin-top: 16px;
}

/* Media slider on full page */
.media-slider { --slider-spacing:6px; --thumbs-size:40px; --thumb-padding:6px; position: relative; width: 100%; overflow: hidden; }
@media (width > 360px)  { .media-slider { --slider-spacing:10px; --thumbs-size:52px; } }
@media (width > 600px)  { .media-slider { --thumbs-size:66px; } }
@media (width > 960px)  { .media-slider { --thumbs-size:80px; } }
@media (width > 1400px) { .media-slider { --thumbs-size:96px; } }
.media-slider .slider { width: 100%; min-height: 180px; overflow: hidden; margin-bottom: var(--thumb-padding); border-radius: var(--radius-lg); }
.media-slider .slider::part(container) { --swiper-navigation-size: 22px; --swiper-theme-color: var(--accent); }
.media-slider .slider::part(wrapper) { align-items: center; }
.media-slider .slide { align-content: center; }
.media-slider .slide-image { margin: auto; max-width: 100%; min-height: 180px; max-height: 100%; object-fit: contain; border-radius: var(--radius-lg); }
.media-slider .slide-video { border-radius: var(--radius-lg); background: #000 var(--preview-image) center/cover no-repeat; position: relative; }
.media-slider .slide-frame { display: block; margin: auto; width: 100%; max-height: 100%; aspect-ratio: 16/9; transition: visibility .3s ease, opacity .3s ease; }
.media-slider .slide-frame:not(.iframe-loaded) { visibility: hidden; opacity: 0; }
.media-slider .thumbs { display: flex; gap: var(--slider-spacing); flex-wrap: wrap; }
.media-slider .thumb {
  display: block; width: var(--thumbs-size); height: var(--thumbs-size);
  padding: var(--thumb-padding);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.2s ease;
}
.media-slider .thumb.active { border-color: var(--border-accent); }
.media-slider .thumb:not(.active) .thumb-image,
.media-slider .thumb:not(.active) .thumb-youtube { opacity: 0.4; }
.media-slider .thumb-image { width: calc(var(--thumbs-size) - var(--thumb-padding)*2); height: calc(var(--thumbs-size) - var(--thumb-padding)*2); object-fit: contain; transition: opacity .3s ease; }
.media-slider .thumb-youtube { position: relative; align-content: center; width: calc(var(--thumbs-size) - var(--thumb-padding)*2); height: calc(var(--thumbs-size) - var(--thumb-padding)*2); transition: opacity .3s ease; }
.media-slider .thumb-youtube img { width: 100%; height: 100%; object-fit: contain; }
.media-slider .thumb-youtube::after { content: ""; display: block; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background-color: var(--accent); mask: url("https://template-assets.tebex.io/images/play.svg") center/contain no-repeat; }
.media-slider .open-lightbox {
  position: absolute; top: var(--slider-spacing); right: var(--slider-spacing); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(7,9,10,.8); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  backdrop-filter: blur(6px); visibility: hidden; opacity: 0; transition: all .2s ease;
  line-height: 0; font-size: 0; color: transparent;
}
.media-slider .open-lightbox::before { content: ""; display: block; margin: auto; width: 15px; height: 15px; background-color: var(--text-dim); mask: url("https://template-assets.tebex.io/images/fullscreen.svg") center/contain no-repeat; transition: background-color .2s ease; }
.media-slider .open-lightbox:hover { border-color: var(--border-accent); }
.media-slider .open-lightbox:hover::before { background-color: var(--accent); }
.media-slider .slider:has(.swiper-slide-active .slide-image):hover ~ .open-lightbox,
.media-slider .open-lightbox:hover { opacity: 1; visibility: visible; }

/* Lightbox */
.popup.popup-media-slider { --slider-spacing:6px; --thumbs-size:40px; --thumb-padding:6px; display: grid; grid-template-columns: 100%; grid-template-rows: minmax(0,auto) calc(var(--thumbs-size) + var(--slider-spacing)); overflow: hidden; backdrop-filter: blur(10px); }
@media (width > 360px)  { .popup.popup-media-slider { --slider-spacing:10px; --thumbs-size:60px; } }
@media (width > 600px)  { .popup.popup-media-slider { --thumbs-size:68px; } }
@media (width > 960px)  { .popup.popup-media-slider { --thumbs-size:80px; } }
@media (width > 1400px) { .popup.popup-media-slider { --thumbs-size:100px; } }
.popup.popup-media-slider .popup-close { top: var(--slider-spacing); right: var(--slider-spacing); z-index: 2; backdrop-filter: blur(5px); border-radius: var(--radius-sm); }
.popup.popup-media-slider .slider { width: 100%; }
.popup.popup-media-slider .slider::part(container) { --swiper-navigation-size: 26px; --swiper-theme-color: var(--accent); }
.popup.popup-media-slider .slider::part(wrapper) { align-items: center; }
.popup.popup-media-slider .slide { align-content: center; padding: var(--slider-spacing); }
.popup.popup-media-slider .slide-image { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.popup.popup-media-slider .slide-video { border-radius: var(--radius); background: #000 var(--preview-image) center/cover no-repeat; position: relative; }
.popup.popup-media-slider .slide-frame { display: block; margin: auto; width: 100%; max-height: 100%; aspect-ratio: 16/9; transition: visibility .3s ease, opacity .3s ease; }
.popup.popup-media-slider .slide-frame:not(.iframe-loaded) { visibility: hidden; opacity: 0; }
.popup.popup-media-slider .thumbs { display: flex; gap: var(--slider-spacing); flex-wrap: wrap; padding: 0 var(--slider-spacing) var(--slider-spacing); }
.popup.popup-media-slider .thumb { display: block; width: var(--thumbs-size); height: var(--thumbs-size); padding: var(--thumb-padding); background: rgba(7,9,10,.7); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.popup.popup-media-slider .thumb-image,
.popup.popup-media-slider .thumb-youtube { width: calc(var(--thumbs-size) - var(--thumb-padding)*2); height: calc(var(--thumbs-size) - var(--thumb-padding)*2); transition: opacity .3s ease; }
.popup.popup-media-slider .thumb:not(.active) .thumb-image,
.popup.popup-media-slider .thumb:not(.active) .thumb-youtube { opacity: 0.4; }
.popup.popup-media-slider .thumb-image { object-fit: contain; }
.popup.popup-media-slider .thumb-youtube { position: relative; align-content: center; }
.popup.popup-media-slider .thumb-youtube img { width: 100%; height: 100%; object-fit: contain; }
.popup.popup-media-slider .thumb-youtube::after { content: ""; display: block; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; background-color: var(--accent); mask: url("https://template-assets.tebex.io/images/play.svg") center/contain no-repeat; }

/* ================================================================
   FORMS
   ================================================================ */
.store-form { font-size: 14px; }
.store-form p { margin-bottom: 16px; }
.store-form .input-group,.store-form .field,.store-form .field-inline { margin-bottom: 16px; }
.store-form .input-group > p,.store-form .field > p,.store-form .field-inline > p { margin-bottom: 8px; }
.store-form .field-inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.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 {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  color: var(--text); background: var(--input);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: 13px; transition: border-color 0.2s ease;
}
.store-form input:focus,.store-form select:focus,.store-form textarea:focus { border-color: var(--border-accent); }
.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: 10px; }
.store-form .actions .link-text { align-self: center; font-size: 13px; }

/* ================================================================
   SIDEBAR LAYOUT
   ================================================================ */
@media (width <= 960px) { .site-content-widgets { display: flex; flex-direction: column; gap: 28px; } }
@media (width > 960px) {
  body:not(.is-sidebar-bottom) .site-content-widgets { display: grid; align-items: start; gap: 40px; }
  body.is-sidebar-left  .site-content-widgets { grid-template-columns: var(--sidebar-width) 1fr; }
  body.is-sidebar-left  .site-content-widgets .store-sidebar { order: -1; }
  body.is-sidebar-right .site-content-widgets { grid-template-columns: 1fr var(--sidebar-width); }
}

/* ================================================================
   SIDEBAR WIDGETS
   ================================================================ */
.store-sidebar { display: grid; gap: 24px; }
body:not(.is-sidebar-bottom) .store-sidebar { padding-top: 12px; }
body.is-sidebar-bottom .store-sidebar { margin-top: calc(var(--layout-gap)*1.5); }
@media (width > 600px) { body.is-sidebar-bottom .store-sidebar { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); } }

.widget-title {
  margin-bottom: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.widget-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

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

.widget-gift-card { text-align: center; }
.widget-gift-card .gift-card-input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  color: var(--text); background: var(--input);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: 13px; transition: border-color 0.2s ease;
}
.widget-gift-card .gift-card-input:focus { border-color: var(--border-accent); }
.widget-gift-card .check { width: 100%; }

.widget-recent .purchase { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; line-height: 1.4; }
.widget-recent .avatar { flex: none; width: 34px; height: 34px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.widget-recent .username { font-weight: 700; color: var(--text); font-size: 13px; }
.widget-recent .empty { text-align: center; color: var(--text-muted); font-size: 13px; }
.widget-recent time { opacity: 0.5; font-size: 0.85em; }
.widget-recent .sep { margin: 0 .3em; }

.widget-top-donator .avatar { margin-bottom: 10px; max-width: 72px; border-radius: var(--radius); border: 2px solid var(--border-accent); }
.widget-top-donator .username { margin-bottom: 5px; font-weight: 700; font-size: 15px; }
.widget-top-donator .empty { text-align: center; color: var(--text-muted); font-size: 13px; }

.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: 8px; }
.widget-community-goal .progress,.widget-goal .progress { height: 5px; margin-bottom: 10px; overflow: hidden; background: var(--card); border-radius: 3px; }
@keyframes progressBarAnimation { to { background-position: 100% 0; } }
.widget-community-goal .progress-bar,.widget-goal .progress-bar { height: 5px; border-radius: 3px; background: var(--accent); }
.widget-community-goal .progress-bar.striped,.widget-goal .progress-bar.striped {
  background: var(--accent) linear-gradient(135deg, var(--accent) 0%, var(--accent) 33%, rgba(255,255,255,0.18) 33%, rgba(255,255,255,0.18) 66%, var(--accent) 66%) repeat;
  background-size: 18px 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 10px; max-width: 72px; }
.widget-community-goal .descr { margin-bottom: 10px; font-size: 13px; color: var(--text-dim); }
.widget-server-status .widget-content { text-align: center; }
.widget-server-status h6 { margin-bottom: 10px; }

/* ================================================================
   CHECKOUT / BASKET — full page layout
   ================================================================ */
.site-content > .basket {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(7,9,10,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.basket {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}

.basket-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}
.basket-header-left { display: flex; align-items: center; gap: 10px; }
.basket-header-icon { font-size: 16px; color: var(--accent); font-style: normal; }
.basket-title { font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.basket-count {
  font-size: 10px; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
  padding: 2px 9px; border-radius: 20px; border: 1px solid var(--border-accent);
}

.basket-second-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.basket-second-header .count { display: flex; align-items: center; gap: 6px; }
.basket-second-header .count i { font-style: normal; font-size: 11px; color: var(--text-muted); }
.basket-second-header .total { font-size: 14px; font-weight: 800; color: var(--accent); }
.basket-second-header .total strong { font-size: 16px; }

.basket-content { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.basket-items { display: flex; flex-direction: column; padding: 16px; gap: 8px; }

.basket-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.basket-item:hover { border-color: var(--border-light); }

.basket-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.basket-item-title { font-size: 13px; font-weight: 700; color: var(--text); }
.basket-item-title a { transition: color 0.2s ease; }
.basket-item-title a:hover { color: var(--accent); }
.basket-item-options { display: flex; flex-direction: column; gap: 2px; }
.basket-item-options li { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.basket-item-options i { font-size: 10px; color: var(--text-muted); font-style: normal; }
.basket-item-options strong { color: var(--text); }
.basket-item-price { font-size: 14px; font-weight: 800; color: var(--accent); margin-top: 2px; }
.basket-item-price strong { font-size: 14px; }

.basket-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.basket-item-controls .quantity-field { height: 32px; border-radius: var(--radius-sm); }
.basket-item-controls .quantity-field .adjust { width: 24px; }
.basket-remove {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-dim);
  transition: all 0.2s ease; cursor: pointer;
}
.basket-remove:hover { color: var(--color-removed); border-color: rgba(240,64,64,.3); background: rgba(240,64,64,.06); }
.basket-remove i { font-size: 12px; font-style: normal; }

.basket-checkout {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0;
}
.basket-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim);
}
.basket-total-row .total { font-size: 20px; color: var(--accent); letter-spacing: 0; }
.basket-total-row .total strong { font-size: 20px; }
.basket-checkout .btn-primary.checkout {
  width: 100%; justify-content: center;
  height: 44px; font-size: 13px; font-weight: 800; letter-spacing: 1px;
}
.basket-checkout .btn-primary.checkout i { font-style: normal; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  view-transition-name: siteFooter;
}
.site-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.footer-left {}
.copyright { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.we-accept { display: flex; align-items: center; gap: 10px; }
.we-accept li { display: block; }
.we-accept img { max-width: 48px; max-height: 22px; display: block; filter: grayscale(1) brightness(0.8); transition: filter 0.2s ease; }
.we-accept img:hover { filter: grayscale(0) brightness(1); }

.site-footer-credit {
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.site-footer-credit .site-footer-credit-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin: auto; padding: 12px var(--content-padding);
  max-width: var(--content-width);
}
.site-footer-credit .copyright { display: flex; align-items: center; gap: 14px; }
.site-footer-credit .copyright .tebex-logo-link { flex: none; }
.site-footer-credit .legal { display: flex; gap: 14px; }
.site-footer-credit .legal a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.site-footer-credit .legal a:hover { color: var(--accent); }

/* ================================================================
   POPUPS
   ================================================================ */
.popup {
  --fade-duration: 240ms;
  position: fixed; top: 0; left: 0; bottom: 0; width: 100vw;
  z-index: 1000; overflow: hidden scroll;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  background: var(--color-popup-bg);
  backdrop-filter: blur(5px);
  transition: opacity var(--fade-duration) ease, display var(--fade-duration) allow-discrete;
}
@starting-style { .popup { opacity: 0; } }
.popup.drawer { user-select: none; }
.popup[hidden] { opacity: 0; display: none; }
.popup-scroll-cont {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%; padding: 20px;
  overflow: hidden; overscroll-behavior: none;
}
@media (width > 600px) { .popup-scroll-cont { padding: 32px; } }
@media (pointer: coarse) { .popup .popup-scroll-cont { align-items: flex-end; padding-bottom: 0; } }

.popup-content {
  position: relative; width: 100%; max-width: 500px;
  padding: var(--widget-padding);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.65);
  transition: translate var(--fade-duration) ease, opacity var(--fade-duration) ease;
}
@media (pointer: coarse) { .popup-content { padding-bottom: calc(var(--widget-padding)*2); } }
@starting-style { .popup-content { translate: 0 14px; } }
.popup.drawer-down .popup-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.popup.drawer-up   .popup-content { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.popup.drawer-right .popup-content { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.popup.drawer-left  .popup-content { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.popup.touching .popup-content { transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease; }
.popup.drawer[hidden] .popup-content,.popup.may-close .popup-content { opacity: 0.8; scale: 0.95; }
.popup.may-close .popup-content { border-radius: var(--radius-lg); }
.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 14px; }
.popup.popup-loading .popup-content { min-height: 150px; }
.popup.popup-loading .popup-content::before {
  content: ""; display: block; position: absolute; inset: 0; margin: auto;
  width: 30px; height: 30px;
  background: url("https://template-assets.tebex.io/images/loading.svg") center/contain no-repeat;
}
.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(--border-light); border-radius: 2px; pointer-events: none;
}
.drawer-up .popup-content::after,.drawer-down .popup-content::after { left: 0; right: 0; margin-inline: auto; height: 3px; width: 72px; }
.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: 3px; height: 72px; }
.drawer-left  .popup-content::after { right: 7px; }
.drawer-right .popup-content::after { left: 7px; }

.popup-close {
  position: absolute; top: 0; right: 0;
  width: var(--btn-size); height: var(--btn-size);
  background-color: var(--text-dim);
  mask: url("https://template-assets.tebex.io/images/close.svg") center/18px no-repeat;
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
  line-height: 0; font-size: 0; color: transparent;
  transition: background-color 0.2s ease;
}
.popup-close:hover { background-color: var(--accent); }

.store-product-popup-content { max-width: 740px; }
.product-options-popup .popup-content { max-width: 420px; }
.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: 10px; }
.gift-form-popup .popup-content .btn-primary { width: 100%; justify-content: center; }
.gift-form-popup .popup-content .actions { position: relative; width: 100%; }
.gift-form-popup .popup-content .actions.updating { pointer-events: none; }
.gift-form-popup .popup-content .actions.updating > * { opacity: .3; filter: grayscale(1); }
.gift-form-popup .popup-content .actions.updating::before {
  content: ""; display: block; position: absolute; inset: 0; z-index: 10; margin: auto;
  width: 26px; height: 26px;
  background: url("https://template-assets.tebex.io/images/loading.svg") center/contain no-repeat;
}

/* ================================================================
   STORE PRODUCT OPTIONS (checkout form)
   ================================================================ */
.store-product-options .product-title { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.store-product-options .actions { position: sticky !important; bottom: var(--widget-padding); justify-content: start; width: fit-content; max-width: 100%; }
.store-product-options .actions.updating { pointer-events: none; }
.store-product-options .actions.updating > * { opacity: .3; filter: grayscale(1); }
.store-product-options .actions.updating::before {
  content: ""; display: block; position: absolute; inset: 0; z-index: 10; margin: auto;
  width: 26px; height: 26px;
  background: url("https://template-assets.tebex.io/images/loading.svg") center/contain no-repeat;
}
.store-product-options .actions .btn-primary,.store-product-options .actions .btn-secondary,.store-product-options .actions .btn-tertiary { width: 200px; justify-content: center; }
.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; justify-content: center; }

/* basket popup close button position */
.basket-popup .popup-close { border-radius: 0 0 0 var(--radius-sm); }

/* ================================================================
   TOASTS
   ================================================================ */
.toaster {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 340px;
}
.toast {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,.4);
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: opacity 0.25s ease, translate 0.25s ease;
}
.toast[hidden] { opacity: 0; translate: 0 8px; }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-success { border-left: 3px solid #22c55e; }
.toast-warning { border-left: 3px solid #f59e0b; }
.toast-error   { border-left: 3px solid var(--color-removed); }
.toast p { flex: 1; line-height: 1.4; }
.toast-close {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-size: 12px; color: var(--text-muted);
  background: var(--card-hover); border-radius: var(--radius-sm);
  line-height: 0; cursor: pointer; transition: color 0.15s ease;
}
.toast-close:hover { color: var(--text); }

/* ================================================================
   MISC PAGES
   ================================================================ */
.back-to-top {
  --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
  margin: calc(var(--widget-padding)*2) auto;
}
.back-to-top::before { rotate: 90deg; }

/* ================================================================
   LOGIN POPUP — full restyle
   ================================================================ */
.login-popup .popup-content {
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
}
.login-popup .popup-content h1,
.login-popup .popup-content h2,
.login-popup .popup-content h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-popup .popup-content h1::before,
.login-popup .popup-content h2::before,
.login-popup .popup-content h3::before {
  content: '\f2f6';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
}
.login-popup .popup-content p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}
.login-popup .popup-content .btn-primary,
.login-popup .popup-content a.btn-primary {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.login-popup .popup-content .store-form input {
  background: var(--input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
}
.login-popup .popup-content .store-form input:focus {
  border-color: var(--border-accent);
}
.login-popup .popup-content .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.login-popup .popup-content .link-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ================================================================
   BASKET POPUP — full restyle
   ================================================================ */
.basket-popup {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}
.basket-popup .popup-scroll-cont {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.basket-popup .popup-content {
  max-width: 360px;
  width: 100%;
  min-height: 100%;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border-light);
  box-shadow: -8px 0 40px rgba(0,0,0,0.6);
}
.basket-popup .popup-close {
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--text-dim);
  mask-size: 14px;
  position: absolute;
  z-index: 10;
}
.basket-popup .popup-close:hover { background-color: var(--accent); }

/* basket header */
.basket-popup .basket-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}
.basket-popup .basket-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.basket-popup .basket-title::before {
  content: '\f290';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
  color: var(--accent);
}

/* basket second header (count + total) */
.basket-popup .basket-second-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  flex-shrink: 0;
}
.basket-popup .basket-second-header .total strong {
  font-size: 15px; font-weight: 800; color: var(--accent);
}

/* basket items */
.basket-popup .basket-content {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.basket-popup .basket-items { display: flex; flex-direction: column; gap: 1px; padding: 0; }
.basket-popup .basket-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--card);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: background 0.15s ease;
}
.basket-popup .basket-item:hover { background: var(--card-hover); }
.basket-popup .basket-item-title { font-size: 13px; font-weight: 700; }
.basket-popup .basket-item-title a:hover { color: var(--accent); }
.basket-popup .basket-item-price { font-size: 13px; font-weight: 800; color: var(--accent); }
.basket-popup .basket-item-price strong { font-size: 13px; }
.basket-popup .basket-item-controls { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.basket-popup .quantity-field { height: 28px; border-radius: var(--radius-sm); }
.basket-popup .quantity-field .adjust { width: 22px; font-size: 12px; }
.basket-popup .basket-remove {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--card-hover); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.15s ease; cursor: pointer;
  font-size: 11px;
}
.basket-popup .basket-remove:hover { color: var(--color-removed); border-color: rgba(240,64,64,.3); }

/* basket checkout footer */
.basket-popup .basket-checkout {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0;
}
.basket-popup .basket-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim);
}
.basket-popup .basket-total-row .total { font-size: 22px; letter-spacing: 0; }
.basket-popup .basket-total-row .total strong { font-size: 22px; color: var(--accent); }
.basket-popup .btn-primary.checkout {
  width: 100%; justify-content: center;
  height: 46px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  border-radius: var(--radius);
}

/* ================================================================
   TEBEX NATIVE BASKET PANEL — the built-in right-side panel
   Tebex renders this themselves, we can only style via CSS
   ================================================================ */

/* The outer popup wrapper */
.basket-popup-content.basket,
.basket-popup .popup-content {
  display: flex;
  flex-direction: column;
  background: var(--surface) !important;
  border-left: 1px solid var(--border-light) !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: none !important;
  box-shadow: -12px 0 48px rgba(0,0,0,.7) !important;
  padding: 0 !important;
}

/* basket header */
.basket .basket-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: var(--card) !important;
  border-bottom: 1px solid var(--border) !important;
  flex-shrink: 0 !important;
}
.basket .basket-header h3,
.basket .basket-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
}

/* second header: item count + running total */
.basket .basket-second-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--text-dim) !important;
}
.basket .basket-second-header .total strong {
  color: var(--accent) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* scrollable items area */
.basket .basket-content {
  flex: 1 !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--border) transparent !important;
}
.basket .basket-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 8px !important;
}

/* individual basket item */
.basket .basket-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 6px !important;
  transition: background 0.15s ease !important;
}
.basket .basket-item:hover { background: var(--card-hover) !important; }
.basket .basket-item .info { flex: 1 !important; min-width: 0 !important; }
.basket .basket-item .title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}
.basket .basket-item .title a:hover { color: var(--accent) !important; }
.basket .basket-item .price {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--accent) !important;
}
.basket .basket-item .price strong { font-size: 13px !important; color: var(--accent) !important; }
.basket .basket-item .options li {
  font-size: 11px !important;
  color: var(--text-dim) !important;
}

/* quantity controls inside basket */
.basket .basket-item .quantity-field {
  height: 28px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--input) !important;
  border: 1px solid var(--border-light) !important;
}
.basket .basket-item .quantity-field .adjust {
  width: 22px !important;
  font-size: 13px !important;
  color: var(--text-dim) !important;
}
.basket .basket-item .quantity-field input[type=number] {
  font-size: 12px !important;
  color: var(--text) !important;
}

/* remove button */
.basket .basket-item a.remove,
.basket .basket-item .remove {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
  background: var(--card-hover) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-muted) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}
.basket .basket-item a.remove::after,
.basket .basket-item .remove::after {
  content: '\f1f8' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  color: var(--text-muted) !important;
}
.basket .basket-item a.remove:hover,
.basket .basket-item .remove:hover {
  border-color: rgba(240,64,64,.35) !important;
  background: rgba(240,64,64,.08) !important;
}
.basket .basket-item a.remove:hover::after,
.basket .basket-item .remove:hover::after { color: var(--color-removed) !important; }

/* total + checkout footer */
.basket .basket-checkout {
  padding: 14px 20px !important;
  background: var(--card) !important;
  border-top: 1px solid var(--border) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.basket .basket-checkout h3 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-dim) !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.basket .basket-checkout h3 .total { font-size: 22px !important; letter-spacing: 0 !important; }
.basket .basket-checkout h3 .total strong { color: var(--accent) !important; font-size: 22px !important; font-weight: 900 !important; }

.basket .basket-checkout button.checkout,
.basket .basket-checkout .checkout {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--accent) !important;
  color: var(--text-dark) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}
.basket .basket-checkout button.checkout:hover,
.basket .basket-checkout .checkout:hover {
  background: var(--color-primary-hover) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

/* ================================================================
   CATEGORY PAGE — solid cards over bg image
   ================================================================ */
.store-products-images .store-product {
  background: rgba(12,14,16,0.92);
  backdrop-filter: blur(8px);
  border-color: var(--border-light);
}
.store-products-list .store-product {
  background: rgba(12,14,16,0.92);
  backdrop-filter: blur(8px);
  border-color: var(--border-light);
}

/* Wrap the whole category content in a subtle dark backdrop */
.store-products {
  background: rgba(7,9,10,0.55);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Category hero */
.category-hero {
  background: rgba(7,9,10,0.82) !important;
  backdrop-filter: blur(20px) !important;
}

/* Home description */
.home-description-block { background: rgba(12,14,16,0.88); backdrop-filter: blur(12px); }

/* Hide old nav bar on desktop — we use topbar-nav instead */
@media (width > 960px) {
  .site-navigation { display: none !important; }
}

/* Mobile nav drawer */
.site-navigation { background: rgba(13,15,17,0.92); backdrop-filter: blur(10px); }
.site-navigation.stuck { background: rgba(7,9,10,0.97); }

/* Topbar always solid */
.site-header-top { background: rgba(7,9,10,0.95); }

/* ================================================================
   TOPBAR INLINE NAV (desktop)
   ================================================================ */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin: 0 16px;
  overflow: hidden;
}
.topbar-nav-link {
  display: flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.topbar-nav-link:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}
.topbar-nav-link.active {
  color: var(--accent);
  background: var(--card-active);
  border-color: var(--border-accent);
}

/* ================================================================
   TEBEX NATIVE BASKET WIDGET (top-right corner preview)
   ================================================================ */
#tebex-basket,
.tebex-basket,
[class*="tebex-basket"],
[id*="tebex-basket"] {
  background: var(--card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.7) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
}

/* The trigger button / basket icon in topbar */
#basket-button,
.basket-button,
[data-basket-button] {
  background: var(--accent) !important;
  color: var(--text-dark) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

/* Basket panel header */
#tebex-basket .basket-header,
.tebex-basket .basket-header,
.basket-widget-header {
  background: var(--card) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 14px 18px !important;
}

/* Items inside the native widget */
.basket-widget-item,
[class*="basket-item"] {
  background: var(--card) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 10px 18px !important;
}

/* Total */
.basket-widget-total,
[class*="basket-total"] {
  color: var(--accent) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

/* Checkout button inside widget */
.basket-widget-checkout,
[class*="basket-checkout"] a,
[class*="basket-checkout"] button {
  background: var(--accent) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border: none !important;
  width: 100% !important;
  text-align: center !important;
  padding: 12px !important;
}
.basket-widget-checkout:hover,
[class*="basket-checkout"] a:hover,
[class*="basket-checkout"] button:hover {
  background: var(--color-primary-hover) !important;
  box-shadow: 0 0 16px var(--accent-glow) !important;
}
