/* Product Description Modal Styles - Nike Inspired */

.pdl-container {
    position: relative;
    margin-bottom: 1.5em;
}

.pdl-modal-trigger {
    background: none;
    border: none;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.pdl-modal-trigger:hover {
    color: #757575;
}

/* Modal Styles */
.pdl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdl-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.pdl-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.pdl-modal-container {
    position: relative;
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.pdl-modal.active .pdl-modal-container {
    transform: scale(1);
}

.pdl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.pdl-modal-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdl-modal-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.pdl-modal-product-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.pdl-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: #757575;
}

.pdl-modal-close:hover {
    background-color: #f5f5f5;
    color: #111;
}

.pdl-modal-body {
    padding: 24px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.pdl-modal-content {
    font-size: 16px;
    line-height: 1.6;
    color: #111;
}

.pdl-modal-content p {
    margin-bottom: 16px;
}

.pdl-modal-content p:last-child {
    margin-bottom: 0;
}

/* Scrollbar Styling */
.pdl-modal-body::-webkit-scrollbar {
    width: 6px;
}

.pdl-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pdl-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.pdl-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pdl-modal-container {
        width: 95%;
        max-height: 90vh;
        margin: 20px auto;
    }
    
    .pdl-modal-header {
        padding: 16px 20px;
    }
    
    .pdl-modal-product-image {
        width: 50px;
        height: 50px;
    }
    
    .pdl-modal-product-title {
        font-size: 18px;
    }
    
    .pdl-modal-body {
        padding: 20px;
    }
    
    .pdl-modal-content {
        font-size: 15px;
    }
}

/* Animation Classes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.pdl-modal.closing .pdl-modal-container {
    animation: modalFadeOut 0.3s ease forwards;
}