/* Wishlist Plugin Styles */

.cwp-wishlist-wrapper {
    padding: 80px 0;
    background: #f5f5f5;
}
.cwp-wishlist-wrapper h1 {
    font-size: 60px !important;
    margin: 0;
    margin-bottom: 40px;
}
.cwp-wishlist-wrapper h2 {
    font-size: 30px !important;
}

.cwp-wishlist-content {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 50px;
}
/* Tab Navigation */
.cwp-tabs {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 25%;
    background: #fff;
    padding: 30px;
    border-radius: 30px;
}
.cwp-tab-content-wrapper {
    width: 75%;
}
.cwp-tabs hr {
    border-top: 1px solid #000;
    width: 100%;
}
.cwp-tabs h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px !important;
    margin: 0;
}
.cwp-tabs h4 img {
    width: 12px;
    height: auto;
}
.cwp-tab-button {
    position: relative;
    color: #000000 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0px !important;
    padding: 0 !important;
    text-align: left;
}
.cwp-tab-button.active, .cwp-tab-button:hover  {
    color: #007cba!important;
    border: 0 !important;
}
.cwp-tab-button:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #00aaff;
    border-radius: 50%;
    opacity: 0;
}
.cwp-tab-button.active::after, .cwp-tab-button:hover::after {
    opacity: 1;
}
.cwp-tab-content {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
}
/* Tab Content */
.cwp-tab-content {
    display: none;
}

.cwp-tab-content.active {
    display: block;
}

/* Wishlist Button */

.cwp-wishlist-btn {
    background: #000 !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
    border: 0 !important;
    transition: background-color 0.3s ease;
}
.cwp-wishlist-btn:hover{
    background: #169fd9 !important;
    border:0 !important;
}
.cwp-wishlist-btn.cwp-remove-wishlist {
    background: #dc3545 !important;
}
.cwp-wishlist-btn.cwp-remove-wishlist:hover {
    background: #169fd9 !important;
}

.cwp-wishlist-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}


/* Favorites Grid */
.cwp-favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.cwp-favorite-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.cwp-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cwp-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.cwp-item-details h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.cwp-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}
/* Saved Grid */
.cwp-saved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.cwp-saved-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.cwp-saved-item:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cwp-saved-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.cwp-saved-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cwp-variant-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 124, 186, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cwp-saved-details {
    padding: 15px;
}

.cwp-saved-details h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.cwp-saved-date {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

/* Image Containers */
.cwp-item-images {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cwp-item-images-with-logo {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cwp-image-container {
    flex: 1;
    text-align: center;
}

.cwp-image-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.cwp-image-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Images with Logo Overlay */
.cwp-image-with-overlay {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cwp-image-with-overlay img:first-child {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cwp-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50px;
    max-height: 50px;
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Item Titles */
.cwp-favorite-item h3,
.cwp-saved-item h3 {
    margin: 0 0 15px 0;
    font-size: 18px  !important;
    color: #333;
    text-align: center;
}

/* Saved Date */
.cwp-saved-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Item Actions */
.cwp-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cwp-add-logo-btn {
    background: #007cba;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px !important;
    border-radius: 30px;
    font-size: 14px !important;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.cwp-add-logo-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}
.cwp-edit-logo-btn,
.cwp-remove-favorite,
.cwp-delete-saved {
    padding: 10px 20px !important;
    border: none !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: background-color 0.3s ease;
}

.cwp-edit-logo-btn {
    background: #28a745;
    color: white;
}

.cwp-edit-logo-btn:hover {
    background: #218838;
}

.cwp-remove-favorite,
.cwp-delete-saved {
    background: #dc3545 !important;
    color: white !important;
}

.cwp-remove-favorite:hover,
.cwp-delete-saved:hover {
    background: #c82333 !important;
}

/* Modal Styles */
.cwp-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwp-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cwp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.cwp-close:hover {
    color: #000;
}

/* Modal Form */
.cwp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* Preview Section */
#cwp-preview-section {
    margin-bottom: 20px;
}

.cwp-preview-images {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cwp-preview-images > div {
    flex: 1;
}

/* Add Logo Page Styles */
.cwp-add-logo-wrapper{
    padding: 80px 0;
    background: #f5f5f5;
}
.cwp-add-logo-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.cwp-logo-layout {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* Variants Sidebar */
.cwp-variants-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    width: 20%;
}

.cwp-variants-sidebar h3 {
    margin: 0 0 15px 0;
    font-size: 20px !important
}

.cwp-variant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cwp-variant-item {
    width: 100%;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.cwp-variant-item:hover {
    border-color: #007cba;
}

.cwp-variant-item.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.cwp-variant-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Display */
.cwp-main-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    position: relative;
    width: 60%;
}

.cwp-jersey-preview {
    position: relative;
    display: inline-block;
    max-width: 400px;
    max-height: 500px;
}

.cwp-jersey-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cwp-logo-overlay {
    position: absolute;
    top: 30%;
    left: 44%;
    width: 80px;
    height: 80px;
    display: none;
    z-index: 10;
    cursor: move;
    border: 2px dashed rgba(0, 124, 186, 0.5);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.cwp-logo-overlay:hover {
    border-color: rgba(0, 124, 186, 0.8);
}

.cwp-logo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Upload Section */
.cwp-upload-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 40%;
}

.cwp-upload-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px !important;
    color: #333;
}

.cwp-upload-info {
    margin-bottom: 20px;
}

.cwp-upload-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px !important;
}

.cwp-upload-info ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #666;
}

.cwp-upload-info li {
    margin-bottom: 5px;
}

.cwp-upload-area {
    margin-bottom: 20px;
}

.cwp-upload-dropzone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cwp-upload-dropzone:hover,
.cwp-upload-dropzone.dragover {
    border-color: #007cba;
    background-color: rgba(0, 124, 186, 0.05);
}

.cwp-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.cwp-upload-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.cwp-upload-btn {
    width: 100%;
    background: #007cba !important;
    color: white !important;
    border: none !important;
    transition: background 0.2s ease;
    margin-top: 20px;
}
.cwp-upload-btn:hover:not(:disabled) {
    background: #000000 !important;
}

.cwp-upload-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}
.cwp-upload-btn:disabled:hover{
    background: #ccc !important;
}

.cwp-preview-container {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.cwp-preview-container img:first-child {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Form Groups */
.cwp-form-group {
    margin-bottom: 20px;
}

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

.cwp-form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Logo Preview */
#cwp-logo-preview {
    margin: 15px 0;
    text-align: center;
}

#cwp-logo-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

/* Form Actions */
.cwp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#cwp-save-logo {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#cwp-save-logo:hover {
    background: #005a87;
}

#cwp-save-logo:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#cwp-cancel-logo {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#cwp-cancel-logo:hover {
    background: #5a6268;
}

