/* =========================================================
   1. GRID LAYOUT & COMPACT GAP
   ========================================================= */

body.com-hikashop.view-product.layout-listing #sp-main-body #sp-left,
body.com-hikashop.view-product.layout-listing #sp-main-body aside#sp-left {
    display: none !important;
}

body.com-hikashop.view-product.layout-listing #sp-main-body #sp-component {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

body.com-hikashop #sp-component .hikashop_products > .hk-row-fluid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.com-hikashop #sp-component .hikashop_products > .hk-row-fluid > div[class*="hkc-md"],
body.com-hikashop #sp-component .hikashop_products .hikashop_product {
    padding: 0 !important;
    margin: 0 !important;
}

body.com-hikashop #sp-component .hikashop_products > .hk-row-fluid > div[class*="hkc-md"] {
    flex: 0 0 calc(25% - 9px) !important;
    width: calc(25% - 9px) !important;
    max-width: calc(25% - 9px) !important;
    box-sizing: border-box !important;
}

/* =========================================================
   2. SINGLE BORDER & COMPACT BOTTOM
   ========================================================= */

body.com-hikashop #sp-component .hikashop_products .hikashop_container *,
body.com-hikashop #sp-component .hikashop_products .hikashop_subcontainer,
body.com-hikashop #sp-component .hikashop_products div[class*="subcontainer"],
body.com-hikashop #sp-component .hikashop_products .hikashop_product {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body.com-hikashop #sp-component .hikashop_products .hikashop_container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 10px 10px 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
}

/* =========================================================
   3. LARGE PRODUCT IMAGE
   ========================================================= */

body.com-hikashop #sp-component .hikashop_products .hikashop_product_image_subdiv,
body.com-hikashop #sp-component .hikashop_products .hikashop_product_image,
body.com-hikashop #sp-component .hikashop_products .hikashop_product_image a {
    width: 100% !important;
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

body.com-hikashop #sp-component .hikashop_products img {
    max-width: 100% !important;
    max-height: 220px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.ns-card-wishlist {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    color: #f97316 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    z-index: 99 !important;
}

.ns-card-wishlist:hover {
    background: #f97316 !important;
    color: #ffffff !important;
}

/* =========================================================
   4. TITLE & NORMAL PRICE STYLE
   ========================================================= */

body.com-hikashop #sp-component .hikashop_products .hikashop_product_code_list,
body.com-hikashop #sp-component .hikashop_products .hikashop_product_stock_count,
body.com-hikashop #sp-component .hikashop_products [class*="stock"],
body.com-hikashop #sp-component .hikashop_products .hikashop_product_price_per_unit,
body.com-hikashop #sp-component .hikashop_products .hikashop_product_price_unit {
    display: none !important;
}

body.com-hikashop #sp-component .hikashop_products .hikashop_product_name,
body.com-hikashop #sp-component .hikashop_products .hikashop_product_name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 3.9em !important;
    height: 3.9em !important;
    line-height: 1.3em !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-align: center !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
}

body.com-hikashop #sp-component .hikashop_products .hikashop_product_name a:hover {
    color: #f97316 !important;
}

body.com-hikashop .hikashop_product_price,
body.com-hikashop .hikashop_product_price * {
    color: #f97316 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

/* =========================================================
   5. BUTTONS & COMPACT BOTTOM SPACING
   ========================================================= */

body.com-hikashop .hikacart,
body.com-hikashop [class*="addtocart"],
body.com-hikashop .hikashop_cart_input_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 38px !important;
    background-color: #f97316 !important;
    border: none !important;
    border-radius: 19px !important;
    color: #ffffff !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: auto !important;
    transition: background 0.2s ease !important;
}

body.com-hikashop .hikacart:hover,
body.com-hikashop [class*="addtocart"]:hover,
body.com-hikashop .hikashop_cart_input_button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.ns-quote-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 16px !important;
    margin-bottom: 0px !important;
    color: #666666 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

.ns-quote-button:hover {
    color: #f97316 !important;
}

/* =========================================================
   6. HIDE HIKASHOP MODULE & SHOW STANDALONE SIDEBAR WIDGET
   ========================================================= */

