/* Alerts */


/* =========================================
   Order Received (Thank You) Page
   ========================================= */
.woocommerce-order {
    max-width: 800px;
    margin: 0 auto;
}

.woocommerce-order .woocommerce-notice--success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-left: 5px solid var(--success-color);
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.woocommerce-order .woocommerce-notice--success::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.5rem;
}

.woocommerce-order ul.order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.woocommerce-order ul.order_details li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.woocommerce-order .woocommerce-order-details, 
.woocommerce-order .woocommerce-customer-details {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-color);
    margin-bottom: 3rem;
}

.woocommerce-order h2 {
    font-family: var(--font-family-heading);
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 1rem;
}

.woocommerce-order table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.woocommerce-order table.shop_table thead th {
    background-color: var(--light-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.woocommerce-order table.shop_table tfoot th {
    text-align: right;
    color: var(--secondary-color);
    font-weight: 600;
}

.woocommerce-order table.shop_table tfoot td {
    text-align: right;
    font-weight: 700;
    color: var(--dark-color);
}

.woocommerce-order .woocommerce-customer-details address {
    font-style: normal;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* =========================================
   Shared Styles
   ========================================= */
   .wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block.is-large {
    display: flex;
    width: 100%;
   }
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(167, 20, 76, 0.2);
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 20, 76, 0.1);
}

/* Notices */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    border-top: 3px solid;
    display: flex;
    align-items: center;
    list-style: none;
    display: flex;
    gap: 8px;
    padding-left: 55px!important;
}

.woocommerce-message {
    background-color: var(--success-bg);
    border-color: var(--success-color);
    color: var(--success-text);
}
th.wc-block-cart-items__header-image {
    padding: 16px !important;
}

.wc-block-cart__totals-title, .wp-block-woocommerce-cart-order-summary-heading-block{
    font-size: 1rem!important;
}
.woocommerce-info {
    background-color: var(--info-bg);
    border-color: var(--info-color);
    color: var(--info-text);
}

.woocommerce-error {
    background-color: var(--danger-bg);
    border-color: var(--danger-color);
    color: var(--danger-text);
}

/* =========================================
   Cart Page (WooCommerce Blocks Support)
   ========================================= */

/* Main Container */
.wp-block-woocommerce-cart,
.wc-block-cart {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 0;
}

/* Cart Items Table */
.wc-block-cart-items,
.wp-block-woocommerce-cart-line-items-block {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.wc-block-cart-items__header {
    background-color: var(--light-color);
}

.wc-block-cart-items__header th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

/* Table Rows */
.wc-block-cart-items__row {
    border-bottom: 1px solid var(--light-color);
}

.wc-block-cart-items__row:last-child {
    border-bottom: none;
}

.wc-block-cart-items__row td {
    padding: 1.5rem;
    vertical-align: middle;
}

/* Product Image */
.wc-block-cart-item__image {
    width: 100px;
}

.wc-block-cart-item__image img {
    border-radius: 0.5rem;
    width: 80px;
    height: auto;
    object-fit: cover;
}

/* Product Details */
.wc-block-components-product-name {
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.wc-block-components-product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-right: 1rem;
}

.wc-block-components-quantity-selector__input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0.5rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.wc-block-components-quantity-selector__button {
    background: var(--light-color);
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: background 0.2s;
}

.wc-block-components-quantity-selector__button:hover {
    background: var(--border-color);
    color: var(--dark-color);
}

/* Remove Link */
.wc-block-cart-item__remove-link {
    color: var(--danger-color);
    font-size: 0.875rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.wc-block-cart-item__remove-link:hover {
    color: var(--danger-text);
}

/* Cart Sidebar / Totals */
.wc-block-cart__sidebar,
.wp-block-woocommerce-cart-totals-block {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    height: fit-content;
}

/* Order Summary Heading */
.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Totals Wrapper */

.wc-block-components-totals-wrapper {
    margin-bottom: 1.5rem;
}

.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
}

.wc-block-components-totals-item:last-child {
    border-bottom: none;
}

.wc-block-components-totals-item__label {
    color: var(--secondary-color);
    font-weight: 500;
}

.wc-block-components-totals-item__value {
    color: var(--dark-color);
    font-weight: 600;
}

/* Coupon */
.wc-block-components-totals-coupon {
    margin-bottom: 1.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem!important;
    background: var(--light-color);
}



.wc-block-components-panel__button {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Checkout Button */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.125rem;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

/* Responsive Grid for Cart Layout */
.wc-block-cart {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.wc-block-cart__main {
    flex: 1;
}

@media (max-width: 992px) {
    .wc-block-cart {
        grid-template-columns: 1fr;
    }
    
    .wc-block-cart__sidebar {
        width: 100%;
    }
}

/* cart table */

table.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
    background: #fff !important;
}

/* Classic Cart Fallback (Keep existing styles below if needed or override above) */
.woocommerce-cart table.cart {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin-bottom: 2rem;
}

.woocommerce-cart table.cart thead {
    background-color: var(--light-color);
}

.woocommerce-cart table.cart thead th {
    padding: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-cart table.cart td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--light-color);
    vertical-align: middle;
}

.woocommerce-cart table.cart img {
    border-radius: 0.5rem;
    width: 80px;
}

.woocommerce-cart table.cart td.actions {
    padding: 1.5rem;
    background: var(--light-color);
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 0.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    float: right;
    width: 40%;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
    background-color: var(--success-color);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--success-text);
}

