/* Woo Wallpaper Murals custom styles */ 

/* Main product layout */
.wwm-wallpaper-product {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.wwm-wallpaper-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.wwm-wallpaper-image {
    flex: 1 1 500px;
    min-width: 300px;
}
.wwm-wallpaper-colors, 
.wwm-wallpaper-dimensions, 
.wwm-wallpaper-materials, 
.wwm-wallpaper-price {
    margin-bottom: 20px;
}

/* Color swatches */
.wwm-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.wwm-color-swatch {
    display: inline-block;
    cursor: pointer;
    padding: 2px;
    border: 1px solid #ddd;
}
.wwm-color-swatch.selected {
    outline: 2px solid #007cba;
    border-radius: 4px;
}

/* Form elements */
.wwm-material-option {
    display: block;
    margin-bottom: 8px;
}
#wwm-width, #wwm-height {
    width: 80px;
    margin-right: 15px;
}
#wwm-total-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #007cba;
}

/* Cropping modal styles */
.wwm-cropping-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}
.wwm-cropping-modal-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 10001;
    max-width: 90vw;
    max-height: 90vh;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-width: 320px;
}
.wwm-cropping-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.wwm-cropping-modal-header h2 {
    margin: 0;
    font-size: 1.2em;
}
.wwm-cropping-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
}
.wwm-cropping-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wwm-cropping-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.wwm-cropping-modal-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.wwm-cropping-step {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
}
.wwm-cropping-step.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}
#wwm-cropping-modal {
    z-index: 999999;
}

/* WooCommerce Compatibility - Fix potential theme issues */
.wwm-wallpaper-product .product_title {
    font-size: 1.5em;
    margin-bottom: 1em;
}
.wwm-wallpaper-product label {
    display: inline-block;
    margin-bottom: 0.5em;
    font-weight: bold;
}
.wwm-wallpaper-product input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.wwm-wallpaper-product button.button {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.wwm-wallpaper-product button.button:hover {
    background-color: #006ba1;
}
.wwm-wallpaper-product button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wwm-wallpaper-main {
        flex-direction: column;
    }
    .wwm-color-swatches {
        justify-content: center;
    }
    .wwm-wallpaper-product button.button {
        width: 100%;
        margin-top: 10px;
    }
    .wwm-cropping-modal-content {
        width: 95vw;
        padding: 15px;
    }
} 

/* --- Main Product Page Styles --- */
.wm-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}
.wm-image-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 0;
}
.wm-image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.wm-info-card {
    background: #faf9f7;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.wm-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}
.wm-swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.wm-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #eee;
    overflow: hidden;
    cursor: pointer;
    transition: border 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wm-swatch.selected {
    border: 2px solid #007c6c;
}
.wm-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007c6c;
    margin-bottom: 0.5em;
}
.wm-dimensions {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 8px;
}
.wm-dim-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-dim-input label {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 2px;
}
.wm-dim-input input {
    width: 90px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}
.wm-margin-warning {
    color: #b77a00;
    font-size: 0.95em;
    margin-bottom: 8px;
}
.wm-minimum-area-warning {
    color: #b77a00;
    font-size: 0.95em;
    margin-bottom: 8px;
    display: none;
}
.wm-materials {
    margin-bottom: 12px;
}
.wm-materials label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.wm-material-option {
    margin-bottom: 4px;
}
.wm-order-btn {
    background: #007c6c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 0;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    width: 100%;
}
.wm-order-btn:disabled {
    background: #b2b2b2;
    cursor: not-allowed;
}
.wm-features {
    margin-top: 18px;
    font-size: 0.98em;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 900px) {
    .wm-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .wm-info-card {
        padding: 20px 10px;
    }
}

/* Material Cards Styles */
.wm-card {
    transition: all 0.2s ease;
    position: relative;
}
.wm-card:hover {
    border-color: #007c6c !important;
    box-shadow: 0 2px 8px rgba(0, 124, 108, 0.1);
}
.wm-card.selected {
    border-color: #007c6c !important;
    background: #f0f9f8 !important;
    box-shadow: 0 2px 12px rgba(0, 124, 108, 0.15);
}
.wm-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #007c6c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Modal Material Cards Styles */
.wm-card-modal {
    transition: all 0.2s ease;
    position: relative;
}
.wm-card-modal:hover {
    border-color: #007c6c !important;
    box-shadow: 0 2px 8px rgba(0, 124, 108, 0.1);
}
.wm-card-modal.selected {
    border-color: #007c6c !important;
    background: #f0f9f8 !important;
    box-shadow: 0 2px 12px rgba(0, 124, 108, 0.15);
}
.wm-card-modal.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #007c6c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Next Step Button Styles */
.wm-next-btn:hover {
    background: #006b5c !important;
}
.wm-next-btn:disabled {
    background: #b2b2b2 !important;
    cursor: not-allowed !important;
}

/* Cropper.js styles */
.cropper-container {
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.cropper-view-box {
    outline: 2px solid #007c6c;
    outline-color: rgba(0, 124, 108, 0.75);
}

.cropper-face {
    background-color: inherit !important;
}

.cropper-dashed {
    border-color: #007c6c;
}

.cropper-point {
    background-color: #007c6c;
    opacity: 0.75;
}

.cropper-line {
    background-color: #007c6c;
}

.cropper-modal {
    opacity: 0.5;
    background-color: #000;
}

/* Modal styles */
#wwm-wallpaper-modal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

#wwm-wallpaper-modal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#wwm-wallpaper-modal .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

#wwm-wallpaper-modal .modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

#wwm-wallpaper-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #wwm-wallpaper-modal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem auto;
    }
    
    #wwm-wallpaper-modal .modal-body {
        padding: 1rem;
    }
    
    .cropper-container {
        max-height: 50vh;
    }
}

/* Step 4 - Related Products Styles */
.wwm-related-products {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.wwm-related-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 280px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    min-width: 250px;
}

.wwm-related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.wwm-related-item img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.wwm-related-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.wwm-related-item .price {
    color: #007c6c;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.wwm-related-item .price .sale-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 0.9em;
}

.wwm-related-item p {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 15px 0;
    line-height: 1.4;
    min-height: 40px;
}

.wwm-add-related-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    font-size: 1em;
}

.wwm-add-related-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

.wwm-add-related-btn:active {
    transform: translateY(0);
}

.wwm-add-related-btn:disabled {
    background: #28a745;
    cursor: not-allowed;
    transform: none;
}

/* Step 4 header styles */
#step-4-content h2 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

#step-4-content > div > p {
    color: #666;
    margin: 0 0 30px 0;
    font-size: 1.1em;
}

/* Ready to proceed section */
#step-4-content .ready-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

#step-4-content .ready-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #333;
    font-weight: 600;
}

#step-4-content .ready-section p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 1em;
}

/* Responsive design for Step 4 */
@media (max-width: 768px) {
    .wwm-related-products {
        flex-direction: column;
        align-items: center;
    }
    
    .wwm-related-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    #step-4-content h2 {
        font-size: 1.5em;
    }
    
    #step-4-content > div > p {
        font-size: 1em;
    }
}

/* Modal step titles styling */
.modal-title div {
    font-weight: 600;
    color: #333;
}

#step-4-title {
    color: #007c6c;
}

/* No products message */
.wwm-no-products-message {
    color: #666;
    font-style: italic;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
} 