/* 기존 스타일 유지 */
body .is-layout-flex {
    display: flex;
}

.content {
    padding-bottom: 0 !important;
}

.is-layout-flex {
    gap: 1.5rem;
}

.page_content {
    padding: 0 5.33333vw;
}

.entry-content {
    margin-top: 1em;
    margin-bottom: 3em;
}

.wp-block-columns {
    align-items: normal !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap !important;
}

.article h2,
.article h3 {
    margin-top: 5.44444vw;
}

.article h2 {
    color: #ee001e;
    font-size: 7.5vw;
    margin-bottom: 2.70833vw;
}

.no-sidebar .content .main {
    margin: 0;
    width: 100%;
}

/* Auction 관련 새로운 스타일 */
.auction-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 80%;
    padding: 20px;
}

.auction-timer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
}

.digital-clock {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.time {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    min-width: 300px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.large-button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #ee001e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.large-button:hover {
    background-color: #cd001a;
}

.auction-content {
    margin-top: 20px;
}

.search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#search-input {
    width: 30%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

#search-button {
    padding: 10px 20px;
    background-color: #ee001e;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-tag:hover,
.category-tag.active {
    background-color: #ee001e;
    color: white;
}
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1rem;
}

.auction-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* 유동적인 레이아웃 */
}

.auction-table th,
.auction-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
    overflow-wrap: break-word; /* 긴 단어 줄바꿈 (최신 브라우저) */
}

.auction-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 각 열의 최대 너비 설정 (필요에 따라 조정) */
.auction-table th:nth-child(1),
.auction-table td:nth-child(1) { max-width: 80px; }  /* 입찰번호 */
.auction-table th:nth-child(2),
.auction-table td:nth-child(2) { max-width: 200px; } /* 품명 */
.auction-table th:nth-child(3),
.auction-table td:nth-child(3) { max-width: 120px; } /* 관리번호 */
.auction-table th:nth-child(4),
.auction-table td:nth-child(4) { max-width: 100px; } /* 상태 */
.auction-table th:nth-child(5),
.auction-table td:nth-child(5) { max-width: 150px; } /* 제조사 */
.auction-table th:nth-child(6),
.auction-table td:nth-child(6) { max-width: 150px; } /* 모델명 */
.auction-table th:nth-child(7),
.auction-table td:nth-child(7) { max-width: 120px; } /* 카테고리 */
.auction-table th:nth-child(8),
.auction-table td:nth-child(8) { max-width: 120px; } /* 재고위치 */
.auction-table th:nth-child(9),
.auction-table td:nth-child(9) { max-width: 120px; } /* 현재 입찰가 */
.auction-table th:nth-child(10),
.auction-table td:nth-child(10) { max-width: 100px; } /* 입찰자 수 */
.auction-table th:nth-child(11),
.auction-table td:nth-child(11) { max-width: 100px; } /* 상세보기 */

/* 반응형 스타일 */
@media (max-width: 768px) {
    .auction-table {
        font-size: 14px;
    }

    .auction-table th,
    .auction-table td {
        padding: 8px;
    }
}
.detail-button {
    padding: 5px 10px;
    background-color: #ee001e;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* 버튼의 최대 너비 설정 */
    width: 100%; /* 셀 너비에 맞춤 */
    display: inline-block;
    text-align: center;
    font-size: 14px; /* 글자 크기 조정 */
}

.detail-button:hover {
    background-color: #cd001a;
}

/* 테이블의 마지막 열(상세보기 버튼이 있는 열) 스타일 조정 */
.auction-table th:last-child,
.auction-table td:last-child {
    width: 100px; /* 버튼 열의 너비 고정 */
    max-width: 100px;
    min-width: 100px;
}

@media (max-width: 768px) {
    .detail-button {
        font-size: 12px; /* 모바일에서 글자 크기 축소 */
        padding: 5px;
    }
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #ee001e;
    color: white;
}

/* 상세 페이지 스타일 */
.auction-detail {
    margin-bottom: 20px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th, .detail-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.detail-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 30%;
}

/* 반응형 스타일 */
@media (min-width: 768px) {
    .wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .article h2 {
        font-size: 1.97917vw;
        margin-bottom: 2.70833vw;
    }

    .article p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .auction-card {
        padding: 10px;
        max-width: 95%;
    }

    .auction-table th,
    .auction-table td {
        padding: 8px;
    }

    #search-input {
        width: 60%;
    }
}
/* 상세 페이지 스타일 */
.auction-detail {
    margin-bottom: 20px;
}