@media (max-width: 768px) {
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
    }

    .woocommerce-cart table.cart {
        display: block;
        overflow-x: auto;
    }
}

/* =========================================
   Checkout Page
   ========================================= */
.woocommerce-checkout h3 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout .col2-set {
    width: 55%;
    float: left;
    margin-right: 5%;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 40%;
    float: left;
}

.woocommerce-checkout #order_review {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.woocommerce-checkout table.shop_table {
    border: none;
    margin-bottom: 2rem;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-color);
}

.woocommerce-checkout #payment {
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

/* =========================================
   My Account Page
   ========================================= */
   
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 250px;
    flex-shrink: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--light-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--danger-bg); /* Using pinkish bg for active/hover */
    color: var(--primary-color);
    padding-left: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    min-width: 300px;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: var(--font-family-heading);
    color: var(--dark-color);
}

/* Account - Orders Table */
.woocommerce-account table.account-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-account table.account-orders-table th {
    background: var(--light-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.woocommerce-account table.account-orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.woocommerce-account table.account-orders-table .button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Account - Login/Register */
.woocommerce-account #customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.woocommerce-account #customer_login h2 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-color);
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }
    
    .woocommerce-account #customer_login {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* =========================================
   Checkout Page (WooCommerce Blocks Support)
   ========================================= */

/* Main Layout & Background */
.wc-block-checkout {
    width: 100% !important;
    max-width: 100% !important; /* Force full width */
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    gap: 2rem;
    align-items: start;
}
.wc-block-components-sidebar-layout .wc-block-components-main{
    width: 60%;
}
/* Background adjustment for checkout page wrapper */
.woocommerce-checkout {
    background-color: #f5f5f5;
}

/* 
   SECTIONS & CARDS 
*/
.wc-block-components-checkout-step, 
.wc-block-checkout__sidebar,
.wc-block-components-main {
    background: #fff;
    padding: 2rem;
    border-radius: 8px; /* Slightly reduced radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 1.5rem;
}

/* Section Titles - Reduced Size */
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-order-summary__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem!important; /* Reduced from 1.5rem */
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

/* 
   FORM FIELDS 
*/
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea textarea {
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 14px; /* Reduced padding */
    font-size: 0.95rem; /* Reduced font size */
    color: #333;
    transition: all 0.2s ease;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-block-components-textarea textarea:focus {
    background-color: #fff;
    border-color: #a7144c;
    box-shadow: 0 0 0 2px rgba(167, 20, 76, 0.1);
    outline: none;
}

.wc-block-components-text-input label {
    font-size: 0.8rem; /* Reduced label size */
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* 
   PAYMENT OPTIONS
*/
.wc-block-components-checkout-payment-method {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.wc-block-components-radio-control__option {
    padding: 14px;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background 0.2s;
}

.wc-block-components-radio-control__option:last-child {
    border-bottom: none;
}

.wc-block-components-radio-control__option:hover {
    background-color: #f9f9f9;
}

/* Selected payment method styling */
.wc-block-components-radio-control__option[aria-checked="true"] {
    background-color: #f3f4f6;
    border-left: 4px solid #a7144c;
}

/* 
   ORDER SUMMARY SIDEBAR 
*/

.wc-block-components-order-summary-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wc-block-components-order-summary-item__image {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    width: 200px!important;
    display: flex;
    align-items: center;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__image>img{
    width: 100%!important;
        max-width: 100%!important;
        display: flex!important;
        align-items: center!important;
    }
    .wc-block-components-order-summary .wc-block-components-order-summary-item:last-child>div{
    display: flex!important;
    align-items: center!important;

}
.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity{
    right: 15px;
    top: 15px;
}

.wc-block-components-product-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.8rem!important; /* Reduced size */
    color: #333;
    line-height: 1.3;
}
.wc-block-components-order-summary{
    position: relative;
}

.wc-block-components-product-price {
    color: #a7144c;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Coupon Section */
.wc-block-components-totals-coupon-link {
    color: #a7144c;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-size: 0.9rem;
}

/* Totals */
.wc-block-components-totals-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.wc-block-components-totals-item__label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.wc-block-components-totals-item__value {
    font-weight: 700;
    color: #000;
    font-size: 0.95rem;
}

/* Total Row */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    color: #000;
}

/* 
   BUTTONS 
*/
.wc-block-components-checkout-place-order-button {
    background-color: #a7144c !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 4px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #8a0f3d !important;
}

/* Return to Cart Link */
.wc-block-components-checkout-return-to-cart-button {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: #000;
    text-decoration: underline;
}
span.wc-block-components-order-summary-item__individual-prices.price.wc-block-components-product-price {
    display: none;
}
.wc-block-components-product-metadata {
    display: none;
}
/* Responsive */
@media (max-width: 992px) {
    .wc-block-checkout {
        grid-template-columns: 1fr;
    }
    .wc-block-checkout__sidebar {
        width: 100%;
        margin-top: 2rem;
    }
}



/* =========================================
   Order Received / Thank You Page
   ========================================= */

.woocommerce-order {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Success Message */
.woocommerce-order .woocommerce-notice--success {
    background-color: #e6fffa;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Top Details Grid - FIX for Overflow */
.woocommerce-order ul.order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Use auto-fit instead of fixed columns */
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.woocommerce-order ul.order_details li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px; /* Reduced min-height */
}

.woocommerce-order ul.order_details li strong {
    display: block;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    color: #a7144c; 
    margin-top: 0.5rem;
    font-weight: 700;
    word-break: break-word; /* Prevent overflow */
}

.woocommerce-order ul.order_details li span { 
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Order Details & Customer Details Sections */
.woocommerce-order .woocommerce-order-details, 
.woocommerce-order .woocommerce-customer-details {
    background: #fff;
    padding: 2rem; /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.woocommerce-order h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem; /* Reduced from 1.75rem */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #000;
    border-bottom: none;
}

/* Order Table */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table--order-details th {
    text-align: left;
    padding: 0.75rem 0;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.woocommerce-table--order-details td {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

.woocommerce-table--order-details tfoot th {
    text-align: right;
    padding-right: 2rem;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 700;
    color: #000;
    font-size: 1rem;
}

/* Address Box */
.woocommerce-customer-details address {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 6px;
    font-style: normal;
    background: #f9f9f9;
    font-size: 0.95rem;
    color: #555;
}

/* =========================================
   IMPROVED CHECKOUT & THANK YOU STYLES (2026)
   ========================================= */

/* --- Checkout Layout Structure --- */
.checkout-steps-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Montserrat', sans-serif; /* Ensure body font */
}

.checkout-step-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.layout-main {
    flex: 1;
    min-width: 0;
}

.layout-sidebar {
    width: 420px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

@media (max-width: 992px) {
    .checkout-step-layout {
        flex-direction: column;
    }
    .layout-sidebar {
        width: 100%;
        position: static;
    }
}

.checkout-step-container-inner {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* --- Checkout Progress Bar --- */
.checkout-step-progress {
    margin-bottom: 3rem;
}

.progressbar {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.progressbar li {
    position: relative;
    float: left;
    width: 25%;
    text-align: center;
    color: #ccc;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border: 2px solid #ccc;
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: #fff;
    color: #ccc;
    font-weight: 700;
}

.progressbar li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    top: 15px;
    left: -50%;
    z-index: -1;
}

.progressbar li:first-child:after {
    content: none;
}

.progressbar li.active {
    color: #a7144c;
}

.progressbar li.active:before {
    border-color: #a7144c;
    background-color: #a7144c;
    color: #fff;
}

.progressbar li.active + li:after {
    background-color: #a7144c;
}

/* --- Checkout Form Fields --- */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 0.95rem;
    color: #1f2937;
    height: auto;
    box-shadow: none;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    background-color: #fff;
    border-color: #a7144c;
    box-shadow: 0 0 0 3px rgba(167, 20, 76, 0.1);
}

.woocommerce form .form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Checkout Order Review (Sidebar) --- */
#order_review_heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout-review-order-table {
    border: none;
    width: 100%;
    table-layout: fixed; /* Fix overlapping text */
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .product-name {
    width: 65%;
    padding-right: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
    word-wrap: break-word; /* Ensure text wraps */
}

.woocommerce-checkout-review-order-table .product-total {
    width: 35%;
    text-align: right;
    font-weight: 700;
    color: #111;
}

.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.woocommerce-checkout-review-order-table tfoot td {
    font-weight: 700;
    color: #111;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    padding-top: 1.5rem;
    font-size: 1.1rem;
    color: #a7144c;
}

/* Payment Methods */
#payment {
    background: #f9fafb !important;
    border-radius: 8px;
    padding: 1.5rem !important;
    margin-top: 2rem;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

#payment ul.payment_methods li {
    margin-bottom: 1rem;
}

#payment ul.payment_methods li input {
    margin-right: 0.5rem;
}

#payment ul.payment_methods li label {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    display: inline-block;
}

#place_order {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background-color: #a7144c;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 1rem;
}

#place_order:hover {
    background-color: #8a103e;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(167, 20, 76, 0.3);
}

/* =========================================
   ORDER RECEIVED (THANK YOU) PAGE STYLES
   ========================================= */

/* Reset some default WooCommerce styles */
.woocommerce-order {
    max-width: 1000px;
    margin: 3rem auto;
    font-family: 'Montserrat', sans-serif;
}

/* Success Message */
.woocommerce-order .woocommerce-notice--success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.woocommerce-order .woocommerce-notice--success::before {
    color: #059669;
    background: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Order Overview Cards */
.woocommerce-order ul.order_details::before{
    content: unset;
}
.woocommerce-order ul.order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.woocommerce-order ul.order_details li {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    margin: 0;
}
.woocommerce-order-overview__total .woocommerce-Price-amount, .woocommerce-order-overview__total .woocommerce-Price-amount span{
    font-size: 1rem!important;
    color: #a7144c!important;
    margin-top: 0.75rem!important;
    font-weight: 700!important;
}

.woocommerce-order ul.order_details li:hover {
    transform: translateY(-5px);
}

.woocommerce-order ul.order_details li strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #a7144c;
    margin-top: 0.75rem;
    font-weight: 700;
}

/* Order Details Section */
.woocommerce-order-details {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.woocommerce-order-details__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

/* New Product Item Layout (Image + Text) */
.product-item-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.product-item-details .product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
    background: #fff;
}

.product-item-details .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-item-details .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-item-details .product-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}

.product-item-details .product-title:hover {
    color: #a7144c;
}

.product-item-details .product-quantity {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* Table Styles */
.woocommerce-table--order-details th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #9ca3af;
    font-weight: 600;
    padding: 1.5rem 0;
}

.woocommerce-table--order-details td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.woocommerce-table--order-details tfoot tr:first-child th,
.woocommerce-table--order-details tfoot tr:first-child td {
    border-top: 2px solid #f3f4f6;
    padding-top: 2rem;
    padding: 10px;
}

.woocommerce-table--order-details tfoot th {
    text-align: right;
    padding-right: 2rem;
    color: #6b7280;
    font-weight: 500;
}

.woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 700;
    color: #111;
    font-size: 1.1rem;
}

.woocommerce-table--order-details tfoot tr:last-child td {
    color: #a7144c;
    font-size: 1.5rem;
}

/* Customer Details */
.woocommerce-customer-details {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.woocommerce-customer-details h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.woocommerce-customer-details address {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    font-style: normal;
    color: #4b5563;
    line-height: 1.8;
}


/* TABLA BASE */
.woocommerce-table.order_details {
    width: 100%;
    border-collapse: collapse;
}

/* HEADER */
.woocommerce-table thead th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* FILAS PRODUCTOS */
.woocommerce-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
}

.woocommerce-table tbody td {
    padding: 25px 0;
    vertical-align: middle;
}

/* PRODUCTO INFO */
.product-item-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image img {
    border-radius: 12px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.product-title {
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.product-title:hover {
    color: #000;
}

.product-quantity {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* PRECIOS */
.woocommerce-Price-amount {
    font-weight: 600;
    font-size: 16px;
}

/* FOOTER */
.woocommerce-table tfoot th,
.woocommerce-table tfoot td {
    padding: 14px 0;
    font-size: 15px;
}

.woocommerce-table tfoot tr {
    border-bottom: 1px solid #f2f2f2;
}

/* TOTAL DESTACADO */
.woocommerce-table tfoot tr:last-child {
    border-bottom: none;
}

.woocommerce-table tfoot tr:nth-last-child(2) td,
.woocommerce-table tfoot tr:nth-last-child(2) th {
    font-weight: 700;
    font-size: 15px;
    color: #000;
    padding: 10px;
}

/* MÉTODO DE PAGO */
.woocommerce-table tfoot tr:last-child td {
    font-size: 14px;
    color: #666;
}
/* =========================================
   WooCommerce Login Form (Modern & Professional)
   ========================================= */

.woocommerce-form-login {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 0 auto 3rem;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-form-login .woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-form-login label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.woocommerce-form-login label .required {
    color: #a7144c;
    text-decoration: none;
}

.woocommerce-form-login .woocommerce-Input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

.woocommerce-form-login .woocommerce-Input:focus {
    background-color: #fff;
    border-color: #a7144c;
    box-shadow: 0 0 0 3px rgba(167, 20, 76, 0.15);
    outline: none;
}

/* Password Input Wrapper */
.woocommerce-form-login .password-input {
    position: relative;
    display: block;
}

.woocommerce-form-login .password-input .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.woocommerce-form-login .password-input .show-password-input:hover {
    color: #111;
}

/* Remember Me & Submit Row */
.woocommerce-form-login .form-row:not(.woocommerce-form-row--wide) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
    cursor: pointer;
    margin: 0 !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    accent-color: #a7144c;
    cursor: pointer;
}

/* Submit Button */
.woocommerce-form-login__submit {
    background-color: #a7144c !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease !important;
    letter-spacing: 1px;
    width: 100%;
}

.woocommerce-form-login__submit:hover {
    background-color: #8a103e !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(167, 20, 76, 0.3);
}

/* Lost Password Link */
.woocommerce-form-login .woocommerce-LostPassword {
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
}

.woocommerce-form-login .woocommerce-LostPassword a {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-form-login .woocommerce-LostPassword a:hover {
    color: #a7144c;
    text-decoration: underline;
}

/* Make it responsive */
@media (max-width: 600px) {
    .woocommerce-form-login {
        padding: 2rem;
    }
    
    .woocommerce-form-login .form-row:not(.woocommerce-form-row--wide) {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Center and style the login heading specifically if not wrapped in customer_login */
.woocommerce > h2 {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
