/* ============================================================
   WooCommerce — My Account custom styles
   Design recreation: top tab nav, profile card, account form,
   wishlist table. Adjust --Brand-color to match your exact brand.
   ============================================================ */

:root {
    --Brand-color: #961B1E;
    --Brand-color-dark: #8d0e12;
    --black: #000000;
    --muted: #6b7280;
    --border: #e5e7eb;
    --th-bg: #ededed;
    --text-: #3e3e3e;
    --text-body: #3c3c3c;
    --Black-600: #3D3D3D;
    --Secondary-50: #F6F6F6;
    --neutral-100: #E5E5E5;

}

/* ---- Layout: stack nav on top, content full width ---- */
.woocommerce-account .woocommerce {
    display: block;
    font-family: "ACUATEC", Sans-serif;
}

.wcm-custom [type=button]:focus,
.wcm-custom [type=button]:hover,
.wcm-custom [type=submit]:focus,
.wcm-custom [type=submit]:hover,
.wcm-custom button:focus,
.wcm-custom button:hover {
    background-color: var(--Brand-color) !important;
}

[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {
    background-color: transparent !important;
}

table caption+thead tr:first-child td,
table caption+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th,
table tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th,
table td,
table th {
    border: none;
}

table tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th,
table tbody tr:hover>td,
table tbody tr:hover>th {
    background-color: transparent !important;
}

.woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
    margin-top: 40px;
}

.woocommerce-account .woocommerce-MyAccount-content form {
    max-width: 800px;
}


/* ---- Top tab navigation ---- */
.woocommerce-MyAccount-navigation {
    border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: inline-block;
    padding: 18px 0px;
    color: var(--text-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    color: var(--Brand-color);
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--text-body);
    font-weight: 600;
    border-bottom-color: var(--Brand-color);
}

/* Logout pushed to the right + rendered as an outlined button */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-left: auto;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    padding: 14px 24px;
    border: 1px solid var(--Brand-color);
    border-radius: 8px;
    color: var(--Brand-color);
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: var(--Brand-color);
    color: #fff;
}

/* ---- Shared buttons (outlined red, like the design) ---- */
.woocommerce-account .profile__edit,
.woocommerce-account .woocommerce-EditAccountForm button.button,
.woocommerce-account .woocommerce-MyAccount-content button.button {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--Brand-color);
    border-radius: 6px;
    color: var(--Brand-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    margin-top: 24px;
}

.woocommerce-account .profile__edit:hover,
.woocommerce-account .woocommerce-EditAccountForm button.button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover {
    background: var(--Brand-color);
    color: #fff;
}

/* ---- Section headings (red) ---- */
.woocommerce-account .profile__title,
.woocommerce-account .woocommerce-EditAccountForm legend,
.woocommerce-account .woocommerce-EditAccountForm .form-title,
.woocommerce-account .wishlist__title {
    color: var(--Brand-color);
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
}

/* ---- Dashboard: personal info card ---- */
.profile__title {
    /* font-size: 28px; */
    margin: 0 0 40px;
}

.profile__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-body);
    margin: 0 0 12px;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.profile__email {
    color: var(--text-body);
    margin: 0 0 22px;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

/* ---- Edit account form ---- */
.woocommerce-EditAccountForm {
    max-width: 453px;
}

.edit-account__fields {
    margin-bottom: 56px;
}

.woocommerce-EditAccountForm .form-title {
    font-size: 26px;
    margin: 0 0 22px;
}

.woocommerce-EditAccountForm .form-title--password {
    margin-top: 38px;
}

.woocommerce-EditAccountForm .form-row {
    display: block;
    margin: 0 0 18px;
    padding: 0;
}

.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
}


.woocommerce-EditAccountForm .form-row-first {
    margin-right: 14px;
}

.woocommerce-EditAccountForm label,
.woocommerce-MyAccount-content label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text-body);
    margin-bottom: 7px;
}

.woocommerce-EditAccountForm label .required {
    color: var(--Brand-color);
    border: 0;
}

.woocommerce-EditAccountForm input::placeholder,
.woocommerce-MyAccount-content input::placeholder {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #AAA;
}

