@charset "utf-8";

/* Reset & Common */
.hotdeal_board {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.hotdeal_board * {
    box-sizing: border-box;
}

.hotdeal_board a {
    text-decoration: none;
    color: inherit;
}

.hotdeal_board ul,
.hotdeal_board li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List View - Grid Layout */
.hotdeal_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.hotdeal_item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.hotdeal_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Thumbnail Area */
.hotdeal_thumb {
    position: relative;
    padding-top: 60%;
    background: #f8f9fa;
    overflow: hidden;
}

.hotdeal_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotdeal_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.hotdeal_badge.ended {
    background: #8e8e93;
}

/* Content Area */
.hotdeal_info {
    padding: 15px;
}

.hotdeal_top_info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.category_badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e9ecef;
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.category_badge.large {
    font-size: 14px;
    padding: 4px 10px;
    background: #3f6ad7;
    color: #fff;
}

.hotdeal_mall {
    font-size: 12px;
    color: #868e96;
    display: block;
}

.hotdeal_Oneline {
    font-size: 12px;
    font-weight: 500;
    color: #505b68;
    display: block;
}

.hotdeal_title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price Area */
.hotdeal_price_wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.hotdeal_price {
    font-size: 18px;
    font-weight: 700;
    color: #d6336c;
}

.hotdeal_original {
    font-size: 13px;
    color: #adb5bd;
    text-decoration: line-through;
}

.hotdeal_discount {
    font-size: 14px;
    color: #fa5252;
    font-weight: 600;
}

.hotdeal_Onelinereview {
    border-top: 1px solid #f1f3f5;
    color: #868e96;
    align-items: center;
    padding-top: 12px;
}

/* Footer Area */
.hotdeal_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0px;
    padding-top: 7px;
    font-size: 12px;
    color: #868e96;
}

.hotdeal_meta_left span {
    margin-right: 8px;
}

.hotdeal_btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #ebf0fb;
    color: #3f6ad7;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.2s;
}

.hotdeal_btn:hover {
    background: #dbe4ff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #868e96;
    transition: all 0.2s;
    font-weight: 500;
}

.pagination a:hover {
    background: #f1f3f5;
    color: #333;
}

.pagination strong {
    background: #3f6ad7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(63, 106, 215, 0.3);
}

.pagination .prevEnd,
.pagination .nextEnd {
    font-weight: bold;
}

/* Read View */
.hotdeal_read {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.hotdeal_header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hotdeal_header_img {
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.hotdeal_header_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hotdeal_header_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.read_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.read_price_row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.read_price {
    font-size: 32px;
    font-weight: 800;
    color: #d6336c;
}

.read_original {
    font-size: 18px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.read_discount {
    font-size: 20px;
    color: #fa5252;
    font-weight: 700;
    margin-bottom: 6px;
}

.read_meta_table {
    width: 100%;
    margin-bottom: 30px;
}

.read_meta_table th {
    text-align: left;
    color: #868e96;
    font-weight: normal;
    padding: 8px 0;
    width: 100px;
}

.read_meta_table td {
    font-weight: 500;
    color: #495057;
}

.read_actions {
    display: flex;
    gap: 10px;
}

.btn_buy {
    flex: 1;
    background: #fa5252;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn_buy:hover {
    background: #e03131;
}

.hotdeal_content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.read_category {
    margin-bottom: 10px;
}

/* Write Form - Premium Design */
.board_write {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f5;
}

.write_header {
    text-align: center;
    margin-bottom: 40px;
}

.write_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.write_group {
    margin-bottom: 24px;
}

.write_label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;

    .board_write {
        padding: 20px;
    }
}

/* Management Checkbox */
.check_wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.i_check {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.write_content {
    position: relative;
}

.i_text,
.i_select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    transition: all 0.2s;
    background: #f8f9fa;
}

.i_text:focus,
.i_select:focus {
    background: #fff;
    border-color: #339af0;
    box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.1);
    outline: none;
}

.btn_insert {
    background: #339af0;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn_insert:hover {
    background: #228be6;
    transform: translateY(-1px);
}

.btn_insert:active {
    transform: translateY(0);
}

.btn_cancel {
    background: #f1f3f5;
    color: #495057;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    flex-direction: column;
    justify-content: center;
}

.read_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.read_price_row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.read_price {
    font-size: 32px;
    font-weight: 800;
    color: #d6336c;
}

.read_original {
    font-size: 18px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-bottom: 6px;
}

/* Management Checkbox */
.check_wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.i_check {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.write_content {
    position: relative;
}

.i_text,
.i_select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    transition: all 0.2s;
    background: #f8f9fa;
}

.i_text:focus,
.i_select:focus {
    background: #fff;
    border-color: #339af0;
    box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.1);
    outline: none;
}

.btn_insert {
    background: #339af0;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn_insert:hover {
    background: #228be6;
    transform: translateY(-1px);
}

.btn_insert:active {
    transform: translateY(0);
}

.btn_cancel {
    background: #f1f3f5;
    color: #495057;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn_cancel:hover {
    background: #e9ecef;
}

.required {
    color: #fa5252;
    margin-left: 4px;
}

/* ext_vars */
.rx_ev_text,
.rx_ev_url {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-top: 5px;
}

.rx_ev_text:focus,
.rx_ev_url:focus {
    color: #495057;
    background-color: #fff;
    border-color: #339af0;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hotdeal_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hotdeal_header {
        flex-direction: column;
        gap: 20px;
    }

    .hotdeal_header_img {
        width: 100%;
        height: 300px;
    }

    .read_title {
        font-size: 22px;
    }

    .read_price {
        font-size: 24px;
    }

    .board_write {
        padding: 20px;
    }
}