html{
    scroll-behavior: smooth;
}

*{
    padding: 0;
    margin: 0;
    
}
body{
    width: 100%;
}

h1,h2{
    font-family: "Fraunces", sans-serif;
    line-height: 1.15;
    font-weight: bold !important;
}
h3{font-family: "Fraunces", sans-serif;}
h1{font-size: clamp(28px, 3.5vw, 46px);}
h2{font-size: clamp(20px, 3vw, 36px);}
a{font-size: clamp(13px, 1.1vw, 15px);}
p{font-family: "Plus Jakarta Sans", sans-serif;}

.carousel-wrapper{
    position: relative; 
    padding: 20px;

    border-left: #000 0px solid;
    border-radius: 10px;

    display: flex;
    align-items: center;
    overflow-x: auto;
} 
.product-row{
    display: flex; 
    overflow-x: auto; 
    gap: 1rem; scroll-behavior: smooth; 
    padding: 20px;
    scroll-snap-type: x mandatory;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 3%,
        black 97%,
        transparent
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
} 
.product-row::-webkit-scrollbar {
    height: 6px; 
}

.product-row::-webkit-scrollbar-track {
    background: transparent;
}

.product-row::-webkit-scrollbar-thumb {
    background: #c8c5b0;
    border-radius: 999px;
}

.product-row::-webkit-scrollbar-thumb:hover {
    background: #a8a58f;
}
.card{ 
    background-color: #C2A85A;
    flex: 0 0 auto; 
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    
    transition: all 0.3s ease;
}
.carousel-wrapper .card{ 
    width: clamp(150px, 15vw, 300px);
}

.carousel-wrapper .card:hover{
    
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 0 5px #C2A85A;
}

.card img{
    width: 100%;
    aspect-ratio: 2 / 3; 
    object-fit: cover;
    display: block;
}
.libroMes .card{
    width: 9vw;
    min-width: unset; 
}
.libroMes>*{
    margin-bottom: 0;
}
.scroll-btn{ 
    position: absolute; 
    top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.7); 
    border: none; 
    color: white; 
    font-size: 24px; 
    padding: 10px; 
    cursor: pointer; 
    border-radius: 50%; 
} 
.scroll-left{ 
    left: 10px; 
} 
.scroll-right{ 
    right: 10px; 
}

.button{
    all: unset;

    font-family: "Plus Jakarta Sans", sans-serif;
    width: fit-content ;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.button:hover{
    cursor: pointer;
    transform: translateY(-5px);
}

@media (max-width: 768px){
    .button{
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* ---------- NOTIFICATION ---------- */

.notification {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Plus Jakarta Sans", sans-serif;
    max-width: 400px;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.show {
    display: block;
    transform: translateX(0);
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.hide {
    animation: slideOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-notification {
    background-color: #1B4D3E;
    color: #EBE9DA;
    border-left: 4px solid #4EE89A;
}

.error-notification {
    background-color: #5C2E2E;
    color: #EBE9DA;
    border-left: 4px solid #FF6B6B;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-icon {
    color: #4EE89A;
    animation: checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

.error-icon {
    color: #FF6B6B;
    animation: errorShake 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes errorShake {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.notification-text {
    flex: 1;
}

.notification-text h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 16px;
    margin-bottom: 4px;
}

.success-notification .notification-text h3 {
    color: #C8922B;
}

.error-notification .notification-text h3 {
    color: #FF6B6B;
}

.notification-text p {
    margin: 0;
    font-size: 14px;
    color: #EBE9DA;
    line-height: 1.4;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    .notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: unset;
        padding: 16px 20px;
    }
}
