html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: #FBF7EE;
}

.te-container {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.te-serif {
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

.te-focus-ring:focus {
    outline: 2px solid #B47A24;
    outline-offset: 3px;
}

.custom-logo {
    max-height: 64px;
    width: auto;
}

.te-header-logo {
    max-height: 64px;
    width: auto;
}

.te-footer-logo {
    max-width: 220px;
    height: auto;
}

.te-book-cover {
    box-shadow: 0 24px 60px rgba(6, 59, 58, 0.24);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: 9999px;
    background: #063B3A;
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 1.4rem;
    transition: all 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #B47A24;
    color: #ffffff;
}



/* Footer Editorial Tercera Edición */

.te-site-footer {
    background: #063B3A;
    color: #ffffff;
    margin-top: 0;
}

.te-footer-grid {
    display: grid;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .te-footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
        align-items: flex-start;
    }
}

.te-footer-logo-link {
    display: inline-block;
}

.te-footer-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    background: #FBF7EE;
    border-radius: 1.25rem;
    padding: 0.75rem;
}

.te-footer-description {
    margin-top: 1.5rem;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.te-footer-title {
    margin-bottom: 1rem;
    color: #E6C782;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.te-footer-menu,
.te-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.te-footer-menu li,
.te-footer-contact li {
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.te-footer-menu a,
.te-footer-contact a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.te-footer-menu a:hover,
.te-footer-contact a:hover {
    color: #E6C782;
}

.te-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.te-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .te-footer-bottom-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


/* WooCommerce - Catálogo editorial de libros */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.te-book-card img {
    aspect-ratio: 2 / 3;
    object-fit: contain;
    background: transparent;
}

.te-book-cover {
    object-fit: contain;
    background: transparent;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.te-shop-ordering select,
.woocommerce-ordering select {
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.75rem 1rem;
    color: #173A38;
    font-size: 0.9rem;
    outline: none;
}

.te-shop-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.te-shop-pagination .page-numbers li {
    margin: 0;
}

.te-shop-pagination .page-numbers a,
.te-shop-pagination .page-numbers span {
    display: inline-flex;
    min-width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(180, 122, 36, 0.35);
    color: #173A38;
    text-decoration: none;
}

.te-shop-pagination .page-numbers .current {
    background: #063B3A;
    color: #ffffff;
    border-color: #063B3A;
}

/* WooCommerce - Ficha individual de libro */

.te-single-cart form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.te-single-cart form.cart .quantity input.qty {
    width: 5rem;
    height: 3rem;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 999px;
    text-align: center;
    color: #173A38;
    background: #FBF7EE;
}

.te-single-cart form.cart button.single_add_to_cart_button {
    min-height: 3rem;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.te-single-cart form.cart button.single_add_to_cart_button:hover {
    background: #B47A24;
}

.woocommerce div.product form.cart {
    margin-bottom: 0;
}

/* Productos variables */

.te-single-cart table.variations {
    margin-bottom: 1rem;
    width: 100%;
}

.te-single-cart table.variations td,
.te-single-cart table.variations th {
    display: block;
    padding: 0;
    text-align: left;
}

.te-single-cart table.variations label {
    display: block;
    margin-bottom: 0.5rem;
    color: #173A38;
    font-weight: 700;
}

.te-single-cart table.variations select {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 999px;
    background: #FBF7EE;
    padding: 0.85rem 1rem;
    color: #173A38;
    outline: none;
}

.te-single-cart .reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    color: #B47A24;
    font-size: 0.875rem;
    text-decoration: none;
}

.te-single-cart .woocommerce-variation-price {
    margin: 1rem 0;
    color: #063B3A;
    font-size: 1.5rem;
    font-weight: 700;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #B47A24;
    background: #ffffff;
    color: #173A38;
}


/* Header editorial */

.te-main-menu,
.te-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.te-main-menu a,
.te-mobile-menu a {
    color: #063B3A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.te-main-menu a:hover,
.te-mobile-menu a:hover {
    color: #B47A24;
}

.te-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.te-header-cart:hover {
    background: #B47A24;
    color: #ffffff;
    transform: translateY(-1px);
}

.te-mobile-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.te-cart-count {
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #B47A24;
    color: #ffffff;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.te-header-cart:hover .te-cart-count,
.te-mobile-cart:hover .te-cart-count {
    background: #ffffff;
    color: #063B3A;
}


/* WooCommerce - Carrito editorial */

.te-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.te-cart-table th {
    padding: 1.25rem 1rem;
    background: #063B3A;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
}

.te-cart-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    color: #173A38;
    vertical-align: middle;
}

.te-cart-table a {
    color: #063B3A;
    text-decoration: none;
    font-weight: 700;
}

.te-cart-table a:hover {
    color: #B47A24;
}

.te-cart-thumb {
    width: 72px !important;
    height: 108px !important;
    object-fit: contain !important;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(6, 59, 58, 0.16);
}

.te-cart-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 999px;
    background: #F7F1E5;
    color: #6F1D1B !important;
    font-size: 1.25rem;
    line-height: 1;
}

.te-cart-remove:hover {
    background: #6F1D1B;
    color: #ffffff !important;
}

.te-cart-table .quantity input.qty {
    width: 5rem;
    height: 2.75rem;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 999px;
    text-align: center;
    background: #FBF7EE;
    color: #173A38;
}

.te-cart-table .actions {
    background: #FBF7EE;
}

.te-cart-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.te-cart-coupon input {
    min-height: 2.75rem;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 999px;
    padding: 0 1rem;
    background: #ffffff;
    color: #173A38;
}

.te-cart-totals .cart_totals {
    width: 100% !important;
    float: none !important;
    border-radius: 2rem;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

.te-cart-totals .cart_totals h2 {
    margin-bottom: 1.5rem;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 2rem;
    color: #063B3A;
}

.te-cart-totals table {
    width: 100%;
}

.te-cart-totals th,
.te-cart-totals td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    color: #173A38;
}

.te-cart-totals .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    justify-content: center;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.te-cart-totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: #B47A24;
    color: #ffffff;
}

/* Mobile carrito */

@media (max-width: 767px) {
    .te-cart-table thead {
        display: none;
    }

    .te-cart-table,
    .te-cart-table tbody,
    .te-cart-table tr,
    .te-cart-table td {
        display: block;
        width: 100%;
    }

    .te-cart-table tr {
        padding: 1rem;
        border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    }

    .te-cart-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 0;
        border-bottom: none;
    }

    .te-cart-table td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #063B3A;
    }

    .te-cart-table .product-remove,
    .te-cart-table .product-thumbnail {
        justify-content: flex-start;
    }

    .te-cart-table .product-remove::before,
    .te-cart-table .product-thumbnail::before {
        display: none;
    }

    .te-cart-table .actions {
        display: block;
    }
}

/* WooCommerce - Checkout editorial */

.te-checkout-form .form-row {
    margin-bottom: 1.25rem;
}

.te-checkout-form label {
    margin-bottom: 0.45rem;
    color: #063B3A;
    font-weight: 700;
}

.te-checkout-form input.input-text,
.te-checkout-form textarea,
.te-checkout-form select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 1rem;
    background: #FBF7EE;
    padding: 0.8rem 1rem;
    color: #173A38;
    outline: none;
}

