/* Quendoras - Custom Styles */

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C27E67;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(to right, rgba(249, 248, 246, 0.95) 0%, rgba(249, 248, 246, 0.7) 50%, transparent 100%);
}

@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(to bottom, rgba(249, 248, 246, 0.95) 0%, rgba(249, 248, 246, 0.85) 100%);
    }
}

/* Aspect ratio for product images */
.aspect-product {
    aspect-ratio: 4/5;
}

/* Toast notifications */
.toast {
    animation: slideIn 0.3s ease-out;
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

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

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

/* Loading spinner */
.spinner {
    border: 2px solid #E5E4E2;
    border-top: 2px solid #C27E67;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button styles */
.btn-primary {
    background-color: #C27E67;
    color: white;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #A36652;
}

.btn-secondary {
    border: 1px solid #222222;
    color: #222222;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #222222;
    color: white;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #E6E7E0;
}

::-webkit-scrollbar-thumb {
    background: #E5E4E2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Fade in animation */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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