/* ==========================================================================
   News Card & News Preview Card Components
   ========================================================================== */

.news-preview-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(110, 92, 123, 0.10);
    box-shadow: 0 12px 24px rgba(110, 92, 123, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-preview-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.news-preview-card__body {
    padding: 20px;
    display: grid;
    gap: 10px;
    flex: 1;
}

.news-preview-date {
    color: #6E5C7B;
    font-size: 13px;
    font-weight: 700;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(166, 111, 38, .08);
    box-shadow: 0 18px 38px rgba(83, 53, 22, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(83, 53, 22, .12);
}

.news-card__media {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #f4eadc;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.06);
}

.news-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__date {
    color: #6E5C7B;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.news-card h2 {
    margin: 0 0 14px;
    color: #2d1b12;
    font-size: 1.28rem;
    line-height: 1.45;
    font-weight: 900;
}

.news-card p {
    margin: 0 0 20px;
    color: #6c5546;
    font-size: .98rem;
    line-height: 1.8;
    flex: 1;
}

.news-card .soft-button-alt {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(166, 111, 38, .14);
    color: #2d1b12;
    box-shadow: 0 10px 22px rgba(83, 53, 22, .06);
    width: 100%;
}

.news-card .soft-button-alt:hover {
    background: #6E5C7B;
    color: #fff;
    border-color: #6E5C7B;
}


/* ==========================================================================
   Product Card Premium Component
   ========================================================================== */

.product-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    transition: .45s ease;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .05),
        0 2px 8px rgba(0, 0, 0, .03);
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(110, 92, 123, .18),
        0 10px 20px rgba(0, 0, 0, .06);
}

.product-card-premium__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card-premium__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-card-premium:hover img {
    transform: scale(1.08);
}

.product-card-premium__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .42),
            rgba(0, 0, 0, .04));
}

.product-card-premium__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 700;
    color: #6E5C7B;
}

html[dir="rtl"] .product-card-premium__badge {
    left: auto;
    right: 18px;
}

.product-card-premium__content {
    padding: 24px;
}

.product-card-premium__content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2f2735;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card-premium__content p {
    color: #6a6272;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-premium__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    color: #6E5C7B;
    transition: .3s ease;
}

.product-card-premium__link span {
    transition: .3s ease;
}

.product-card-premium:hover .product-card-premium__link span {
    transform: translateX(6px);
}

html[dir="rtl"] .product-card-premium:hover .product-card-premium__link span {
    transform: translateX(-6px);
}


/* ==========================================================================
   FAQ Card Component (Home & Page variations)
   ========================================================================== */

.faq-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 251, 0.95));
    border: 1px solid rgba(110, 92, 123, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(110, 92, 123, 0.08);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item.is-open {
    border-color: rgba(110, 92, 123, 0.24);
    box-shadow: 0 18px 36px rgba(110, 92, 123, 0.12);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 22px;
    text-align: start;
    font: inherit;
    font-weight: 700;
    color: #2f2735;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-question__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(110, 92, 123, 0.14);
    background: #fff;
    color: #6E5C7B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s ease;
}

.faq-answer__inner {
    overflow: hidden;
    padding: 0 22px;
    color: #5d576e;
    line-height: 1.8;
    transition: padding .32s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer__inner {
    padding: 0 22px 22px;
}

.faq-item.is-open .faq-question__icon {
    background: #6E5C7B;
    color: #fff;
    border-color: #6E5C7B;
}

/* FAQ Page variation */

.faq-page-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 242, 250, 0.96));
    border: 1px solid rgba(110, 92, 123, 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(110, 92, 123, 0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.faq-page-item:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 92, 123, 0.22);
    box-shadow: 0 20px 38px rgba(110, 92, 123, 0.12);
}

.faq-page-question {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    text-align: start;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2f2735;
    transition: background-color .25s ease;
}

.faq-page-question:hover,
.faq-page-question:focus-visible {
    background: rgba(110, 92, 123, 0.04);
    outline: none;
}

.faq-page-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(110, 92, 123, 0.16);
    background: #fff;
    color: #6E5C7B;
    font-size: 20px;
    flex: 0 0 auto;
    transition: transform .28s ease, background-color .28s ease, color .28s ease;
}

.faq-page-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s ease;
}

.faq-page-answer__inner {
    overflow: hidden;
    padding: 0 24px;
    color: #5d576e;
    line-height: 1.9;
    transition: padding .34s ease;
}

.faq-page-item.is-open .faq-page-answer {
    grid-template-rows: 1fr;
}

.faq-page-item.is-open .faq-page-answer__inner {
    padding: 0 24px 24px;
}

.faq-page-item.is-open .faq-page-icon {
    transform: rotate(45deg);
    background: #6E5C7B;
    color: #fff;
}

/* Mobile Performance/Stability: Disable GPU-heavy backdrop blur on scrolls/animations */
@media (max-width: 1024px) {
    .product-card-premium__badge {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
}