.te-checkout-form input.input-text:focus,
.te-checkout-form textarea:focus,
.te-checkout-form select:focus {
    border-color: #B47A24;
    box-shadow: 0 0 0 3px rgba(180, 122, 36, 0.15);
}

.te-checkout-form .select2-container .select2-selection--single {
    height: 3rem;
    border: 1px solid rgba(180, 122, 36, 0.35);
    border-radius: 1rem;
    background: #FBF7EE;
}

.te-checkout-form .select2-container .select2-selection__rendered {
    line-height: 3rem;
    color: #173A38;
    padding-left: 1rem;
}

.te-checkout-form .select2-container .select2-selection__arrow {
    height: 3rem;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    color: #173A38;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
}

.woocommerce-checkout-payment {
    margin-top: 1.5rem;
    border-radius: 1.5rem;
    background: #FBF7EE !important;
    padding: 1.25rem;
}

.woocommerce-checkout-payment ul.payment_methods {
    border-bottom: 1px solid rgba(180, 122, 36, 0.2) !important;
}

.woocommerce-checkout-payment .place-order {
    margin-bottom: 0;
    padding-bottom: 0;
}

.woocommerce-checkout-payment button#place_order {
    width: 100%;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-weight: 800;
    transition: background 0.2s ease;
}

.woocommerce-checkout-payment button#place_order:hover {
    background: #B47A24;
}