#sp-position-right .hikashop_cart_module,
#sp-right .hikashop_cart_module,
.sp-module .hikashop_cart_module,
.hikashop_cart_module,
#hikashop_cart_module {
    display: none !important;
}

#ns-fixed-floating-widget {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    border-radius: 10px 0 0 10px !important;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12) !important;
    padding: 16px 10px !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    width: 70px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
}

#ns-fixed-floating-widget .ns-side-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #374151 !important;
    width: 100% !important;
    cursor: pointer !important;
}

#ns-fixed-floating-widget .ns-icon-wrap {
    position: relative !important;
    font-size: 20px !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
    display: flex !important;
}

#ns-fixed-floating-widget .ns-badge-count {
    position: absolute !important;
    top: -8px !important;
    right: -10px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

#ns-fixed-floating-widget .ns-item-text {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #4b5563 !important;
    text-align: center !important;
    font-family: "Prompt", sans-serif !important;
    display: block !important;
}

#ns-fixed-floating-widget .ns-side-item:hover .ns-icon-wrap,
#ns-fixed-floating-widget .ns-side-item:hover .ns-item-text {
    color: #f97316 !important;
}

#ns-fixed-floating-widget .ns-badge-count[data-count="0"] {
    display: none !important;
}

/* Floating LINE Chat */
.nana-line-chat {
    position: fixed !important;
    bottom: 120px !important;
    right: 25px !important;
    z-index: 999999 !important;
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #06C755 !important;
    background-image: url('/images/icon-s/icon-line.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.2s ease !important;
    text-decoration: none !important;
}

.nana-line-chat:hover {
    transform: scale(1.08) !important;
}

.nana-line-chat img,
.nana-line-chat text {
    display: none !important;
}

/* =========================================================
   7. POPUP EXACT MATCH DESIGN
   ========================================================= */

.vex.vex-theme-default .vex-content {
    width: 820px !important;
    max-width: calc(100vw - 32px) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 28px !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
}

.vex.vex-theme-default .vex-dialog-message {
    display: none !important;
}

.vex-close,
.vex.vex-theme-default .vex-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    font-size: 26px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
    background: transparent !important;
    border: none !important;
}

.vex-close:hover,
.vex.vex-theme-default .vex-close:hover {
    color: #111827 !important;
}

.ns-cart-popup-wrapper {
    width: 100%;
    font-family: "Prompt", sans-serif;
}

.ns-cart-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ns-cart-popup-cart-head {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    position: relative !important;
    top: 1px !important;
}

.ns-cart-popup-header i.ns-popup-check {
    color: #16a34a !important;
    font-size: 28px !important;
}

.ns-cart-popup-body {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0;
}

.ns-cart-popup-left {
    display: flex;
    gap: 16px;
    padding-right: 24px;
    border-right: 1px solid #e5e7eb;
}

.ns-cart-popup-img-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-cart-popup-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ns-cart-popup-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.ns-cart-popup-prod-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ns-cart-popup-prod-sku {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.ns-cart-popup-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
}

.ns-cart-popup-price-main {
    font-size: 22px;
    font-weight: 700;
    color: #f97316;
}

