/* =========================================================
   VEM - 오림내동 건강먹거리 SHOP
========================================================= */

/* 전체 Shop 영역 */
body.post-type-archive-product .site-main {
    background: #f7f7f2;
}

/* 상품 목록 전체 폭 */
body.post-type-archive-product .ct-container {
    max-width: 1240px;
}

/* =========================================================
   상품 그리드
========================================================= */

body.post-type-archive-product ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* =========================================================
   상품 카드
========================================================= */

body.post-type-archive-product ul.products li.product {
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 0 0 26px;

    background: #ffffff;
    border: 1px solid #e7e7df;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(42, 55, 38, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.post-type-archive-product ul.products li.product:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 38px rgba(42, 55, 38, 0.11);
}

/* =========================================================
   상품 이미지
========================================================= */

body.post-type-archive-product ul.products li.product
.woocommerce-LoopProduct-link img {

    width: 100%;
    aspect-ratio: 1 / 0.82;
    object-fit: cover;

    margin: 0 0 22px;

    border-radius: 0;
    transition: transform 0.45s ease;
}

body.post-type-archive-product ul.products li.product:hover
.woocommerce-LoopProduct-link img {
    transform: scale(1.035);
}

/* =========================================================
   상품명
========================================================= */

body.post-type-archive-product
.woocommerce-loop-product__title {

    padding: 0 22px !important;
    margin: 0 0 10px !important;

    font-size: 20px !important;
    line-height: 1.45;
    font-weight: 700;

    color: #253126;
}

/* =========================================================
   가격
========================================================= */

body.post-type-archive-product ul.products li.product .price {

    display: block;

    padding: 0 22px;
    margin: 0 0 18px;

    font-size: 20px;
    font-weight: 800;

    color: #385b35;
}

/* =========================================================
   장바구니 버튼
========================================================= */

body.post-type-archive-product
ul.products li.product .button {

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin: 5px 22px 0;
    padding: 12px 20px;

    border-radius: 12px;

    background: #365b35;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

body.post-type-archive-product
ul.products li.product .button:hover {

    background: #294629;
    color: #ffffff;

    transform: translateY(-1px);
}

/* AJAX 장바구니 추가 후 */
body.post-type-archive-product
ul.products li.product .added_to_cart {

    display: block;

    margin: 10px 22px 0;

    text-align: center;
    font-weight: 700;

    color: #365b35;
}

/* =========================================================
   SALE 배지
========================================================= */

body.post-type-archive-product .onsale {

    top: 15px;
    left: 15px;

    min-width: auto;
    min-height: auto;

    padding: 7px 12px;

    border-radius: 30px;

    background: #d66b42;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   Woo 상단 정렬/상품개수
========================================================= */

body.post-type-archive-product
.woocommerce-result-count {

    color: #777d73;
    font-size: 14px;
}

body.post-type-archive-product
.woocommerce-ordering select {

    min-height: 44px;
    padding: 0 40px 0 14px;

    border: 1px solid #dedfd8;
    border-radius: 10px;

    background-color: #ffffff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    body.post-type-archive-product ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    body.post-type-archive-product .ct-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.post-type-archive-product ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.post-type-archive-product
    .woocommerce-loop-product__title {
        font-size: 19px !important;
    }

    body.post-type-archive-product
    ul.products li.product .price {
        font-size: 19px;
    }

    body.post-type-archive-product
    ul.products li.product .button {
        min-height: 52px;
        font-size: 16px;
    }
}

/* =========================================================
   SHOP HERO
========================================================= */

.vem-shop-hero {
    margin: 0 0 24px;
    padding: 70px 30px;

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            #eef3e8 0%,
            #f8f4e9 100%
        );

    text-align: center;
}

.vem-shop-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.vem-shop-eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;

    color: #5e7955;
}

.vem-shop-hero h1 {
    margin: 0 0 18px;

    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.2;
    font-weight: 800;

    color: #243524;
}

.vem-shop-hero p {
    margin: 0;

    font-size: 18px;
    line-height: 1.75;

    color: #626b5e;
}

.vem-shop-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 28px;
}

.vem-shop-trust span {
    padding: 9px 15px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(66, 94, 57, 0.12);
    border-radius: 30px;

    font-size: 14px;
    font-weight: 700;

    color: #40533c;
}


