@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --color-primary: #ff3b3b;
  --color-primary-hover: #ff5757;
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;

  --lexa-bg: #070707;
  --lexa-bg-2: #101010;
  --lexa-card: #141414;
  --lexa-card-2: #1a1a1a;
  --lexa-border: #252525;
  --lexa-text: #ffffff;
  --lexa-muted: #b8b8b8;
  --lexa-primary: #ff3b3b;
  --lexa-radius: 18px;
  --lexa-shadow: 0 18px 55px rgba(0,0,0,.35);

  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255,59,59,.14), transparent 34%),
    #070707;
  color: var(--lexa-text);
  font-family: Inter, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

.lexa-background-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,59,59,.18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.lexa-site,
.lexa-main-content {
  position: relative;
  z-index: 1;
}

/* BUTTONS */

.btn-primary,
.btn-secondary,
.btn-tertiary,
.lexa-btn,
.lexa-btn-primary,
.lexa-subscribe-btn,
.lexa-add-btn,
.lexa-checkout-btn,
.lexa-confirm-btn,
.lexa-back-btn {
  border-radius: 12px !important;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: .25s ease;
}

.btn-primary,
.lexa-btn-primary,
.lexa-subscribe-btn,
.lexa-add-btn,
.lexa-checkout-btn,
.lexa-confirm-btn {
  background: var(--lexa-primary) !important;
  border: 1px solid var(--lexa-primary) !important;
  color: #fff !important;
}

.btn-secondary,
.lexa-back-btn {
  background: #151515 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.lexa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255,59,59,.22);
}

/* HEADER */

.lexa-header {
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto;
  border: 1px solid var(--lexa-border);
  border-radius: 20px;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 50;
}

.lexa-header-inner {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lexa-header-left,
.lexa-header-right,
.lexa-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lexa-logo {
  max-height: 48px;
}

.lexa-logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.lexa-site-title {
  margin: 0;
}

.lexa-site-title a {
  color: #fff;
  text-decoration: none;
}

.lexa-menu-toggle {
  display: none;
}

.lexa-server-box,
.lexa-discord-box,
.lexa-login-btn-header,
.lexa-basket-btn,
.lexa-user-btn {
  background: #121212;
  border: 1px solid #282828;
  border-radius: 14px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
}

.lexa-sale-banner {
  background: var(--lexa-primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  border-radius: 0 0 18px 18px;
}

/* NAVIGATION */

.lexa-navigation-horizontal .lexa-navigation-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lexa-navigation-link,
.lexa-submenu-link {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 12px;
  font-weight: 700;
}

.lexa-navigation-link:hover,
.lexa-navigation-list .active > a,
.link-active {
  background: rgba(255,59,59,.13);
  color: #ff6b6b !important;
}

.lexa-submenu {
  list-style: none;
  padding: 8px;
  margin: 8px 0 0;
  background: #111;
  border: 1px solid #252525;
  border-radius: 14px;
}

/* HERO SHARED */

.lexa-home-hero,
.lexa-category-hero,
.lexa-product-hero,
.lexa-basket-hero,
.lexa-page-hero,
.lexa-login-hero,
.lexa-options-hero,
.lexa-quote-hero,
.lexa-tiered-hero {
  padding: 90px 20px 60px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255,59,59,.18), transparent 35%),
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.95)),
    var(--bg-image);
  background-size: cover;
  background-position: center;
}

.lexa-home-hero h1,
.lexa-category-hero h1,
.lexa-product-hero h1,
.lexa-basket-hero h1,
.lexa-page-hero h1,
.lexa-login-hero h1,
.lexa-options-hero h1,
.lexa-quote-hero h1,
.lexa-tiered-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.lexa-home-hero p,
.lexa-category-hero p,
.lexa-product-hero p,
.lexa-basket-hero p,
.lexa-page-hero p,
.lexa-login-hero p,
.lexa-options-hero p,
.lexa-quote-hero p,
.lexa-tiered-hero p {
  color: var(--lexa-muted);
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 760px;
  margin: auto;
  line-height: 1.7;
}

.lexa-badge,
.lexa-widget-badge {
  display: inline-block;
  color: #ff7777;
  background: rgba(255,59,59,.12);
  border: 1px solid rgba(255,59,59,.28);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* HOMEPAGE */

.lexa-home-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.lexa-home-categories-section,
.lexa-home-content-wrapper,
.lexa-category-content,
.lexa-product-wrapper,
.lexa-basket-wrapper,
.lexa-page-content-wrapper,
.lexa-login-wrapper,
.lexa-options-wrapper,
.lexa-quote-wrapper,
.lexa-tiered-wrapper {
  width: min(1200px, calc(100% - 32px));
  margin: auto;
  padding: 55px 0;
}

.lexa-section-title {
  text-align: center;
  margin-bottom: 30px;
}

.lexa-section-title h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 10px;
}