.woocommerce-EditAccountForm input.input-text {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce-EditAccountForm input.input-text:focus {
    outline: none;
    border-color: var(--Brand-color);
    box-shadow: 0 0 0 2px rgba(176, 18, 23, .12);
}

.woocommerce-EditAccountForm .field-hint {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: var(--muted);
}

.woocommerce-EditAccountForm fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.woocommerce-EditAccountForm legend {
    font-size: 26px;
    padding: 0;
    margin: 38px 0 22px;
    float: none;
    width: auto;
}

/* ---- Wishlist table ---- */
.wishlist__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wishlist__heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.wishlist__count {
    color: var(--Brand-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.wishlist__table {
    width: 100%;
    border-collapse: collapse;
}

.wishlist__table thead th {
    background: var(--th-bg);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    color: var(--Black-600);
    padding: 12px 16px;
}

.wishlist__table thead th.col-product {
    text-align: center;
}

.wishlist__table tbody td {
    border-bottom: 1px solid #E7E7E7 !important;
    padding: 18px 16px;
    vertical-align: middle;
}

.wishlist__table td.col-product {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 32px 16px;
}

.wishlist__remove {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    padding: 0;
}

.wishlist__remove img {
    width: 24px;
    height: 24px;
    display: block;
}

.wishlist__remove:hover {
    opacity: .7;
}

.wishlist__thumb {
    flex: 0 0 auto;
}

.wishlist__thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 0.6px solid #000;
}

.wishlist__info {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.wishlist__sku {
    font-weight: 700;
    color: var(--text-body);
    text-decoration: none;
    font-size: 15px;
}

.wishlist__sku:hover {
    color: var(--Brand-color);
}

.wishlist__name {
    color: #888;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.wishlist__table td.col-price {
    text-align: center;
    white-space: nowrap;
    color: #3C3C43;
    font-family: ACUATEC;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.wishlist__empty {
    color: var(--muted);
    padding: 20px 0;
}

/* ---- Add-to-wishlist heart button (shop/product pages) ---- */
.add-to-wishlist {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--muted);
    padding: 4px;
    line-height: 1;
}


[type=button].add-to-wishlist:focus,
[type=button].add-to-wishlist:hover {
    background-color: transparent;
}

.add-to-wishlist .heart {
    display: inline-flex;
    line-height: 0;
}

.add-to-wishlist .heart svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: transparent;
    transition: all ease .15s;
}

.add-to-wishlist:hover .heart svg {
    fill: #ffbec0;
}

.add-to-wishlist:hover .heart svg path {
    stroke: #ffbec0;
}

.add-to-wishlist.is-active .heart svg {
    fill: var(--Brand-color);
}

.add-to-wishlist.is-active .heart svg path {
    stroke: var(--Brand-color);
}

/* "Please log in" message shown to guests when they click the heart */
.wishlist-login-msg {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: var(--Brand-color);
    vertical-align: middle;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    border-radius: 8px !important;
    border: 1px solid #D1D1D1 !important;
    padding: 10px 16px !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce form.login .form-row {
    margin: 0 0 24px !important;
}

.woocommerce-privacy-policy-text {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .woocommerce-MyAccount-navigation ul {
        gap: 2px 18px;
    }

    .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }

    .woocommerce-EditAccountForm,
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        display: block;
    }

    .wishlist__table thead {
        display: none;
    }

    .wishlist__table td.col-price {
        text-align: left;
        padding-left: 106px;
    }
}

/* ============================================================
   Orders list, order detail, addresses (design recreation)
   ============================================================ */

/* Shared page heading (matches profile__title / form-title) */
.account-title {
    color: var(--Brand-color);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;

    margin: 0 0 40px;
}

/* ---- Orders list (ประวัติการสั่งซื้อ) ---- */
.orders__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.orders__subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.orders__count {
    color: var(--Brand-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.orders__table {
    width: 100%;
    border-collapse: collapse;
}

.orders__table thead th {
    background: var(--Secondary-50);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: var(--text);
    padding: 10px 16px;
}

.orders__table thead th.col-product {
    text-align: left;
}

.orders__table tbody td {
    border-bottom: 1px solid var(--neutral-100) !important;
    padding: 32px 16px;
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    color: var(--black);
    font-family: ACUATEC;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.orders__table td.col-product {
    /* display: flex; */
    /* align-items: center; */
    gap: 16px;
    text-align: left;
}

.orders__thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: block;
}

.orders__info {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.orders__sku {
    color: var(--black, #000);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;

}

.orders__name {
    color: #888;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

/* Status pills — class is order-status--{wc status key} */
.order-status {
    display: inline-block;
    padding: 8px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
    max-width: 120px;
    width: 120px;
}

.order-status--processing,
.order-status--on-hold {
    background: #BFDDF0;
    color: #406AAF;
}

.order-status--completed {
    background: #E1E9C9;
    color: #8AA624;
}

.order-status--cancelled,
.order-status--failed,
.order-status--refunded {
    background: #FEE2E3;
    color: var(--Brand-color);
}

.order-status--pending {
    background: #eee;
    color: #666;
}

/* Outlined red action buttons (view / edit / back) */
.orders__view,
.address-block__edit,
.order-detail__back {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--Brand-color);
    border-radius: 6px;
    color: var(--Brand-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    /* margin-top: 24px; */
}

.orders__view:hover,
.address-block__edit:hover,
.order-detail__back:hover {
    background: var(--Brand-color);
    color: #fff;
}

.orders__empty {
    color: var(--muted);
    padding: 20px 0;
}

.orders__pagination {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ---- Order detail (ดูรายละเอียดประวัติการสั่งซื้อ) ---- */
.order-detail {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: start;
}

.order-meta {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.order-meta li {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
    font-size: 15px;
}

.order-meta__label {
    flex: 0 0 160px;
    color: #1e1e1e;
}

.order-meta__value {
    color: var(--text-body);
}

.order-detail__subtitle {
    font-weight: 700;
    font-size: 20px;
    color: #323232;
    margin: 0 0 20px;
}

.order-detail__info address {
    font-style: normal;
    line-height: 1.9;
    color: var(--text-body);
}

.order-detail__back {
    margin-top: 32px;
}

/* Right summary card */
.order-detail__summary {
    background: #f6f6f6;
    border-radius: 10px;
    padding: 28px 40px;
}

.order-summary__title {
    color: #323232;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 18px;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e2e2;
    font-size: 16px;
    font-weight: 500;
    align-items: center;
    color: var(--text-body);
}

.order-summary__discount .order-summary__label,
.order-summary__discount .order-summary__value {
    color: var(--Brand-color);
}

.order-summary__row--head {
    font-weight: 600;
}

.order-summary__name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-summary__sku {
    color: #9a9a9a;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.order-summary__qty {
    color: #323232;
}

.order-summary__value {
    white-space: nowrap;
}

.order-summary__total--order_total {
    border-bottom: 0;
    font-weight: 700;
    font-size: 18px;
}

.order-summary__total--order_total span.order-summary__label {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
}

.order-summary__total--order_total span.order-summary__value {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
}

/* ---- Addresses list (ที่อยู่จัดส่งและที่อยู่ออกใบเสร็จ) ---- */
.addresses-list__subtitle {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 40px;
}

.address-block {
    margin-bottom: 40px;
}

.address-block__bar {
    background: var(--Secondary-50);
    padding: 10px 16px;
    color: var(--Black-600);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.address-block__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0px;
}

.address-block__name {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--text-body);
}

.address-block__address {
    font-style: normal;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .order-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .orders__table thead {
        display: none;
    }

    .orders__table,
    .orders__table tbody,
    .orders__table tr,
    .orders__table td {
        display: block;
        width: 100%;
    }

    .orders__table tr {
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }

    .orders__table td {
        text-align: left;
        border: 0;
        padding: 6px 0;
    }

    .orders__table td.col-product {
        padding: 6px 0;
    }

    .address-block__body {
        flex-direction: column;
        padding: 20px 0;
    }
}

/* ---- Edit address form (แก้ไขที่อยู่ออกใบเสร็จ / แก้ไขที่อยู่จัดส่ง) ---- */
.edit-address-form {
    max-width: 620px;
}

.edit-address-form .woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.edit-address-form .form-row {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    width: 100%;
}

.edit-address-form .form-row-first,
.edit-address-form .form-row-last {
    width: calc(50% - 8px);
}

.edit-address-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 7px;
}

.edit-address-form .required,
.edit-address-form .optional {
    color: var(--Brand-color);
    border: 0;
    text-decoration: none;
}

.edit-address-form .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.edit-address-form input.input-text,
.edit-address-form select,
.edit-address-form .select2-container .select2-selection--single {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
    line-height: 1.4;
}

.edit-address-form input.input-text:focus,
.edit-address-form select:focus {
    outline: none;
    border-color: var(--Brand-color);
    box-shadow: 0 0 0 2px rgba(176, 18, 23, .12);
}

.edit-address-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 0;
    color: var(--text-body);
}

.edit-address-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}

.edit-address-form button.button {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 26px;
    background: #fff;
    border: 1px solid var(--Brand-color);
    border-radius: 6px;
    color: var(--Brand-color);
    font-size: 15px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.edit-address-form button.button:hover {
    background: var(--Brand-color);
    color: #fff;
}

@media (max-width: 600px) {

    .edit-address-form .form-row-first,
    .edit-address-form .form-row-last {
        width: 100%;
    }
}

/* ============================================================
   Auth screens — login / lost password / reset password
   ============================================================ */
.auth {
    max-width: 480px;
    margin: 40px auto;
    font-family: "ACUATEC", Sans-serif;
}

.auth form {
    border: none !important;
}

.auth--center {
    text-align: center;
}

.auth__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-body);
    margin: 0 0 26px;
}

.auth--center .auth__title {
    margin-bottom: 18px;
}

.auth__desc {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 26px;
}

.auth .form-row {
    margin: 0 0 16px;
    padding: 0;
}

/* Visually hide labels (placeholder-only design), keep for screen readers */
.auth label.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.auth input.input-text {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.auth input.input-text:focus {
    outline: none;
    border-color: var(--Brand-color);
    box-shadow: 0 0 0 2px rgba(176, 18, 23, .12);
}

.auth input::placeholder {
    color: #9aa0a6;
}

/* WooCommerce password show/hide eye */
.auth .password-input {
    display: block;
    position: relative;
}

.auth .password-input .show-password-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Remember me + lost password row */
.auth__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 14px;
}

.auth__meta label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-body);
}

.auth__lost {
    color: var(--Brand-color);
    text-decoration: none;
}

.auth__lost:hover {
    text-decoration: underline;
}

/* Primary filled button */
.auth .button,
.auth button[type="submit"] {
    background: var(--Brand-color);
    border: 1px solid var(--Brand-color);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    padding: 13px 20px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.auth .button:hover,
.auth button[type="submit"]:hover {
    color: #fff !important;
    background: var(--Brand-color-dark) !important;
    border-color: var(--Brand-color-dark) !important;
}

/* Login: full-width button. Centered screens: auto-width, centered. */
.auth:not(.auth--center) button[type="submit"] {
    width: 100%;
}

.auth--center .form-row {
    text-align: center;
}

.auth--center button[type="submit"] {
    width: auto;
    min-width: 180px;
    display: inline-block;
}

/* "หรือ" divider */
.auth__divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #d1d1d1;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin: 22px 0;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d1d1d1;
}

.auth__divider span {
    padding: 0 14px;
}

/* Social login (Nextend) */
.auth__social {
    margin-bottom: 22px;
}

.auth__social .nsl-container {
    margin: 0 !important;
}

.auth__social .nsl-container .nsl-button {
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
}

/* Register link */
.auth__register {
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.auth__register a {
    color: var(--Brand-color);
    text-decoration: underline;
}

.auth__register a:hover {
    text-decoration: underline;
}

/* Anchor styled as a filled button (e.g. login button on confirmation) */
.auth a.button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    background: var(--Brand-color);
    border: 1px solid var(--Brand-color);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    padding: 13px 20px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.auth--center .auth__actions {
    text-align: center;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    background-color: transparent !important;
}

@media (max-width: 540px) {
    .auth {
        padding: 0 16px;
    }
}

/* ============================================================
   Cart (ตะกร้าของฉัน) — classic [woocommerce_cart], custom template
   ============================================================ */
.woocommerce-cart .woocommerce {
    font-family: "ACUATEC", Sans-serif;
}

.cart-title {
    color: var(--text-body);
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 28px;
}

/* Two columns: items left, summary card right */
.cart-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cart-items {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-summary {
    flex: 0 0 420px;
}

/* Items header */
.cart-items__head {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    border-bottom: none;
}

.cart-items__head .cart-col-product {
    flex: 1 1 auto;
    padding-left: 16px;
}

.cart-items__head .cart-col-price {
    flex: 0 0 120px;
    text-align: center;
}

.cart-items__head span {
    font-size: 16px;
    color: var(--Black-600);
    font-weight: 500;
    line-height: 24px;
}

/* Item row */
.cart-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e7e7e7;
    padding: 32px 0;
}

.cart-item__product {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 16px;
}

.cart-item__thumb {
    flex: 0 0 auto;
}

.cart-item__thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 0.84px solid #000000;
    border-radius: 11px;
    display: block;
}

.cart-item__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 16px;
}