/* =========================================================
   SHOP CATEGORY NAVIGATION
========================================================= */

.vem-shop-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin: 0 0 45px;
}

.vem-shop-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 20px;

    border: 1px solid #d9ded3;
    border-radius: 30px;

    background: #ffffff;

    color: #4e584b;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.vem-shop-categories a:hover {
    border-color: #456641;

    color: #365b35;

    transform: translateY(-1px);
}

.vem-shop-categories a.is-active {
    border-color: #365b35;

    background: #365b35;
    color: #ffffff;
}


/* =========================================================
   SHOP HERO MOBILE
========================================================= */

@media (max-width: 640px) {

    .vem-shop-hero {
        padding: 48px 20px;
        border-radius: 20px;
    }

    .vem-shop-hero h1 {
        font-size: 34px;
    }

    .vem-shop-hero p {
        font-size: 16px;
    }

    .vem-shop-trust {
        gap: 8px;
        margin-top: 22px;
    }

    .vem-shop-trust span {
        font-size: 12px;
        padding: 8px 11px;
    }

    .vem-shop-categories {
        justify-content: flex-start;

        flex-wrap: nowrap;
        overflow-x: auto;

        margin-bottom: 32px;
        padding-bottom: 5px;

        scrollbar-width: none;
    }

    .vem-shop-categories::-webkit-scrollbar {
        display: none;
    }

    .vem-shop-categories a {
        flex: 0 0 auto;
    }
}

/* =========================================================
   VEM SINGLE PRODUCT
========================================================= */

/* 상품 상세 전체 폭 */
.single-product .site-main {
    background: #f8f8f3;
}

.single-product div.product {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   기본 Woo 상품 영역
--------------------------------------------------------- */

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    margin-bottom: 50px;
}

/* 상품 이미지 */
.single-product .woocommerce-product-gallery {
    overflow: hidden;
    border-radius: 24px;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: 24px;
}

/* 상품명 */
.single-product div.product .product_title {
    margin-bottom: 18px;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    font-weight: 800;

    color: #253325;
}

/* 가격 */
.single-product div.product .summary .price {
    margin-bottom: 24px;

    font-size: 26px;
    font-weight: 800;

    color: #365b35;
}

/* 짧은 상품설명 */
.single-product .woocommerce-product-details__short-description {
    margin-bottom: 25px;

    color: #626b5e;
    font-size: 16px;
    line-height: 1.8;
}

/* 수량 */
.single-product div.product form.cart {
    display: flex;
    align-items: stretch;
    gap: 10px;

    margin-top: 28px;
}

.single-product div.product form.cart .quantity {
    margin: 0;
}

.single-product div.product form.cart input.qty {
    min-height: 52px;

    border: 1px solid #d9ded3;
    border-radius: 12px;

    font-size: 16px;
}

/* 장바구니 버튼 */
.single-product div.product form.cart .single_add_to_cart_button {
    min-height: 52px;
    padding: 0 30px;

    border-radius: 12px;

    background: #365b35;

    font-size: 16px;
    font-weight: 800;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background: #294829;
}


/* =========================================================
   마을먹거리 정보
========================================================= */

.vem-product-village-info {
    clear: both;

    max-width: 1240px;
    margin: 50px auto 80px;
    padding: 55px;

    background: #ffffff;

    border: 1px solid #e3e7de;
    border-radius: 26px;

    box-shadow: 0 12px 35px rgba(35, 55, 32, 0.06);
}


/* 상단 소개 */
.vem-product-village-info__top {
    max-width: 760px;
    margin: 0 auto 42px;

    text-align: center;
}

.vem-product-village-info__label {
    display: inline-block;

    margin-bottom: 12px;

    color: #66805d;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.vem-product-village-info__top h2 {
    margin: 0 0 18px;

    color: #263626;

    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.35;
    font-weight: 800;
}

.vem-product-village-info__description,
.vem-product-village-info__top > p {
    color: #667063;

    font-size: 16px;
    line-height: 1.85;
}


/* =========================================================
   상품 기본정보
========================================================= */

.vem-product-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;

    margin-bottom: 45px;
}

.vem-product-spec {
    padding: 24px 20px;

    background: #f6f7f2;

    border: 1px solid #e4e8df;
    border-radius: 16px;

    text-align: center;
}

