:root {
  --color-text: #edf0ff;
  --color-text-secondary: #aab4d6;
  --color-bg: #040612;
  --color-brighter-bg: #0b1125;
  --color-primary: #8c72ff;
  --color-primary-hover: #a890ff;
  --color-primary-text: #f4f2ff;
  --color-secondary: #18203d;
  --color-secondary-hover: #1f2950;
  --color-secondary-text: #dce2ff;
  --color-tertiary: transparent;
  --color-tertiary-hover: #151c36;
  --color-tertiary-text: #dce2ff;
  --color-sale-banner-bg: linear-gradient(120deg, #5f4fe8, #7a67ff);
  --color-sale-banner-text: #f7f5ff;
  --widget-padding: 18px;
  --content-padding: 20px;
  --content-inner-width: 1280px;
  --content-width: calc((var(--content-padding) * 2) + var(--content-inner-width));
  --sidebar-width: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 20% 0%, #141c40 0%, #040612 55%), #040612;
}

a {
  color: inherit;
  text-decoration: none;
}

*[hidden] {
  display: none !important;
}

.site {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  min-height: 100vh;
  padding-bottom: 0;
}

.site-header,
.site-sale-banner,
.site-home-categories,
.site-content,
.site-footer-inner {
  margin: 0;
  width: 100%;
}

.site-footer {
  margin-top: 0;
}

.site-header {
  margin-top: 0;
}

.site-header-inner {
  position: relative;
  min-height: 240px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.site-title {
  margin: 40px auto 0;
  width: fit-content;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  text-align: center;
}

.site-title img {
  max-height: 88px;
}

.site-header .actions,
.site-header .user-actions,
.site-header .log-in {
  position: absolute;
  top: 18px;
}

.site-header .actions {
  left: 18px;
}

.toggle-navigation {
  display: none;
}

.site-header .user-actions,
.site-header .log-in {
  right: 18px;
}

.site-header .user-actions {
  display: flex;
  gap: 10px;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: #faf8ff;
  background: linear-gradient(120deg, #5f5dff, #9a6bff);
  box-shadow: 0 8px 24px #8c72ff4d;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--color-secondary-text);
  background: #161f3d;
  border-color: #7583c53d;
}

.btn-tertiary {
  color: #cad2f2;
  background: #121a33;
  border-color: #7583c53d;
}

.site-sale-banner {
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: var(--color-sale-banner-bg);
  text-align: center;
  font-weight: 700;
}

.site-navigation.navigation-horizontal {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-navigation .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.site-navigation .menu > li > a {
  display: block;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.site-navigation .menu > li > a:hover,
.site-navigation .menu > li > a.link-active {
  color: #fff;
  background: #161f3d;
}

.site-navigation .close-navigation {
  display: none;
}

.site-content {
  display: grid;
  gap: 20px;
}

.site-content.site-content-widgets {
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
}

.store-text,
.store-product,
.widget,
.category-description,
.store-category-tiered {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.store-text,
.store-product,
.store-category-tiered,
.widget {
  padding: var(--widget-padding);
}

.store-text h1,
.store-text h2,
.store-text h3 {
  margin-top: 0;
}

.category-description {
  margin-bottom: 14px;
  padding: 14px;
}

.store-products-images,
.store-products-list,
.store-products-tiered {
  display: grid;
  gap: 14px;
}

.store-products-images,
.store-products-tiered {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.store-product .image {
  max-width: 100%;
  border-radius: 12px;
}

.store-product .image-default {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a2448, #101632);
}

.product-title {
  margin: 0;
  font-size: 1.2rem;
}

.countdown {
  color: #c8b8ff;
  font-size: 0.82rem;
}

.actions.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .price {
  width: 100%;
  color: #d9d0ff;
  font-size: 0.95rem;
}

.actions .price strong {
  font-size: 1.3rem;
}

.store-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}

.widget-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

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

.progress {
  overflow: hidden;
  border-radius: 999px;
  background: #111a38;
}

.progress-bar {
  min-height: 10px;
  background: linear-gradient(90deg, #6f6bff, #a36eff);
}

.site-footer {
  margin-top: 18px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: #090f21;
  padding: 16px 18px;
}

.site-footer .we-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  list-style: none;
}

.site-footer .we-accept img {
  max-height: 22px;
  width: auto;
}

.copyright {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.basket {
  border: 1px solid #7a67ff45;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b1228f2, #080d1ef2);
  overflow: hidden;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.basket-page-content {
  padding-inline: clamp(16px, 3vw, 46px);
}

.basket-modern {
  width: 100%;
}

.basket-modern-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid #7a67ff2b;
  background: linear-gradient(90deg, #1a27584a, #2a1d5c3d);
}

.basket-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca9d4;
}

.basket-title {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.basket-meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #7a67ff3d;
  border-radius: 999px;
  padding: 8px 12px;
  background: #0d1430de;
}

.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 18px;
}

.basket-modern-content {
  padding: 0;
}

.basket-empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px dashed #7a67ff52;
  border-radius: 16px;
  padding: 28px;
  background: #0f1735b8;
}

.basket-empty-state h3,
.basket-empty-state p {
  margin: 0;
}

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

.basket-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #7a67ff33;
  border-radius: 14px;
  background: linear-gradient(145deg, #0f1733f0, #0b1229f0);
  padding: 12px;
}

.basket-item-image-link {
  display: block;
}

.basket-item-image {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.basket-item-image-default {
  background: linear-gradient(135deg, #1f2954, #111a39);
}

.basket-item .info {
  min-width: 0;
}

.basket-item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.basket-item .title {
  margin: 0;
  font-size: 1.1rem;
}

.basket-item .title a:hover {
  color: #ffffff;
}

.basket-item .options {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: #aab4d6;
  font-size: 0.86rem;
}

.basket-item .options li + li {
  margin-top: 4px;
}

.basket-item .price strong {
  font-size: 1.25rem;
}

.basket-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.basket-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7a67ff5c;
  border-radius: 999px;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  background: #1b2450bf;
  color: #f0ebff;
  font-weight: 700;
  font-size: 0.84rem;
}

.basket-modern-checkout {
  padding: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.basket-summary-card,
.basket-redeem {
  border: 1px solid #7a67ff33;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, #0f1733f0, #0b1229f0);
}

.basket-summary-card h3,
.basket-redeem h4 {
  margin: 0 0 12px;
}

.basket-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: #b8c1df;
}

.basket-summary-row strong {
  color: #f2f5ff;
}

.basket-summary-total {
  border-top: 1px solid #7a67ff2e;
  margin-top: 2px;
  padding-top: 12px;
}

.basket-summary-total .total strong {
  font-size: 1.4rem;
}

.basket-summary-card .checkout {
  width: 100%;
  margin-top: 14px;
}

.basket-redeem p {
  margin: 0 0 12px;
  color: #aab4d6;
  font-size: 0.88rem;
}

.basket-redeem-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.basket-redeem-form input[type="text"] {
  border: 1px solid #7a67ff3d;
  border-radius: 10px;
  height: 42px;
  padding: 0 12px;
  color: #f0f3ff;
  background: #101936;
}

.basket-redeem-form .btn-secondary {
  height: 42px;
  white-space: nowrap;
}

.redeemed {
  margin-top: 10px;
}

.basket-redeemed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.basket-redeemed-list li,
.basket-redeemed-single {
  margin: 0;
  border: 1px solid #7a67ff42;
  border-radius: 10px;
  padding: 8px 10px;
  color: #e4ddff;
  background: #18224abf;
}

.basket-redeemed-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.basket-redeemed-list .remove-coupon {
  width: 26px;
  height: 26px;
  border: 1px solid #90bfff5c;
  border-radius: 7px;
  background: #22305cb8;
  color: #dcebff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.basket-redeemed-list .remove-coupon:hover {
  border-color: #b9d8ff;
  background: #2d3f73d6;
}

.no-products {
  color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
  .site-content.site-content-widgets {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    order: 2;
  }

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

@media (max-width: 768px) {
  .site-header .actions {
    display: block;
  }

  .toggle-navigation {
    display: inline-flex;
  }

  .site-header .log-in,
  .site-header .user-actions {
    top: 14px;
    right: 14px;
  }

  .site-navigation.navigation-horizontal {
    position: fixed;
    inset: 0;
    z-index: 120;
    border: 0;
    border-radius: 0;
    background: rgba(2, 4, 12, 0.86);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
  }

  .site-navigation.navigation-horizontal .menu {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(82vw, 330px);
    margin: 0;
    border-right: 1px solid #7a67ff40;
    background: #090f22;
    padding: 70px 12px 14px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .site-navigation .close-navigation {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
  }

  body.show-navigation .site-navigation.navigation-horizontal {
    visibility: visible;
    opacity: 1;
  }

  body.show-navigation .site-navigation.navigation-horizontal .menu {
    transform: translateX(0);
  }

  .site-title {
    margin-top: 58px;
  }

  .site-navigation .menu {
    flex-direction: column;
  }

  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .basket-modern-header {
    flex-direction: column;
    align-items: start;
    padding: 18px;
  }

  .basket-meta {
    width: 100%;
    justify-content: space-between;
  }

  .basket-layout {
    padding: 12px;
    gap: 12px;
  }

  .basket-item {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .basket-item-image {
    height: 110px;
  }

  .basket-item .remove {
    width: 100%;
  }

  .basket-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .basket-redeem-form {
    grid-template-columns: 1fr;
  }
}

.smx-notify-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.smx-notify {
  min-width: 230px;
  max-width: min(92vw, 360px);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f5f6ff;
  border: 1px solid #7f8fd940;
  background: #0f1833de;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px #04061266;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.smx-notify.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smx-notify-success {
  border-color: #8d74ff85;
  background: linear-gradient(120deg, #151f41e8, #1b1d3be8);
}

.smx-basket-empty-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #030713b0;
  backdrop-filter: blur(4px);
}

.smx-basket-empty-card {
  width: min(520px, 100%);
  border: 1px solid #7a67ff45;
  border-radius: 16px;
  background: linear-gradient(145deg, #0f1733f2, #0a122af2);
  padding: 18px;
}

.smx-basket-empty-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.smx-basket-empty-card p {
  margin: 0 0 14px;
  color: #aab4d6;
}

.smx-basket-empty-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