/* 상세 페이지 스타일 추가 */
.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #ee001e;
    margin-bottom: 20px;
    text-align: center;
}

.detail-content {
    display: flex;
    gap: 20px;
}

.detail-image {
    flex: 1;
    max-width: 50%;
}

.detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th, .detail-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.detail-table th {
    width: 30%;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.detail-table td {
    width: 70%;
}

/* 입찰 정보 카드 스타일 */
.bid-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bid-info-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.bid-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bid-details {
    display: flex;
    gap: 40px;  /* 간격을 더 넓혔습니다 */
}

.bid-price, .bid-count {
    display: flex;
    flex-direction: column;
    align-items: center;  /* 중앙 정렬로 변경 */
}

.bid-label {
    font-size: 18px;  /* 크기 증가 */
    color: #444;
    margin-bottom: 5px;
    font-weight: 600;  /* 약간의 굵기 추가 */
}

.bid-value {
    font-size: 28px;  /* 크기 대폭 증가 */
    font-weight: bold;
    color: #ee001e;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);  /* 텍스트에 약간의 그림자 추가 */
}

.bid-action {
    margin-left: 30px;
}

#bid-button {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #ee001e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);  /* 버튼에 그림자 추가 */
}

#bid-button:hover {
    background-color: #cd001a;
    transform: translateY(-2px);  /* 호버 시 버튼이 살짝 올라가는 효과 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 반응형 스타일 */
@media (max-width: 767px) {
    .bid-content {
        flex-direction: column;
        align-items: stretch;
    }

    .bid-details {
        justify-content: space-around;
        margin-bottom: 20px;
    }

    .bid-action {
        margin-left: 0;
        text-align: center;
    }

    .bid-label {
        font-size: 16px;
    }

    .bid-value {
        font-size: 24px;
    }
}

.bid-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
}

.bid-form-title {
    font-size: 24px;
    font-weight: bold;
    color: #ee001e;
    margin-bottom: 20px;
    text-align: center;
}

#bid-form .form-group {
    margin-bottom: 15px;
}

#bid-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#bid-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.bid-price-container {
    display: flex;
    align-items: center;
}

.current-price-label {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.button-group .btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group .btn-primary {
    background-color: #ee001e;
    color: white;
}

.button-group .btn-primary:hover {
    background-color: #cd001a;
}

.button-group .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.button-group .btn-secondary:hover {
    background-color: #5a6268;
}

.phone-input-container {
    display: flex;
    gap: 10px;
}

.country-code {
    width: 25%; /* 국가번호 입력 필드의 너비를 25%로 줄임 */
    min-width: 70px; /* 최소 너비 설정 */
}

.phone-number {
    width: 75%; /* 휴대폰 번호 입력 필드의 너비를 75%로 늘림 */
}

/* 반응형 디자인을 위한 미디어 쿼리 추가 */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 5px;
    }

    .country-code,
    .phone-number {
        width: 100%;
    }
}


/*
    * 경매 입찰 정보 카드 스타일
 */
.auction-content .my-info-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.auction-content .my-info-form .form-group {
    margin-bottom: 15px;
}
.auction-content .my-info-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.auction-content .my-info-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.auction-content .my-info-form .button-group {
    text-align: center;
    margin-top: 20px;
}
.auction-content .my-info-form .btn-outline-danger {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ee001e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.auction-content .my-info-form .btn-outline-danger:hover {
    background-color: #cd001a;
}
@media (max-width: 768px) {
    .auction-content .my-info-form {
        padding: 15px;
    }
}

/* 반응형 */
@media (min-width: 768px) {
    .wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .article h2 {
        font-size: 1.97917vw;
        margin-bottom: 2.70833vw;
    }

    .article p {
        /* font-size: 1.04167vw; */
        font-size: 16px;
    }

    .page_mv {
        background: linear-gradient(to right, #ee001e, #ee001e 50%, #cd001a 50%, #cd001a 100%);
    }

    .page_mv_inner {
        display: flex;
        margin: 0 auto -5vw;
        padding-top: 4.94792vw;
        padding-left: 14.58333vw;
        padding-right: 0;
        height: 18.22917vw;
        align-items: center;
    }

    .page_mv_inner::before {
        content: "";
        position: absolute;
        top: -6.25vw;
        left: 0;
        width: 19.16667vw;
        height: calc(100% + 6.25vw);
        transition: 0.3s;
        transform: skewX(-21deg);
        transform-origin: top center;
        background: #ee001e;
    }

    .article h2.page_mv_ttl {
        font-size: 3.125vw;
    }
}