.woocommerce form .form-row .required {
    color: #B47A24;
}

.woocommerce-NoticeGroup,
.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #B47A24;
    background: #ffffff;
    color: #173A38;
}


/* =========================================================
   CARRITO EDITORIAL - TERCERA EDICIÓN
========================================================= */

.te-cart-page,
.woocommerce-cart-form {
    width: 100%;
}

/* Contenedor principal de tabla */
.te-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #173A38;
}

/* Cabecera */
.te-cart-table thead th {
    padding: 1.15rem 1rem;
    background: #063B3A;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    border: none;
}

.te-cart-table thead th:first-child {
    border-top-left-radius: 2rem;
}

.te-cart-table thead th:last-child {
    border-top-right-radius: 2rem;
}

/* Celdas */
.te-cart-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    vertical-align: middle;
    color: #173A38;
    font-size: 0.95rem;
}

/* Última fila antes de acciones */
.te-cart-table tbody tr.cart_item:last-of-type td {
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
}

/* Enlaces */
.te-cart-table a {
    color: #063B3A;
    text-decoration: none;
    font-weight: 800;
}

.te-cart-table a:hover {
    color: #B47A24;
}

/* Imagen portada */
.te-cart-thumb {
    width: 82px !important;
    height: 122px !important;
    max-width: 82px !important;
    object-fit: contain !important;
    border-radius: 0.65rem;
    background: #F7F1E5;
    box-shadow: 0 14px 32px rgba(6, 59, 58, 0.16);
}

/* Nombre producto */
.te-cart-product-name {
    max-width: 390px;
    line-height: 1.5;
}

.te-cart-product-name a {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #063B3A;
}

.te-cart-product-name dl.variation {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #65736F;
}

.te-cart-product-name dl.variation dt,
.te-cart-product-name dl.variation dd {
    display: inline;
    margin: 0;
}

.te-cart-product-name dl.variation dd p {
    display: inline;
    margin: 0;
}

/* Botón eliminar */
.te-cart-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.1rem !important;
    height: 2.1rem !important;
    border-radius: 999px;
    background: #F7F1E5;
    color: #6F1D1B !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.te-cart-remove:hover {
    background: #6F1D1B;
    color: #ffffff !important;
}

/* Cantidad */
.te-cart-table .quantity {
    display: inline-flex;
}

.te-cart-table .quantity input.qty {
    width: 5rem;
    height: 2.85rem;
    border: 1px solid rgba(180, 122, 36, 0.38);
    border-radius: 999px;
    background: #FBF7EE;
    color: #173A38;
    text-align: center;
    font-weight: 700;
    outline: none;
}

.te-cart-table .quantity input.qty:focus {
    border-color: #B47A24;
    box-shadow: 0 0 0 3px rgba(180, 122, 36, 0.14);
}

/* Precio y subtotal */
.te-cart-table .product-price,
.te-cart-table .product-subtotal {
    font-weight: 800;
    color: #063B3A;
    white-space: nowrap;
}

/* Fila acciones */
.te-cart-table .actions {
    padding: 1.5rem !important;
    background: #FBF7EE;
    border-bottom: none;
}

/* Cupón */
.te-cart-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.te-cart-coupon input.input-text {
    min-height: 3rem;
    min-width: 240px;
    border: 1px solid rgba(180, 122, 36, 0.38);
    border-radius: 999px;
    background: #ffffff;
    padding: 0 1.1rem;
    color: #173A38;
    outline: none;
}

.te-cart-coupon input.input-text:focus {
    border-color: #B47A24;
    box-shadow: 0 0 0 3px rgba(180, 122, 36, 0.14);
}

