/* request.css */

.catalog-list {
    margin-bottom: 60px;
}

.catalog-list__section {
    margin-bottom: 50px;
}

.catalog-list__section:last-child {
    margin-bottom: 0px;
}

.catalog-list__section-head {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.catalog-list__section-body {
    display: grid;
    gap: 30px;
}

.catalog-list__section--recommend .catalog-list__section-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-list__section--product .catalog-list__section-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .catalog-list {
        gap: 20px;
    }

    .catalog-list__section--recommend .catalog-list__section-body,
    .catalog-list__section--product .catalog-list__section-body {
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .catalog-list {
        gap: 10px;
    }

    .catalog-list__section--recommend .catalog-list__section-body,
    .catalog-list__section--product .catalog-list__section-body {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .catalog-list__section-head {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.catalog-card__inner {
    flex: 1;
    /* Pushes footer to bottom */
    padding: 20px;
}

.catalog-card__thumb {
    margin-bottom: 20px;
    text-align: center;
}

.catalog-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 205 / 125;
    object-fit: contain;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); */
}

.catalog-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    height: 45px;
}

.catalog-card__summary {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.catalog-card__foot {
    background: #eaeaea;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: background 0.3s;
}

.catalog-card:hover .catalog-card__foot {
    background: #ddd;
}

.catalog-card__check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.catalog-card__label {
    position: relative;
    padding-left: 25px;
    font-weight: 700;
    display: inline-block;
    color: #444;
    font-size: 14px;
}

.catalog-card__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #777;
    background: #fff;
    border-radius: 2px;
}

.catalog-card__check:checked+.catalog-card__label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
}

.catalog-card:has(.catalog-card__check:checked) {
    background-color: #fff7f3;
    outline: 2px solid #e77733;
}

.catalog-card:has(.catalog-card__check:checked) .catalog-card__foot {
    background-color: #ffe0cc;
}

.catalog-card__check:checked+.catalog-card__label {
    color: #000;
}

.selected-catalog {
    position: sticky;
}

.selected-catalog__head {
    background: #ccc;
    font-weight: 700;
    padding: 10px 15px;
    color: #333;
}

.selected-catalog__body {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.selected-catalog__submit {
    width: 100%;
    background: var(--vk-color-primary);
    min-width: 200px;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-bottom: 15px;
    cursor: pointer;
}

.selected-catalog__submit::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    right: 25px;
}

.selected-catalog__submit:hover {
    opacity: 0.9;
}

.selected-catalog__limit {
    font-size: 14px;
    border-bottom: 1px solid #000;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.selected-catalog__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-catalog__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 0px;
    border-bottom: 1px solid #eee;
    min-height: auto;
}

/* .selected-catalog__item:last-child {
    border-bottom: 2px solid #000;
} */

.selected-catalog__num {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.selected-catalog__media {
    background: #f4f4f4;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-catalog__media img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}

.selected-catalog__remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #888;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    /* display: none; */
    flex-shrink: 0;
    order: 4;
}

.selected-catalog__remove::before {
    content: '×';
}

.selected-catalog__item.is-active .selected-catalog__remove {
    opacity: 1;
    pointer-events: all;
}

.selected-catalog__name {
    font-size: 12px;
    margin-top: 0;
    height: auto;
    padding: 0;
    flex: 1;
    order: 3;
    line-height: 1.3;
}

.selected-catalog__reset {
    width: 100%;
    background: #666;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.selected-catalog__reset:hover {
    opacity: 0.8;
}

.catalog-actions {
    text-align: center;
}

.catalog-actions__btn {
    margin: 0 auto;
    max-width: 400px;
}

@media (max-width: 767.98px) {
    .catalog-card__thumb {
        margin-bottom: 8px;
    }

    .catalog-card__title {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .catalog-card__inner {
        padding: 10px;
    }

    .catalog-card__foot {
        padding: 10px 5px;
    }

    .catalog-card__label::before {
        width: 13px;
        height: 13px;
    }

    .catalog-card__check:checked+.catalog-card__label::after {
        left: 4px;
    }

    .catalog-card__label {
        padding-left: 16px;
        font-size: 13px;
    }
}

.pc-text {
    display: inline;
}

.sp-text {
    display: none;
}

.selected-catalog__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e77733;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width:1199.98px) {
    .selected-catalog__limit {
        display: block;
    }
}

.ratio-layout__sub {
    background: none;
}

@media (max-width: 991.98px) {
    .pc-text {
        display: none;
    }

    .sp-text {
        display: inline;
    }

    .ratio-layout__sub {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100% !important;
        z-index: 1000000;
        top: auto !important;
        transform: translateY(calc(100% - 130px));
        transition: transform 0.3s ease;
        padding-top: 0px;
        border-top: none;
        background: #fff;
    }

    .ratio-layout__sub.is-open {
        transform: translateY(100px);
    }

    .selected-catalog {
        position: static;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .selected-catalog__head {
        background: #fdfdfd;
        padding: 15px 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        position: relative;
        border-top: 1px solid #ccc;
    }

    .selected-catalog__head::after {
        content: none;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 12px;
        height: 12px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transition: transform 0.3s;
        transform-origin: center center;
        margin-top: -3px;
    }

    .ratio-layout__sub.is-open .selected-catalog__head::after {
        transform: translateY(-50%) rotate(180deg);
        margin-top: 3px;
    }

    .selected-catalog__limit {
        margin-left: auto;
        margin-right: 30px;
        /* Space for chevron */
        margin-bottom: 0;
        border: none;
        padding: 0;
        font-size: 12px;
        color: #666;
    }

    .selected-catalog__body {
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 30px;
    }

    .selected-catalog__submit {
        width: 100%;
        margin-bottom: 20px;
        font-size: 16px;
        padding: 12px;
    }

    /* Overlay for mobile footer */
    .ratio-layout__overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        pointer-events: none;
    }

    .ratio-layout__overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.catalog-card__badge {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    margin-bottom: 8px;
    line-height: 1;
}

.post-name-request .ratio-layout__main {
    border-right: none;
    padding-right: 0;
}

.c-sec-heading {
    font-family: "Oswald";
    font-size: 50px;
    letter-spacing: 2px;
    line-height: 0.95em;
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 767.98px) {
    .c-sec-heading {
        font-size: 40px;
        line-height: 1.1em;
    }
}

.c-sec-heading.yoko {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .c-sec-heading.yoko {
        display: block;
        text-align: left;
    }
}

.c-sec-heading.yoko span {
    line-height: 1em;
    margin-top: 0.2em;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .c-sec-heading.yoko span {
        margin-top: 10px;
        line-height: 1.5rem;
        display: block;
    }
}

.c-sec-heading span {
    font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    display: block;
    font-weight: normal;
    letter-spacing: 1px;
}

@media (max-width: 767.98px) {
    .c-sec-heading span {
        font-size: 15px;
        margin-top: 10px;
        line-height: 1.5rem;
    }
}


/* @media (max-width:1199.98px) {
    .ratio-layout {
        display: block;
    }
} */