/* 게시판 전용 스타일 — board.* 라우트(목록/갤러리/FAQ/상세)에서만 로드된다.
   색상 변수(--color-*)는 frontend.css의 :root에서 정의된 것을 그대로 참조한다.

   여기 있는 클래스는 전부 board- 접두사로 네임스페이스를 분리해뒀다 — 다른 화면에서
   같은 이름(예: .comment, .pagination, .gallery-grid)을 별 생각 없이 재사용해도 이
   파일의 스타일이 의도치 않게 섞여 들어가지 않게 하기 위해서다. 반대로 여러 화면(게시판/
   문의/정책 등)이 실제로 함께 쓰기로 하고 공유하는 요소(.post-meta, .post-header,
   .post-content, .pagination 등)는 일부러 여기 두지 않고 sub.css에 정의한다. */

/* 첨부파일/댓글 유무 아이콘 (게시글 목록·갤러리 카드) */
.board-list-icon { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; display: inline-block; color: var(--color-text-sub); }
.board-gallery-icons { margin: 4px 0 0; display: flex; gap: 8px; align-items: center; }
.board-gallery-icons:empty { display: none; }
.board-list-comment-count { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--color-text-sub); }
.board-list-comment-count .board-list-icon { margin-left: 0; }

/* 게시판 목록 */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 20px; flex-wrap: wrap; }
.board-toolbar-left,
.board-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-count-info { 
    margin: 0; font-size: max(14px, 1.6rem); white-space: nowrap;
    font-weight: 500; 
}

.board-count-info b {
    color: var(--color-main);
    font-size: 1.25em;
}

.board-toolbar-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

.board-bottom-tool {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
}


table.board-list { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-text);}
table.board-list th, table.board-list td {
    padding: 20px 10px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    font-size: max(17px, 2rem);
}
table.board-list th { 
    color: var(--color-text-sub); font-weight: 600; background: #fff;
}
/* col-* 폭 유틸리티는 table.board-list 안에서만 의미가 있어 접두사 없이도 안전하게
   격리된다(항상 이 조상 선택자를 통해서만 적용됨). */

table.board-list :is(th.col-num, th.col-category, th.col-writer, th.col-date, th.col-views, th.col-recruitment) {
    width: 170px;
}

table.board-list td.col-num, table.board-list td.col-views, table.board-list td.col-date { color: var(--color-text-sub); white-space: nowrap; }

/* 공지, 전체공지 */
table.board-list .is-notice {background: var(--bg-layer-gray);}
table.board-list .is-notice .col-notice {
    color: var(--color-main);
    font-weight: 600;
}

table.board-list tr td.col-title {text-align: left;}

table.board-list tr td.col-title > p {
    display: flex; gap: 10px 4px; flex-wrap: wrap;
}

table.board-list tr td.col-title a {
    -webkit-line-clamp: 1;
    font-weight: 500;
    line-height: 1;
}

table.board-list tr td.col-title a:hover {text-decoration: underline;}


table.board-list .col-recruitment { white-space: nowrap; text-align: center; }
.board-recruitment-period { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--color-text-sub); }


