@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 {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1535;
  --bg-tertiary: #151d3a;
  --bg-card: #0f1430;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: #1e293b;
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-secondary: #06b6d4;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --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(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* CONFIGURACIÓN DEL BOTÓN */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  font-size: 14px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  color: var(--success);
}

/* EFECTO BEFORE */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transition: left 0.35s ease;
}

.btn-primary:hover::before,
.btn-primary:focus::before {
  left: 100%;
}
/* --------------------------- */

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-secondary);
  border: 1px solid rgba(212, 6, 6, 0.4);
  font-size: 14px;
  border-radius: 6px;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: var(--danger);
}

/* EFECTO */
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.10);
  transition: left 0.35s ease;
}

.btn-secondary:hover::before,
.btn-secondary:focus::before {
  left: 100%;
}

/*-------------------------------------*/
.btn-tertiary {
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: 4px;
}
.btn-tertiary:hover,
.btn-tertiary:focus {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* EFECTO BEFORE */
.btn-tertiary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  transition: left 0.35s ease;
}

.btn-tertiary:hover::before,
.btn-tertiary:focus::before {
  left: 100%;
}

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

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

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

/*____________CATEGORY_____*/
/* 🔹 TARJETA NORMAL */
.site-home-categories .category {
  position: relative;     /* Necesario para contener el ::before */
  overflow: hidden;       /* Evita que el brillo se salga */
  padding: 20px var(--widget-padding);
  border-radius: 25px;
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.5);
  backdrop-filter: blur(6px);       /* 🔥 BLUR REAL */
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); /* 🔥 GLOW DIFUMINADO */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 🔹 CAPA BEFORE (efecto de barrido) */
.site-home-categories .category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #10b98133; /* brillo */
  transition: left 0.35s ease;
}

/* 🔹 HOVER (zoom + barrido + color) */
.site-home-categories .category:hover::before {
  left: 100%;
}

.site-home-categories .category:hover {
  transform: scale(1.08);   /* ZOOM */
  color: #00FFAA;
}

.category-description {
  position: relative;
  border-radius: 5px;
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.5);
  backdrop-filter: blur(6px);       /* 🔥 BLUR REAL */
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); /* 🔥 GLOW DIFUMINADO */
}
.site-home-categories .category img {
    width: 100%;              /* que ocupe todo el contenedor */
    height: 180px;            /* 🔥 tamaño uniforme (cámbialo si quieres otro) */
    object-fit: cover;        /* 🔥 recorta sin deformar */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

/*____________CATEGORY_____*/
/*# Bienvenido a R1 SCRIPTS*/
.store-text {
  position: relative;
  border-radius: 5px;
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.5);
  backdrop-filter: blur(6px);       /* 🔥 BLUR REAL */
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); /* 🔥 GLOW DIFUMINADO */
}
.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: 15px;
  background: #3b82f61a;
  border: 1px solid rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(6px);       /* 🔥 BLUR REAL */
  box-shadow: 0 0 20px rgba(60, 131, 246, 0.6); /* 🔥 GLOW DIFUMINADO */
}

.store-products-images .store-product {
  text-align: center;
  border-radius: 15px;
}
.store-products-images .store-product img,
.store-products-list .store-product img {
  border-radius: 15px;        /* 🔥 Mismo redondeado que la tarjeta */
  overflow: hidden;           /* Evita que se salga */
  border: 1px solid rgba(59, 130, 246, 0.5);
}

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

.store-product-full {
  border-radius: 5px;
  background: #3b82f61a;
  border: 1px solid rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(6px);       /* 🔥 BLUR REAL */
  box-shadow: 0 0 20px rgba(60, 131, 246, 0.6); /* 🔥 GLOW DIFUMINADO */
}

.store-product .quantity-field {
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  color: var(--success);
}
.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;
}

/* 🔥 AJUSTE DEL MENÚ LATERAL USANDO SOLO .widget */
.widget {
    top: 0 !important;              /* Pegado arriba */
    width: 280px !important;        /* Ajusta el ancho del menú */
    padding: 25px !important;
}

.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;
}