/* ============================================================
   Gift Category Page Styles
   Used by: resources/views/frontend/category/gift-category.blade.php
   ============================================================ */

/* --- Other Details Accordion -------------------------------- */
.other-details-accordion {
    max-width: 600px;
    margin: 20px auto;
    font-family: Montserrat, Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.other-details-accordion .accordion-item {
    border-bottom: 1px solid #ddd;
    position: relative;
}

.other-details-accordion .accordion-toggle {
    display: none;
}

.other-details-accordion .accordion-label {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 15px 20px;
    background: #f7f7f7;
    cursor: pointer;
    transition: background 0.3s ease;
}

.other-details-accordion .accordion-label:hover {
    background: #e2e2e2;
}

.other-details-accordion .title {
    font-size: 16px;
}

.other-details-accordion .other-details-visible-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-right: 1rem;
    margin-left: 1rem;
}

.other-details-accordion .accordion-toggle:checked + .accordion-label .other-details-visible-checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid #1b1b1b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.other-details-accordion .accordion-body {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.other-details-accordion .accordion-toggle:checked ~ .accordion-body {
    max-height: 300px;
    padding: 15px 20px;
    overflow: scroll;
}

/* --- Mobile overrides --------------------------------------- */
@media (max-width: 767px) {
    /* English: description is taller, needs more offset */
    html[dir="ltr"] .sort-by-mobile-bottom {
        bottom: -190px !important;
    }

    /* Arabic: description is shorter, needs less offset */
    html[dir="rtl"] .sort-by-mobile-bottom {
        bottom: -155px !important;
    }

    .filter-toggle {
        position: absolute;
        top: 0;
    }
}