/* 보드 모바일 */
@media (max-width: 768px) {
    table.board-list {
        border-top: 2px solid var(--color-text);
    }
    table.board-list thead {display: none;}
    table.board-list tr {
        padding: 20px 10px;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    table.board-list .is-notice .col-notice span {
        background: var(--color-main);
        color: #fff;
        display: block; padding: 3px 14px;
        width: fit-content;
        border-radius: 100px;
        font-size: 13px;
        font-weight: 400;
    }

    table.board-list tr td {
        display: block; border-bottom: none;
        padding: 0;
        text-align: left;
        width: 100%;
    }
    table.board-list td.col-num {display: none;}

    table.board-list tr td.col-category {
        width: fit-content;
    }

    table.board-list tr td.col-title {
        color: var(--color-text);
        font-size: clamp(18px, 1.25rem, 20px);
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-weight: 700;
    }

    table.board-list tr :is(td.col-writer, td.col-date, td.col-views) {
        width: fit-content;
    }

    table.board-list tr td.col-date {
        color: #797979;
        font-size: clamp(14px, 1rem, 16px);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    table.board-list tr td.col-date br {display: none;}

    table.board-list tr td.col-views {
        color: #797979;
        font-size: clamp(14px, 1rem, 16px);
        line-height: 1;
    }

    .schedule table.board-list td.col-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}



/* FAQ 게시판 스킨 — 상세페이지 이동 없이 목록에서 바로 펼쳐지는 아코디언(<details> 네이티브 사용) */

.faq-toolbar {
    margin-bottom: 40px;
}

.board-faq-list {
    display: flex; flex-direction: column; gap: 8px;
    border-top: 3px solid var(--color-text);
}
.board-faq-item {
    border-bottom: 1px solid var(--color-border);
    overflow: hidden; 
}
.board-faq-question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
}
.board-faq-question::-webkit-details-marker { display: none; }
.board-faq-question::after {
    content: '';
    width: 20px;
    min-width: 20px;
    height: 10px;
    margin-left: auto;
    transform: rotate(180deg);
    filter: brightness(3);
    background: url('/images/icons/arrow_icon_t1.svg') no-repeat center / cover;
    transition: transform .2s;
}
.board-faq-item[open] .board-faq-question::after { transform: rotate(0deg); }
.board-faq-q-badge, .board-faq-a-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}
.board-faq-q-badge { background: var(--color-main); color: #fff; }
.board-faq-a-badge { background: #555; color: #fff; }
.board-faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 20px;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
}
.board-faq-answer .post-content { 
    flex: 1; min-width: 0; 
    background: var(--bg-layer-gray);
    border-radius: 20px;
    padding: 20px;
    border-bottom: none;
    font-size: 16px;
    font-weight: 500;
    min-height: 0;
}
.board-faq-detail-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; }

@media (max-width: 768px) {
    .board-faq-answer {flex-direction: column; gap: 10px;}
}



.board-gallery-grid { 
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
    border-top: 1px solid var(--color-text); padding-top: 20px;
}
/* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) */
.board-gallery-item {overflow: hidden;}
.board-gallery-item img { 
    width: 100%; aspect-ratio: 360/200; 
    object-fit: cover; display: block; 
    transition: all 0.3s;
    will-change: transform;
}
.board-gallery-item .board-gallery-body { padding: 20px 10px; }
.board-gallery-body .gl-title {
    -webkit-line-clamp: 2; font-size: 20px;
    line-height: 1.2;
}

.board-gallery-body .post-meta {
    font-size: max(14px, 1.7rem);
}

.board-gallery-item:hover img {
    transform: scale(1.04);
}