.ns-cart-popup-qty-text {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.ns-cart-popup-right {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ns-cart-popup-cart-head {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ns-cart-popup-count {
    color: #9ca3af;
    font-weight: 500;
}

.ns-cart-popup-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.ns-cart-popup-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ns-cart-popup-total-value {
    font-size: 24px;
    font-weight: 700;
    color: #f97316;
}

.vex.vex-theme-default .vex-dialog-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding: 0 !important;
    background: transparent !important;
}

.vex.vex-theme-default .vex-dialog-button {
    height: 42px !important;
    padding: 0 24px !important;
    border-radius: 21px !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.vex.vex-theme-default .vex-dialog-button.vex-last {
    order: 1 !important;
    background: #ffffff !important;
    color: #f97316 !important;
    border: 1.5px solid #f97316 !important;
}

.vex.vex-theme-default .vex-dialog-button.vex-first {
    order: 2 !important;
    background: #f97316 !important;
    color: #ffffff !important;
    border: 1.5px solid #f97316 !important;
}

@media (max-width: 640px) {
    .ns-cart-popup-body {
        grid-template-columns: 1fr;
    }
    .ns-cart-popup-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    .ns-cart-popup-right {
        padding-left: 0;
        padding-top: 20px;
    }
}
/* =========================================================
   8. CHECKOUT CART - TEXT STYLE
   ========================================================= */

/* 1. HIDE TAXES ROW */
.hikashop_cart_tax_row {
    display: none !important;
}

/* 2. UNIT PRICE */
body.com-hikashop .hikashop_cart_product_price_value .hikashop_product_price {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* 3. QUANTITY */
body.com-hikashop .hikashop_cart_product_quantity_value,
body.com-hikashop .hikashop_cart_product_quantity_value *,
body.com-hikashop .hikashop_cart_product_quantity_value input {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* 4. TOTAL PRICE PER PRODUCT */
body.com-hikashop .hikashop_cart_product_total_value .hikashop_product_price {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* 5. SUBTOTAL */
.hikashop_checkout_cart_subtotal {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* 6. FINAL TOTAL */
.hikashop_checkout_cart_final_total {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* 7. CART PRODUCT IMAGE */
.hikashop_cart_product_image_value {
    width: 180px !important;
    max-width: 180px !important;
    padding: 10px !important;
    text-align: center !important;
}

.hikashop_cart_product_image_value .hikashop_product_checkout_cart_image {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
}

/* Header */
#hikashop_checkout_cart .hikashop_cart_title {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Product name */
#hikashop_checkout_cart .hikashop_cart_product_name_value,
#hikashop_checkout_cart .hikashop_cart_product_name_value a,
#hikashop_checkout_cart .hikashop_cart_product_name {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Unit price */
#hikashop_checkout_cart .hikashop_cart_product_price_value,
#hikashop_checkout_cart .hikashop_cart_product_price_value *,
#hikashop_checkout_cart .hikashop_checkout_cart_price {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Quantity */
#hikashop_checkout_cart .hikashop_cart_product_quantity_value,
#hikashop_checkout_cart .hikashop_cart_product_quantity_value * {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Total price */
#hikashop_checkout_cart .hikashop_cart_product_total_value,
#hikashop_checkout_cart .hikashop_cart_product_total_value * {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Subtotal */
#hikashop_checkout_cart .hikashop_cart_subtotal_title,
#hikashop_checkout_cart .hikashop_cart_subtotal_value,
#hikashop_checkout_cart .hikashop_cart_subtotal_value * {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Final total */
#hikashop_checkout_cart .hikashop_cart_total_title,
#hikashop_checkout_cart .hikashop_cart_total_value,
#hikashop_checkout_cart .hikashop_cart_total_value * {
    color: #000000 !important;
    font-weight: 700 !important;
}


/* 3. REDUCE PRODUCT IMAGE */

#hikashop_checkout_cart .hikashop_product_checkout_cart_image {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    object-fit: contain !important;
}

/* Image column */
#hikashop_checkout_cart .hikashop_cart_product_image_value {
    width: 200px !important;
    max-width: 200px !important;
    padding: 8px !important;
    text-align: center !important;
}

/* Image wrapper */
#hikashop_checkout_cart .hikashop_cart_product_image_value > div {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    margin: 0 auto !important;
}

/* =========================================================
   CART - WHITE BACKGROUND + GREY BORDER
   ========================================================= */

tr[id^="hikashop_cart_product_row_"] td,
.hikashop_cart_subtotal_row td,
.hikashop_cart_total_row td {
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-color: #d0d0d0 !important;
}

/* =========================================================
   CART - CENTER QUANTITY CONTROLS
   ========================================================= */

body.com-hikashop .hikashop_cart_product_quantity_value {
    text-align: center !important;
    vertical-align: middle !important;
}

body.com-hikashop .hikashop_cart_product_quantity_value .ns-cart-qty-controls {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.com-hikashop .hikashop_cart_product_quantity_value {
    vertical-align: top !important;
    padding-top: 5px !important;
}

body.com-hikashop .hikashop_cart_product_quantity_value .ns-cart-qty-controls {
    margin-top: 0 !important;
}

/* =========================================================
   CART - QUANTITY BUTTON SIZE
   ========================================================= */

body.com-hikashop .ns-cart-qty-minus,
body.com-hikashop .ns-cart-qty-plus {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 24px !important;
    box-sizing: border-box !important;
}

body.com-hikashop .ns-cart-qty-number {
    height: 24px !important;
    min-height: 24px !important;
    line-height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.com-hikashop .hikashop_cart_product_name_value .hikashop_cart_product_name a {
    color: #000000 !important;
}

/* =========================================================
   CART - SPACE BELOW COUPON
   ========================================================= */

body.com-hikashop .hikashop_cart_product_image_title,
body.com-hikashop .hikashop_cart_product_name_title,
body.com-hikashop .hikashop_cart_product_price_title,
body.com-hikashop .hikashop_cart_product_quantity_title,
body.com-hikashop .hikashop_cart_product_total_title {
    padding-top: 50px !important;
    position: relative !important;
}

body.com-hikashop .hikashop_cart_product_image_title::before,
body.com-hikashop .hikashop_cart_product_name_title::before,
body.com-hikashop .hikashop_cart_product_price_title::before,
body.com-hikashop .hikashop_cart_product_quantity_title::before,
body.com-hikashop .hikashop_cart_product_total_title::before {
    content: "";
    position: absolute;
    top: 29px;
    left: 0;
    right: 0;
    border-top: 1px solid #d0d0d0;
}
/* =========================================================
   CART - SUMMARY ROW ALIGNMENT
   ========================================================= */

body.com-hikashop .hikashop_cart_subtotal_row,
body.com-hikashop .hikashop_cart_total_row {
    height: 42px !important;
}

body.com-hikashop .hikashop_cart_subtotal_row td,
body.com-hikashop .hikashop_cart_total_row td {
    height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
    border-top: 1px solid #d0d0d0 !important;
    border-bottom: 1px solid #d0d0d0 !important;
}

/* =========================================================
   CART - UNIFIED FONT SIZE & COLOR
   ========================================================= */

/* CART TABLE HEADERS */
body.com-hikashop .hikashop_cart_product_image_title,
body.com-hikashop .hikashop_cart_product_name_title,
body.com-hikashop .hikashop_cart_product_price_title,
body.com-hikashop .hikashop_cart_product_quantity_title,
body.com-hikashop .hikashop_cart_product_total_title {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* PRODUCT NAME */
body.com-hikashop .hikashop_cart_product_name_value .hikashop_cart_product_name a {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* SKU */
body.com-hikashop .hikashop_cart_product_name_value .ns-cart-sku {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* UNIT PRICE */
body.com-hikashop .hikashop_cart_product_price_value,
body.com-hikashop .hikashop_cart_product_price_value *,
body.com-hikashop .hikashop_cart_product_price_value .hikashop_product_price {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* QUANTITY */
body.com-hikashop .hikashop_cart_product_quantity_value,
body.com-hikashop .hikashop_cart_product_quantity_value input,
body.com-hikashop .hikashop_cart_product_quantity_value .ns-cart-qty-number {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* TOTAL PRICE PER PRODUCT */
body.com-hikashop .hikashop_cart_product_total_value,
body.com-hikashop .hikashop_cart_product_total_value *,
body.com-hikashop .hikashop_cart_product_total_value .hikashop_product_price {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* SUBTOTAL */
body.com-hikashop .hikashop_cart_subtotal_row,
body.com-hikashop .hikashop_cart_subtotal_row *,
body.com-hikashop .hikashop_checkout_cart_subtotal {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* FINAL TOTAL */
body.com-hikashop .hikashop_cart_total_row,
body.com-hikashop .hikashop_cart_total_row *,
body.com-hikashop .hikashop_checkout_cart_final_total {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* =========================================================
   CART - VERTICAL CENTER
   ========================================================= */

body.com-hikashop tr[id^="hikashop_cart_product_row_"] td {
    vertical-align: middle !important;
}

body.com-hikashop .hikashop_cart_product_name_value {
    vertical-align: middle !important;
}

body.com-hikashop .hikashop_cart_product_price_value,
body.com-hikashop .hikashop_cart_product_quantity_value,
body.com-hikashop .hikashop_cart_product_total_value {
    vertical-align: middle !important;
}

/* =========================================================
   CART - REDUCE PRODUCT ROW SPACING
   ========================================================= */

body.com-hikashop tr[id^="hikashop_cart_product_row_"] td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* =========================================================
   POPUP - CART HEADER POSITION ตระกร้าสินค้า (1ชิ้น)
   ========================================================= */

.ns-cart-popup-header {
    display: flex !important;
    align-items: center !important;
}

.ns-cart-popup-header .ns-cart-popup-cart-head {
    margin-left: auto !important;
    width: 40% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* =========================================================
   POPUP - MOVE TOTAL TO CART HEADER LINE ราคารวมทั้งสิ้น
   ========================================================= */

.ns-cart-popup-wrapper {
    position: relative !important;
}

.ns-cart-popup-right {
    position: relative !important;
}

.ns-cart-popup-total-row {
    position: absolute !important;
    top: 0 !important;
    left: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ns-cart-popup-total-label {
    font-weight: 500 !important;
    color: #111827 !important;
}

.ns-cart-popup-total-value {
    font-weight: 700 !important;
    color: #ff7a00 !important;
}

/* POPUP - PRICE SIZE */
.ns-cart-popup-price-main,
.ns-cart-popup-total-value {
    font-size: 20px !important;
    font-weight: 500 !important;
}

/* =========================================================
   POPUP - OK BUTTON
   ========================================================= */

.ns-cart-popup-wrapper ~ .vex-dialog-buttons .vex-dialog-button-primary {
    background: #FF7A00 !important;
    border: 1px solid #FF7A00 !important;
    color: #ffffff !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    min-width: 120px !important;
    height: 44px !important;
    padding: 0 28px !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.ns-cart-popup-wrapper .vex-dialog-buttons .vex-dialog-button-primary:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* POPUP - MOVE BUTTONS INTO RIGHT COLUMN */

.ns-cart-popup-right .vex-dialog-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 85px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: 40px !important;
}

/* POPUP BUTTON - THAI TEXT SIZE */

.ns-cart-popup-wrapper .vex-dialog-buttons button {
    width: 165x !important;
    min-width: 165x !important;
    height: 44px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight:300 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    flex: 0 0 165px !important;
}

/* POPUP - MOVE TOTAL PRICE LEFT */
.ns-cart-popup-total-value {
    padding-right: 18px !important;
}

/* CART - MOVE TRASH ICON LEFT */
.ns-cart-qty-controls .hikashop_cart_product_quantity_delete {
    position: relative !important;
    left: -30px !important;
}

/* BREADCRUMB AREA - WHITE BACKGROUND */
.sp-page-title,
.breadcrumb,
.breadcrumb-wrapper {
    background-color: #ffffff !important;
}

/* =========================================================
   CART PAGE - REMOVE ACCOUNT SIDEBAR
   ========================================================= */
body.com-hikashop.view-cart #hikashop_dashboard .hika_cpanel_side_bar {
    display: none !important;
}

body.com-hikashop.view-cart #hikashop_dashboard .hika_cpanel_main_data.hkc-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* =========================================================
   CART PAGE - HIDE HIKASHOP TOOLBAR & CART NAME
   ========================================================= */
body.com-hikashop.view-cart #hikashop_dashboard .hika_toolbar {
    display: none !important;
}

body.com-hikashop.view-cart #hikashop_dashboard .hika_options {
    display: none !important;
}

/* =========================================================
   CART PAGE - CART TITLE
   ========================================================= */
body.com-hikashop.view-cart #hikashop_dashboard .hika_cpanel_main_data::before {
    content: "ตะกร้าสินค้า";
    display: block;
    width: 100%;
    text-align: center;
    color: #000000;
    font-family: "Prompt", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 45px 0;
}

/* =========================================================
   CART PAGE - PRODUCT CART BOX
   ========================================================= */

body.com-hikashop.view-cart #hikashop_cart_product_listing {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CART PAGE - PRODUCT CART SECTION
   ========================================================= */

body.com-hikashop.view-cart #hikashop_show_cart_form {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1.5fr) 320px !important;
    column-gap: 30px !important;
    align-items: start !important;
}


/* PRODUCT TABLE */
body.com-hikashop.view-cart #hikashop_cart_product_listing {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    margin: 0 !important;
}

/* SUMMARY BOX */
body.com-hikashop.view-cart .ns-cart-summary-box {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;

    width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CART PAGE - SUMMARY BOX
   ========================================================= */

body.com-hikashop.view-cart #hikashop_show_cart_form {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) 320px !important;
    column-gap: 30px !important;
    align-items: start !important;
}

/* Keep cart table on the left */
body.com-hikashop.view-cart #hikashop_cart_product_listing {
    grid-column: 1 !important;
    width: 100% !important;
}

/* Summary box */
body.com-hikashop.view-cart .ns-cart-summary-box {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    padding: 22px !important;
    font-family: "Prompt", sans-serif !important;
}

/* Summary title */
body.com-hikashop.view-cart .ns-cart-summary-title {
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #d0d0d0 !important;
}

/* Summary row */
body.com-hikashop.view-cart .ns-cart-summary-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 18px !important;
    color: #000000 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
}

/* Total */
body.com-hikashop.view-cart .ns-cart-summary-total {
    color: #FF7A00 !important;
    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* =========================================================
   CART PAGE - CART + SUMMARY LAYOUT
   ========================================================= */

/* Summary title */
body.com-hikashop.view-cart .ns-cart-summary-title {
    font-family: "Prompt", sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 18px !important;
}

/* Summary line */
body.com-hikashop.view-cart .ns-cart-summary-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 18px !important;
    border-top: 1px solid #d0d0d0 !important;
}

/* Summary label */
body.com-hikashop.view-cart .ns-cart-summary-line span:first-child {
    font-family: "Prompt", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}

/* Summary total */
body.com-hikashop.view-cart .ns-cart-summary-total {
    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #FF7A00 !important;
}

/* =========================================================
   CART PAGE - ALIGN CART TABLE WITH SUMMARY
   ========================================================= */

body.com-hikashop.view-cart #hikashop_show_cart_form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    grid-template-rows: auto !important;
    column-gap: 20px !important;
    align-items: start !important;
}

/* Cart table */
body.com-hikashop.view-cart #hikashop_cart_product_listing {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
}

/* Summary */
body.com-hikashop.view-cart .ns-cart-summary-box {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
}

/* =========================================================
   CART PAGE - FINAL WIDTH & POSITION
   ========================================================= */

/* 1. ขยายพื้นที่หลักของ HikaShop ให้เต็มเฟรม */
body.com-hikashop.view-cart #hikashop_dashboard .hika_cpanel_main_data.hkc-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 2. ขยายเฟรม Cart ให้กว้าง 1200px */
body.com-hikashop.view-cart #hikashop_show_cart_form {
    width: 1200px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    column-gap: 30px !important;
    align-items: start !important;
}

/* 3. กรอบสินค้า - อยู่ฝั่งซ้ายและกินพื้นที่ที่เหลือทั้งหมด */
body.com-hikashop.view-cart #hikashop_cart_product_listing {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 4. กล่องสรุป - คงความกว้าง 320px */
body.com-hikashop.view-cart .ns-cart-summary-box {
    grid-column: 2 !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CART PAGE - STEP 1
   PRODUCT BOX + SUMMARY BOX
   ========================================================= */

/* ---------------------------------------------------------
   1. กรอบสินค้า
   --------------------------------------------------------- */

body.com-hikashop.view-cart #hikashop_cart_product_listing {
    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* ---------------------------------------------------------
   2. หัวกรอบสินค้า
   --------------------------------------------------------- */

body.com-hikashop.view-cart #hikashop_show_cart_form::before {
    content: "สินค้าในตะกร้า" !important;
    display: block !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    box-sizing: border-box !important;

    padding: 16px !important;

    border: 1px solid #d9d9d9 !important;
    border-bottom: 1px solid #d9d9d9 !important;

    border-radius: 5px 5px 0 0 !important;

    background: #ffffff !important;

    color: #000000 !important;

    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}


/* ---------------------------------------------------------
   3. กล่องสรุปด้านขวา
   --------------------------------------------------------- */

body.com-hikashop.view-cart .ns-cart-summary-box {
    background: #ffffff !important;

    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;

    box-sizing: border-box !important;

    padding: 0 16px 18px 16px !important;
}


/* ---------------------------------------------------------
   4. หัวกล่องสรุป
   --------------------------------------------------------- */

body.com-hikashop.view-cart .ns-cart-summary-title {
    display: block !important;

    margin: 0 !important;
    padding: 16px 0 !important;

    border-bottom: 1px solid #d9d9d9 !important;

    color: #000000 !important;

    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}


/* ---------------------------------------------------------
   5. เส้นแบ่งในกล่องสรุป
   --------------------------------------------------------- */

body.com-hikashop.view-cart .ns-cart-summary-line {
    border-bottom: 1px dashed #cfcfcf !important;

    padding: 15px 0 !important;
}


/* ---------------------------------------------------------
   6. ไม่ให้กรอบสินค้ามีเส้นซ้อนด้านบน
   --------------------------------------------------------- */

body.com-hikashop.view-cart #hikashop_cart_product_listing {
    border-top: 0 !important;
}


/* ---------------------------------------------------------
   7. ตารางสินค้าให้ติดกับหัวกรอบ
   --------------------------------------------------------- */

body.com-hikashop.view-cart #hikashop_cart_product_listing table {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CART - RESTORE LEFT PRODUCT BOX
   ========================================================= */

body.com-hikashop.view-cart #hikashop_cart_product_listing {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;

    background: #ffffff !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* =========================================================
   CART - PRODUCT BOX STRUCTURE
   ========================================================= */

/* กรอบสินค้า */
body.com-hikashop.view-cart .ns-cart-product-box {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 100% !important;
    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;

    overflow: hidden !important;
}


/* หัวกรอบ */
body.com-hikashop.view-cart .ns-cart-product-box-title {
    width: 100% !important;
    box-sizing: border-box !important;

    padding: 16px !important;

    background: #ffffff !important;

    border-bottom: 1px solid #d9d9d9 !important;

    color: #000000 !important;

    font-family: "Prompt", sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;

    line-height: 1.4 !important;
}


/* ตัว listing อยู่ภายในกรอบ */
body.com-hikashop.view-cart .ns-cart-product-box #hikashop_cart_product_listing {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #ffffff !important;

    box-sizing: border-box !important;
}

/* =========================================================
   CART - HIDE STATUS COLUMN
   ========================================================= */

body.com-hikashop.view-cart #hikashop_cart_product_listing table tr > *:nth-child(3) {
    display: none !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing .hikashop_cart_status_title,
body.com-hikashop.view-cart #hikashop_cart_product_listing td[data-title="Status"] {
    display: none !important;
}

/* =========================================================
   CART - THAI TABLE HEADERS
   ========================================================= */

body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(2),
body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(4),
body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(5),
body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(6) {
    font-size: 0 !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(2)::after {
    content: "สินค้า";
    font-size: 17px !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(4)::after {
    content: "ราคา/ชิ้น";
    font-size: 17px !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(5)::after {
    content: "จำนวน";
    font-size: 17px !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing thead tr th:nth-child(6)::after {
    content: "ราคารวม";
    font-size: 17px !important;
}

/* =========================================================
   CART - TABLE COLUMN WIDTH
   ========================================================= */

body.com-hikashop.view-cart #hikashop_cart_product_listing th:nth-child(2),
body.com-hikashop.view-cart #hikashop_cart_product_listing td:nth-child(2) {
    width: auto !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing th:nth-child(4),
body.com-hikashop.view-cart #hikashop_cart_product_listing td:nth-child(4) {
    width: 100px !important;
    min-width: 100px !important;
    white-space: nowrap !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing th:nth-child(5),
body.com-hikashop.view-cart #hikashop_cart_product_listing td:nth-child(5) {
    width: 170px !important;
    min-width: 170px !important;
}

body.com-hikashop.view-cart #hikashop_cart_product_listing th:nth-child(6),
body.com-hikashop.view-cart #hikashop_cart_product_listing td:nth-child(6) {
    width: 100px !important;
    min-width: 100px !important;
    white-space: nowrap !important;
}