@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
:root {
  --color-primary: #41C4C3;
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
}

body {
  font-family: Lato, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 400px;
  z-index: -1;
  background: var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 2px;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 6px rgb(from var(--btn-color-bg-hover) r g b/0.6);
}

.quantity-field {
  border-radius: 5px;
}

.site-header-inner .info .image {
  border-radius: 5px;
}

.site-sale-banner {
  border-radius: 5px;
}

.site-home-categories .category {
  border-radius: 5px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: color 0.15s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
}

.category-description {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-text {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-products-images .store-product {
  text-align: center;
}

.widget-title {
  text-align: center;
}

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

.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border-radius: 5px;
}

.store-product-full {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-product .quantity-field {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 5px;
  }
}
.navigation-horizontal .has-children > ul {
  border-radius: 5px;
}

.widget {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
  }
}

.widget-gift-card .gift-card-input {
  border-radius: 2px;
}

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

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 2px;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 2px;
}

.popup-content {
  border-radius: 5px;
}

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

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: 5px;
}
.basket-item .quantity {
  border-radius: 2px;
}

.toast {
  border-radius: 6px;
}

.toast-close {
  border-radius: 2px;
}

.store-category-tiered {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
}

.store-product-tiered {
  border-radius: 5px;
  background: rgb(from var(--color-bg) r g b/0.5);
}

.media-slider .slider,
.media-slider .thumb {
  border-radius: 5px;
}
.media-slider .open-lightbox {
  border-radius: 2px;
}

.popup.popup-media-slider .thumb {
  border-radius: 5px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 5px;
}

/* Keep the three controls evenly aligned */
.site-header .user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Currency wrapper */
.site-header .currency-switcher {
  position: static;
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

/* Currency dropdown */
.site-header .currency-switcher select {
  box-sizing: border-box;
  display: block;

  width: 112px;
  height: 48px;
  margin: 0;
  padding: 0 38px 0 18px;

  border: 0;
  border-radius: 3px;

  background-color: var(--color-primary, #45c2c7);
  color: var(--color-primary-text, #111);

  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;

  cursor: pointer;
}

/* Match the dropdown height without changing button widths */
.site-header .user-actions > .user-name,
.site-header .user-actions > .open-basket {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  margin: 0;
}

/* Prevent username clipping */
.site-header .user-name {
  width: auto;
  min-width: 130px;
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
}

.site-header .user-name .text-inner,
.site-header .user-name .text,
.site-header .user-name .text-hover {
  width: auto;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

/* Keep basket naturally sized */
.site-header .open-basket {
  width: auto;
  min-width: 145px;
  padding-left: 22px;
  padding-right: 22px;
}

/* Avoid icon/text collisions */
.site-header .btn-glyph-text::before {
  flex: 0 0 auto;
  margin-right: 10px;
}

@media (max-width: 700px) {
  .site-header .user-actions {
    gap: 7px;
  }

  .site-header .currency-switcher select {
    width: 84px;
    height: 44px;
    padding-left: 12px;
    padding-right: 28px;
    font-size: 14px;
  }

  .site-header .user-actions > .user-name,
  .site-header .user-actions > .open-basket {
    height: 44px;
    min-height: 44px;
  }

  .site-header .user-name {
    min-width: 105px;
  }

  .site-header .open-basket {
    min-width: 115px;
  }
}

.site-header .open-basket {
    min-width: 125px; /* was around 145px */
    width: auto;
    padding: 0 18px;
    justify-content: center;
}

.site-header .open-basket .text,
.site-header .open-basket .text-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}