@charset "utf-8";
.product_sort_box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.product_sort_box input {
    width: 58px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    background: #fff;
}

.product_card {
    position: relative;
}
#nt_body {
   padding-top: 30px;
    background-color: #eef1f4;
}
.product_admin_top a,
.product_admin_top button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    margin-left: 6px;
    border: 0;
    border-radius: 17px;
    font-size: 13px;
    text-decoration: none !important;
    cursor: pointer;
}

.admin_btn1 {
    background: #14cf14;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    margin-left: 6px;
    border-radius: 17px;
    font-size: 13px;
    text-decoration: none;
}

.product_admin_top .write_btn {
    background: #3459d1;
    color: #fff;
}

.product_admin_top .danger_btn {
    background: #d93636;
    color: #fff;
}

.product_img_box.no_link {
    cursor: default;
}
.product_admin_btns {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.product_admin_btns a {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
}

.btn_edit {
    background: #3459d1;
    color: #fff;
}

.btn_delete {
    background: #d93636;
    color: #fff;
}
.product_admin_top button {
    border: 0;
    cursor: pointer;
}

.product_admin_top .danger_btn {
    background: #d93636;
    color: #fff;
}

.all_chk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}
.product_gallery_wrap {
    padding: 0 0 70px;
    background: #eef1f4;
}

.product_admin_top {
    max-width: 1440px;
    margin: 0 auto 15px;
    padding: 0 20px;
    text-align: right;
}

.product_admin_top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    margin-left: 6px;
    border-radius: 17px;
    font-size: 13px;
    text-decoration: none;
}
.admin_btn1 {
    background: #d60000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    margin-left: 6px;
    border-radius: 17px;
    font-size: 13px;
    text-decoration: none;
}
.product_admin_top .admin_btn {
   background: #242924;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    margin-left: 6px;
    border-radius: 17px;
    font-size: 13px;
    text-decoration: none;
}

.product_admin_top .write_btn {
    background: #3459d1;
    color: #fff;
}

.product_layout {
   display: grid;
    grid-template-columns: 222px 1fr;
    gap: 21px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.product_side {
     display: block;
    align-self: start;
    padding: 30px 14px;
    background: #fff;
    border-radius: 14px;
}

.product_side h3 {
    margin: -10px 0 50px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    text-align: center;
}

.side_cat {
   display: flex;
    align-items: center;
    min-height: 41px;
    padding: 8px 14px;
    margin-bottom: 11px;
    border-radius: 4px;
    background: #f0f2f4;
    color: #17213a;
    font-size: 13px;
    line-height: 1.35;
    word-break: keep-all;
    text-decoration: none !important;
}

.side_cat:hover,
.side_cat.active {
    background: #3459d1;
    color: #fff;
}

.product_main {
    min-width: 0;
}

.product_top_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 15px;
}

.top_tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 38px;
    padding: 0 26px;
    border: 1px solid #777;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    text-decoration: none !important;
}

.top_tab:hover,
.top_tab.active {
    border-color: #3459d1;
    background: #3459d1;
    color: #fff;
}

.product_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.product_card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 25px 22px 35px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.product_chk {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.product_img_box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 145px;
    margin-bottom: 25px;
    text-decoration: none !important;
}

.product_img_box img {
    display: block;
    max-width: 100%;
    max-height: 145px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.no_img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 145px;
    background: #f4f4f4;
    color: #999;
    font-size: 13px;
}

.product_info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product_name_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.product_name_row h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #000;
    letter-spacing: -1px;
}

.product_name_row span {
    display: inline-flex;
    align-items: center;
    height: 27px;
    padding: 0 9px;
    border: 1px solid #ff7b00;
    border-radius: 6px;
    color: #ff7b00;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.product_info p {
    min-height: 45px;
    margin: 0 0 28px;
    color: #222;
    font-size: 13px;
    line-height: 1.65;
    word-break: keep-all;
}

.product_btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.product_btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.btn_more {
    border: 1px solid #777;
    background: #fff;
    color: #666;
}

.btn_more:hover {
    background: #f5f5f5;
    color: #111;
}

.btn_inquiry {
    border: 1px solid #3459d1;
    background: #3459d1;
    color: #fff;
}

.btn_inquiry:hover {
    background: #2346b8;
    color: #fff;
}

.empty_product {
    grid-column: 1 / -1;
    padding: 80px 20px;
    border-radius: 14px;
    background: #fff;
    color: #777;
    text-align: center;
}

.product_paging {
    margin-top: 45px;
}

.page-item .page-link {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    margin: 0 4px;
    border-radius: 18px !important;
    border-color: #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 33px;
    text-align: center;
}