.vem-product-spec span {
    display: block;

    margin-bottom: 8px;

    color: #788074;
    font-size: 13px;
}

.vem-product-spec strong {
    color: #30442e;

    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   생산 → 가공 → 포장 → 배송
========================================================= */

.vem-product-process {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto
        minmax(0, 1fr) auto
        minmax(0, 1fr) auto
        minmax(0, 1fr);

    align-items: center;

    margin-bottom: 40px;
    padding: 35px 25px;

    background: #f1f5ed;

    border-radius: 20px;
}

.vem-product-process__item {
    text-align: center;
}

.vem-product-process__item > span {
    display: block;

    margin-bottom: 10px;

    font-size: 32px;
}

.vem-product-process__item strong {
    display: block;

    margin-bottom: 5px;

    color: #30452e;

    font-size: 16px;
    font-weight: 800;
}

.vem-product-process__item small {
    color: #778073;

    font-size: 12px;
}

.vem-product-process__arrow {
    padding: 0 12px;

    color: #91a18a;

    font-size: 22px;
}


/* =========================================================
   생산이력 안내
========================================================= */

.vem-product-trace-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 25px 28px;

    background: #faf7ed;

    border: 1px solid #ece4cb;
    border-radius: 16px;
}

.vem-product-trace-notice > span {
    flex: 0 0 auto;

    font-size: 28px;
}

.vem-product-trace-notice strong {
    display: block;

    margin-bottom: 6px;

    color: #4b503f;

    font-size: 16px;
}

.vem-product-trace-notice p {
    margin: 0;

    color: #747568;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .single-product div.product form.cart {
        align-items: stretch;
    }

    .single-product div.product form.cart .single_add_to_cart_button {
        flex: 1;
        padding-left: 18px;
        padding-right: 18px;
    }

    .vem-product-village-info {
        margin-top: 30px;
        margin-bottom: 50px;

        padding: 35px 20px;

        border-radius: 20px;
    }

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

    .vem-product-process {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 28px 20px;
    }

    .vem-product-process__arrow {
        padding: 0;

        transform: rotate(90deg);
    }

    .vem-product-process__item {
        padding: 5px 0;
    }

    .vem-product-trace-notice {
        padding: 20px;
    }
}

/* =========================================================
   VEM WOOCOMMERCE CART
========================================================= */

.woocommerce-cart .site-main {
    background: #f8f8f3;
}

/* 장바구니 전체 영역 */
.woocommerce-cart .woocommerce {
    max-width: 1240px;
    margin: 0 auto;
}

/* 알림 메시지 */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
    margin-bottom: 25px;
    padding: 18px 22px;

    background: #ffffff;

    border-radius: 14px;
    border: 1px solid #e1e6dc;
}

/* =========================================================
   상품 테이블
========================================================= */

.woocommerce-cart table.shop_table {
    overflow: hidden;

    margin-bottom: 35px;

    background: #ffffff;

    border: 1px solid #e1e6dc;
    border-radius: 20px;

    border-collapse: separate;
    border-spacing: 0;

    box-shadow: 0 10px 30px rgba(35, 55, 32, 0.05);
}

.woocommerce-cart table.shop_table th {
    padding: 18px 16px;

    background: #f2f5ee;

    color: #586553;

    font-size: 13px;
    font-weight: 800;
}

.woocommerce-cart table.shop_table td {
    padding: 22px 16px;

    vertical-align: middle;

    border-color: #edf0e9;
}

/* 상품 이미지 */
.woocommerce-cart td.product-thumbnail img {
    width: 90px;

    border-radius: 14px;
}

/* 상품명 */
.woocommerce-cart td.product-name a {
    color: #293a29;

    font-size: 16px;
    font-weight: 800;

    text-decoration: none;
}

.woocommerce-cart td.product-name a:hover {
    color: #466a42;
}

/* 가격 */
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal {
    color: #365b35;

    font-weight: 800;
}

/* 수량 */
.woocommerce-cart td.product-quantity input.qty {
    min-height: 44px;

    border: 1px solid #d8ded3;
    border-radius: 10px;

    background: #ffffff;
}

/* 삭제 버튼 */
.woocommerce-cart td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f5f1ed;

    color: #86685e !important;

    text-decoration: none;
}

.woocommerce-cart td.product-remove a.remove:hover {
    background: #efe4df;

    color: #7a4436 !important;
}