@media (max-width: 1024px) {
    .board-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .board-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .board-gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 매물데이터 게시판 */
.property-board .board-gallery-item figure.img {
    position: relative;
    aspect-ratio: 360/300;
    overflow: hidden;
}

.property-board .board-gallery-item figure.img > img {
    aspect-ratio: 360/300;
}

.property-board .board-gallery-item figure.img .area-box {
    position: absolute;
    z-index: 2;
    bottom: 0; left: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(0,0,0,0.4);
    display: inline-flex;
    justify-content: flex-start;
}

.property-board .board-gallery-item figure.img .area-box p {
    -webkit-line-clamp: 1;
    font-weight: 500;
    color: #fff;
    font-size: max(14px, 1.7rem);
    line-height: 1;
}

.property-board .custom-field span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.property-board .custom-field span img {
    width: 15px;
    height: auto;
    aspect-ratio: unset;
    transition: unset;
}

/* 매물데이터 게시판 end */


/* 관계사,협력사 게시판
    261001 - 본래 board-list 형태였지만 수정사항으로 인해
    board-gallery-custom 형태로 새로 변경함.
*/

.partners-grid .board-gallery-item {
    position: relative;
    border: 1px solid #ededed;
}

.partners-grid .board-gallery-item .img {
    position: relative;
    z-index: 1;
    aspect-ratio: 505/165;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-grid .board-gallery-item .img img {
    width: auto;
    height: auto;
    max-width: 78.21%; /* 280px */
    max-height: 60.34%; /* 70px */

    aspect-ratio: unset;
}

.partners-grid .board-gallery-item .img .no-img {
    aspect-ratio: inherit;
}

.partners-grid .board-gallery-item .gallery-content {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.partners-grid .board-gallery-item::before,
.partners-grid .board-gallery-item::after {
    --position: -7px;
    --size: 7px;

    content:'';
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    background: transparent;

    transition: all 0.3s;
}

.partners-grid .board-gallery-item::before {
    top: var(--position);
    left: var(--position);
    border-top: var(--size) solid var(--color-main);
    border-left: var(--size) solid var(--color-main-dark);
}

.partners-grid .board-gallery-item::after {
    right: var(--position);
    bottom: var(--position);
    border-bottom: var(--size) solid var(--color-main);;
    border-right: var(--size) solid #00a0e9;
}

.partners-grid .board-gallery-item:hover::before,
.partners-grid .board-gallery-item:hover::after {
    --position: 0px;
}

.partners-grid .board-gallery-item:hover .gallery-content {
    opacity: 1; visibility: visible;
}

/* 관계사,협력사 게시판 end */




/* 게시판별 커스텀필드(예: 기업명/업종/주요제품) — 게시글 상세에서 라벨:값 목록으로 노출한다 */
.board-custom-fields {
    margin: 0 0 24px;
}
.board-custom-field-row {display: flex; gap: 12px;  border-bottom: 1px solid var(--color-border);}
/* .board-custom-field-row:not(:last-child) { border-bottom: 1px solid var(--color-border); } */
.board-custom-field-row dt {
    flex-shrink: 0;
    min-width: 120px;
    font-weight: 600;
    color: #fff;
    background: var(--color-main);
    padding-block: 16px;
    padding-inline: 10px;
}
.board-custom-field-row dd {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--color-text-sub);
    padding-block: 10px;
}

@media (max-width: 768px) {
    .board-custom-field-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 10px;
    }
    .board-custom-field-row dt {
        padding: 10px;
    }
    .board-custom-field-row dd {
        padding: 10px;
    }
}

.board-post-images { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.board-post-images img { 
    max-width: 100%; max-height: 480px; width: 50px; height: 50px; 
    object-fit: cover; border-radius: 8px; display: block; 
}

.board-post-images a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    max-width: 50px;
}

.board-post-images a span {
    font-size: 13px;
    color: var(--color-text-sub);
    -webkit-line-clamp: 2;
    width: 100%;
    text-align: center;
}

/* 이전글/다음글 — 다음글(더 최신)이 위, 이전글(더 과거)이 아래 순서로 보여준다 */
.board-post-nav { margin-top: 24px; border-top: 2px solid var(--color-text); border-bottom: 1px solid var(--color-border); }
.board-post-nav-item { display: flex; align-items: center; gap: 20px; color: var(--color-text); }
.board-post-nav-item:first-child { border-bottom: 1px solid var(--color-border); }
.board-post-nav-item:hover { text-decoration: none; }
.board-post-nav-item:hover .board-post-nav-title { text-decoration: underline; }
.board-post-nav-label { 
    flex-shrink: 0; min-width: 180px; font-size: 17px; font-weight: 500; padding: 20px 5px; background: var(--bg-layer-gray); position: relative;
    display: flex; align-items: center; gap: 10px;
    justify-content: center;
}

.board-post-nav-label::before {
    content:'';
    width: 13px; height: 8px;
    background: url('/images/icons/arrow-down.svg') no-repeat center / cover;
}

.board-post-nav-item.prev .board-post-nav-label::before {
    transform: rotate(180deg);
}

.board-post-nav-title { 
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
    color: var(--color-text-sub);
}

@media (max-width: 768px) {
    .board-post-nav-label {min-width: unset; padding: 10px 15px; font-size: 15px;}
}

.board-comments { margin-top: 32px; }
.board-comment-list { list-style: none; margin: 0; padding: 0; }
.board-comment { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.board-comment.is-reply { margin-left: 32px; border-left: 2px solid var(--color-border); padding-left: 16px; }
.board-comment-meta { font-size: 15px; color: var(--color-text-sub); display: flex; gap: 10px; }
.board-comment-content { margin-top: 6px; white-space: pre-wrap; }
.board-comment-empty { padding: 24px 0; text-align: center; color: var(--color-text-sub); }
.board-comment-actions { margin-top: 8px; display: flex; gap: 12px; align-items: center; }
.board-comment-delete-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.board-comment-delete-password { width: 120px; padding: 4px 8px; font-size: 14px; }
.board-reply-form { margin-top: 12px; margin-left: 32px; }
.board-comment-form { margin-top: 16px;}

.board-category-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.board-category-filter a { padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 15px; color: var(--color-text); }
.board-category-filter a.is-active { background: var(--color-main); border-color: var(--color-main); color: #fff; }
.board-search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex; gap: 6px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 5px 20px;
}
.board-search-form select { width: 130px; border: none;}
.board-search-form input[type=text] {
    width: 100%;
    border: none;
    border-radius: unset;
}


.board-search-form button[type="submit"] {
    min-width: 20px;
    color: var(--color-text);
}


/* 매물데이터 search-form */
.board-search-form.property {
    max-width: 1200px;
    align-items: center;
    flex-wrap: nowrap;
}

.board-search-form.property .customfield_select {
    flex: 1 1 170px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 160px;
}

.board-search-form.property .customfield_select img {
    width: 20px;
    min-width: 20px;
    height: 20px;
    object-fit: contain;
}

/* .board-search-form.property .customfield_select select {
    width: 100%;
    min-width: 0;
} */

.board-search-form.property > select {
    flex: 0 0 110px;
    min-width: 0;
}

.board-search-form.property input[type="text"] {
    /* flex: 1 1 220px; */
    min-width: 120px;
    width: 100%;
    max-width: 600px;
}

.board-search-form.property button[type="submit"] {
    flex: 0 0 auto;
    color: var(--color-text);
}


@media (max-width: 1024px) {
    .board-search-form.property {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 10px 16px;
        gap: 10px;
    }

    .board-search-form.property select {
        border-bottom: 1px solid var(--color-border);
        border-radius: unset;
    }

    .board-search-form.property .customfield_select {
        flex: 1 1 calc(33.333% - 8px);
    }

    .board-search-form.property > select {
        flex-basis: 120px;
    }

    .board-search-form.property input[type=text] {
        border-bottom: 1px solid var(--color-text);
        flex: 1 1 220px;
        max-width: 100%;
        width: 100%;
    }

    .board-search-form.property input[type=text]:focus-visible {
        border-color: var(--color-main);
    }
}



.board-file-list { list-style: none; margin: 0; padding: 0; }
.board-file-list li { padding: 6px 0; }

@media (max-width: 680px) {

    .board-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-toolbar-left,
    .board-toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: unset;
    }

    .board-toolbar-left .btn-primary,
    .board-toolbar-right .btn-primary {align-self: flex-end;}

    .board-search-form select {width: 100px; padding-left: 5px;}

    .board-search-form input[type=text] {padding: 8px 5px;}

    .board-search-form button.btn[type=submit] {
        width: 100%;
        background: #3D4754;
        color: #fff;
    }

    .board-search-form.property {
        gap: 10px;
        border-radius: 18px;
        padding: 12px;
    }

    .board-search-form.property .customfield_select {
        flex: 1 1 100%;
        width: 100%;
    }

    /* .board-search-form.property .customfield_select select,
    .board-search-form.property > select, */
    .board-search-form.property input[type="text"] {
        width: 100%;
    }

    .board-search-form.property > select {
        flex: 1 1 110px;
    }

    .board-search-form.property input[type="text"] {
        flex: 1 1 calc(100% - 150px);
    }

    .board-search-form.property button[type="submit"] {
        cursor: pointer;
        width: 100%;
        background: var(--color-main-dark);
        padding: 10px;
        border-radius: 100px;
        display: grid;
        place-items: center;
        color: #fff;
    }

    .board-search-form.property button[type="submit"] img {
        filter: brightness(100);
    }
}

@media (max-width: 480px) {
    .board-search-form.property > select,
    .board-search-form.property input[type="text"] {
        flex-basis: 100%;
    }
}

/* 제품 상세 */
.product-detail {
    width: min(100%, 1200px);
    margin: 0 auto;
    color: var(--color-text, #222);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 38px;
}

.product-tabs > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 42px;
    padding: 8px 24px;
    border: 1px solid var(--color-border, #d8d8d8);
    border-radius: 999px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    background: #fff;
}

.product-tabs .is-current {
    border-color: var(--color-main, #c51d29);
    background: var(--color-main, #c51d29);
    color: #fff;
}

.product-card,
.product-video-card {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 40px;
    padding: clamp(42px, 6vw, 76px);
}

.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: fit-content;
}

.product-visual a {
    display: block;
    width: 100%;
}

.product-visual img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    background: #f4f4f6;
    color: #999;
    letter-spacing: 0.1em;
}

.product-info {
    min-width: 0;
}

.product-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 28px;
}

.product-heading h1 {
    margin: 0;
    color: var(--color-main, #c51d29);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.product-heading p {
    margin: 0;
    color: #555;
    font-size: 19px;
}

.product-specifications h2,
.product-description h2,
.product-video-card > h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.product-spec-table {
    border-bottom: 1px solid #d7d7dc;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 1.35fr 0.7fr 1.15fr;
    min-height: 52px;
    border-top: 1px solid #d7d7dc;
}

.product-spec-row > span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
}

.product-spec-head {
    border-top: 0;
    background: #f4f4f8;
    color: #555;
    font-weight: 600;
}

.product-description {
    margin-top: 26px;
}

.product-description .post-content {
    min-height: 0;
    padding: 20px 26px;
    border: 0;
    border-radius: 18px;
    background: #f4f4f8;
    font-size: 15px;
    line-height: 1.75;
}

.product-description .post-content > :first-child {
    margin-top: 0;
}

.product-description .post-content > :last-child {
    margin-bottom: 0;
}

.product-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.product-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 18px;
    border: 1px solid var(--color-border, #d8d8d8);
    border-radius: 9px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.product-download span {
    -webkit-line-clamp: 2;
    width: 100%;
}

.product-download.is-primary {
    border-color: var(--color-main, #c51d29);
    background: var(--color-main, #c51d29);
    color: #fff;
}

.product-video-card {
    margin-top: 24px;
    padding: 28px;
}

.product-video-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #20242d, #555d6d 55%, #171a20);
    color: #fff;
}

.product-video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 42%);
}

.product-video-brand {
    position: absolute;
    z-index: 1;
    top: 22px;
    left: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(15px, 2vw, 22px);
}

.product-video-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-main, #c51d29);
}

