/* Custom Wishlist Styles */
.wishlist-page {
    padding: 2rem 0;
}

.wishlist-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.wishlist-page .page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Custom Wishlist Table Styles */
.woosw-list {
    margin: 2rem 0;
}

.woosw-list table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.woosw-list th,
.woosw-list td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.woosw-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.woosw-list tr:hover {
    background-color: #fafafa;
}

.woosw-list .woosw-thumb img {
    border-radius: 4px;
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

/* Enhanced Wishlist Image Styles */
.woosw-list .woosw-item--image,
.woosw-area .woosw-content-item--image {
    position: relative;
    overflow: visible;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 110px;
}

/* Force uncropped image display */
.bokifa-uncropped-image,
.bokifa-original-image {
    max-width: 100px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Container for original images */
.bokifa-original-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 110px;
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.woosw-list .woosw-item--image img,
.woosw-area .woosw-content-item--image img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

/* Hover Effects */
.woosw-list .woosw-item--image:hover img,
.woosw-area .woosw-content-item--image:hover img {
    transform: scale(1.05);
    border-color: var(--bokifa-primary-color, #007cba);
}

/* Custom Image Wrapper */
.bokifa-wishlist-image-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.bokifa-wishlist-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.bokifa-wishlist-image-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Image Overlay */
.bokifa-wishlist-image-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.bokifa-wishlist-image-wrapper:hover .bokifa-wishlist-image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Image Wrapper */
.bokifa-wishlist-gallery-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.bokifa-wishlist-gallery-wrapper::after {
    content: 'Gallery';
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Placeholder Image Styling */
.bokifa-placeholder-image {
    opacity: 0.7;
    filter: grayscale(20%);
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 3;
}

.product-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 3px;
    margin-bottom: 3px;
}

.product-badge.sale {
    background: #ff6b6b;
}

.product-badge.new {
    background: #4ecdc4;
}

.product-badge.featured {
    background: #45b7d1;
}

.product-badge.out-of-stock {
    background: #95a5a6;
}

/* Advanced Image Styles */
.bokifa-wishlist-image-wrapper.rounded-style img {
    border-radius: 50%;
}

.bokifa-wishlist-image-wrapper.bordered-style img {
    border: 3px solid var(--bokifa-primary-color, #007cba);
}

.bokifa-wishlist-image-wrapper.shadow-style img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Hover Effects */
.bokifa-wishlist-image-wrapper.hover-zoom:hover img {
    transform: scale(1.1);
}

.bokifa-wishlist-image-wrapper.hover-rotate:hover img {
    transform: rotate(5deg) scale(1.05);
}

.bokifa-wishlist-image-wrapper.hover-fade:hover img {
    opacity: 0.8;
}

.bokifa-wishlist-image-wrapper.hover-slide:hover img {
    transform: translateY(-5px);
}

/* WebP Picture Support */
.bokifa-wishlist-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bokifa-wishlist-picture img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Lazy Loading Styles */
.woosw-item-image[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, rgba(240,240,240,0) 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .woosw-list .woosw-item--image img,
    .woosw-area .woosw-content-item--image img {
        max-width: 70px;
        max-height: 70px;
        width: auto;
        height: auto;
    }
    
    .woosw-list .woosw-item--image,
    .woosw-area .woosw-content-item--image {
        min-width: 80px;
        min-height: 80px;
    }
    
    .bokifa-wishlist-image-overlay {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .product-badge {
        font-size: 7px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .woosw-list .woosw-item--image img,
    .woosw-area .woosw-content-item--image img {
        max-width: 60px;
        max-height: 60px;
        width: auto;
        height: auto;
    }
    
    .woosw-list .woosw-item--image,
    .woosw-area .woosw-content-item--image {
        min-width: 70px;
        min-height: 70px;
    }
    
    .bokifa-wishlist-image-overlay,
    .product-badges {
        display: none;
    }
}

/* Custom Image Sizes for Different Views */
.woosw-popup .woosw-content-item--image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

.woosw-popup .woosw-content-item--image img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.woosw-quickview .woosw-quickview-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.woosw-quickview .woosw-quickview-item-image img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.woosw-list .woosw-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.woosw-list .woosw-title a:hover {
    color: #0073aa;
}

.woosw-list .woosw-price {
    font-weight: 600;
    color: #e74c3c;
}

.woosw-list .woosw-remove {
    text-align: center;
}

.woosw-list .woosw-remove a {
    color: #dc3545;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.woosw-list .woosw-remove a:hover {
    background-color: #dc3545;
    color: white;
}

/* Wishlist Actions */
.woosw-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.woosw-share {
    margin-bottom: 1rem;
}

.woosw-share-label {
    font-weight: 600;
    margin-right: 1rem;
}

.woosw-share a {
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-accent-font-weight);
    font-size: 14px;
    font-size: 0.875rem;
    display: inline-block;
    margin-right: 0.5rem;
    padding: 12px 20px;
    background-color: var(--e-global-color-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.woosw-share a:hover,
.woosw-share a:focus {
    color: #fff;
    border-color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-secondary);
    text-decoration: none;
}

.woosw-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.woosw-copy-url input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woosw-copy-btn button {
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-accent-font-weight);
    text-transform: var(--e-global-typography-accent-text-transform);
    font-style: var(--e-global-typography-accent-font-style);
    text-decoration: var(--e-global-typography-accent-text-decoration);
    line-height: var(--e-global-typography-accent-line-height);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    font-size: 14px;
    font-size: 0.875rem;
    border-radius: 25px;
    background-color: var(--e-global-color-primary);
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 15px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.woosw-copy-btn button:hover,
.woosw-copy-btn button:focus {
    color: #fff;
    border-color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-secondary);
}

/* Empty Wishlist State */
.woosw-empty-wishlist {
    text-align: center;
    padding: 3rem 1rem;
}

.woosw-empty-wishlist h3 {
    color: #666;
    margin-bottom: 1rem;
}

.woosw-empty-wishlist p {
    color: #888;
    margin-bottom: 2rem;
}

.woosw-continue-shopping {
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-accent-font-weight);
    text-transform: var(--e-global-typography-accent-text-transform);
    font-style: var(--e-global-typography-accent-font-style);
    text-decoration: var(--e-global-typography-accent-text-decoration);
    line-height: var(--e-global-typography-accent-line-height);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    font-size: 14px;
    font-size: 0.875rem;
    border-radius: 25px;
    background-color: var(--e-global-color-primary);
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 15px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.woosw-continue-shopping:hover,
.woosw-continue-shopping:focus {
    color: #fff;
    border-color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-secondary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wishlist-page .page-title {
        font-size: 2rem;
    }
    
    .woosw-list table {
        font-size: 0.9rem;
    }
    
    .woosw-list th,
    .woosw-list td {
        padding: 0.5rem;
    }
    
    .woosw-copy {
        flex-direction: column;
        align-items: stretch;
    }
}