.cart-item__titles {
    display: flex;
    flex-direction: column;
}

.cart-item__sku {
    font-weight: 700;
    color: var(--text-body);
    font-size: 16px;
    text-decoration: none;
}

.cart-item__sku:hover {
    color: var(--Brand-color);
}

.cart-item__name {
    color: #888;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cart-item__controls .cart-item__remove {
    color: #000 !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    width: auto !important;
}

.cart-item__controls .cart-item__remove:hover {
    color: #000 !important;
}


/* Quantity stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
}

.qty-stepper .qty-minus,
.qty-stepper .qty-plus {
    border: 0;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
}

.qty-stepper .qty-input {
    width: 28px;
    border: 0;
    background: none;
    text-align: center;
    font-size: 16px;
    color: #000;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    font-weight: 500;
}

.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item__remove {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-body) !important;
    text-decoration: none;
}

.cart-item__remove:hover {
    color: var(--Brand-color) !important;
    background: transparent !important;
}

/* Price column */
.cart-item__price {
    flex: 0 0 120px;
    text-align: center;
    align-self: center;
    color: #3c3c43;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

/* ---- Summary card ---- */
.cart-summary {
    background: #f6f6f6;
    border-radius: 10px;
    padding: 28px 40px;
}

/* Coupon */
.cart-summary__coupon {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary__coupon #coupon_code {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 0;
    border-bottom: 1px solid #d3d3d3;
    background: transparent;
    padding: 0 8px;
    font-size: 16px;
    border-radius: 0;
}

.cart-summary__coupon #coupon_code:focus {
    outline: none;
    border-bottom-color: var(--Brand-color);
}