.product-video-play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 76px;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: #ff0033;
    opacity: 1;
}

.product-video-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #fff;
}

.product-video-placeholder > p {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.product-image-gallery a {
    overflow: hidden;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 14px;
    background: #fff;
}

.product-image-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.product-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 28px;
}

.product-admin-actions form {
    display: inline;
}

@media (max-width: 1024px) {
    .product-card {
        grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
        gap: 36px;
        padding: 42px;
    }
}

@media (max-width: 820px) {
    .product-tabs {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
    }

    .product-tabs > * {
        min-width: 120px;
        min-height: 38px;
        padding: 7px 16px;
        font-size: 14px;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .product-visual img {
        max-height: 520px;
    }

    .product-heading {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .product-card,
    .product-video-card {
        border-radius: 14px;
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
    }

    .product-card {
        gap: 28px;
        padding: 24px 18px;
    }

    .product-heading {
        flex-direction: column;
        align-items: center;
        margin-bottom: 22px;
    }

    .product-heading h1 {
        font-size: 27px;
    }

    .product-heading p {
        font-size: 16px;
    }

    .product-spec-row {
        grid-template-columns: 1.15fr 0.6fr 1fr;
        min-height: 46px;
    }

    .product-spec-row > span {
        padding: 8px 6px;
        font-size: 12px;
    }

    .product-description .post-content {
        padding: 18px;
        border-radius: 12px;
        font-size: 14px;
    }

    .product-downloads {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-download {
        min-height: 50px;
    }

    .product-video-card {
        padding: 18px;
    }

    .product-video-card > h2 {
        font-size: 16px;
    }

    .product-video-brand {
        top: 12px;
        left: 12px;
        gap: 8px;
    }

    .product-video-brand span {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .product-video-play {
        width: 58px;
        height: 42px;
        border-radius: 10px;
    }

    .product-video-placeholder > p {
        right: 12px;
        bottom: 10px;
        font-size: 11px;
    }

    .product-image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-admin-actions {
        flex-wrap: wrap;
    }
}
