/* Try on My Baby - Modal Styles */
.try-on-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: tryOnFadeIn 0.3s forwards;
}

@keyframes tryOnFadeIn {
    to { opacity: 1; }
}

.try-on-modal-content {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-xl, 24px);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(217, 123, 154, 0.2);
    text-align: center;
    transform: translateY(20px);
    animation: tryOnSlideUp 0.3s forwards;
}

@keyframes tryOnSlideUp {
    to { transform: translateY(0); }
}

.try-on-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-muted, #888);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.try-on-close:hover {
    color: var(--color-dark, #333);
}

.try-on-upload-btn {
    display: inline-block;
    background: var(--color-pink-soft, #ffccd5);
    color: var(--color-button, #D97B9A);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body, sans-serif);
    transition: all 0.2s ease;
    border: 2px dashed var(--color-button, #D97B9A);
}

.try-on-upload-btn:hover {
    background: var(--color-button, #D97B9A);
    color: #fff;
    border-style: solid;
}

.try-on-loader {
    border: 4px solid var(--color-pink-soft, #ffccd5);
    border-top: 4px solid var(--color-button, #D97B9A);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: tryOnSpin 1s linear infinite;
    margin: 0 auto;
}

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

.try-on-btn-primary {
    background: var(--color-button, #D97B9A);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.try-on-btn-primary:hover {
    background: #c26985;
}

/* Try on My Baby - Button Styles */
.try-on-trigger-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-button, #D97B9A);
    border: 1px solid var(--color-button, #D97B9A);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.try-on-trigger-btn:hover {
    background: var(--color-button, #D97B9A);
    color: #fff;
}

.product-item-card .product-image-container {
    position: relative;
}

/* Detail page trigger */
.pd-try-on-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--color-sage, #a3b19b);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-family: var(--font-body, sans-serif);
    cursor: pointer;
    transition: var(--transition-smooth, all 0.3s ease);
    box-shadow: 0 4px 14px rgba(163, 177, 155, 0.3);
}

.pd-try-on-btn:hover {
    background: #8f9e87;
    transform: translateY(-2px);
}

/* View Original Images Button Container */
.try-on-reset-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.try-on-reset-btn {
    background: var(--color-dark, #333);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.try-on-reset-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Global Floating Button */
.try-on-floating-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: var(--color-button, #D97B9A);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(217, 123, 154, 0.4);
    transition: all 0.3s ease;
}

.try-on-floating-btn:hover {
    background: #c26985;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 123, 154, 0.5);
}

.try-on-floating-btn .float-text {
    display: none;
}

.try-on-floating-btn:hover .float-text {
    display: inline-block;
}

@media (min-width: 768px) {
    .try-on-floating-btn .float-text {
        display: inline-block;
    }
}