.cart-summary__coupon #coupon_code::placeholder {
    color: #b0b0b0;
}

.cart-summary__coupon-apply,
.return-to-shop .button.wc-backward {
    flex: 0 0 80px;
    height: 40px;
    background: var(--Brand-color);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all .3s ease;
}

.cart-summary__coupon-apply:hover {
    background: var(--Brand-color-dark);
}

/* Totals */
.cart-summary .cart_totals {
    background: transparent;
    padding: 0;
}

.cart-summary__title {
    color: var(--Black-600);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
}

.cart-summary__table tbody,
.cart-summary__table table,
.woocommerce table.shop_table {
    border: none !important;
}

.cart-summary__table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin: 0;
}

.cart-summary__table th,
.cart-summary__table td {
    border: none !important;
    background: transparent;
    background-color: transparent !important;
    padding: 0 0 24px !important;
    font-size: 16px;
    color: var(--Black-600);
    font-weight: 400;
    font-family: ACUATEC;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;

}

.cart-summary__table th {
    text-align: left;
    width: 30%;
    font-weight: 500 !important;
}

.cart-summary__table td {
    text-align: right;
    font-weight: 600 !important;
}

.cart-summary__table tr.cart-discount th,
.cart-summary__table tr.cart-discount td {
    color: var(--Brand-color);
}

.cart-summary__table tr.shipping th,
.cart-summary__table tr.shipping td {
    border-bottom: 1px solid #dcdde3;

}


.cart-summary__table tr.order-total th {
    font-size: 16px;
    padding-top: 24px !important;
    padding-bottom: 0;
    border-top: 1px solid #DCDDE3 !important;
}

.cart-summary__table tr.order-total td {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-body);
    padding-top: 24px !important;
    padding-bottom: 0;
    border-top: 1px solid #DCDDE3 !important;
}

