/**
 * Product Page Styles
 * 
 * @package SALUZA
 */

@media (max-width: 63.999rem) {
  .product__form-row.product__form-row--fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-sticky);
    padding: 0.625rem;
    width: 100%;
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -4px rgba(0, 0, 0, 0.1);
    background: var(--color-white);
  }
}

@media (max-width: 63.999rem) {
  .footer {
    padding-bottom: 10rem;
  }
}
.form-preorder__body,
.form-notify__body {
    text-align: center;
}

.form-preorder__fields,
.form-notify__fields {
    margin: 20px 0;
}

.form-preorder__fields .field,
.form-notify__fields .field {
    margin-bottom: 15px;
}

.form-preorder__submit-button,
.form-notify__submit-button {
    width: 100%;
    margin-top: 20px;
}

.product__action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* .product__add-to-cart-btn,
.product__notify-btn,
.product__preorder-btn {
    width: 100%;
    justify-content: center;
}

.product__add-to-cart-btn:disabled,
.product__notify-btn:disabled,
.product__preorder-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
} */

.product__selection-message {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
    color: #6c757d;
    font-size: 14px;
}

.product__action-buttons.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.product__action-buttons.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification--show {
    transform: translateX(0);
}

.notification--success {
    border-left: 4px solid #4caf50;
}

.notification--error {
    border-left: 4px solid #f44336;
}

.notification__content {
    margin-right: 30px;
}

.notification__title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.notification__message {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.notification__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification__close:hover {
    color: #333;
}

.modal__dialog--medium {
    max-width: 500px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.field__input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.field__input:focus {
    outline: none;
    border-color: var(--color-primary, #000);
}

@media (max-width: 768px) {
    .product__action-buttons {
        gap: 8px;
    }
    
    .form-preorder__fields .field,
    .form-notify__fields .field {
        margin-bottom: 12px;
    }
    
    .product__action-buttons {
        flex-direction: column;
    }
    
    .product__action-buttons .button {
        min-width: auto;
        width: 100%;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .modal__dialog--medium {
        margin: 10px;
        max-width: none;
    }
}

@media (max-width: 39.999rem) {
    .buttuon_favorite{
        flex: 1 0 auto;
    }
}

/* Widget */
@media (max-width: 63.999rem) {
    .popover {
        bottom: 4.5rem;
    }
}
@media (max-width: 39.999rem) {
    .popover {
        bottom: 7.75rem;
    }
}

/* Lock body on open gallery */
html.with-fancybox > body {
    overflow: hidden;
}