.page-item.active .page-link {
    border-color: #3459d1;
    background: #3459d1;
    color: #fff;
}

@media (max-width: 1280px) {
    .product_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .product_layout {
        grid-template-columns: 1fr;
    }

    .product_side {
        display: none;
    }

    .product_top_tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .top_tab {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .product_gallery_wrap {
        padding-bottom: 45px;
    }

    .product_layout {
        padding: 0 14px;
    }

    .product_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product_card {
        min-height: 310px;
        padding: 20px 16px 24px;
    }

    .product_img_box {
        height: 115px;
        margin-bottom: 20px;
    }

    .product_img_box img {
        max-height: 115px;
    }

    .product_name_row {
        display: block;
        margin-bottom: 12px;
    }

    .product_name_row h4 {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .product_info p {
        min-height: 42px;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .product_btns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product_grid {
        grid-template-columns: 1fr;
    }

    .product_top_tabs {
        margin-bottom: 12px;
    }

    .top_tab {
        min-width: auto;
        height: 34px;
        padding: 0 18px;
        font-size: 12px;
    }

    .product_card {
        min-height: auto;
    }

    .product_btns {
        grid-template-columns: 1fr 1fr;
    }
}


/*  view*/
.product_view_wrap {
    padding: 60px 20px 90px;
    background: #eef1f4;
}

.product_view_inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 18px;
    background: #fff;
}

.product_view_header {
    margin-bottom: 35px;
    text-align: center;
}

.product_view_title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.product_view_title h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #000;
    letter-spacing: -1px;
}

.product_view_title span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 11px;
    border: 1px solid #ff7b00;
    border-radius: 6px;
    color: #ff7b00;
    font-size: 13px;
    white-space: nowrap;
}

.product_view_header p {
    margin: 0;
    color: #222;
    font-size: 17px;
    line-height: 1.7;
    word-break: keep-all;
}

.product_view_img {
    margin-bottom: 40px;
    text-align: center;
}

.product_view_img img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.product_view_content {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
}

.product_view_content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px;
}

.product_view_btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 45px;
}

.product_view_btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    padding: 0 24px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.btn_list {
    border: 1px solid #777;
    background: #fff;
    color: #555;
}

.btn_list:hover {
    background: #f5f5f5;
    color: #111;
}

.product_view_admin {
    max-width: 1100px;
    margin: 20px auto 0;
    text-align: right;
}

.product_view_admin a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 15px;
    margin-left: 5px;
    border-radius: 17px;
    background: #333;
    color: #fff;
    font-size: 13px;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .product_view_wrap {
        padding: 35px 14px 60px;
    }

    .product_view_inner {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .product_view_title {
        display: block;
    }

    .product_view_title h1 {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .product_view_header p {
        font-size: 15px;
    }

    .product_view_btns {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product_view_btns a {
        width: 100%;
    }
}
/* write */
.product_write_wrap {
    padding: 60px 20px 90px;
    background: #eef1f4;
}

.product_write_inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 18px;
    background: #fff;
}

.product_write_inner h2 {
    margin: 0 0 35px;
    font-size: 32px;
    font-weight: 800;
    color: #111;
    letter-spacing: -1px;
}

.write_row {
    margin-bottom: 22px;
}

.write_row label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.write_row label b {
    color: #3459d1;
}

.write_row input[type="text"],
.write_row input[type="file"],
.write_row select,
.write_row textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #d8dce2;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
}

.write_row input[type="file"] {
    padding: 12px 15px;
}

.write_row textarea {
    min-height: 240px;
    padding: 15px;
    line-height: 1.7;
    resize: vertical;
}

.write_row input:focus,
.write_row select:focus,
.write_row textarea:focus {
    outline: none;
    border-color: #3459d1;
}

.file_del {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f4f6f8;
    color: #555;
    font-size: 13px;
}

.file_del label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}

.write_btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.write_btns a,
.write_btns button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    border-radius: 23px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.btn_cancel {
    border: 1px solid #777;
    background: #fff;
    color: #555;
}

.btn_submit {
    border: 1px solid #3459d1;
    background: #3459d1;
    color: #fff;
}

.btn_submit:hover {
    background: #2346b8;
}

@media (max-width: 768px) {
    .product_write_wrap {
        padding: 35px 14px 60px;
    }

    .product_write_inner {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .product_write_inner h2 {
        margin-bottom: 25px;
        font-size: 26px;
    }

    .write_btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .write_btns a,
    .write_btns button {
        width: 100%;
        min-width: 0;
    }
}
