/* ============================================
   KARMACAD STORE - Custom CSS
   Culori extrase din logo-ul KarmaCad Store
   ============================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

::selection {
    background-color: #652D90;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #652D90;
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #652D90;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A1F6B;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #652D90, #D6336C);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.product-card {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card:hover .fa-solid {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.4s ease;
}

.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(101, 45, 144, 0.08),
        transparent
    );
    transition: left 0.6s ease;
}

.premium-card:hover::before {
    left: 100%;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeInOverlay 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px -20px rgba(101, 45, 144, 0.4);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #9B6FBA;
    border-radius: 3px;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: #20BA5C;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #1F2937;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #1F2937;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-tooltip {
        display: none;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(101, 45, 144, 0.1);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #FCA5A5;
}

input[type="checkbox"] {
    accent-color: #652D90;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.toast-notification {
    position: fixed;
    top: 100px;
    right: 25px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 24px;
}

@media (max-width: 640px) {
    .toast-notification {
        top: auto;
        bottom: 100px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 640px) {
    h1 {
        line-height: 1.15;
    }
    
    .modal-content {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #9B6FBA;
    outline-offset: 2px;
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .whatsapp-float,
    header,
    .modal-overlay,
    button {
        display: none !important;
    }
}