/* Proceed to checkout — pill, full width */
.cart-summary .wc-proceed-to-checkout {
    padding: 0;
}

.cart-summary .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--Brand-color);
    border: 0;
    border-radius: 40px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 13px;
    margin: 0;
}

.cart-summary .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--Brand-color-dark);
}

a.woocommerce-remove-coupon,
a.shipping-calculator-button {
    color: var(--Brand-color);
    text-decoration: underline;
}

@media (max-width: 899px) {
    .cart-layout {
        flex-direction: column;
    }

    .cart-items,
    .cart-summary {
        width: 100%;
        flex-basis: auto;
    }
}

/* ============================================================
   Checkout — classic [woocommerce_checkout], custom template
   ============================================================ */
.woocommerce-checkout .woocommerce {
    font-family: "ACUATEC", Sans-serif;
}

/* Hide the "Have a coupon?" prompt on checkout (coupons live on the cart page) */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

/* Two columns: form left, order summary card right */
.checkout-layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.checkout-left {
    flex: 1 1 auto;
    min-width: 0;
}

.checkout-right {
    flex: 0 0 480px;
}

/* Sections */
.checkout-section {
    margin-bottom: 40px;
}

.checkout-section__title {
    color: #323232;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    float: none;
    width: auto;
}

/* Fields — single column, first/last side by side */
.woocommerce-checkout .checkout-left .form-row {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    width: 100%;
}

.woocommerce-checkout .checkout-left .form-row-first {
    width: calc(50% - 12px);
    float: left;
}

.woocommerce-checkout .checkout-left .form-row-last {
    width: calc(50% - 12px);
    float: right;
}

.woocommerce-checkout .checkout-left .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout .checkout-left .receipt-fields::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-checkout .checkout-left label {
    display: flex;
    font-size: 16px;
    color: #3e3e3e;
    margin-bottom: 12px;
}

.woocommerce-checkout .checkout-left .required {
    color: #f4364d;
    border: 0;
    text-decoration: none;
}

.woocommerce-checkout .checkout-left .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.woocommerce-checkout .checkout-left input.input-text,
.woocommerce-checkout .checkout-left select,
.woocommerce-checkout .checkout-left textarea,
.woocommerce-checkout .checkout-left .select2-container .select2-selection--single {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    line-height: 1.5;
}

.woocommerce-checkout .checkout-left textarea {
    min-height: 80px;
}

.woocommerce-checkout .checkout-left input.input-text:focus,
.woocommerce-checkout .checkout-left select:focus,
.woocommerce-checkout .checkout-left textarea:focus {
    outline: none;
    border-color: var(--Brand-color);
    box-shadow: 0 0 0 2px rgba(176, 18, 23, .12);
}

.woocommerce-checkout .checkout-left input::placeholder,
.woocommerce-checkout .checkout-left textarea::placeholder {
    color: #aaa;
}

.woocommerce-checkout .checkout-left .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    color: #323232;
}

.woocommerce-checkout .checkout-left .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}

/* Receipt checkbox + revealed fields */
.checkout-receipt .receipt-same-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.checkout-receipt .receipt-same-text {
    color: #323232;
    font-size: 20px;
    font-weight: 700;
}

.checkout-receipt #receipt_same {
    width: 18px;
    height: 18px;
}

.checkout-receipt .receipt-fields {
    margin-top: 30px;
}

/* Order summary card (right) */
.woocommerce-checkout #order_review.checkout-card {
    background: #f6f6f6;
    border-radius: 10px;
    padding: 28px 40px;
}

.woocommerce-checkout #order_review .order-summary__title {
    color: #323232;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 18px;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: 0;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 18px 0;
    border-bottom: 1px solid #dcdde3;
    list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--Brand-color);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline;
    font-weight: 600;
    color: #3e3e3e;
    font-size: 16px;
}

.woocommerce-checkout #payment .payment_box {
    background-color: #ffffff !important;
    color: #515151 !important;
    font-size: 14px;
    margin: 8px 0 0;
    padding: 0;
    border-radius: 12px !important;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom: 1em solid #ffffff !important;
}

.woocommerce-checkout #payment .payment_box::before {
    display: none;
}

/* Place order — pill, full width */
.woocommerce-checkout #payment .place-order {
    padding: 22px 0 0;
}

.woocommerce-checkout #place_order {
    width: 100%;
    background: var(--Brand-color);
    border: 0;
    border-radius: 40px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 14px;
}

.woocommerce-checkout #place_order:hover {
    background: var(--Brand-color-dark);
}

@media (max-width: 899px) {
    .checkout-layout {
        flex-direction: column;
    }

    .checkout-left,
    .checkout-right {
        width: 100%;
        flex-basis: auto;
    }

    .woocommerce-checkout .checkout-left .form-row-first,
    .woocommerce-checkout .checkout-left .form-row-last {
        width: 100%;
        float: none;
    }
}