/* Botones carrito */
.te-cart-table .button,
.woocommerce-cart-form .button,
.te-cart-coupon .button {
    min-height: 3rem;
    border: none !important;
    border-radius: 999px !important;
    background: #063B3A !important;
    color: #ffffff !important;
    padding: 0.8rem 1.35rem !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.te-cart-table .button:hover,
.woocommerce-cart-form .button:hover,
.te-cart-coupon .button:hover {
    background: #B47A24 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Botón actualizar alineado */
.te-cart-table .actions > button[name="update_cart"] {
    margin-top: 0.25rem;
}

/* Bloque compra segura */
.te-cart-page-info,
.te-cart-secure-box {
    border-radius: 2rem;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

/* Totales carrito */
.te-cart-totals .cart_totals {
    width: 100% !important;
    float: none !important;
    border-radius: 2rem;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

.te-cart-totals .cart_totals h2 {
    margin: 0 0 1.5rem 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    color: #063B3A;
}

.te-cart-totals table {
    width: 100%;
    border-collapse: collapse;
}

.te-cart-totals th,
.te-cart-totals td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    color: #173A38;
    font-size: 0.95rem;
    vertical-align: top;
}

.te-cart-totals th {
    text-align: left;
    font-weight: 800;
}

.te-cart-totals td {
    text-align: right;
}

.te-cart-totals .order-total th,
.te-cart-totals .order-total td {
    color: #063B3A;
    font-size: 1.15rem;
    font-weight: 900;
}

/* Botón finalizar compra */
.te-cart-totals .wc-proceed-to-checkout {
    padding: 1.25rem 0 0 0;
}

.te-cart-totals .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #063B3A;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
}

.te-cart-totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: #B47A24;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Shipping calculator / textos internos */
.te-cart-totals .woocommerce-shipping-destination,
.te-cart-totals .woocommerce-shipping-calculator {
    font-size: 0.85rem;
    color: #65736F;
    line-height: 1.5;
}

.te-cart-totals .shipping-calculator-button {
    color: #B47A24;
    font-weight: 800;
    text-decoration: none;
}

/* Mensajes WooCommerce dentro carrito */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin-bottom: 1.5rem;
    border-top: 0 !important;
    border-left: 5px solid #B47A24;
    border-radius: 1.25rem;
    background: #ffffff;
    color: #173A38;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px rgba(6, 59, 58, 0.08);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* Estado carrito vacío */
.te-empty-cart-box {
    border-radius: 2rem;
    background: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

/* =========================================================
   RESPONSIVE CARRITO
========================================================= */

@media (max-width: 767px) {
    .te-cart-table {
        display: block;
        background: transparent;
    }

    .te-cart-table thead {
        display: none;
    }

    .te-cart-table tbody,
    .te-cart-table tr,
    .te-cart-table td {
        display: block;
        width: 100%;
    }

    .te-cart-table tbody tr.cart_item {
        margin-bottom: 1.25rem;
        border-radius: 1.5rem;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 14px 34px rgba(6, 59, 58, 0.08);
    }

    .te-cart-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(180, 122, 36, 0.12);
    }

    .te-cart-table tbody td:last-child {
        border-bottom: 0;
    }

    .te-cart-table tbody td::before {
        content: attr(data-title);
        flex: 0 0 auto;
        color: #063B3A;
        font-size: 0.85rem;
        font-weight: 900;
    }

    .te-cart-table .product-remove,
    .te-cart-table .product-thumbnail,
    .te-cart-table .product-name {
        display: block;
    }

    .te-cart-table .product-remove::before,
    .te-cart-table .product-thumbnail::before,
    .te-cart-table .product-name::before {
        display: none;
    }

    .te-cart-table .product-remove {
        text-align: right;
        border-bottom: 0;
    }

    .te-cart-table .product-thumbnail {
        text-align: center;
    }

    .te-cart-table .product-thumbnail a {
        display: inline-block;
    }

    .te-cart-thumb {
        width: 120px !important;
        height: 180px !important;
        max-width: 120px !important;
        margin-inline: auto;
    }

    .te-cart-product-name {
        max-width: 100%;
        text-align: center;
    }

    .te-cart-product-name a {
        font-size: 1.25rem;
    }

    .te-cart-table .actions {
        display: block;
        border-radius: 1.5rem;
        background: #ffffff;
        padding: 1rem !important;
        box-shadow: 0 14px 34px rgba(6, 59, 58, 0.08);
    }

    .te-cart-table .actions::before {
        display: none;
    }

    .te-cart-coupon {
        display: grid;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .te-cart-coupon input.input-text {
        width: 100%;
        min-width: 0;
    }

    .te-cart-table .button,
    .woocommerce-cart-form .button,
    .te-cart-coupon .button {
        width: 100%;
    }

    .te-cart-totals .cart_totals {
        padding: 1.5rem;
    }

    .te-cart-totals td {
        text-align: right;
    }
}



/* =========================================================
   CHECKOUT EDITORIAL - TERCERA EDICIÓN
========================================================= */

.te-checkout-page {
    width: 100%;
}

/* Layout principal checkout */
.te-checkout-page form.checkout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .te-checkout-page form.checkout {
        grid-template-columns: minmax(0, 1fr) 430px;
        align-items: flex-start;
    }
}

/* Login/cupón superior */
.te-checkout-page .woocommerce-form-login-toggle,
.te-checkout-page .woocommerce-form-coupon-toggle {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.te-checkout-page .woocommerce-info {
    border-top: 0 !important;
    border-left: 5px solid #B47A24;
    border-radius: 1.25rem;
    background: #ffffff;
    color: #173A38;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px rgba(6, 59, 58, 0.08);
}

.te-checkout-page .woocommerce-info::before {
    display: none !important;
}

.te-checkout-page .woocommerce-info a {
    color: #B47A24;
    font-weight: 800;
    text-decoration: none;
}

/* Columnas WooCommerce */
.te-checkout-page #customer_details {
    display: block;
    border-radius: 2rem;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

.te-checkout-page .col2-set {
    width: 100%;
}

.te-checkout-page .col2-set .col-1,
.te-checkout-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
}

/* Títulos internos */
.te-checkout-page h3,
.te-checkout-page #order_review_heading {
    margin: 0 0 1.5rem 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    color: #063B3A;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.te-checkout-page #order_review_heading {
    display: none;
}

/* Campos */
.te-checkout-page .form-row {
    margin-bottom: 1.15rem;
    padding: 0;
}

.te-checkout-page label {
    display: block;
    margin-bottom: 0.45rem;
    color: #063B3A;
    font-size: 0.95rem;
    font-weight: 800;
}

.te-checkout-page abbr.required {
    color: #B47A24;
    text-decoration: none;
}

.te-checkout-page input.input-text,
.te-checkout-page textarea,
.te-checkout-page select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(180, 122, 36, 0.38);
    border-radius: 1rem;
    background: #FBF7EE;
    padding: 0.8rem 1rem;
    color: #173A38;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.te-checkout-page textarea {
    min-height: 7rem;
    resize: vertical;
}

