/* Additional WooCommerce Styles */

/* Products Grid - Base Styles */
.woocommerce ul.products,
ul.products {
    display: grid;
    gap: 16px;
    margin: 0 0;
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    ul.products {
        gap: 8px;
    }
}

.woocommerce ul.products li.product,
ul.products li.product {
    margin: 0;
    width: 100%;
    max-width: 340px;
}

/* Override webkit default link styles */
a:-webkit-any-link {
    color: inherit;
    text-decoration: none;
}

a:-webkit-any-link:hover {
    text-decoration: none;
}

/* Product Card Styles */
.product-item {
    list-style: none;
    margin: 0;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.product-image-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    justify-content: center;
}

.product-image-link:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .product-image-link img {
        max-width: 124px;
    }
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.chilled-shipping-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0066cc;
    color: var(--abmart-primary-text, #fff);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.product-details .woocommerce-loop-product__title,
.product-details h2.woocommerce-loop-product__title,
.product-details h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .product-details .woocommerce-loop-product__title,
    .product-details h2.woocommerce-loop-product__title,
    .product-details h2,
    .stock-status.in-stock {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .product-details {
        padding: 12px
    }
}

.product-details .woocommerce-loop-product__title a {
    color: #000;
    text-decoration: none;
}

.product-details .woocommerce-loop-product__title a:hover {
    text-decoration: none;
}

/* Override webkit link styles for product cards */
.product-card a:-webkit-any-link,
.product-item a:-webkit-any-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-card a:-webkit-any-link:hover,
.product-item a:-webkit-any-link:hover {
    text-decoration: none;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.product-weight {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.stock-status {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.stock-status.in-stock {
    color: var(--abmart-primary, #2563eb);
}

.stock-status.out-of-stock {
    color: #999;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
}

@media (max-width: 768px) {
    .product-price-row {
        flex-direction: column;
        gap: 8px;
    }
}

.product-price-row .price {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-decoration: none;
}

.product-price-row .price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.product-price-row .price ins {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.product-add-to-cart-form {
    display: inline-block;
    margin: 0;
    flex: 1;
    max-width: 120px;
}

.add-to-cart-button {
    background: var(--abmart-primary, #2563eb);
    color: var(--abmart-primary-text, #fff);
    border: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    white-space: nowrap;
    height: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.add-to-cart-button:hover {
    background: var(--abmart-primary-hover, #1d4ed8);
}

.add-to-cart-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-quantity-selector {
    display: flex;
    align-items: center;
    background: var(--abmart-primary, #2563eb);
    border-radius: 24px;
    padding: 2px 5px;
    gap: 0;
    position: relative;
    z-index: 5;
    cursor: pointer;
    height: 36px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--abmart-primary-text, #fff);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.qty-display {
    color: var(--abmart-primary-text, #fff);
    font-size: 14px;
    font-weight: 400;
    padding: 0 12px;
    min-width: 36px;
    text-align: center;
    flex: 1;
}

/* WooCommerce Content Wrapper */
.woocommerce-content-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Shop Archive Page */
.shop-archive-wrapper {
    padding: 30px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.shop-archive-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.shop-archive-header h1.page-title,
.shop-archive-header .woocommerce-products-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.shop-archive-header .woocommerce-archive-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

.shop-archive-content {
    width: 100%;
}

.shop-google-map {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.shop-map-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
    text-align: center;
}

.shop-map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 8px;
    margin-bottom: 20px;
}

.custom-toolbar-item {
    display: flex;
    align-items: center;
}

.view-all-link {
    color: var(--abmart-primary, #2563eb);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: underline !important;
}

.shop-pagination {
    margin-top: 40px;
    padding: 30px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

/* WooCommerce Pagination - Improved Styling */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    line-height: 1;
}

.woocommerce-pagination a:hover {
    color: var(--abmart-primary, #2563eb);
    border-color: var(--abmart-primary, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.woocommerce-pagination .current,
.woocommerce-pagination span.current {
    color: #fff;
    background: var(--abmart-primary, #2563eb);
    border-color: var(--abmart-primary, #2563eb);
    font-weight: 600;
}

.woocommerce-pagination .prev,
.woocommerce-pagination .next {
    font-size: 18px;
    font-weight: 600;
}

.woocommerce-pagination .dots,
.woocommerce-pagination span.dots {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
}

.woocommerce-pagination .dots:hover {
    background: transparent;
    border: none;
    color: #999;
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .woocommerce-pagination ul {
        gap: 4px;
    }
    
    .woocommerce-pagination a,
    .woocommerce-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .woocommerce-pagination .prev,
    .woocommerce-pagination .next {
        font-size: 16px;
    }
}

/* Shop Page Layout (Legacy - for backward compatibility) */
.shop-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.shop-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.shop-main {
    min-height: 500px;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #f8f9fa;
    border-left: 4px solid var(--abmart-primary, #2563eb);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.woocommerce-error {
    border-left-color: var(--abmart-primary, #2563eb);
    background: var(--abmart-primary-rgba, rgba(37, 99, 235, 0.1));
}

.woocommerce-message {
    border-left-color: #27ae60;
    background: #f2fdf3;
}

/* Product Filtering */
.woocommerce-ordering,
.woocommerce-result-count {
    margin: 0;
}

.woocommerce-ordering {
    float: right;
    margin-left: 20px;
}

.woocommerce-result-count {
    float: left;
    line-height: 2.5;
    color: #666;
    font-size: 14px;
    flex: 1;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--abmart-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Breadcrumbs */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 14px;
}

.breadcrumb a {
    color: #2c5530;
    text-decoration: none;
}
/* Product Rating */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.618em;
    line-height: 1.618;
    font-size: 1em;
    width: 5.3em;
    font-family: 'star';
    font-weight: 400;
}

.star-rating::before {
    content: '\53\53\53\53\53';
    opacity: 0.25;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: #2c5530;
}

/* Single Product Page - Custom Design */
.single-product-wrapper {
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.single-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-product-content img {
    max-width: 100%;
}

.product-images {
    grid-column: 1;
    order: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-images .woocommerce-product-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-images .woocommerce-product-gallery__trigger {
    display: none !important;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.summary {
    grid-column: 2;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary .product_title {
    font-size: 32px;
    color: #000;
    line-height: 1.3;
    font-weight: 600;
}

.product-note {
    font-size: 14px;
    color: #ff6600;
    line-height: 1.5;
}

.product-categories {
    display: block;
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

.product-categories a {
    color: #000;
    text-decoration: none;
}

.product-categories a:hover {
    text-decoration: underline;
}

.product-availability {
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

.stock-status {
    font-weight: 500;
}

.stock-status.in-stock {
    color: #22c55e;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.summary .price {
    font-size: 28px;
    font-weight: bold;
}

.summary .price del {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
    font-size: 24px;
}

.summary .price ins {
    text-decoration: none;
    color: #dc2626;
}

.woocommerce-product-details__short-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Add to Cart Form - Simplified */
.cart {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart .quantity {
    display: inline-block;
    margin: 0;
}

.cart .quantity input {
    width: 70px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.single_add_to_cart_button {
    background: var(--abmart-primary, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s, opacity 0.2s !important;
    font-weight: 500 !important;
    white-space: nowrap;
    width: 100%;
    max-width: 300px;
}

.single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hide Product Meta, Rating, Sharing, and Notices */
.single-product-wrapper .product_meta,
.single-product-wrapper .woocommerce-product-rating,
.single-product-wrapper .woocommerce-product-rating .star-rating,
.single-product-wrapper .social-share,
.single-product-wrapper .woocommerce-product-sharing,
.single-product-wrapper .woocommerce-notices-wrapper,
.woocommerce-notices-wrapper {
    display: none !important;
}

/* Product Tabs - Hidden for simplified layout */
.woocommerce-tabs {
    display: none !important;
}

/* Related Products */
.related.products,
.upsells.products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    clear: both;
}

.related-products-title,
.related.products h2,
.upsells.products h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    color: #000;
}

.related.products ul.products,
.upsells.products ul.products {
    margin-top: 0;
}

/* Related products grid - responsive */
.related.products ul.products {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .single-product-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-images {
        grid-column: 1;
        order: 1;
    }
    
    .summary {
        grid-column: 1;
        order: 2;
    }
    
    .summary .product_title {
        font-size: 24px;
    }
    
    .summary .price {
        font-size: 28px;
    }
    
    .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart .quantity {
        width: 100%;
    }
    
    .cart .quantity input {
        width: 100%;
    }
    
    .single_add_to_cart_button {
        width: 100%;
        max-width: 100%;
        padding: 14px 32px !important;
    }
    
    .related.products,
    .upsells.products {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .related-products-title,
    .related.products h2,
    .upsells.products h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* Cart Page Styles */
.cart-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shop_table th,
.shop_table td {
    padding: 20px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.shop_table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.shop_table .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.shop_table .product-price,
.shop_table .product-subtotal {
    font-weight: 600;
    color: #2c5530;
}

.shop_table .quantity input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.shop_table .product-remove a {
    color: var(--abmart-primary, #2563eb);
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.shop_table .actions {
    background: #f8f9fa;
}

.coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    min-width: 150px;
}

/* Cart Totals */
.cart-collaterals {
    margin-top: 40px;
}

.cart_totals {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
}

.cart_totals h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart_totals .order-total {
    font-size: 18px;
    font-weight: 600;
}

.wc-proceed-to-checkout {
    margin-top: 20px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    background: #2c5530;
    color: var(--abmart-primary-text, #fff);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Checkout Page Styles */
body.woocommerce-checkout,
body.woocommerce-page.woocommerce-checkout {
    background: #fff !important;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    border-bottom: 2px solid #e5e7eb;
    padding: 10px 30px;
}

.checkout-content-grid {
    display: block;
    margin: 0 auto;
}

.checkout-forms-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-forms-column .checkout {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-section {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.checkout-section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.checkout-order-summary-column {
    position: sticky;
    top: 20px;
}

.checkout-order-summary {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.woocommerce-checkout #customer_details {
    display: block;
}

.woocommerce-checkout #order_review_heading {
    display: none;
}

.woocommerce-checkout-review-order {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.woocommerce-checkout .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.woocommerce-checkout .shop_table thead {
    display: none;
}

.woocommerce-checkout .shop_table tbody tr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout .shop_table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-checkout .shop_table .product-thumbnail {
    width: 60px;
    flex-shrink: 0;
}

.woocommerce-checkout .shop_table .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.woocommerce-checkout .shop_table .product-name {
    flex: 1;
    font-weight: 500;
    color: #000;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce-checkout .shop_table .product-name .product-quantity {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.woocommerce-checkout .shop_table .product-total {
    font-weight: 600;
    color: #000;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.woocommerce-checkout .shop_table .cart-subtotal,
.woocommerce-checkout .shop_table .order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
}

.woocommerce-checkout .shop_table .order-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 16px;
    font-weight: 700;
    font-size: 16px;
}

.woocommerce-checkout .shop_table .order-total th,
.woocommerce-checkout .shop_table .order-total td {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

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

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

.woocommerce-checkout .form-row.form-row-last {
    float: right;
}

.woocommerce-checkout .form-row.form-row-wide {
    width: 100%;
    clear: both;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000;
    font-size: 14px;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: var(--abmart-primary, #2563eb);
}

.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.woocommerce-checkout .form-row.woocommerce-invalid-required-field input,
.woocommerce-checkout .form-row.woocommerce-invalid-required-field select,
.woocommerce-checkout .form-row.woocommerce-invalid-required-field textarea {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.woocommerce-checkout .form-row.woocommerce-invalid label,
.woocommerce-checkout .form-row.woocommerce-invalid-required-field label {
    color: #ef4444;
}

/* Inline error messages */
.woocommerce-checkout .checkout-inline-error-message {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.woocommerce-checkout .form-row.woocommerce-validated input,
.woocommerce-checkout .form-row.woocommerce-validated select {
    border-color: #22c55e;
}

.woocommerce-checkout #payment,
.woocommerce-checkout-payment {
    background: transparent;
    padding: 30px;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-checkout #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.woocommerce-checkout #payment .payment_methods li {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"] {
    margin-right: 10px;
}

.woocommerce-checkout #payment .payment_methods li label {
    font-weight: 500;
    cursor: pointer;
}

.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 32px;
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.woocommerce-checkout #place_order:hover {
    background: var(--abmart-primary-hover, #1d4ed8);
}

.woocommerce-checkout #place_order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item {
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    font-weight: 600;
    text-align: right;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-form__input-checkbox {
    width: auto;
    margin: 0;
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

.woocommerce-checkout .woocommerce-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.woocommerce-checkout .woocommerce-info {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
}

.woocommerce-checkout .woocommerce-message {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

/* Order Received Page Styles */
.order-received-content {
    text-align: center;
    margin-bottom: 40px;
}

.order-received-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-received-icon svg {
    width: 80px;
    height: 80px;
}

.order-received-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.order-received-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.order-received-subtitle strong {
    color: #000;
    font-weight: 600;
}

.order-received-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.order-received-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.order-received-button--primary {
    background: var(--abmart-primary, #2563eb);
    color: #fff !important;
    border: 2px solid var(--abmart-primary, #2563eb);
}

.order-received-button--secondary {
    background: #fff;
    border: 2px solid #e5e7eb;
}

.order-received-button--secondary:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-overview-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    justify-content: center;
}

.woocommerce-order-overview li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.order-overview-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-order-overview strong {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.woocommerce-order-overview__total {
    background: #2c5530;
    color: #fff;
}

/* Order Failed Styles */
.order-failed-section {
    text-align: center;
    padding: 40px 20px;
}

.order-failed-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-failed-icon svg {
    width: 80px;
    height: 80px;
}

.woocommerce-thankyou-order-failed {
    font-size: 18px;
    color: #991b1b;
    margin-bottom: 24px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.woocommerce-thankyou-order-failed-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.woocommerce-thankyou-order-failed-actions .button {
    padding: 12px 24px;
    background: #2c5530;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
}

.woocommerce-thankyou-order-failed-actions .button:hover {
    background: #1e3d22;
    color: #fff;
}

/* Responsive Checkout */
@media (max-width: 968px) {
    .checkout-content-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-order-summary-column {
        position: static;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .checkout-order-summary {
        padding: 20px;
    }
    
    .woocommerce-checkout .form-row.form-row-first,
    .woocommerce-checkout .form-row.form-row-last {
        width: 100%;
        float: none;
    }
    
    /* Order Received Page Responsive */
    .order-received-page-wrapper {
        padding: 20px 15px;
    }
    
    .order-received-container {
        padding: 40px 20px;
    }
    
    .order-received-title {
        font-size: 24px;
    }
    
    .order-received-subtitle {
        font-size: 14px;
    }
    
    .order-received-actions {
        flex-direction: column;
        margin-top: 24px;
    }
    
    .order-received-button {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .woocommerce-order-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .woocommerce-order-overview li {
        padding: 16px;
    }
    
    .order-overview-section {
        margin-top: 30px;
        padding-top: 30px;
    }
}

/* Sidebar Widgets */
.widget {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.widget ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2c5530;
    font-size: 10px;
}

.widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #4a6b4d;
    color: var(--abmart-primary-text, #fff);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid #4a6b4d;
    background: transparent;
    color: var(--abmart-primary-text, #fff);
    border-radius: 5px;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form button {
    padding: 10px;
    background: white;
    color: #2c5530;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Header Search */
.header-search {
    position: relative;
}

.woocommerce-product-search {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    margin-right: 20px;
}

.woocommerce-product-search .search-field {
    border: none;
    background: transparent;
    padding: 8px 15px;
    outline: none;
    min-width: 200px;
}

.woocommerce-product-search button {
    background: #2c5530;
    color: var(--abmart-primary-text, #fff);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Support Info */
.support-info {
    list-style: none;
    margin-top: 15px;
}

.support-info li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-left: 0;
}

.support-info li i {
    margin-right: 10px;
    color: #2c5530;
    width: 16px;
}

.support-info li::before {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shop-archive-wrapper {
        padding: 20px 0;
    }
    
    .shop-archive-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .shop-archive-header h1.page-title,
    .shop-archive-header .woocommerce-products-header__title {
        font-size: 24px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-google-map {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .shop-map-title {
        font-size: 20px;
    }
    
    .shop-map-container {
        height: 300px;
    }
        gap: 15px;
    }
    
    .woocommerce-ordering {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    
    .woocommerce-ordering select {
        width: 100%;
    }
    
    .woocommerce-result-count {
        float: none;
    }
    
    .shop-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-sidebar {
        order: 2;
    }
    
    .single-product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .woocommerce-tabs .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .woocommerce-tabs .tabs li {
        margin-right: 0;
        margin-bottom: 5px;
        border-bottom: 1px solid #eee;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 15px;
        border-bottom: none;
        background: #f8f9fa;
    }
    
    .woocommerce-tabs .tabs li.active a {
        background: #2c5530;
        color: var(--abmart-primary-text, #fff);
    }
    
    .woocommerce-ordering,
    .woocommerce-result-count {
        float: none;
        display: block;
        margin-bottom: 15px;
    }
    
    .cart_totals {
        max-width: none;
        margin-left: 0;
    }
    
    .shop_table .product-name {
        display: block;
        width: 100%;
    }

}

@media (max-width: 480px) {
    .header-search {
        display: none;
    }
    
    .woocommerce-product-search .search-field {
        min-width: 150px;
    }
    
    .summary .product_title {
        font-size: 24px;
    }
    
    .summary .price {
        font-size: 20px;
    }
    
    .cart .quantity input {
        width: 60px;
    }
    
    .coupon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon input {
        min-width: auto;
    }
}

/* User Orders Shortcode Styles */
.user-orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: auto;
}

.user-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: table !important;
}

.user-orders-table thead {
    display: table-header-group !important;
}

.user-orders-table tbody {
    display: table-row-group !important;
}

.user-orders-table__row {
    display: table-row !important;
}

.user-orders-table__cell {
    display: table-cell !important;
}

.user-orders-table thead {
    background: #f8f9fa;
}

.user-orders-table__header {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.user-orders-table__header:first-child {
    padding-left: 24px;
}

.user-orders-table__header:last-child {
    padding-right: 24px;
}

.user-orders-table__row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.user-orders-table__row:hover {
    background-color: #f8f9fa;
}

.user-orders-table__row:last-child {
    border-bottom: none;
}

.user-orders-table__cell {
    padding: 16px;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
}

.user-orders-table__cell:first-child {
    padding-left: 24px;
}

.user-orders-table__cell:last-child {
    padding-right: 24px;
}

.user-order-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.user-order-link:hover {
    color: var(--abmart-primary, #2563eb);
}

.user-order-link strong {
    font-weight: 600;
}

.user-orders-table__cell-date {
    color: #666;
    font-size: 14px;
}

.user-orders-table__cell-date time {
    color: #666;
}

.user-order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.user-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-order-action-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #000;
    white-space: nowrap;
}

.user-order-action-button:hover {
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    border-color: var(--abmart-primary, #2563eb);
}

.user-order-action-button.view {
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    border-color: var(--abmart-primary, #2563eb);
}

.user-order-action-button.view:hover {
    background: var(--abmart-primary-hover, #1d4ed8);
    border-color: var(--abmart-primary-hover, #1d4ed8);
}

.user-order-action-button.pay {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.user-order-action-button.pay:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* Empty State */
.user-orders-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-orders-empty-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
}

.user-orders-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
}

.user-orders-empty p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

.user-orders-empty .button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.user-orders-empty .button:hover {
    background: var(--abmart-primary-hover, #1d4ed8);
    color: #fff;
}

.user-orders-message {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* Responsive User Orders */
@media (max-width: 768px) {
    .user-orders-table {
        display: block !important;
    }
    
    .user-orders-table thead {
        display: none !important;
    }
    
    .user-orders-table tbody {
        display: block !important;
    }
    
    .user-orders-table__row {
        display: block !important;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 16px;
        background: #fff;
    }
    
    .user-orders-table__cell {
        display: block !important;
        padding: 8px 0;
        text-align: left;
        border: none;
    }
    
    .user-orders-table__cell:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #000;
        display: inline-block;
        min-width: 100px;
    }
    
    .user-orders-table__cell:first-child {
        padding-top: 0;
    }
    
    .user-orders-table__cell:last-child {
        padding-bottom: 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .user-order-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .user-order-action-button {
        width: 100%;
        text-align: center;
    }
}

/* Order Details Table Styles */
.order-details-section {
    margin: 40px 0;
}

.order-details-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.order-details-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.order-details-table thead {
    background: #f8f9fa;
}

.order-details-table thead th {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.order-details-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.order-details-table tbody tr:hover {
    background-color: #f8f9fa;
}

.order-details-table tbody tr:last-child {
    border-bottom: none;
}

.order-details-table__product-name {
    padding: 20px 24px;
    width: 70%;
}

.order-details-table__product-total {
    padding: 20px 24px;
    text-align: right;
    width: 30%;
    font-weight: 600;
    color: #000;
}

.order-item-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

.order-item-name a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.order-item-name a:hover {
    color: var(--abmart-primary, #2563eb);
}

.order-item-quantity {
    font-size: 14px;
    color: #666;
}

.order-item-quantity .product-quantity {
    font-weight: 500;
}

.order-item-meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.order-item-meta dl {
    margin: 0;
}

.order-item-meta dt {
    font-weight: 500;
    display: inline;
    margin-right: 4px;
}

.order-item-meta dd {
    display: inline;
    margin: 0;
    margin-right: 12px;
}

.order-item-total {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.order-totals-footer {
    background: #f8f9fa;
}

.order-totals-footer tr {
    border-bottom: 1px solid #e5e7eb;
}

.order-totals-footer tr:last-child {
    border-bottom: none;
}

.order-total-row {
    background: transparent;
}

.order-total-row.order-total-row--order_total .order-total-label,
.order-total-row.order-total-row--order_total .order-total-value {
    font-weight: 700;
    font-size: 18px;
}

.order-total-label {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-total-value {
    padding: 16px 24px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-note-row {
    background: #fff;
}

.order-note-label {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    vertical-align: top;
}

.order-note-value {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.order-actions-footer {
    background: #fff;
    border-top: 2px solid #e5e7eb;
}

.order-actions-heading {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-actions-cell {
    padding: 16px 24px;
    text-align: right;
}

.order-action-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #000;
    margin-left: 8px;
}

.order-action-button:hover {
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    border-color: var(--abmart-primary, #2563eb);
}

.order-action-button.pay {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.order-action-button.pay:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.purchase-note-cell {
    padding: 20px 24px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive Order Details */
@media (max-width: 768px) {
    .order-details-table {
        display: block;
    }
    
    .order-details-table thead {
        display: none;
    }
    
    .order-details-table tbody,
    .order-details-table tfoot {
        display: block;
    }
    
    .order-details-table tbody tr,
    .order-details-table tfoot tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 16px;
        background: #fff;
    }
    
    .order-details-table__product-name,
    .order-details-table__product-total {
        display: block;
        width: 100%;
        padding: 0;
        text-align: left;
    }
    
    .order-details-table__product-total {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }
    
    .order-total-label,
    .order-total-value {
        display: block;
        width: 100%;
        padding: 8px 0;
        text-align: left;
    }
    
    .order-total-value {
        text-align: right;
        font-weight: 700;
    }
    
    .order-actions-cell {
        text-align: left;
        padding: 12px 0;
    }
    
    .order-action-button {
        display: block;
        width: 100%;
        margin: 8px 0 0 0;
        text-align: center;
    }
}

/* Customer Details Card Styles */
.customer-details-section {
    margin: 40px 0;
}

.customer-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.customer-details-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.customer-details-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.customer-details-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.customer-details-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--abmart-primary, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-details-icon svg {
    width: 24px;
    height: 24px;
}

.customer-details-card--shipping .customer-details-icon {
    background: #22c55e;
}

.customer-details-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.customer-details-content {
    padding-top: 4px;
}

.customer-address {
    font-style: normal;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin: 0;
}

.customer-address p {
    margin: 0 0 8px 0;
}

.customer-address p:last-child {
    margin-bottom: 0;
}

.customer-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.customer-detail-item:first-of-type {
    margin-top: 16px;
    padding-top: 16px;
}

.customer-detail-icon {
    width: 20px;
    height: 20px;
    color: #666;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-detail-icon svg {
    width: 16px;
    height: 16px;
}

.customer-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.customer-detail-item--phone .customer-detail-value,
.customer-detail-item--email .customer-detail-value {
    word-break: break-all;
}

/* Responsive Customer Details */
@media (max-width: 768px) {
    .customer-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .customer-details-card {
        padding: 20px;
    }
    
    .customer-details-card--single {
        max-width: 100%;
    }
    
    .customer-details-card-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .customer-details-title {
        font-size: 16px;
    }
}

/* Order View Header Styles */
/* Hide default WooCommerce order status message */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    display: none;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child mark {
    display: none;
}

/* Hide entry-header on order view page */
.woocommerce-account .entry-header,
.woocommerce-account .site-content .entry-header {
    display: none;
}

.order-view-header {
    margin-bottom: 32px;
}

.order-view-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.order-view-header-main {
    flex: 1;
}

.order-view-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
}

.order-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.order-view-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-view-meta-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.order-view-meta-value {
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.order-view-meta-value time {
    color: #000;
}

.order-view-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.order-updates-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 32px;
}

.order-updates-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-OrderUpdate {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-OrderUpdate:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.woocommerce-OrderUpdate:first-child {
    padding-top: 0;
}

.woocommerce-OrderUpdate-meta {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.woocommerce-OrderUpdate-description {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.woocommerce-OrderUpdate-description p {
    margin: 0 0 8px 0;
}

.woocommerce-OrderUpdate-description p:last-child {
    margin-bottom: 0;
}

/* Responsive Order View Header */
@media (max-width: 768px) {
    .order-view-header {
        padding: 24px 20px;
    }
    
    .order-view-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .order-view-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .order-view-meta-item {
        width: 100%;
    }
    
    .order-updates-section {
        padding: 24px 20px;
    }
    
    .order-updates-title {
        font-size: 18px;
    }
}