/* ============================================================
   RESPONSIVE — My Account (Elementor breakpoints)
   Tablet ≤1024px · Mobile ≤767px
   Placed last so it supersedes the earlier 600px rules.
   ============================================================ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {

    /* Order detail / thank-you: keep two columns but narrow the summary card. */
    .order-detail {
        grid-template-columns: 1fr 360px;
        gap: 40px;
    }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {

    /* Page headings */
    .account-title,
    .woocommerce-account .profile__title,
    .woocommerce-account .wishlist__title {
        font-size: 24px;
        line-height: 1.3;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 24px;
    }

    /* ---- Navigation: single row, horizontal scroll ---- */
    .woocommerce-MyAccount-navigation ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0 22px;
        scrollbar-width: none;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    .woocommerce-MyAccount-navigation li a {
        white-space: nowrap;
        padding: 14px 0;
        font-size: 15px;
    }

    /* Keep logout inline at the end of the scroll row (override the old full-width rule). */
    .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin-left: 16px;
        width: auto;
        margin-top: 0;
    }

    .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
        padding: 8px 16px;
        white-space: nowrap;
    }

    /* ---- /my-account/ dashboard ---- */
    .profile__title {
        margin-bottom: 24px;
    }

    /* ---- Edit account form ---- */
    .woocommerce-EditAccountForm,
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        display: block;
    }

    /* ---- /view-order/ + thank-you: stack ---- */
    .order-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .order-detail__info,
    .order-detail__summary {
        width: 100%;
    }

    .order-detail__summary {
        padding: 24px;
    }

    .order-meta li {
        gap: 12px;
    }

    .order-meta__label {
        flex-basis: 130px;
    }

    /* ---- /orders/ table → stacked cards ---- */
    .orders__table thead {
        display: none;
    }

    .orders__table,
    .orders__table tbody,
    .orders__table tr,
    .orders__table td {
        display: block;
        width: 100%;
    }

    .orders__table tr {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .orders__table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
        border: 0;
        padding: 8px 0 !important;
    }

    .orders__table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--text-body);
        text-align: left;
        flex: 0 0 auto;
    }

    .orders__table tbody td {
        border: none !important;
    }

    /* Product cell keeps its name + short-desc block, full width, no label. */
    .orders__table td.col-product {
        justify-content: flex-start;
        text-align: left;
        padding: 0 0 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border) !important;
    }

    .orders__table td.col-product::before {
        display: none;
    }

    .orders__view {
        white-space: nowrap;
    }

    .orders__view,
    .address-block__edit,
    .order-detail__back {
        padding: 6px 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .order-status {
        padding: 6px 12px;
        font-size: 14px;
        font-weight: 600;
        width: auto;
    }

    /* ---- /wishlist/ table → stacked cards ---- */
    .wishlist__table thead {
        display: none;
    }

    .wishlist__table,
    .wishlist__table tbody,
    .wishlist__table tr,
    .wishlist__table td {
        display: block;
        width: 100%;
    }

    .wishlist__table tr {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px;
        margin-bottom: 16px;
    }

    .wishlist__table td {
        border: 0;
        padding: 0;
    }

    .wishlist__table td.col-product {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        border: none !important;
    }

    .wishlist__table td.col-price {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 0 0;
        margin-top: 0;
        border-top: none;
        border-bottom: none !important;
        font-size: 14px;
        line-height: normal;
        width: auto;
        margin-left: 34px;
        gap: 8px;
    }

    .wishlist__table td.col-price::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--text-body);
    }

    .wishlist__thumb img {
        width: 70px;
        height: 70px;
    }
}

/* ============================================================
   Header cart-icon count badge
   ============================================================ */
.cart-icon {
    position: relative;
}

.cart-icon .cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    background: var(--Brand-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    pointer-events: none;
}

.cart-icon .cart-count.is-empty {
    display: none;
}

div.nsl-container.nsl-container-block .nsl-container-buttons {
    width: 100%;
    align-items: center;
}

div.nsl-container .nsl-button-google[data-skin="light"] {
    box-shadow: none !important;
    color: #000000;
    border-radius: 8px;
    border: none !important;
}

.nsl-button.nsl-button-default.nsl-button-google {
    background: var(--Secondary-50) !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

div.nsl-container .nsl-button-google div.nsl-button-label-container {
    font-family: "ACUATEC", Helvetica, Arial, sans-serif;
}

div.nsl-container .nsl-button-default div.nsl-button-label-container {
    flex: none !important;

}

/* ============================================================
   Register form — visible labels + required mark + 2-col name row
   (scoped to .woocommerce-form-register so the login form is untouched)
   ============================================================ */
.woocommerce-form-register .form-row {
    margin: 0 0 16px;
}

.woocommerce-form-register label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 7px;
}

.woocommerce-form-register .required {
    color: var(--Brand-color);
    border: 0;
    text-decoration: none;
}

/* ชื่อ / นามสกุล on one row */
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.woocommerce-form-register .form-row-first {
    margin-right: 14px;
}