.te-checkout-page input.input-text:focus,
.te-checkout-page textarea:focus,
.te-checkout-page select:focus {
    border-color: #B47A24;
    box-shadow: 0 0 0 3px rgba(180, 122, 36, 0.14);
}

/* Select2 país/comuna/región */
.te-checkout-page .select2-container {
    width: 100% !important;
}

.te-checkout-page .select2-container .select2-selection--single {
    height: 3rem;
    border: 1px solid rgba(180, 122, 36, 0.38);
    border-radius: 1rem;
    background: #FBF7EE;
}

.te-checkout-page .select2-container .select2-selection__rendered {
    line-height: 3rem;
    color: #173A38;
    padding-left: 1rem;
    padding-right: 2.5rem;
}

.te-checkout-page .select2-container .select2-selection__arrow {
    height: 3rem;
    right: 0.75rem;
}

/* Checkbox */
.te-checkout-page input[type="checkbox"] {
    accent-color: #063B3A;
}

/* Order review */
.te-checkout-page #order_review {
    border-radius: 2rem;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

@media (min-width: 1024px) {
    .te-checkout-page #order_review {
        position: sticky;
        top: 8rem;
    }
}

.te-checkout-page #order_review::before {
    content: "Resumen de compra";
    display: block;
    margin-bottom: 1.5rem;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    color: #063B3A;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Tabla resumen */
.te-checkout-page .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    color: #173A38;
    font-size: 0.95rem;
}

.te-checkout-page .woocommerce-checkout-review-order-table th,
.te-checkout-page .woocommerce-checkout-review-order-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(180, 122, 36, 0.18);
    vertical-align: top;
}

