/**
 * Fashionkart Premium Enterprise Components
 * Advanced animations, effects, and components
 */

/* ========================================
   ENTERPRISE PREMIUM COMPONENTS
   ======================================== */

/* Premium Section Headers */
.fk-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 3px solid var(--primary);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.fk-premium-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary);
}

.fk-premium-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fk-premium-header h2 i {
    color: var(--primary);
    font-size: 28px;
}

.fk-premium-header .fk-timer {
    display: flex;
    gap: 8px;
}

.fk-premium-header .fk-timer-block {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 55px;
}

.fk-premium-header .fk-timer-block span {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.fk-premium-header .fk-timer-block small {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Premium Product Grid */
.fk-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 25px;
    background: #fff;
}

@media (max-width: 1199px) {
    .fk-premium-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .fk-premium-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 15px; }
}

@media (max-width: 767px) {
    .fk-premium-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
}

/* Premium Trust Badges */
.fk-trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.fk-trust-badge {
    text-align: center;
    transition: transform 0.3s;
}

.fk-trust-badge:hover {
    transform: translateY(-5px);
}

.fk-trust-badge i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.fk-trust-badge h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.fk-trust-badge p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

@media (max-width: 767px) {
    .fk-trust-badges { flex-wrap: wrap; gap: 20px; }
    .fk-trust-badge { flex: 0 0 45%; }
}

/* Premium Newsletter Section */
.fk-newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--hov-primary) 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.fk-newsletter h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fk-newsletter p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.fk-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.fk-newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
}

.fk-newsletter-form button {
    padding: 15px 30px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.fk-newsletter-form button:hover {
    background: var(--secondary-base);
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .fk-newsletter-form { flex-direction: column; }
}

/* Premium Floating Cart Button */
.fk-floating-cart {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
}

.fk-floating-cart:hover {
    transform: scale(1.1);
    background: var(--hov-primary);
}

.fk-floating-cart i {
    font-size: 24px;
}

.fk-floating-cart .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-base);
    color: #333;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Scroll to Top */
.fk-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.fk-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.fk-scroll-top:hover {
    background: var(--hov-primary);
    transform: translateY(-5px);
}

/* Premium Deal Timer */
.fk-deal-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.fk-deal-timer-item {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.fk-deal-timer-item .number {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.fk-deal-timer-item .label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Premium Price Tag */
.fk-premium-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.fk-premium-price .current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.fk-premium-price .original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.fk-premium-price .discount {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Premium Tab Navigation */
.fk-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    gap: 5px;
    overflow-x: auto;
}

.fk-tab {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}

.fk-tab:hover { color: var(--primary); }

.fk-tab.active { color: var(--primary); }

.fk-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Premium Notification Toast */
.fk-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.fk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fk-toast.success { background: #4caf50; }
.fk-toast.error { background: #f44336; }
.fk-toast i { font-size: 20px; }

/* Offer Badge Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fk-offer-badge span {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

/* Premium Loading Skeleton */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.fk-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
