/*
 * FaghatKetab – Main Stylesheet
 * Built on top of Tailwind CSS runtime
 * Version: 1.0.0
 */

/* ─── Accessibility ─────────────────────────────────────────────────────── */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ─── Header: Submenu hover ─────────────────────────────────────────────── */
.submenu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: visibility 0s 0.2s, opacity 0.2s ease-out, transform 0.2s ease-out;
}
.group:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* ─── Header: Mobile drawer layers ──────────────────────────────────────── */
.menu-layer {
    position: absolute;
    inset: 0;
    background: #fff;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}
.layer-hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}
.layer-active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ─── Footer: Accordion (mobile) ────────────────────────────────────────── */
.footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.footer-accordion-active .footer-accordion-content {
    max-height: 500px;
}
.footer-accordion-active .footer-accordion-icon {
    transform: rotate(180deg);
}

/* ─── WooCommerce overrides ─────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #137fec;
}

/* ─── فرم دیدگاه محصول: ستاره‌های تعاملی (فونت WooCommerce) زرد مثل text-yellow-500 */
.fk-product-review-form p.stars {
    margin: 0;
}

.fk-product-review-form p.stars span[role="group"] {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: wrap;
}

.fk-product-review-form p.stars a {
    color: #eab308;
}

.fk-product-review-form p.stars a::before {
    color: #eab308 !important;
}

.dark .fk-product-review-form p.stars a::before {
    color: #facc15 !important;
}