/* =========================================================
   쿠폰 / 장바구니 업데이트
========================================================= */

.woocommerce-cart .coupon input.input-text {
    min-height: 46px;

    border: 1px solid #d8ded3;
    border-radius: 10px;
}

.woocommerce-cart .actions button.button {
    min-height: 46px;

    padding: 0 20px;

    border-radius: 10px;

    font-weight: 700;
}


/* =========================================================
   CART TOTAL
========================================================= */

.woocommerce-cart .cart-collaterals {
    margin-top: 35px;
}

.woocommerce-cart .cart_totals {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #e1e6dc;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(35, 55, 32, 0.05);
}

.woocommerce-cart .cart_totals h2 {
    margin: 0 0 22px;

    color: #293a29;

    font-size: 24px;
    font-weight: 800;
}

.woocommerce-cart .cart_totals table {
    margin-bottom: 25px;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    padding-top: 16px;
    padding-bottom: 16px;

    border-color: #edf0e9;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    color: #294d2a;

    font-size: 18px;
    font-weight: 800;
}


/* 주문하기 */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;
    margin: 0;

    border-radius: 14px;

    background: #365b35;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #294829;

    transform: translateY(-1px);
}


/* =========================================================
   EMPTY CART
========================================================= */

.woocommerce-cart .cart-empty {
    padding: 40px 25px;

    background: #ffffff;

    border-radius: 18px;

    text-align: center;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
}

.woocommerce-cart .return-to-shop .button {
    padding: 14px 24px;

    border-radius: 12px;

    background: #365b35;

    color: #ffffff;
}


/* =========================================================
   MOBILE CART
========================================================= */

@media (max-width: 768px) {

    .woocommerce-cart table.shop_table {
        border-radius: 16px;
    }

    .woocommerce-cart table.shop_table_responsive tr {
        padding: 15px;
    }

    .woocommerce-cart table.shop_table_responsive tr td {
        padding: 12px 8px;
    }

    .woocommerce-cart td.product-thumbnail {
        display: block;
        text-align: center !important;
    }

    .woocommerce-cart td.product-thumbnail::before {
        display: none;
    }

    .woocommerce-cart td.product-thumbnail img {
        width: 120px;
    }

    .woocommerce-cart td.product-name a {
        font-size: 16px;
    }

    .woocommerce-cart .cart_totals {
        padding: 22px 18px;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        min-height: 56px;

        font-size: 16px;
    }
}

/* =========================================================
   VEM WOOCOMMERCE CHECKOUT
========================================================= */

.woocommerce-checkout .site-main {
    background: #f8f8f3;
}

.woocommerce-checkout .woocommerce {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CHECKOUT FORM
========================================================= */

.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    column-gap: 42px;
    align-items: start;
}


/* =========================================================
   BILLING / CUSTOMER
========================================================= */

.woocommerce-checkout #customer_details {
    width: 100%;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none;
    width: 100%;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #e1e6dc;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(35, 55, 32, 0.05);
}

.woocommerce-checkout #customer_details .col-2 {
    margin-top: 22px;
}

.woocommerce-checkout #customer_details h3 {
    margin-top: 0;
    margin-bottom: 25px;

    color: #293a29;

    font-size: 24px;
    font-weight: 800;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.woocommerce-checkout .form-row {
    margin-bottom: 18px;
}

.woocommerce-checkout .form-row label {
    margin-bottom: 7px;

    color: #485746;

    font-size: 14px;
    font-weight: 700;
}

.woocommerce-checkout .form-row .required {
    color: #b45e4d;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single {
    min-height: 50px;

    border: 1px solid #d8ded3;
    border-radius: 11px;

    background: #ffffff;

    color: #354235;
}

.woocommerce-checkout .input-text {
    padding: 10px 14px;
}

.woocommerce-checkout textarea.input-text {
    min-height: 110px;
    resize: vertical;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.woocommerce-checkout
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    top: 12px;
}


/* 입력 포커스 */
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus {
    border-color: #66805d;

    outline: none;

    box-shadow: 0 0 0 3px rgba(73, 104, 67, 0.08);
}


/* =========================================================
   ORDER REVIEW
========================================================= */

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100%;
}