.te-checkout-page .woocommerce-checkout-review-order-table th {
    text-align: left;
    font-weight: 900;
    color: #063B3A;
}

.te-checkout-page .woocommerce-checkout-review-order-table td {
    text-align: right;
}

.te-checkout-page .woocommerce-checkout-review-order-table .product-name {
    text-align: left;
    font-weight: 700;
}

.te-checkout-page .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    white-space: nowrap;
}

.te-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.te-checkout-page .woocommerce-checkout-review-order-table .order-total td {
    color: #063B3A;
    font-size: 1.1rem;
    font-weight: 900;
}

/* Métodos de envío */
.te-checkout-page ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}

.te-checkout-page ul#shipping_method li {
    margin-bottom: 0.5rem;
    color: #173A38;
    font-size: 0.9rem;
    line-height: 1.5;
}

.te-checkout-page .woocommerce-shipping-destination,
.te-checkout-page .woocommerce-shipping-calculator {
    margin-top: 0.75rem;
    color: #65736F;
    font-size: 0.85rem;
    line-height: 1.5;
}

.te-checkout-page .shipping-calculator-button {
    color: #B47A24;
    font-weight: 800;
    text-decoration: none;
}

/* Métodos de pago */
.te-checkout-page #payment {
    margin-top: 1.5rem;
    border-radius: 1.5rem;
    background: #FBF7EE !important;
    padding: 1.25rem;
}

.te-checkout-page #payment ul.payment_methods {
    border-bottom: 1px solid rgba(180, 122, 36, 0.2) !important;
    padding: 0 0 1rem 0;
}

.te-checkout-page #payment ul.payment_methods li {
    color: #173A38;
    line-height: 1.6;
}

.te-checkout-page #payment div.payment_box {
    border-radius: 1rem;
    background: #ffffff !important;
    color: #173A38 !important;
    padding: 1rem;
}

.te-checkout-page #payment div.payment_box::before {
    border-bottom-color: #ffffff !important;
}

/* Términos y privacidad */
.te-checkout-page .woocommerce-privacy-policy-text {
    margin-top: 1rem;
    color: #65736F;
    font-size: 0.85rem;
    line-height: 1.6;
}

.te-checkout-page .woocommerce-privacy-policy-text a,
.te-checkout-page .woocommerce-terms-and-conditions-checkbox-text a {
    color: #B47A24;
    font-weight: 800;
    text-decoration: none;
}

/* Botón realizar pedido */
.te-checkout-page #place_order {
    width: 100%;
    min-height: 3.25rem;
    border: none !important;
    border-radius: 999px !important;
    background: #063B3A !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.te-checkout-page #place_order:hover {
    background: #B47A24 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Cupón checkout */
.te-checkout-page .checkout_coupon {
    grid-column: 1 / -1;
    border: 0 !important;
    border-radius: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(6, 59, 58, 0.10);
}

.te-checkout-page .checkout_coupon .form-row {
    margin-bottom: 0;
}

.te-checkout-page .checkout_coupon button {
    min-height: 3rem;
    border-radius: 999px !important;
    background: #063B3A !important;
    color: #ffffff !important;
    padding: 0.8rem 1.35rem !important;
    font-weight: 800 !important;
}

/* Errores checkout */
.te-checkout-page .woocommerce-NoticeGroup {
    grid-column: 1 / -1;
}

.te-checkout-page .woocommerce-error {
    border-top: 0 !important;
    border-left: 5px solid #6F1D1B;
    border-radius: 1.25rem;
    background: #ffffff;
    color: #6F1D1B;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px rgba(6, 59, 58, 0.08);
}

.te-checkout-page .woocommerce-error::before {
    display: none !important;
}

.te-checkout-page .woocommerce-error li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 767px) {
    .te-checkout-page #customer_details,
    .te-checkout-page #order_review {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .te-checkout-page h3,
    .te-checkout-page #order_review::before {
        font-size: 1.65rem;
    }

    .te-checkout-page .woocommerce-checkout-review-order-table th,
    .te-checkout-page .woocommerce-checkout-review-order-table td {
        font-size: 0.88rem;
    }
}