/**
 * Product Wishlist - Styles
 * File: assets/css/styles.css
 */

/* Add to Shortlist Buttons */
.pw-add-to-shortlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 10px;
    background: #f8f8f8;
    border: 2px solid #dd1b5f;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
	margin-left: 10px !important;
	justify-content: center;
	text-transform: capitalize;
}

.pw-add-to-shortlist:hover {
    border: 2px solid #dd1b5f;
    color: #fff;
}

.pw-add-to-shortlist.pw-added {
        color: #fff;
    border-color: #dd1b5f;
    text-transform: capitalize;
    align-items: center;
    justify-content: center;
}

.pw-add-to-shortlist.pw-added:hover {
    background: #45a049;
}
.pw-button-secondary.pw-modal-close {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 50%;
    padding: 17px;
}

.pw-button-secondary.pw-modal-close:hover {
    color: #dd1b5f;
    border: 1px solid #dd1b5f;
}
.pw-add-to-shortlist .pw-icon {
    font-size: 20px;
    line-height: 1;
}

.pw-loop-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pw-loop-button .pw-icon {
    font-size: 18px;
}

/* Containers */
.pw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.pw-header h2 {
    margin: 0;
    font-size: 28px;
}

.pw-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.pw-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
/*     display: inline-flex; */
    align-items: center;
/*     gap: 8px; */
	text-align: center;
	text-transform: capitalize;
	
}


.pw-button-primary {
    background: #dd1b5f;
    color: #fff;
}

.pw-button-primary:hover {
    background: #2c3e50;
}

.pw-button-secondary {
        width: 50%;
    font-size: 16px;
    padding: 17px 20px;
    border: 1px solid #2c3e50;
}

/* .pw-button-secondary:hover {
    background: #555;
} */

/* Toggle */
.pw-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pw-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Items Grid */
.pw-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pw-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.pw-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pw-item-hidden {
    opacity: 0.6;
}

.pw-item-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pw-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-hidden-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pw-item-details {
    padding: 15px;
}

.pw-item-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.pw-item-details h3 a {
    color: #333;
    text-decoration: none;
}

.pw-item-details h3 a:hover {
    color: #0066cc;
}

.pw-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 10px;
}

.pw-item-note {
    margin-top: 10px;
}

.pw-note-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.pw-save-note {
    margin-top: 5px;
    padding: 6px 12px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.pw-save-note:hover {
    background: #0052a3;
}

.pw-item-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.pw-hide-item,
.pw-recover-item {
    padding: 8px 16px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pw-recover-item {
    background: #4CAF50;
}

.pw-hide-item:hover {
    background: #d32f2f;
}

.pw-recover-item:hover {
    background: #45a049;
}

/* Empty State */
.pw-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.pw-empty-state p {
    font-size: 18px;
}

/* Loading */
.pw-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Share Page */
.pw-share-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 0;
}

.pw-share-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pw-share-header {
    text-align: center;
    margin-bottom: 40px;
}

.pw-share-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.pw-share-description {
    font-size: 16px;
    color: #666;
}

.pw-shared-items-grid {
    display: grid;
    gap: 30px;
}

.pw-shared-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pw-shared-item-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.pw-shared-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-shared-item-details {
    padding: 20px;
}

.pw-shared-item-details h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.pw-shared-item-details h3 a {
    color: #333;
    text-decoration: none;
}

.pw-shared-item-details h3 a:hover {
    color: #0066cc;
}

.pw-shared-item-price {
    font-size: 20px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 15px;
}

.pw-shared-item-note {
    background: #fff8dc;
    padding: 10px;
    border-left: 3px solid #ffa500;
    margin-bottom: 15px;
    font-size: 14px;
}

.pw-shared-item-description {
    color: #666;
    line-height: 1.6;
}

.pw-shared-item-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.pw-vote-buttons {
    display: flex;
    gap: 10px;
}

.pw-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pw-vote-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.pw-vote-btn.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.pw-vote-btn span {
    line-height: 1;
}

.pw-vote-count {
    font-size: 16px;
    font-weight: 700;
}

.pw-comment-btn {
    padding: 10px 16px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pw-comment-btn:hover {
    background: #0052a3;
}

/* Comments */
.pw-comments-list {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.pw-comment {
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid #0066cc;
}

.pw-comment:last-child {
    margin-bottom: 0;
}

.pw-comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.pw-comment-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 5px;
}

.pw-comment-date {
    font-size: 12px;
    color: #999;
}

/* Modals */
.pw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.pw-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pw-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pw-modal-header h3 {
        margin: 0;
    font-size: 22px;
    color: #dd1b5f;
	    text-align: center;
}

.pw-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-modal-close:hover {
    color: #dd1b5f;
	background: none;
}

.pw-modal-body {
        padding: 20px;
}

.pw-form-group {
    margin-bottom: 20px;
}

.pw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.pw-form-group .required {
    color: #f44336;
}

.pw-form-group input[type="text"],
.pw-form-group input[type="email"],
.pw-form-group input[type="tel"],
.pw-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.pw-form-group input:focus,
.pw-form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.pw-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Notifications */
.pw-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10001;
    font-size: 14px;
    font-weight: 600;
}

.pw-notification-success {
    background: #4CAF50;
}

.pw-notification-error {
    background: #f44336;
}

.pw-notification-info {
    background: #2196F3;
}

/* Offcanvas Styles */
#pw-interactions-offcanvas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

#pw-interactions-offcanvas.open {
    display: block;
}