.woocommerce-checkout #order_review_heading {
    grid-column: 2;

    margin: 0;
    padding: 30px 30px 0;

    background: #ffffff;

    border-top: 1px solid #e1e6dc;
    border-left: 1px solid #e1e6dc;
    border-right: 1px solid #e1e6dc;

    border-radius: 20px 20px 0 0;

    color: #293a29;

    font-size: 24px;
    font-weight: 800;
}

.woocommerce-checkout #order_review {
    grid-column: 2;

    padding: 20px 30px 30px;

    background: #ffffff;

    border-right: 1px solid #e1e6dc;
    border-bottom: 1px solid #e1e6dc;
    border-left: 1px solid #e1e6dc;

    border-radius: 0 0 20px 20px;

    box-shadow: 0 12px 35px rgba(35, 55, 32, 0.06);
}


/* =========================================================
   ORDER TABLE
========================================================= */

.woocommerce-checkout #order_review table.shop_table {
    margin-bottom: 25px;

    border: 1px solid #e1e6dc;
    border-radius: 14px;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 15px 12px;

    border-color: #edf0e9;
}

.woocommerce-checkout #order_review table.shop_table thead th {
    background: #f2f5ee;

    color: #53604f;

    font-size: 13px;
    font-weight: 800;
}

.woocommerce-checkout #order_review .product-name {
    color: #354535;

    font-weight: 700;
}

.woocommerce-checkout #order_review .product-total {
    text-align: right;
}

.woocommerce-checkout #order_review .cart-subtotal th,
.woocommerce-checkout #order_review .order-total th {
    color: #354535;
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
    color: #2f5731;

    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   PAYMENT
========================================================= */

.woocommerce-checkout #payment {
    margin-top: 25px;
    padding: 22px;

    background: #f5f7f2;

    border-radius: 15px;
}

.woocommerce-checkout #payment ul.payment_methods {
    margin: 0;
    padding: 0 0 18px;

    border-bottom: 1px solid #dfe5da;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 10px;
}

.woocommerce-checkout #payment .payment_box {
    margin-top: 12px;
    padding: 15px;

    background: #ffffff;

    border-radius: 10px;

    color: #667063;
}


/* =========================================================
   PLACE ORDER
========================================================= */

.woocommerce-checkout #payment .place-order {
    margin: 0;
    padding: 22px 0 0;
}

.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 58px;

    padding: 0 25px;

    border: 0;
    border-radius: 14px;

    background: #365b35;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.woocommerce-checkout #place_order:hover {
    background: #294829;

    transform: translateY(-1px);
}


/* =========================================================
   CHECKOUT NOTICE
========================================================= */

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    margin-bottom: 24px;

    padding: 18px 22px;

    background: #ffffff;

    border: 1px solid #e1e6dc;
    border-radius: 14px;
}

.woocommerce-checkout .woocommerce-error {
    border-color: #e6c7c0;

    background: #fffafa;
}


/* =========================================================
   MOBILE CHECKOUT
========================================================= */

@media (max-width: 900px) {

    .woocommerce-checkout form.checkout {
        display: block;
    }

    .woocommerce-checkout #customer_details {
        margin-bottom: 25px;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        padding: 24px 20px;

        border-radius: 16px;
    }

    .woocommerce-checkout #order_review_heading {
        padding: 24px 20px 0;

        border-radius: 16px 16px 0 0;
    }

    .woocommerce-checkout #order_review {
        padding: 18px 20px 24px;

        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 540px) {

    .woocommerce-checkout #customer_details h3,
    .woocommerce-checkout #order_review_heading {
        font-size: 21px;
    }

    .woocommerce-checkout #order_review table.shop_table th,
    .woocommerce-checkout #order_review table.shop_table td {
        padding: 12px 8px;

        font-size: 13px;
    }

    .woocommerce-checkout #payment {
        padding: 18px;
    }

    .woocommerce-checkout #place_order {
        min-height: 56px;

        font-size: 16px;
    }
}

/* =========================================================
   CHECKOUT BLOCKSY CLEANUP
========================================================= */

