/* ============================================
   SHOP PAGE - MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 20px 0 !important;
        padding: 0 8px !important;
    }
    
    .page-item {
        margin: 2px !important;
    }
    
    .page-link {
        padding: 7px 12px !important;
        font-size: 13px !important;
        min-width: 34px !important;
        text-align: center !important;
        border-radius: 6px !important;
        transition: all 0.25s ease !important;
    }
    
    .tf-pagination-wrap {
        padding: 16px 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .tf-pagination-wrap::-webkit-scrollbar {
        display: none !important;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }
}

@media (max-width: 480px) {
    .page-link {
        padding: 6px 9px !important;
        font-size: 12px !important;
        min-width: 28px !important;
    }
    
    .pagination {
        gap: 4px !important;
    }
    
    .page-item {
        margin: 1px !important;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

/* Smooth scroll for pagination container */
#pagination-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Grid layout transitions */
.grid-layout {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Product card quick action buttons */
.card-product-wrapper {
    position: relative;
    overflow: hidden;
}

.list-product-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wishlist button hover */
.tf-product-btn-wishlist:hover {
    transform: scale(1.1);
}

/* Compare button hover */
.tf-product-btn-wishlist.compare:hover {
    transform: scale(1.1);
}

/* Lazy loading image placeholder */
.lazyload {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

/* Product image aspect ratio */
.product-img {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.product-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover image transition */
.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-product-wrapper:hover .img-hover {
    opacity: 1;
}

/* Title link hover effect */
.card-product-info .title.link {
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-product-info .title.link:hover {
    color: var(--sz-gold, #c59b27);
}

/* Meta filter shop */
.meta-filter-shop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Badge animations */
.discount-badge {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Out of stock overlay */
.out-of-stock-label1 {
    animation: fadeIn 0.3s ease-out;
}

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

/* Quantity input styling */
.wg-quantity input {
    text-align: center;
    font-weight: 600;
    border: none;
    background: transparent;
}

.wg-quantity .btn-quantity {
    cursor: pointer;
    transition: all 0.2s ease;
}

.wg-quantity .btn-quantity:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

/* Tooltip styling */
.hover-tooltip .tooltip {
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.hover-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}
