@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://webstore-template-assets.tebex.io/images/page-bg.jpg");
  --animation-speed: 0.3s;
  --animation-curve: cubic-bezier(0.25, 0.1, 0.25, 1);
  --hover-scale: 1.03;
  --hover-y-offset: -3px;
  --glow-intensity: 8px;
  --glow-spread: 6px;
  --glow-color: rgba(65, 196, 195, 0.5);
}

body {
  font-family: Lato, sans-serif;
  transition: background-color 0.5s var(--animation-curve);
}
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;
  animation: pulse 15s infinite alternate var(--animation-curve);
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(var(--hover-y-offset)); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px var(--glow-color); }
  50% { box-shadow: 0 0 var(--glow-intensity) var(--glow-spread) var(--glow-color); }
  100% { box-shadow: 0 0 5px var(--glow-color); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 2px;
  transition: transform var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve),
              background-color var(--animation-speed) var(--animation-curve),
              color var(--animation-speed) var(--animation-curve);
}

.btn-primary:hover, .btn-primary:focus {
  transform: scale(var(--hover-scale)) translateY(var(--hover-y-offset));
  box-shadow: 0 0 var(--glow-intensity) var(--glow-spread) var(--glow-color);
}

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

.quantity-field {
  border-radius: 5px;
  transition: border-color var(--animation-speed) var(--animation-curve),
              transform var(--animation-speed) var(--animation-curve);
}

.quantity-field:focus-within {
  transform: scale(1.02);
  border-color: var(--color-primary);
}

.site-header-inner .info .image {
  border-radius: 5px;
  transition: transform var(--animation-speed) var(--animation-curve);
}

.site-header-inner .info:hover .image {
  transform: scale(1.1) rotate(3deg);
}

.site-header-inner .user-name ul li {
  overflow: hidden;
  transition: background-color var(--animation-speed) var(--animation-curve),
              color var(--animation-speed) var(--animation-curve);
}

.site-header-inner .user-name ul li:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
}

.site-header-inner .user-name ul li:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.site-header-inner .user-name ul li:last-child {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.site-sale-banner {
  border-radius: 5px;
  animation: glow 4s infinite var(--animation-curve);
}

.site-home-categories .category {
  border-radius: 5px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: color var(--animation-speed) var(--animation-curve),
              transform var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve);
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  transform: translateY(var(--hover-y-offset)) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.site-home-categories .category img {
  transition: transform 0.5s var(--animation-curve);
}

.site-home-categories .category:hover img {
  transform: scale(1.1);
}

.category-description {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}

.store-text {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
  position: relative;
}

.store-text h1:after,
.store-text h2:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  margin: 8px auto 0;
  transition: width 0.5s var(--animation-curve);
}

.store-text h1:hover:after,
.store-text h2:hover:after {
  width: 100px;
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  transition: transform var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}

.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.store-products-images .store-product .image {
  transition: transform 0.4s var(--animation-curve);
}

.store-products-images .store-product:hover .image {
  transform: scale(1.05);
}

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

.widget-title:after {
  content: '';
  display: block;
  height: 2px;
  width: 50px;
  background: var(--color-primary);
  margin: 8px auto 0;
  transition: width 0.3s var(--animation-curve);
}

.widget:hover .widget-title:after {
  width: 80px;
}

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

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

.store-product-full {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}

.store-product .quantity-field {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  transition: border-color var(--animation-speed) var(--animation-curve);
}

.store-product .quantity-field:focus-within {
  border-color: var(--color-primary);
}

.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;
  transition: opacity var(--animation-speed) var(--animation-curve),
              visibility var(--animation-speed) var(--animation-curve),
              transform var(--animation-speed) var(--animation-curve);
}

.widget {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  transition: transform var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.widget-gift-card .gift-card-input {
  border-radius: 2px;
  transition: border-color var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve);
}

.widget-gift-card .gift-card-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(65, 196, 195, 0.3);
}

.widget-top-donator .avatar {
  border-radius: 50%;
  transition: transform var(--animation-speed) var(--animation-curve);
}

.widget-top-donator:hover .avatar {
  transform: scale(1.05);
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow var(--animation-speed) var(--animation-curve);
}

.widget-community-goal:hover .progress,
.widget-goal:hover .progress {
  box-shadow: 0 0 8px rgba(65, 196, 195, 0.4);
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 2px;
  transition: width 1s var(--animation-curve);
}

.popup-content {
  border-radius: 5px;
  animation: fadeIn 0.3s var(--animation-curve);
  transition: transform var(--animation-speed) var(--animation-curve),
              opacity var(--animation-speed) var(--animation-curve);
}

.popup-close {
  border-radius: 0 5px 0 5px;
  transition: background-color var(--animation-speed) var(--animation-curve),
              opacity var(--animation-speed) var(--animation-curve);
}

.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;
  transition: transform var(--animation-speed) var(--animation-curve),
              background-color var(--animation-speed) var(--animation-curve);
}

.basket-item:hover {
  transform: translateX(5px);
  background-color: rgba(65, 196, 195, 0.1);
}

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

.toast {
  border-radius: 6px;
  animation: slideInToast 0.3s var(--animation-curve),
             glow 3s infinite var(--animation-curve);
}

@keyframes slideInToast {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-close {
  border-radius: 2px;
  transition: background-color var(--animation-speed) var(--animation-curve),
              opacity var(--animation-speed) var(--animation-curve);
}

.store-category-tiered {
  border-radius: 5px;
  background: var(--color-brighter-bg);
  animation: fadeIn 0.5s var(--animation-curve) forwards;
}

.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);
  transition: transform var(--animation-speed) var(--animation-curve),
              box-shadow var(--animation-speed) var(--animation-curve),
              background-color var(--animation-speed) var(--animation-curve);
}

.store-product-tiered:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgb(from var(--color-bg) r g b/0.7);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
  transition: background-color var(--animation-speed) var(--animation-curve);
}

::-webkit-scrollbar-thumb:hover {
  background: #2a9e9d;
}