@keyframes fade-in {
from {
background-color: rgba(0, 0, 0, 0);
}
to {
background-color: rgba(0, 0, 0, 0.8);
}
}
@keyframes fade-out {
from {
background-color: rgba(0, 0, 0, 0.8);
}
to {
background-color: rgba(0, 0, 0, 0);
}
}
@keyframes slide-in {
from {
transform: translateX(500px);
}
to {
transform: translateX(0px);
}
}
@keyframes slide-out {
from {
transform: translateX(0px);
}
to {
transform: translateX(500px);
}
}
@layer base {
}
#cart-drawer[data-state="open"] {
animation: fade-in 0.4s forwards;
}
#cart-drawer[data-state="closed"] {
animation: fade-out 0.4s forwards;
}
#cart-drawer[data-state="open"] > div {
animation: slide-in 0.4s forwards;
}
#cart-drawer[data-state="closed"] > div {
animation: slide-out 0.4s forwards;
}
.dialog[data-state="open"] {
animation: fade-in 0.4s forwards;
}
.dialog[data-state="closed"] {
animation: fade-out 0.4s forwards;
}
.dialog[data-state="open"] > div {
animation: dialog-in 0.2s forwards;
}
.dialog[data-state="closed"] > div {
animation: dialog-out 0.2s forwards;
}
@keyframes dialog-in {
from {
opacity: 0;
scale: 50%;
}
to {
opacity: 1;
scale: 100%;
}
}
@keyframes dialog-out {
from {
opacity: 1;
scale: 100%;
}
to {
opacity: 0;
scale: 50%;
}
}
#category-section,
#category #products-list {
scroll-margin-top: 100px;
transition:
opacity 0.5s ease-out,
transform 0.5s ease-out;
opacity: 0;
transform: translateY(20px);
}
#category-section.visible,
#category #products-list.visible {
opacity: 1;
transform: translateY(0);
}
@keyframes loading {
0% {
left: -50%;
}
to {
left: 100%;
}
}
#popup-notify {
position: fixed;
bottom: 20px;
left: 20px;
background: linear-gradient(135deg, #4bff7a, #000000);
color: white;
padding: 15px 20px;
border-radius: 5px;
border: 2px solid #4bff7a;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
opacity: 0;
transition: opacity 0.5s ease-in-out;
z-index: 1000;
max-width: 320px;
font-family: Arial, sans-serif;
display: flex;
align-items: center;
gap: 10px;
}
#popup-notify.show {
opacity: 1;
}
#popup-notify i {
font-size: 20px;
flex-shrink: 0;
}
#alert-popup {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
opacity: 1;
transition: opacity 0.5s ease;
}
#alert-popup.fade-out {
opacity: 0;
}
.popup-content {
background-color: #0a0a0a;
border: 2px solid #4bff7a;
color: #ffffff;
padding: 2rem;
max-width: 50%;
text-align: center;
border-radius: 12px;
box-shadow: 0 0 20px #ffd15240;
animation: fadeIn 0.3s ease-in-out;
}
.popup-icon {
font-size: 2.5rem;
color: #4bff7a;
display: block;
margin-bottom: 1rem;
}
#close-popup {
margin-top: 1rem;
padding: 0.5rem 1.5rem;
background-color: #4bff7a;
border: none;
border-radius: 8px;
color: #000;
font-weight: bold;
cursor: pointer;
transition: background 0.3s ease;
}
#close-popup:hover {
background-color: #21c985;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}