@media (max-width: 767px) {

    .woocommerce-form-register .form-row-first,
    .woocommerce-form-register .form-row-last {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* ============================================================
   Product Overlay Carousel  [product-overlay-carousel]
   Card = product image; desktop hover reveals name / short /
   price / arrow. On touch devices the overlay stays visible.
   ============================================================ */
.cp-poc {
    position: relative;
    width: 100%;
}

.cp-poc .swiper {
    width: 100%;
    overflow: hidden;
}

/* Until Swiper inits, lay slides out in a flex row so there is no
   unstyled full-width stack flash. */
.cp-poc:not(.cp-poc--ready) .swiper-wrapper {
    display: flex;
    gap: 12px;
}

.cp-poc:not(.cp-poc--ready) .cp-poc__slide {
    flex: 0 0 auto;
    width: calc((100% - 36px) / 4);
}

.cp-poc__slide {
    height: auto;
}

/* ---- Card ---- */
.cp-poc__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 239 / 325;
    border-radius: 0;
    overflow: hidden;
    background: var(--Secondary-50);
    text-decoration: none;
    color: var(--text-body);
}

.cp-poc__media,
.cp-poc__media img,
.cp-poc__img {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-poc__media img,
.cp-poc__img {
    object-fit: cover;
    transition: transform .5s ease;
}

.cp-poc__card:hover .cp-poc__img {
    transform: scale(1.04);
}

/* ---- Overlay: compact box bottom-left of the image ---- */
.cp-poc__overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    background: #d7d7d7;
    border-radius: 8px;
    color: #000;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.cp-poc__card:hover .cp-poc__overlay,
.cp-poc__card:focus-visible .cp-poc__overlay {
    opacity: 1;
    transform: none;
}

.cp-poc__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cp-poc__name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-poc__short {
    font-size: 11px;
    line-height: 1.2;
    color: #000;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-poc__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.cp-poc__price .woocommerce-Price-amount {
    color: inherit;
}

/* Show the sale price first, struck regular price after it (design order). */
.cp-poc__price ins {
    order: 1;
    text-decoration: none;
}

.cp-poc__price del {
    order: 2;
    opacity: .5;
    font-weight: 400;
    font-size: 11px;
}

/* Outlined circle-arrow button, vertically centered next to the text. */
.cp-poc__arrow {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-poc__arrow svg,
.cp-poc__arrow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Prev / next navigation (uses the Frame 57 circle-arrow SVG) ---- */
.cp-poc__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
}

.cp-poc__nav svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-poc__nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.cp-poc__nav--prev {
    left: 10px;
}

.cp-poc__nav--prev svg {
    transform: scaleX(-1);
}

.cp-poc__nav--next {
    right: 10px;
}

.cp-poc__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* ---- Touch devices: no hover, so keep the overlay visible ---- */
@media (hover: none) {
    .cp-poc__overlay {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    .cp-poc__name {
        font-size: 15px;
    }

    .cp-poc__price {
        font-size: 16px;
    }

    .cp-poc__nav {
        width: 34px;
        height: 34px;
    }
}

/* ============================================================
   Product card  (cp_render_product_card) + Product Carousel
   [cp_product_carousel]  — related / cross-sell / tag sliders.
   The card partial is shared with the archive grid (later).
   ============================================================ */

/* ---- Shared product card ---- */
.cp-pc-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.cp-pc-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 278 / 285;
    padding: 24px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    overflow: hidden;
}
.cp-pc-card__media img,
.cp-pc-card__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .4s ease;
}
/* .cp-pc-card:hover .cp-pc-card__img {
    transform: scale(1.04);
} */

.cp-pc-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-pc-card__badge {
    display: block;
}
.cp-pc-card__badge img {
    display: block;
    height: 40px;
    width: auto;
}

.cp-pc-card__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #000;
    text-decoration: none;
}
.cp-pc-card__title:hover {
    color: var(--Brand-color);
}

.cp-pc-card__desc {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp-pc-card__price {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #000;
}
.cp-pc-card__price del {
    opacity: .5;
    font-weight: 400;
    font-size: 15px;
    margin-left: 6px;
}
.cp-pc-card__price ins {
    text-decoration: none;
}

/* Round gray add-to-cart button */
.cp-pc-card__cart {
    margin-top: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent!important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    border: none;
    padding: 0!important;
}
.cp-pc-card__cart:hover {
    background: var(--Brand-color);
}
.cp-pc-card__cart svg,
.cp-pc-card__cart img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}
/* Neutralise theme .button styling on the cart anchor */
.cp-pc-card__cart.button {
    padding: 0;
    color: #fff;
    box-shadow: none;
}
.cp-pc-card__cart.loading {
    opacity: .6;
    pointer-events: none;
}
.cp-pc-card__cart.added {
    background: var(--Brand-color);
}
/* Hide Woo's auto-injected "View cart" link after AJAX add */
.cp-pc-card__cart + .added_to_cart {
    display: none !important;
}

/* ---- Carousel shell ---- */
.cp-pc-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cp-pc__title {
    margin: 0;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    color: #000;
}

.cp-pc {
    position: relative;
    width: 100%;
}
.cp-pc .swiper {
    width: 100%;
    overflow: hidden;
}
.cp-pc__slide {
    height: auto;
}

/* Pre-init: lay slides in a row so there's no full-width flash
   (gaps mirror the Swiper spaceBetween: desktop 56 / tablet 24 / mobile 16) */
.cp-pc:not(.cp-pc--ready) .swiper-wrapper {
    display: flex;
    gap: 56px;
}
.cp-pc:not(.cp-pc--ready) .cp-pc__slide {
    flex: 0 0 auto;
    width: calc((100% - 168px) / 4);
}

