/* Product FAQs Frontend Styles */

.product-faq {
    background: #ECECEC;
    padding: 2.5rem 0;
    color: #000000;
}

.product-faq .faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FAQ Header */
.product-faq .faq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.product-faq .faq-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
    color: #000000;
}

.product-faq .faq-link {
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    transition: opacity 0.2s ease;
}

.product-faq .faq-link:hover {
    opacity: 0.7;
}

/* FAQ List */
.product-faq .faq-list {
    display: block;
}

/* FAQ Item */
.product-faq .faq-item {
    background: #ffffff;
    margin-bottom: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-faq .faq-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-faq .faq-item:last-child {
    margin-bottom: 0;
}

/* FAQ Button */
.product-faq .faq-btn {
    width: 100%;
    text-align: left;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    border: none;
    background: #ffffff;
    color: #000000;
    transition: background-color 0.2s ease;
}

.product-faq .faq-btn:hover {
    background: #fafafa;
}

.product-faq .faq-btn:focus {
    outline: 2px solid #000000;
    outline-offset: -2px;
}

.product-faq .faq-q {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    color: #000000;
}

/* FAQ Icon (Plus/Minus) */
.product-faq .faq-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    position: relative;
}

.product-faq .faq-icon::before,
.product-faq .faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-faq .faq-icon::before {
    width: 20px;
    height: 2px;
}

.product-faq .faq-icon::after {
    width: 2px;
    height: 20px;
}

.product-faq .faq-item[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* FAQ Panel */
.product-faq .faq-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease;
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
}

.product-faq .faq-item[aria-expanded="true"] .faq-panel {
    border-top-color: #e0e0e0;
}

.product-faq .faq-a {
    padding: 18px 24px 24px;
    line-height: 1.7;
    color: #000000;
    background: #ffffff;
}

.product-faq .faq-a p {
    margin: 0 0 1em;
    color: #000000;
}

.product-faq .faq-a p:last-child {
    margin-bottom: 0;
}

.product-faq .faq-a ul,
.product-faq .faq-a ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.product-faq .faq-a li {
    margin-bottom: 0.5em;
    color: #000000;
}

.product-faq .faq-a a {
    color: #000000;
    text-decoration: underline;
}

.product-faq .faq-a a:hover {
    opacity: 0.7;
}

.product-faq .faq-a strong {
    font-weight: 700;
    color: #000000;
}

.product-faq .faq-a em {
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-faq {
        padding: 2rem 0;
    }
    
    .product-faq .faq-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .product-faq .faq-title {
        font-size: 1.5rem;
    }
    
    .product-faq .faq-btn {
        padding: 18px 20px;
    }
    
    .product-faq .faq-q {
        font-size: 1rem;
    }
    
    .product-faq .faq-a {
        padding: 16px 20px 20px;
        font-size: 0.95rem;
    }
    
    .product-faq .faq-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }
    
    .product-faq .faq-icon::before {
        width: 16px;
    }
    
    .product-faq .faq-icon::after {
        height: 16px;
    }
}

@media (max-width: 480px) {
    .product-faq {
        padding: 1.5rem 0;
    }
    
    .product-faq .faq-container {
        padding: 0 0.75rem;
    }
    
    .product-faq .faq-title {
        font-size: 1.25rem;
    }
    
    .product-faq .faq-btn {
        padding: 16px 18px;
    }
    
    .product-faq .faq-q {
        font-size: 0.95rem;
    }
    
    .product-faq .faq-a {
        padding: 14px 18px 18px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-faq .faq-item {
    animation: fadeIn 0.3s ease;
}

/* Accessibility */
.product-faq .faq-btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: -2px;
}

/* Print Styles */
@media print {
    .product-faq {
        background: #ffffff;
    }
    
    .product-faq .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .product-faq .faq-panel {
        height: auto !important;
        border-top: 1px solid #e0e0e0;
    }
    
    .product-faq .faq-icon {
        display: none;
    }
    
    .product-faq .faq-link {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .product-faq .faq-btn {
    text-align: right;
}

[dir="rtl"] .product-faq .faq-a ul,
[dir="rtl"] .product-faq .faq-a ol {
    margin: 0 1.5em 1em 0;
}