.pw-offcanvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.pw-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pw-offcanvas-header-actions {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.pw-offcanvas-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.pw-offcanvas-close:hover {
    color: #dd1b5f;
}

.pw-offcanvas-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.pw-offcanvas-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

.pw-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dd1b5f;
    border-radius: 50%;
    animation: pw-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes pw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pw-offcanvas-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pw-offcanvas-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.pw-reaction-badges {
    display: flex;
    gap: 10px;
}

.pw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pw-badge-upvote {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.pw-badge-downvote {
    background-color: rgba(221, 27, 95, 0.1);
    color: #dd1b5f;
}

.pw-badge i {
    font-size: 12px;
}

/* Interactions List */
.pw-interactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-interaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.pw-voter-info {
    flex: 1;
}

.pw-voter-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.pw-voter-date {
    display: block;
    font-size: 12px;
    color: #999;
}

.pw-vote-type {
    font-size: 20px;
}

.pw-no-interactions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.pw-subtext {
    font-size: 14px;
    margin-top: 5px;
    color: #999;
}

/* Wishlist Items Layout */
.pw-wl-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.pw-wl-interactions {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pw-wl-interactions:hover {
    color: #dd1b5f;
    background-color: rgba(221, 27, 95, 0.1);
}

.pw-wl-item-details {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    margin-top: 5px;
}

.pw-wl-item-details:hover {
    text-decoration: underline;
}

/* Mobile responsive for offcanvas */
@media (max-width: 768px) {
    .pw-offcanvas-panel {
        width: 100%;
        height: 80%;
        top: auto;
        bottom: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .pw-offcanvas-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .pw-offcanvas-header h3 {
        margin-bottom: 0;
        font-size: 1.2em;
    }
    
    .pw-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .pw-wl-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pw-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.pw-offcanvas-open {
    overflow: hidden;
}

/* Product Loop Integration */
.products li.product {
    position: relative;
}

/* Ensure proper spacing */
.woocommerce ul.products li.product .pw-loop-button {
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .pw-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pw-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .pw-items-grid {
        grid-template-columns: 1fr;
    }
    
    .pw-shared-item-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pw-vote-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .pw-comment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* shortlist */
 
.pw-item-details {
	padding:0px !important;
}
.pw-item-details h3 a {
	font-family: 'Poppins';
}
 
.pw-item-details .pw-wl-item-details a {
    font-family: 'Poppins';
    color: #dd1b5f;
}
 
.pw-wl-interactions {
	border-radius: 15px;
    background-color: #f6f6f6;
    padding: 4px 11px;
	line-height: 1;
}
 
.pw-wl-item-content {
	padding:10px;
}
 
.pw-share-page .pw-wl-item-content {
	padding:20px 10px 10px 10px;
}
 
.pw-remove-btn button.pw-hide-item {
	    padding: 10px 20px;
    border: 1px solid #dd1b5f;
    background: none;
    color: #dd1b5f;
    font-weight: 500;
}
 
.pw-item-actions {
	margin-bottom:8px;
}
 
.pw-items-grid img.wp-smiley, img.emoji {
	height: 21px !important;
    width: 20px !important;
}
 
.pw-item {
	gap:10px !important;
}
 
.pw-vote-like, .pw-vote-dislike {
    background: none !important;
    color: #dd1b5f;
    box-shadow: none;
	padding:0px;
	border: none;
}
 
.pw-vote-btn.active {
    color: #000;
}
 
.pw-shared-vote-buttons {
    gap: 30px;
}
 
.pw-vote-btn span {
    line-height: 1;
    background: #eee;
    padding: 5px 13px;
    border-radius: 23px;
}
 
.pw-vote-btn:hover {
    color: initial !important;
    background: #fff !important;
}
 
.pw-header h2, .pw-share-header h1 {
	 font-family: 'Poppins' !important;
	font-weight: 500 !important;
}
 
.pw-item-image img {
	object-fit: contain!important;
	    background-color: #000;
}
 
@media (max-width: 468px) {
    .pw-item-image {
        width: 50% !important;
    }
}
 