.woocommerce-checkout .ct-order-review {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 주문 영역 고정 시에도 카드 스타일 유지 */
.woocommerce-checkout .ct-order-review-inner {
    border: 0 !important;
    background: transparent;
}

/* 개인정보/약관 문구 */
.woocommerce-checkout .woocommerce-privacy-policy-text {
    color: #697267;
    font-size: 13px;
    line-height: 1.7;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
    margin-bottom: 14px;
}

/* =========================================================
   VEM ORDER RECEIVED / THANK YOU
========================================================= */

.woocommerce-order-received .vem-thankyou {
    max-width: 1100px;
    margin: 10px auto 45px;
    padding: 45px;
    background: #fff;
    border: 1px solid #e1e6dc;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(35, 55, 32, 0.06);
}

.vem-thankyou__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf4e9;
    color: #365b35;
    font-size: 30px;
    font-weight: 900;
}

.vem-thankyou__heading {
    text-align: center;
}

.vem-thankyou__eyebrow {
    color: #6b8265;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.vem-thankyou__heading h2 {
    margin: 8px 0 12px;
    color: #293a29;
    font-size: 32px;
    font-weight: 900;
}

.vem-thankyou__heading p {
    margin: 0;
    color: #687365;
    line-height: 1.8;
}

.vem-thankyou__summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 35px;
    border: 1px solid #e3e8df;
    border-radius: 16px;
    overflow: hidden;
}

.vem-thankyou__summary-item {
    padding: 22px 18px;
    text-align: center;
    border-right: 1px solid #e3e8df;
}

.vem-thankyou__summary-item:last-child {
    border-right: 0;
}

.vem-thankyou__summary-item span {
    display: block;
    margin-bottom: 7px;
    color: #7b8578;
    font-size: 13px;
}

.vem-thankyou__summary-item strong {
    display: block;
    color: #304a30;
    font-size: 16px;
    font-weight: 800;
}

.vem-thankyou__process {
    margin-top: 35px;
    padding: 30px;
    background: #f6f8f3;
    border-radius: 18px;
}

.vem-thankyou__process h3 {
    margin: 0 0 24px;
    text-align: center;
    color: #314531;
    font-size: 20px;
}

.vem-thankyou__steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vem-thankyou__step {
    flex: 1;
    text-align: center;
}

.vem-thankyou__step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #dfeadb;
    color: #365b35;
    font-size: 12px;
    font-weight: 900;
}

.vem-thankyou__step strong,
.vem-thankyou__step small {
    display: block;
}

.vem-thankyou__step strong {
    color: #354835;
    font-size: 15px;
}

.vem-thankyou__step small {
    margin-top: 4px;
    color: #818a7e;
    font-size: 12px;
}

.vem-thankyou__arrow {
    color: #a7b3a3;
    font-size: 20px;
}

.vem-thankyou__trace {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding: 20px 22px;
    background: #f4f7f1;
    border-radius: 14px;
}

.vem-thankyou__trace > span {
    font-size: 24px;
}

.vem-thankyou__trace strong {
    color: #365036;
}

.vem-thankyou__trace p {
    margin: 5px 0 0;
    color: #727d70;
    font-size: 14px;
    line-height: 1.7;
}

.vem-thankyou__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.vem-thankyou__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border: 1px solid #cad5c5;
    border-radius: 12px;
    background: #fff;
    color: #365336;
    font-weight: 800;
    text-decoration: none;
}

.vem-thankyou__button--primary {
    border-color: #365b35;
    background: #365b35;
    color: #fff;
}