/* ---- Prev / next navigation (Frame 57 circle-arrow), centered on image ---- */
.cp-pc__nav {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
}
.cp-pc__nav svg {
    display: block;
    width: 100%;
    height: 100%;
}
.cp-pc__nav:hover {
    transform: translateY(-50%) scale(1.08);
}
.cp-pc__nav--prev {
    left: 12px;
}
.cp-pc__nav--prev svg {
    transform: scaleX(-1);
}
.cp-pc__nav--next {
    right: 12px;
}
.cp-pc__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .cp-pc:not(.cp-pc--ready) .swiper-wrapper {
        gap: 24px;
    }
    .cp-pc:not(.cp-pc--ready) .cp-pc__slide {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .cp-pc__title {
        font-size: 24px;
        line-height: 36px;
    }
    /* Pre-init peek: ~2.3 compact cards visible */
    .cp-pc:not(.cp-pc--ready) .swiper-wrapper {
        gap: 16px;
    }
    .cp-pc:not(.cp-pc--ready) .cp-pc__slide {
        width: 42%;
    }
    /* No arrows on mobile — swipe only */
    .cp-pc__nav {
        display: none;
    }

    /* Compact card */
    .cp-pc-card {
        gap: 8px;
    }
    .cp-pc-card__media {
        padding: 14px;
        border-radius: 7px;
    }
    .cp-pc-card__badge img {
        height: 20px;
    }
    .cp-pc-card__title {
        font-size: 16px;
    }
    .cp-pc-card__desc {
        font-size: 14px;
        line-height: 17.5px;
    }
    .cp-pc-card__price {
        font-size: 16px;
    }
    .cp-pc-card__cart {
        width: 24px;
        height: 24px;
        margin-top: 2px;
    }
    .cp-pc-card__cart svg,
    .cp-pc-card__cart img {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================
   Product PDF download links  [cp_product_files]
   Horizontal row of underlined brand-red links with PDF icon.
   ============================================================ */
.cp-files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cp-files__item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cp-files__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--Brand-color);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: underline!important;
    text-underline-position: from-font;
}
.cp-files__link:hover {
    color: var(--Brand-color-dark);
}
.cp-files__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: block;
}

/* ============================================================
   Hide Elementor (nested) accordion items with empty content.
   When a Text Editor is bound to an ACF field that's empty,
   Elementor renders the item with no widget inside — this hides
   the whole <details> so the header doesn't show.
   Scope it by adding the CSS class "cp-accordion" to the
   Nested Accordion widget (Advanced → CSS Classes).
   ============================================================ */
.cp-accordion .e-n-accordion-item:not(:has(.elementor-widget)) {
    display: none;
}

/* ============================================================
   PDP product gallery  [cp_product_gallery]
   Vertical thumbnail strip + main image + circle nav arrows.
   ============================================================ */
.cp-gallery {
    display: flex;
    align-items: stretch;
    gap: 26px;
}

/* ---- thumbnails (left, vertical, scrollable) ---- */
.cp-gallery__thumbs {
    /* flex: 0 0 152px;
    width: 152px;
    min-height: 0; */
    width: 100%;
    max-width: 152px;
    min-width: 110px;
    min-height: 0;
}
.cp-gallery__thumbs-swiper {
    height: 100%;
    /* max-height: 604px; */
    max-height: 40vw;
}
.swiper-slide.cp-gallery__thumb {
    /* height: 141px; */
    height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease;
    aspect-ratio: 1 / 1;
}
.cp-gallery__thumb.swiper-slide-thumb-active {
    border-color: var(--Brand-color);
    border-width: 2px;
}
.cp-gallery__thumb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
}

/* thumb-strip arrow — hidden on desktop (vertical scroll); shown on tablet/mobile */
.cp-gallery__thumbs-nav {
    display: none;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    color: var(--Black-600);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.cp-gallery__thumbs-nav svg {
    width: 16px;
    height: 16px;
    display: block;
}
.cp-gallery__thumbs-nav.swiper-button-disabled {
    opacity: .3;
    pointer-events: none;
}

/* ---- main image ---- */
.cp-gallery__main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}
.cp-gallery__main-swiper {
    aspect-ratio: 1/1;
    background: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
}
.cp-gallery__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.cp-gallery__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
}

/* ---- nav arrows ---- */
.cp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
}
.cp-gallery__nav svg {
    display: block;
    width: 100%;
    height: 100%;
}
.cp-gallery__nav:hover {
    transform: translateY(-50%) scale(1.08);
}
.cp-gallery__nav--prev {
    left: 16px;
}
.cp-gallery__nav--prev svg {
    transform: scaleX(-1);
}
.cp-gallery__nav--next {
    right: 16px;
}
.cp-gallery__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* ---- tablet + mobile: thumbnails become a horizontal strip below the main,
   with a next arrow at the right; main side-arrows hidden ---- */
@media (max-width: 1024px) {
    .cp-gallery {
        flex-direction: column;
        gap: 12px;
    }
    .cp-gallery__main {
        order: 1;
    }
    .cp-gallery__thumbs {
        order: 2;
        flex: none;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
    }
    .cp-gallery__thumbs-swiper {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        height: auto;
        max-height: none;
    }
    .swiper-slide.cp-gallery__thumb {
        width: 78px;
    }
    /* main side arrows off — navigate via the thumb-strip arrow + swipe */
    .cp-gallery__nav {
        display: none;
    }
    .cp-gallery__thumbs-nav--next {
        display: inline-flex;
    }
}