/* ========================================
   HeavyParts Pro - Enhanced Visual Styles
   Premium polish and effects overlay
   ======================================== */

/* === ENHANCED SHADOWS AND EFFECTS === */
:root {
    /* Premium Shadows */
    --shadow-premium: 0 20px 40px -12px rgba(30, 58, 138, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.3);
    --shadow-float: 0 10px 30px -10px rgba(0, 0, 0, 0.2);

    /* Enhanced Transitions */
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ENHANCED BUTTONS === */
.btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(251, 191, 36, 0.4);
    transform: translateY(-3px);
}

/* === ENHANCED CARDS === */
.card {
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(30, 58, 138, 0.2);
}

/* === ENHANCED PRODUCT CARDS === */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #fbbf24;
}

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

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

/* === ENHANCED FORMS === */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-label {
    position: relative;
    padding-left: 12px;
}

.form-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #1e3a8a, #fbbf24);
    border-radius: 2px;
}

/* === ENHANCED WHATSAPP BUTTON === */
.whatsapp-float {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.2), transparent);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* === SKELETON LOADERS === */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 350px;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -350px 0;
    }

    100% {
        background-position: 350px 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
    border-radius: 6px;
}

/* === ENHANCED BADGES === */
.badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === ENHANCED TABLES === */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table th {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* === ENHANCED SECTION HEADERS === */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #fbbf24);
    border-radius: 2px;
}

/* === LINK EFFECTS === */
a {
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* === FOCUS STATES === */
*:focus-visible {
    outline: 3px solid rgba(251, 191, 36, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* === IMAGE LOADING === */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* === RESPONSIVE ENHANCEMENTS === */
@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-4px);
    }

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

    .btn:hover {
        transform: translateY(-2px);
    }
}

/* === PRINT OPTIMIZATIONS === */
@media print {

    .card,
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn {
        box-shadow: none !important;
        border: 2px solid currentColor !important;
    }
}