.lexa-section-title p {
  color: var(--lexa-muted);
}

.lexa-home-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.lexa-category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--lexa-border);
  background: #111;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--lexa-shadow);
}

.lexa-category-card .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.lexa-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}

.lexa-category-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.lexa-category-content h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.lexa-category-content span {
  color: #ff7777;
  font-weight: 800;
}

/* CONTENT CARDS */

.lexa-home-card,
.lexa-page-card,
.lexa-login-card,
.lexa-options-card,
.lexa-quote-card,
.lexa-basket,
.store-text,
.category-description,
.store-product-full,
.store-category-tiered {
  background: linear-gradient(180deg, var(--lexa-card), #0d0d0d);
  border: 1px solid var(--lexa-border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--lexa-shadow);
}

/* CATEGORY PRODUCTS */

.lexa-category-content,
.lexa-product-wrapper,
.lexa-tiered-wrapper,
.lexa-page-content-wrapper,
.lexa-home-content-wrapper.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.lexa-products-grid,
.store-products-list,
.store-products-images {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lexa-store-product-card,
.lexa-product-card,
.store-product {
  background: linear-gradient(180deg, #151515, #0d0d0d);
  border: 1px solid var(--lexa-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--lexa-shadow);
  transition: .25s ease;
}

.lexa-store-product-card:hover,
.lexa-product-card:hover,
.store-product:hover {
  transform: translateY(-4px);
  border-color: rgba(255,59,59,.75);
}

.lexa-product-card-image,
.lexa-product-image,
.store-product .image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.lexa-product-card-content {
  padding: 18px;
}

.lexa-product-card-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.lexa-product-card-title a,
.product-title a {
  color: #fff;
  text-decoration: none;
}

.lexa-countdown {
  display: inline-block;
  margin-left: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,59,59,.14);
  color: #ff7777;
  font-size: 12px;
}

/* PRODUCT ACTIONS */

.lexa-product-actions-box {
  display: grid;
  gap: 14px;
}

.lexa-product-price {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.lexa-final-price,
.lexa-price-format,
.lexa-price-wrapper {
  color: #ff5757;
  font-weight: 900;
}

.lexa-discount-price {
  color: #777;
  margin-right: 8px;
}

.lexa-product-buttons {
  display: grid;
  gap: 10px;
}

.lexa-product-buttons .wide,
.lexa-product-buttons .half,
.lexa-product-buttons a,
.lexa-product-buttons button {
  width: 100%;
  text-align: center;
}

/* SIDEBAR / WIDGETS */

.lexa-sidebar,
.lexa-home-sidebar,
.lexa-product-sidebar,
.lexa-page-sidebar,
.lexa-tiered-sidebar,
.store-sidebar {
  background: linear-gradient(180deg, #141414, #0d0d0d);
  border: 1px solid var(--lexa-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--lexa-shadow);
}

.lexa-widget,
.widget {
  background: linear-gradient(180deg, #151515, #0e0e0e);
  border: 1px solid var(--lexa-border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  color: #fff;
}

.lexa-widget-title,
.widget-title {
  margin: 0 0 14px;
  font-size: 20px;
  color: #fff;
}

.lexa-widget-content {
  color: var(--lexa-muted);
}

.lexa-progress,
.progress {
  height: 12px;
  background: #0a0a0a;
  border: 1px solid #252525;
  border-radius: 999px;
  overflow: hidden;
}

.lexa-progress-bar,
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff3b3b, #ff7777);
  border-radius: 999px;
}

.lexa-avatar,
.avatar,
.lexa-topdonator-avatar {
  border-radius: 50%;
}

/* BASKET */

.lexa-basket-summary,
.lexa-basket-item,
.lexa-basket-checkout {
  background: #101010;
  border: 1px solid var(--lexa-border);
  border-radius: 18px;
  padding: 18px;
}

.lexa-basket-summary,
.lexa-basket-checkout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.lexa-basket-items {
  display: grid;
  gap: 18px;
}

.lexa-basket-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.lexa-quantity-field,
.quantity-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lexa-quantity-field button,
.lexa-quantity-field input,
.quantity-field button,
.quantity-field input {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #151515;
  color: #fff;
  text-align: center;
}

.lexa-remove {
  color: #ff7777 !important;
  border: 1px solid rgba(255,59,59,.35);
  background: rgba(255,59,59,.1);
}

/* FORMS */

.lexa-field,
.field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.lexa-input,
.lexa-select,
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #303030;
  background: #101010;
  color: #fff;
  padding: 12px 14px;
}

.lexa-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* MEDIA SLIDER */

.lexa-media-slider,
.media-slider {
  display: grid;
  gap: 14px;
}

.lexa-slider,
.media-slider .slider {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--lexa-border);
}

.lexa-slide-image,
.slide-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lexa-thumbs,
.thumbs {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  overflow-x: auto;
}

.lexa-thumb,
.thumb {
  min-width: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lexa-border);
  cursor: pointer;
}

.lexa-thumb.active,
.thumb.active {
  border-color: var(--lexa-primary);
}

.lexa-lightbox-btn,
.open-lightbox {
  background: #151515;
  border: 1px solid #333;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
}

/* FOOTER */

.lexa-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 35px 0;
  border-top: 1px solid #1e1e1e;
}

.lexa-footer-top,
.lexa-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.lexa-footer-brand h3 {
  margin: 0 0 8px;
}

.lexa-footer-brand p,
.lexa-copyright {
  color: var(--lexa-muted);
}

.lexa-we-accept {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.lexa-we-accept img {
  height: 26px;
}

.lexa-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lexa-footer-links a {
  color: #bbb;
  text-decoration: none;
}

/* TOAST / POPUP */

.popup-content {
  border-radius: 22px;
  background: #101010;
  border: 1px solid var(--lexa-border);
}

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

.toast {
  border-radius: 14px;
  background: #111;
  border: 1px solid var(--lexa-border);
  color: #fff;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .lexa-category-content,
  .lexa-product-wrapper,
  .lexa-tiered-wrapper,
  .lexa-page-content-wrapper,
  .lexa-home-content-wrapper.with-sidebar {
    grid-template-columns: 1fr;
  }

  .lexa-products-grid,
  .store-products-list,
  .store-products-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .lexa-header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .lexa-menu-toggle {
    display: inline-flex;
  }

  .lexa-header-navigation {
    width: 100%;
  }

  .lexa-navigation-horizontal .lexa-navigation-list {
    flex-direction: column;
  }

  .lexa-header-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .lexa-header {
    width: calc(100% - 20px);
    position: relative;
    top: 0;
  }

  .lexa-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .lexa-header-left,
  .lexa-header-right,
  .lexa-user-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lexa-home-hero,
  .lexa-category-hero,
  .lexa-product-hero,
  .lexa-basket-hero,
  .lexa-page-hero,
  .lexa-login-hero,
  .lexa-options-hero,
  .lexa-quote-hero,
  .lexa-tiered-hero {
    padding: 65px 16px 45px;
  }

  .lexa-home-hero h1,
  .lexa-category-hero h1,
  .lexa-product-hero h1,
  .lexa-basket-hero h1,
  .lexa-page-hero h1,
  .lexa-login-hero h1,
  .lexa-options-hero h1,
  .lexa-quote-hero h1,
  .lexa-tiered-hero h1 {
    letter-spacing: -1px;
  }

  .lexa-home-categories,
  .lexa-products-grid,
  .store-products-list,
  .store-products-images {
    grid-template-columns: 1fr;
  }

  .lexa-home-categories-section,
  .lexa-home-content-wrapper,
  .lexa-category-content,
  .lexa-product-wrapper,
  .lexa-basket-wrapper,
  .lexa-page-content-wrapper,
  .lexa-login-wrapper,
  .lexa-options-wrapper,
  .lexa-quote-wrapper,
  .lexa-tiered-wrapper {
    width: calc(100% - 24px);
    padding: 35px 0;
  }

  .lexa-basket-summary,
  .lexa-basket-checkout,
  .lexa-footer-top,
  .lexa-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lexa-basket-item {
    grid-template-columns: 1fr;
  }

  .lexa-actions,
  .actions,
  .lexa-home-buttons {
    flex-direction: column;
  }

  .lexa-actions > *,
  .actions > *,
  .lexa-home-buttons > *,
  .lexa-checkout-btn {
    width: 100%;
  }

  .lexa-footer-links,
  .lexa-we-accept {
    justify-content: center;
  }
}