/* Wishlist Page Styles */
.woocommerce-wishlist-page {
    margin: 20px 0;
    padding: 20px;
}

.wishlist-title {
    color: #0b5863;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 3px solid #0b5863;
    padding-bottom: 15px;
}

.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.wishlist-empty p {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 20px;
}

.wishlist-products {
    margin: 30px 0;
}

.wishlist-product-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wishlist-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #0b5863;
}

.product-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.product-link img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
}

.product-title {
    color: #2c3338;
    font-size: 1.1em;
    margin: 10px 0;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #0b5863;
    margin: 10px 0;
}

.product-stock {
    margin: 8px 0;
    font-size: 0.9em;
}

.product-stock .in-stock {
    color: #28a745;
    font-weight: bold;
}

.product-stock .out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-to-cart .button {
    background: #0b5863;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.add-to-cart .button:hover {
    background: #0e6f7a;
    transform: translateY(-2px);
}

.remove-from-wishlist {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-from-wishlist:hover {
    background: #dc3545;
    color: white;
}

.wishlist-actions-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.wishlist-actions-bottom .button {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wishlist-actions-bottom .button:first-child {
    background: #0b5863;
    color: white;
    border: none;
}

.wishlist-actions-bottom .button:first-child:hover {
    background: #0e6f7a;
}

.clear-wishlist {
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

.clear-wishlist:hover {
    background: #c82333;
}

/* Compare Page Styles */
.woocommerce-compare-page {
    margin: 20px 0;
    padding: 20px;
}

.compare-title {
    color: #0b5863;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 3px solid #0b5863;
    padding-bottom: 15px;
}

.compare-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.compare-empty p {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 20px;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: white;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.compare-table th,
.compare-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    vertical-align: top;
}

.compare-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3338;
}

.compare-remove {
    background: #f8f9fa;
    font-weight: 600;
    width: 120px;
}

.compare-product {
    min-width: 200px;
}

.compare-product .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.compare-product img {
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 150px;
    height: auto;
}

.compare-product .product-title {
    color: #2c3338;
    font-size: 1em;
    margin: 0;
    line-height: 1.3;
}

.compare-label {
    background: #f8f9fa;
    font-weight: 600;
    text-align: right;
    width: 120px;
    color: #2c3338;
}

.compare-value {
    min-width: 150px;
}

.compare-price .compare-value {
    font-weight: bold;
    color: #0b5863;
    font-size: 1.1em;
}

.compare-description .compare-value {
    font-size: 0.9em;
    line-height: 1.4;
    color: #6c757d;
}

.compare-attribute .compare-value {
    font-size: 0.9em;
}

.compare-actions .compare-value {
    padding: 10px;
}

.compare-actions .product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.compare-actions .button {
    background: #0b5863;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.compare-actions .button:hover {
    background: #0e6f7a;
}

.remove-from-compare {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.8em;
    padding: 4px 8px;
    border: 1px solid #dc3545;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remove-from-compare:hover {
    background: #dc3545;
    color: white;
}

.compare-actions-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.compare-actions-bottom .button {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.compare-actions-bottom .button:first-child {
    background: #0b5863;
    color: white;
    border: none;
}

.compare-actions-bottom .button:first-child:hover {
    background: #0e6f7a;
}

.clear-compare {
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

.clear-compare:hover {
    background: #c82333;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .woocommerce-wishlist-page,
    .woocommerce-compare-page {
        padding: 10px;
    }
    
    .wishlist-title,
    .compare-title {
        font-size: 1.5em;
    }
    
    .wishlist-product-item {
        padding: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .wishlist-actions-bottom,
    .compare-actions-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .compare-table-wrapper {
        border-radius: 5px;
    }
    
    .compare-table {
        font-size: 0.9em;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .wishlist-products .products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .compare-product {
        min-width: 150px;
    }
    
    .compare-product img {
        max-width: 100px;
    }
}

/* Loading States */
.wishlist-product-item.loading,
.compare-table.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty states animation */
.wishlist-empty,
.compare-empty {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success messages for pages */
.woocommerce-wishlist-message,
.woocommerce-compare-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.woocommerce-wishlist-message.success,
.woocommerce-compare-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.woocommerce-wishlist-message.error,
.woocommerce-compare-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}