@media (max-width: 800px) {
    .woocommerce-order-received .vem-thankyou {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .vem-thankyou__summary {
        grid-template-columns: 1fr 1fr;
    }

    .vem-thankyou__summary-item:nth-child(2) {
        border-right: 0;
    }

    .vem-thankyou__summary-item:nth-child(-n+2) {
        border-bottom: 1px solid #e3e8df;
    }

    .vem-thankyou__steps {
        flex-direction: column;
        gap: 12px;
    }

    .vem-thankyou__arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 520px) {
    .vem-thankyou__heading h2 {
        font-size: 26px;
    }

    .vem-thankyou__summary {
        grid-template-columns: 1fr;
    }

    .vem-thankyou__summary-item {
        border-right: 0;
        border-bottom: 1px solid #e3e8df;
    }

    .vem-thankyou__summary-item:last-child {
        border-bottom: 0;
    }

    .vem-thankyou__actions {
        flex-direction: column;
    }

    .vem-thankyou__button {
        width: 100%;
    }
}

/* =========================================================
   VEM THANK YOU - WooCommerce 기본 중복정보 정리
========================================================= */

/* 기본 "감사합니다. 주문이 접수되었습니다." 안내 */
.woocommerce-order-received
.woocommerce-notice--success {
    display: none !important;
}

/* 기본 주문번호 / 날짜 / 이메일 / 총계 / 결제방법 */
.woocommerce-order-received
.woocommerce-order-overview {
    display: none !important;
}

/* VEM 주문완료 카드 상단 여백 */
.woocommerce-order-received
.vem-thankyou {
    margin-top: 20px;
}

/* =========================================================
   VEM ORDER RECEIVED - 주문 상세 / 주소
========================================================= */

/* 주문완료 전체 콘텐츠 */
.woocommerce-order-received
.woocommerce-order {
    max-width: 1100px;
    margin: 0 auto;
}

/* 주문 상세 제목 */
.woocommerce-order-received
.woocommerce-order-details {
    margin-top: 32px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e2e8df;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(38, 58, 35, 0.05);
}

.woocommerce-order-received
.woocommerce-order-details__title {
    margin: 0 0 22px !important;
    color: #293d2a;
    font-size: 22px !important;
    font-weight: 800;
}

/* 주문 상품 테이블 */
.woocommerce-order-received
.woocommerce-order-details
table.shop_table {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-collapse: collapse;
    background: transparent;
}

.woocommerce-order-received
.woocommerce-order-details
table.shop_table th {
    padding: 15px 12px;
    background: #f5f8f3;
    border: 0;
    border-bottom: 1px solid #dfe7dc;
    color: #52604f;
    font-size: 13px;
    font-weight: 700;
}

.woocommerce-order-received
.woocommerce-order-details
table.shop_table td {
    padding: 18px 12px;
    border: 0;
    border-bottom: 1px solid #edf0eb;
    color: #485748;
}

/* 상품명 */
.woocommerce-order-received
.woocommerce-order-details
.product-name a {
    color: #314d32;
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-order-received
.woocommerce-order-details
.product-quantity {
    color: #6f7d6d;
    font-weight: 700;
}

/* 금액 열 */
.woocommerce-order-received
.woocommerce-order-details
.product-total {
    text-align: right;
    white-space: nowrap;
}

/* 합계 영역 */
.woocommerce-order-received
.woocommerce-order-details
tfoot th {
    color: #5c6859;
    font-weight: 700;
}

.woocommerce-order-received
.woocommerce-order-details
tfoot td {
    text-align: right;
    color: #344d35;
    font-weight: 700;
}

.woocommerce-order-received
.woocommerce-order-details
tfoot tr:last-child th,
.woocommerce-order-received
.woocommerce-order-details
tfoot tr:last-child td {
    padding-top: 20px;
    color: #29482c;
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   고객 주소
========================================================= */

.woocommerce-order-received
.woocommerce-customer-details {
    margin-top: 25px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e2e8df;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(38, 58, 35, 0.05);
}

.woocommerce-order-received
.woocommerce-customer-details
.woocommerce-column__title {
    margin: 0 0 20px !important;
    color: #293d2a;
    font-size: 22px !important;
    font-weight: 800;
}

/* 주소 자체를 별도 박스로 */
.woocommerce-order-received
.woocommerce-customer-details address {
    margin: 0;
    padding: 22px 24px !important;
    background: #f7f9f5;
    border: 0 !important;
    border-radius: 14px;
    color: #536052;
    font-style: normal;
    line-height: 1.9;
}

/* 전화 / 이메일 */
.woocommerce-order-received
.woocommerce-customer-details
.woocommerce-customer-details--phone,
.woocommerce-order-received
.woocommerce-customer-details
.woocommerce-customer-details--email {
    margin-top: 8px;
    color: #526850;
}

/* =========================================================
   모바일
========================================================= */

@media (max-width: 768px) {

    .woocommerce-order-received
    .woocommerce-order-details,
    .woocommerce-order-received
    .woocommerce-customer-details {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .woocommerce-order-received
    .woocommerce-order-details__title,
    .woocommerce-order-received
    .woocommerce-customer-details
    .woocommerce-column__title {
        font-size: 19px !important;
    }

    .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table th,
    .woocommerce-order-received
    .woocommerce-order-details
    table.shop_table td {
        padding: 14px 8px;
    }

    .woocommerce-order-received
    .woocommerce-customer-details address {
        padding: 18px !important;
    }
}
