/**
 * Quick Wins CSS
 * Styles for all quick win features
 */

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-top: 1px solid #dee2e6;
}

.trust-badges .trust-item {
    text-align: center;
    padding: 0.5rem;
}

.trust-badges i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-badges small {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

/* ============================================
   PRODUCT IMAGE ZOOM (LIGHTBOX)
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 2rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   STOCK COUNTDOWN BADGE
   ============================================ */
.stock-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
    border-radius: 4px;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
}

/* ============================================
   RECENTLY VIEWED PRODUCTS
   ============================================ */
.recently-viewed-section {
    margin: 3rem 0;
}

.recently-viewed-item {
    transition: transform 0.2s;
}

.recently-viewed-item:hover {
    transform: translateY(-5px);
}

.recently-viewed-item .card {
    transition: box-shadow 0.2s;
}

.recently-viewed-item:hover .card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ============================================
   STICKY ADD TO CART
   ============================================ */
.sticky-add-to-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sticky-add-to-cart.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.sticky-add-to-cart .sticky-cart-btn {
    white-space: nowrap;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sticky-add-to-cart {
        bottom: 80px; /* Above mobile nav */
        padding: 10px 20px;
    }
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease;
    padding: 2rem;
    overflow-y: auto;
}

.quick-view-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    animation: slideUp 0.3s ease;
}

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

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    color: #6c757d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.quick-view-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.social-share > span {
    font-size: 14px;
    color: #495057;
    margin-right: 0.5rem;
}

.social-share .btn {
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-share .social-share-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    overflow: hidden;
}

.social-share .social-share-icon i {
    font-size: 18px;
    margin: 0;
}

.social-share .social-share-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.social-share .social-share-facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.social-share .social-share-twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.social-share .social-share-whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.social-share .social-share-pinterest:hover {
    border-color: #bd081c;
    background: rgba(189, 8, 28, 0.1);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-share .btn i {
    font-size: 14px;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { 
        background-position: 200% 0; 
    }
    100% { 
        background-position: -200% 0; 
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.skeleton-card {
    padding: 1rem;
}

.skeleton-title {
    height: 1.5em;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-price {
    height: 1.2em;
    width: 40%;
}

/* ============================================
   QUICK VIEW BUTTON ON PRODUCT CARDS
   ============================================ */
/* Quick View buttons completely disabled - hide everywhere */
.quick-view-btn,
button.quick-view-btn,
.btn.quick-view-btn,
[class*="quick-view-btn"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .quick-view-content {
        padding: 1rem;
        max-height: 95vh;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .trust-badges .trust-item {
        margin-bottom: 1rem;
    }
    
    .social-share {
        justify-content: flex-start;
        padding: 0.75rem;
        gap: 0.4rem;
    }
    
    .social-share > span {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
        text-align: center;
    }
    
    .social-share .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.2rem);
        font-size: 12px;
        padding: 0.35rem 0.6rem;
    }
    
    .social-share .social-share-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex: 0 0 36px;
    }
    
    .social-share .social-share-icon i {
        font-size: 16px;
    }
    
    .social-share .social-share-img {
        width: 100%;
        height: 100%;
    }
    
    .social-share .btn i {
        font-size: 13px;
    }
}

