/* Modal Styles for StyleHub */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 1000px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    padding: 30px;
}

.product-modal-gallery {
    flex: 1;
    max-width: 50%;
}

.main-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-details {
    flex: 1;
    padding-left: 30px;
}

.product-modal-details h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.product-modal-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.product-modal-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.product-modal-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.product-modal-variants {
    margin-bottom: 25px;
}

.product-modal-variants h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.size-option {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.size-option:hover {
    border-color: var(--primary-color);
}

.size-option.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.product-modal-quantity {
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-selector button:hover {
    background-color: #e9e9e9;
}

.quantity-decrease {
    border-radius: 4px 0 0 4px;
}

.quantity-increase {
    border-radius: 0 4px 4px 0;
}

.quantity-selector input {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
}

.stock-status {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #28a745;
}

.product-modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-modal-actions .btn {
    flex: 1;
}

.modal-add-to-wishlist.in-wishlist {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.product-modal-meta {
    font-size: 14px;
    color: #777;
}

.product-modal-meta p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-modal-gallery {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .product-modal-details {
        padding-left: 0;
    }
    
    .product-modal-actions {
        flex-direction: column;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 4px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
    max-width: 350px;
}

.notification-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    margin-right: 15px;
    font-size: 20px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

.notification-close {
    margin-left: 15px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #333;
}

/* Success, error, info colors */
.notification-toast .fa-check-circle {
    color: var(--success-color, #28a745);
}

.notification-toast .fa-exclamation-circle {
    color: var(--error-color, #dc3545);
}

.notification-toast .fa-info-circle {
    color: var(--info-color, #17a2b8);
}