/* Messages */
.cwp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.admin-bar .cwp-message {
    top: 46px;
}
.cwp-message-success {
    background: #28a745;
}

.cwp-message-error {
    background: #dc3545;
}
@media (max-width: 1600px) {
    .cwp-tabs {
        padding: 20px;
        border-radius: 20px;
    }
    .cwp-tabs h4 {
        font-size: 20px !important;
    }
}
@media (max-width: 1200px) {
    .cwp-wishlist-wrapper h2 {
        font-size: 24px !important;
    }
    .cwp-favorites-grid, .cwp-saved-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cwp-logo-layout {
        gap: 20px;
    }
    .cwp-tabs h4 {
        font-size: 18px !important;
    }
}
@media (max-width: 980px) {
    .cwp-wishlist-content {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    .cwp-tab-content {
        padding: 20px;
    }
    .cwp-tabs {
        flex-direction: row;
        width: 100%;
    }
    .cwp-tab-content-wrapper {
        width: 100%;
    }
    .cwp-wishlist-wrapper h2 {
        font-size: 20px !important;
    }
    .cwp-logo-layout {
        flex-wrap: wrap;
    }
    .cwp-variants-sidebar {
        order: 2;
        width: 40%;
    }
    .cwp-main-display {
        order: 1;
        width: 100%;
    }
    .cwp-upload-section {
        order: 3;
        width: 50%;
    }
    .cwp-tabs h4 {
        font-size: 16px !important;
    }
}
@media (max-width: 767px) {
    .cwp-wishlist-content {
        padding: 20px;
    }
    .cwp-wishlist-wrapper h2 {
        font-size: 18px !important;
    }
    .cwp-favorites-grid,
    .cwp-saved-grid {
        grid-template-columns: 1fr;
    }
    .cwp-item-images,
    .cwp-item-images-with-logo {
        flex-direction: column;
    }
    
    .cwp-preview-images {
        flex-direction: column;
    }
    .cwp-modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }
    .cwp-form-actions {
        flex-direction: column;
    }
    .cwp-item-actions {
        justify-content: center;
    }
    .cwp-tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .cwp-favorite-item,
    .cwp-saved-item {
        padding: 15px;
    }
    .cwp-message {
        right: 10px;
        left: 10px;
        top: 10px;
    }
    .cwp-variants-sidebar {
        width: 100%;
    }
    .cwp-variant-list {
        flex-direction: row;
    }
    .cwp-upload-section {
        width: 100%;
    }