/**
 * WooCommerce Styles for Webtron Auction Site Theme
 * 
 * These styles integrate WooCommerce with the theme design,
 * mimicking the approach used by Divi theme.
 * 
 * @since 1.1.0
 */

/* ==========================================================================
   WooCommerce Content Wrappers
   ========================================================================== */

.woocommerce-content-wrapper {
	padding-top: 40px;
	padding-bottom: 60px;
}

.woocommerce-content-wrapper .woa-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

#content-area.clearfix {
	width: 100%;
}

/* ==========================================================================
   Shop/Archive Pages
   ========================================================================== */

/* Shop page layout with sidebar */
.woa-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 100%;
}

.woa-shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.woa-shop-main {
    min-width: 0;
    width: 100%;
}

/* Product Grid - Fixed 3 columns */
.woocommerce .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    width: 100%;
}

/* Remove ::before pseudo-element that takes up grid space */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products.columns-3::before,
.woocommerce ul.products.columns-3::after,
section.related.products ul.products::before,
section.related.products ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Override WooCommerce column widths - including related products */
.woocommerce ul.products.columns-3 li.product,
.woocommerce-page ul.products.columns-3 li.product,
.woocommerce ul.products li.product,
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce .cross-sells ul.products li.product,
section.related.products ul.products li.product,
section.upsells.products ul.products li.product {
    margin: 0 !important;
    padding: 0;
    text-align: left;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100%;
    float: none !important;
}

/* ==========================================================================
   Related Products Section - Full Width Layout
   ========================================================================== */

/* Make the section container full width */
.woocommerce .related.products,
.woocommerce .upsells.products,
.woocommerce .cross-sells,
section.related.products,
.single-product .related.products {
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
    margin-top: 48px;
}

/* Related products grid */
.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products,
.woocommerce .cross-sells ul.products,
section.related.products > ul.products,
section.related.products > ul.products.columns-3,
.single-product section.related.products ul.products,
.woocommerce-page section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove ::before/::after on related products too */
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after,
section.related.products ul.products::before,
section.related.products ul.products::after,
.woocommerce .upsells.products ul.products::before,
.woocommerce .upsells.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* Force related products items to fill grid cells */
section.related.products > ul.products.columns-3 > li.product,
section.related.products ul.products > li.product,
.woocommerce .related.products ul.products > li.product,
.woocommerce .related.products ul.products li.product,
section.related.products ul.products li.product,
.woocommerce-page section.related.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    flex: 1 1 100% !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.woocommerce ul.products li.product > a {
    display: block;
    text-decoration: none;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0;
    background: #f5f5f5;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 16px 16px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    padding: 0 16px 16px;
    font-size: 1rem;
    color: #8b0000;
    font-weight: 700;
    margin: 0;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    font-weight: 400;
    color: #666;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #8b0000;
}

/* Add to cart button in loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button {
	margin: 0 15px 15px;
	padding: 10px 20px;
	background-color: var(--primary-button, #333);
	color: #fff;
	border: none;
	border-radius: var(--button-radius, 4px);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	transition: background-color 0.3s ease;
	text-align: center;
	display: block;
}

.woocommerce ul.products li.product .button:hover {
	background-color: var(--secondary-button, #555);
	color: #fff;
}

/* Sale badge - top right (mirrors Sold badge styling) */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	width: auto !important;
	height: auto !important;
	background: #2196F3 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 12px !important;
	border-radius: 4px !important;
	min-width: auto !important;
	min-height: auto !important;
	line-height: 1.5;
	z-index: 9;
	margin: 0 !important;
	box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

/* ==========================================================================
   Products Per Page Dropdown
   ========================================================================== */

/* Shop controls layout - use flexbox for proper ordering */
.woocommerce .woocommerce-notices-wrapper ~ p.woocommerce-result-count,
.woocommerce p.woocommerce-result-count {
    float: none;
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.woa-per-page-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    margin-bottom: 16px;
    margin-right: 0;
}

.woocommerce .woocommerce-ordering {
    float: right;
    margin-bottom: 16px;
}

.woa-per-page-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.woa-per-page-select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.woa-per-page-select:hover,
.woa-per-page-select:focus {
    border-color: #8b0000;
    outline: none;
}

/* ==========================================================================
   Back to Shop Button
   ========================================================================== */

.woa-back-to-shop {
    margin-bottom: 24px;
}

.woa-back-to-shop__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #f5f5f5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.woa-back-to-shop__link:hover {
    background: #e8e8e8;
    color: #8b0000;
}

.woa-back-to-shop__link svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

/* Single product layout wrapper */
.woa-product-layout {
    width: 100%;
    max-width: 100%;
}

.woa-product-main {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   Related Products - Full Width Override
   ========================================================================== */

/* Ensure related products section uses block layout, not grid */
.woocommerce .related.products,
.woocommerce .upsells.products,
.woa-product-main .related.products,
.woa-product-layout .related.products,
.woocommerce div.product .related.products,
section.related.products {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
    clear: both;
    margin-top: 48px;
    padding: 0;
}

/* Related products heading - full width block */
.woocommerce .related.products > h2,
section.related.products > h2 {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

/* Related products UL container - grid for products only */
.woocommerce .related.products ul.products,
.woocommerce .related.products > ul.products,
section.related.products ul.products,
section.related.products > ul.products,
.woocommerce-page .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}

/* Related products individual items - override all WooCommerce widths */
.woocommerce .related.products ul.products li.product,
.woocommerce .related.products ul.products li.product[style],
section.related.products ul.products li.product,
section.related.products ul.products li.product[style],
.woocommerce-page .related.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

.woa-product-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}

.woocommerce div.product {
    width: 100%;
    max-width: 100%;
}

.woocommerce div.product div.images {
	flex: 1;
	min-width: 300px;
	max-width: 50%;
}

.woocommerce div.product div.summary {
	flex: 1;
	min-width: 300px;
}

.woocommerce div.product .product_title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.woocommerce div.product p.price {
	font-size: 1.5rem;
	color: var(--primary, #333);
	margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin-bottom: 25px;
	line-height: 1.7;
}

/* Product gallery */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	border-radius: 4px;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 1;
	max-width: 100px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border-radius: 4px;
	border: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--primary-button, #333);
}

/* Add to cart form */
.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
	margin-bottom: 30px;
}

.woocommerce div.product form.cart .quantity {
	display: flex;
	align-items: center;
}

.woocommerce div.product form.cart .quantity .qty {
	width: 70px;
	padding: 10px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
	padding: 12px 30px;
	background-color: var(--primary-button, #333);
	color: #fff;
	border: none;
	border-radius: var(--button-radius, 4px);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
	background-color: var(--secondary-button, #555);
}

/* Product meta */
.woocommerce div.product .product_meta {
	border-top: 1px solid #eee;
	padding-top: 20px;
	margin-top: 20px;
	font-size: 0.9rem;
	color: #666;
}

.woocommerce div.product .product_meta > span {
	display: block;
	margin-bottom: 8px;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
	margin-top: 50px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 5px;
	list-style: none;
	padding: 0;
	margin: 0 0 -1px 0;
	border-bottom: 1px solid #ddd;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 25px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	color: #333;
	text-decoration: none;
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: #fff;
	border-bottom: 1px solid #fff;
	margin-bottom: -1px;
}

.woocommerce div.product .woocommerce-tabs .panel {
	padding: 30px;
	border: 1px solid #ddd;
	border-top: none;
	background: #fff;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.woocommerce-cart table.cart {
	width: 100%;
	border-collapse: collapse;
}

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

.woocommerce-cart table.cart th {
	background: #f5f5f5;
	font-weight: 600;
}

.woocommerce-cart table.cart img {
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

/* Remove button - matches side cart trash icon styling */
.woocommerce-cart table.cart .product-remove a.remove,
.woocommerce table.shop_table.cart .product-remove a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #8b0000;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0;
    line-height: 1;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Use Font Awesome trash icon */
.woocommerce-cart table.cart .product-remove a.remove::before,
.woocommerce table.shop_table.cart .product-remove a.remove::before {
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', FontAwesome;
    font-weight: 400;
    content: '\f2ed'; /* fa-trash-can */
    font-size: 14px;
    color: #fff;
}

.woocommerce-cart table.cart .product-remove a.remove:hover,
.woocommerce table.shop_table.cart .product-remove a.remove:hover {
    background: #6b0000;
}

.woocommerce .cart-collaterals {
	margin-top: 40px;
}

.woocommerce .cart-collaterals .cart_totals {
	max-width: 450px;
	margin-left: auto;
}

.woocommerce .cart-collaterals .cart_totals table {
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.woocommerce a.checkout-button {
	display: block;
	width: 100%;
	padding: 15px;
	background-color: var(--primary-button, #333);
	color: #fff !important;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: var(--button-radius, 4px);
	transition: background-color 0.3s ease;
}

.woocommerce a.checkout-button:hover {
	background-color: var(--secondary-button, #555);
}

/* Payment method message - ensure spacing from checkout button */
#payment-method-message {
    margin-top: 2em;
}

/* Coupon Code field */

#coupon_code {
    width: 140px;
}

/* ==========================================================================
   Cart Page - Mobile Responsive Layout
   ========================================================================== */

/* Override WooCommerce smallscreen CSS that hides elements */
@media (max-width: 768px) {
    /* Force table to block layout on mobile */
    .woocommerce-cart table.cart,
    .woocommerce-cart table.shop_table,
    .woocommerce table.shop_table.shop_table_responsive.cart {
        display: block !important;
        width: 100% !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    
    /* Hide the original thead on mobile - we'll use data-title instead */
    .woocommerce-cart table.cart thead,
    .woocommerce table.shop_table.cart thead {
        display: none !important;
    }
    
    .woocommerce-cart table.cart tbody,
    .woocommerce table.shop_table.cart tbody {
        display: block !important;
    }
    
    /* Each cart item as a card */
    .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item,
    .woocommerce-cart table.cart tr.cart_item,
    .woocommerce table.shop_table.cart tr.cart_item {
        display: block !important;
        padding: 20px !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        position: relative !important;
        background: #fff !important;
    }
    
    .woocommerce-cart table.cart tr.cart_item:last-child {
        border-bottom: none !important;
    }
    
    /* All table cells as block */
    .woocommerce-cart table.cart td,
    .woocommerce table.shop_table.cart td {
        display: block !important;
        padding: 8px 0 !important;
        border: none !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    /* Override WooCommerce hiding product thumbnail */
    .woocommerce-cart table.cart .product-thumbnail,
    .woocommerce table.shop_table.cart .product-thumbnail,
    .woocommerce table.shop_table_responsive tr td.product-thumbnail {
        display: block !important;
        text-align: center !important;
        padding-bottom: 16px !important;
    }
    
    .woocommerce-cart table.cart .product-thumbnail img,
    .woocommerce table.shop_table.cart .product-thumbnail img {
        max-width: 120px !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
    }
    
    /* Override WooCommerce hiding product name */
    .woocommerce-cart table.cart .product-name,
    .woocommerce table.shop_table.cart .product-name,
    .woocommerce table.shop_table_responsive tr td.product-name {
        display: block !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        padding-bottom: 12px !important;
        text-align: center !important;
    }
    
    .woocommerce-cart table.cart .product-name a {
        color: #1a1a1a !important;
        text-decoration: none !important;
    }
    
    .woocommerce-cart table.cart .product-name a:hover {
        color: #8b0000 !important;
    }
    
    /* Price, quantity, subtotal as inline items */
    .woocommerce-cart table.cart .product-price,
    .woocommerce-cart table.cart .product-quantity,
    .woocommerce-cart table.cart .product-subtotal,
    .woocommerce table.shop_table.cart .product-price,
    .woocommerce table.shop_table.cart .product-quantity,
    .woocommerce table.shop_table.cart .product-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    /* Add labels before values on mobile */
    .woocommerce-cart table.cart .product-price::before,
    .woocommerce-cart table.cart .product-quantity::before,
    .woocommerce-cart table.cart .product-subtotal::before,
    .woocommerce table.shop_table.cart .product-price::before,
    .woocommerce table.shop_table.cart .product-quantity::before,
    .woocommerce table.shop_table.cart .product-subtotal::before {
        display: inline-block !important;
        font-weight: 600;
        font-size: 13px;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .woocommerce-cart table.cart .product-price::before,
    .woocommerce table.shop_table.cart .product-price::before {
        content: 'Price' !important;
    }
    
    .woocommerce-cart table.cart .product-quantity::before,
    .woocommerce table.shop_table.cart .product-quantity::before {
        content: 'Quantity' !important;
    }
    
    .woocommerce-cart table.cart .product-subtotal::before,
    .woocommerce table.shop_table.cart .product-subtotal::before {
        content: 'Subtotal' !important;
    }
    
    /* Subtotal price styling */
    .woocommerce-cart table.cart .product-subtotal .woocommerce-Price-amount,
    .woocommerce table.shop_table.cart .product-subtotal .woocommerce-Price-amount {
        font-weight: 700;
        font-size: 16px;
        color: #8b0000;
    }
    
    /* Remove button - position absolutely in top right on mobile */
    .woocommerce-cart table.cart .product-remove,
    .woocommerce table.shop_table.cart .product-remove {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        padding: 0 !important;
        width: auto !important;
    }
    
    /* Quantity input on mobile */
    .woocommerce-cart table.cart .quantity .qty,
    .woocommerce table.shop_table.cart .quantity .qty {
        width: 60px !important;
        padding: 8px !important;
        text-align: center !important;
    }
    
    /* Hide coupon on very bottom, make actions stack */
    .woocommerce-cart table.cart tr.actions,
    .woocommerce table.shop_table.cart tr.actions {
        display: block !important;
        padding: 20px !important;
        background: #fafafa !important;
    }
    
    .woocommerce-cart table.cart tr.actions td {
        display: block !important;
        width: 100% !important;
    }
    
    .woocommerce-cart table.cart .coupon {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    
    .woocommerce-cart table.cart .coupon #coupon_code {
        flex: 1 !important;
        min-width: 150px !important;
        width: auto !important;
    }
    
    .woocommerce-cart table.cart .coupon .button,
    .woocommerce-cart table.cart button[name="update_cart"] {
        width: 100% !important;
        padding: 12px 20px !important;
    }
    
    /* Fix disabled update_cart button text color */
    .woocommerce-cart table.cart button[name="update_cart"]:disabled {
        color: #fff !important;
        opacity: 0.6;
    }
    
    /* Cart totals on mobile */
    .woocommerce .cart-collaterals .cart_totals {
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Disable the default WooCommerce data-title pseudo-elements */
    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        display: none !important;
    }
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	width: 100%;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

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

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--primary-button, #333);
	outline: none;
}

.woocommerce #order_review {
	margin-top: 40px;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 4px;
}

.woocommerce #place_order {
	width: 100%;
	padding: 15px;
	background-color: var(--primary-button, #333);
	color: #fff;
	border: none;
	border-radius: var(--button-radius, 4px);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.woocommerce #place_order:hover {
	background-color: var(--secondary-button, #555);
}

/* ==========================================================================
   Checkout Page - Enhanced Form Styling (matches My Account)
   ========================================================================== */

/* Checkout form container */
.woocommerce-checkout form.checkout {
    max-width: 100%;
}

/* Checkout section wrappers */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 24px;
}

/* Form row styling - consistent with My Account */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Labels - block display above inputs */
.woocommerce-checkout .form-row label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: none !important;
}

.woocommerce-checkout .form-row label .required {
    color: #8b0000;
}

.woocommerce-checkout .form-row label .optional {
    font-size: 11px;
    color: #888;
    text-transform: none;
    font-weight: 400;
}

/* All form inputs - full width with proper styling */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block !important;
    float: none !important;
}

/* Select2 container width fix */
.woocommerce-checkout .form-row .select2-container {
    padding: 0 !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    height: auto !important;
    padding: 12px 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.4 !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #8b0000 !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Checkbox and radio inputs - larger and more tap-friendly */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #8b0000;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

.woocommerce-checkout input[type="checkbox"] {
    border-radius: 4px !important;
}

.woocommerce-checkout input[type="radio"] {
    border-radius: 50% !important;
}

/* Ensure labels next to checkboxes/radios are properly aligned */
.woocommerce-checkout .form-row input[type="checkbox"] + label,
.woocommerce-checkout .form-row input[type="checkbox"] + span,
.woocommerce-checkout .form-row label:has(input[type="checkbox"]),
.woocommerce-checkout .form-row input[type="radio"] + label,
.woocommerce-checkout .form-row label:has(input[type="radio"]) {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

/* Saved payment methods - save new checkbox inline with label */
p.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated,
p.form-row.woocommerce-SavedPaymentMethods-saveNew {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"],
p.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated input[type="checkbox"] {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew label,
p.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated label {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    float: none !important;
    flex: 0 1 auto !important;
}

/* Form row half widths - only for side-by-side fields within a column */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 10px) !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.woocommerce-checkout .form-row-first {
    margin-right: 20px !important;
    float: left !important;
}

.woocommerce-checkout .form-row-last {
    float: right !important;
    margin-right: 0 !important;
}

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

/* Checkout billing/shipping column layout */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details.col2-set {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Hide WooCommerce clearfix pseudo-elements that break grid */
.woocommerce-checkout .col2-set::before,
.woocommerce-checkout .col2-set::after,
.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after {
    display: none !important;
    content: none !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Ensure form wrappers inside columns respect width */
.woocommerce-checkout .col2-set .woocommerce-billing-fields,
.woocommerce-checkout .col2-set .woocommerce-shipping-fields,
.woocommerce-checkout .col2-set .woocommerce-additional-fields,
.woocommerce-checkout #customer_details .woocommerce-billing-fields,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Order review section */
.woocommerce-checkout #order_review_heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-checkout #order_review {
    margin-top: 0;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* Order review table */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total .woocommerce-Price-amount {
    color: #8b0000;
}

/* Payment methods section */
.woocommerce-checkout #payment {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-checkout #payment .payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-checkout #payment .payment_methods li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
}

.woocommerce-checkout #payment .payment_methods li:last-child {
    border-bottom: none;
}

.woocommerce-checkout #payment .payment_methods li input[type="radio"].input-radio {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    margin: 0 0 0 20px !important;
    accent-color: #8b0000;
    flex-shrink: 0;
}

.woocommerce-checkout #payment .payment_methods li label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 16px 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    transition: background 0.2s ease;
    flex: 1;
}

.woocommerce-checkout #payment .payment_methods li label:hover {
    background: #fafafa;
}

.woocommerce-checkout #payment .payment_methods li img {
    max-height: 24px;
    width: auto;
}

.woocommerce-checkout #payment .payment_box {
    padding: 20px;
    background: #f5f5f5;
    margin: 0;
    border-top: 1px solid #e5e5e5;
}

.woocommerce-checkout #payment .payment_box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Payment box form fields - consistent styling */
.woocommerce-checkout #payment .payment_box .form-row {
    display: block !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout #payment .payment_box .form-row label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: none !important;
}

.woocommerce-checkout #payment .payment_box .form-row input:not([type="checkbox"]):not([type="radio"]),
.woocommerce-checkout #payment .payment_box .form-row select,
.woocommerce-checkout #payment .payment_box .form-row textarea,
.woocommerce-checkout #payment .payment_box .form-row .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

.woocommerce-checkout #payment .payment_box .form-row input:not([type="checkbox"]):not([type="radio"]):focus,
.woocommerce-checkout #payment .payment_box .form-row select:focus {
    border-color: #8b0000 !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Payment box half-width fields */
.woocommerce-checkout #payment .payment_box .form-row-first,
.woocommerce-checkout #payment .payment_box .form-row-last {
    width: calc(50% - 10px) !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.woocommerce-checkout #payment .payment_box .form-row-first {
    margin-right: 20px !important;
    float: left !important;
}

.woocommerce-checkout #payment .payment_box .form-row-last {
    float: right !important;
    margin-right: 0 !important;
}

.woocommerce-checkout #payment .payment_box .form-row-wide {
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

/* Override for SavedPaymentMethods checkbox - must appear after general form-row rules */
.woocommerce-checkout #payment .payment_box p.form-row.woocommerce-SavedPaymentMethods-saveNew,
.woocommerce-checkout #payment .payment_box p.woocommerce-SavedPaymentMethods-saveNew {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
}

/* Hide pseudo-elements that break flex layout */
.woocommerce-checkout #payment .payment_box p.form-row.woocommerce-SavedPaymentMethods-saveNew::before,
.woocommerce-checkout #payment .payment_box p.form-row.woocommerce-SavedPaymentMethods-saveNew::after,
.woocommerce-checkout #payment .payment_box p.woocommerce-SavedPaymentMethods-saveNew::before,
.woocommerce-checkout #payment .payment_box p.woocommerce-SavedPaymentMethods-saveNew::after {
    display: none !important;
    content: none !important;
}

.woocommerce-checkout #payment .payment_box p.form-row.woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"],
.woocommerce-checkout #payment .payment_box p.woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
    flex-shrink: 0 !important;
    margin: 0 !important;
    position: static !important;
}

.woocommerce-checkout #payment .payment_box p.form-row.woocommerce-SavedPaymentMethods-saveNew label,
.woocommerce-checkout #payment .payment_box p.woocommerce-SavedPaymentMethods-saveNew label {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    float: none !important;
    position: static !important;
}

/* Place order section */
.woocommerce-checkout #payment .place-order {
    padding: 20px;
    background: #fafafa;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #8b0000;
}

/* Place order button */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 24px !important;
    background: #8b0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-checkout #place_order:hover {
    background: #6b0000 !important;
    transform: translateY(-1px);
}

/* Checkout responsive */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout #customer_details.col2-set {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2,
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
    
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
        padding: 16px;
    }
    
    .woocommerce-checkout #order_review {
        padding: 16px;
    }
    
    .woocommerce-checkout #payment .payment_methods li label {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   My Account Page
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 260px;
    max-width: 260px;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--primary-button, #1a1a1a);
    color: #fff;
}

/* My Account Content Area */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   ADDRESSES PAGE - COMPLETE REWRITE
   ============================================ */

/* Two-column grid layout for address cards */
.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .col2-set.addresses {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Hide the ::before pseudo-element that WooCommerce/theme adds */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after,
.woocommerce-account .col2-set.addresses::before,
.woocommerce-account .col2-set.addresses::after {
    display: none !important;
    content: none !important;
}

/* Reset float-based layouts on column wrappers ONLY (not address cards) */
.woocommerce-account .woocommerce-Addresses > .col-1,
.woocommerce-account .woocommerce-Addresses > .col-2,
.woocommerce-account .woocommerce-Addresses > .u-column1,
.woocommerce-account .woocommerce-Addresses > .u-column2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Style the actual address cards with HIGH specificity to override any resets */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .col2-set .woocommerce-Address,
.woocommerce-account div.woocommerce-Address {
    padding: 24px !important;
    background: #fafafa !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive - single column on mobile */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce-Addresses,
    .woocommerce-account .col2-set.addresses {
        grid-template-columns: 1fr !important;
    }
}

/* Address header with title and Edit link */
.woocommerce-account .woocommerce-Address .woocommerce-Address-title,
.woocommerce-account .woocommerce-Address header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-account .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-Address header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

/* Edit Address button - refined sizing */
.woocommerce-account .woocommerce-Address-title a,
.woocommerce-account .woocommerce-Address header a.edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8b0000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    background: rgba(139, 0, 0, 0.08);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.woocommerce-account .woocommerce-Address-title a:hover,
.woocommerce-account .woocommerce-Address header a.edit:hover {
    background: #8b0000;
    color: #fff;
    text-decoration: none;
}

/* Address text styling */
.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Edit Account Form */
.woocommerce-account .woocommerce-EditAccountForm {
    max-width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    background: #fafafa;
}

.woocommerce-account .woocommerce-EditAccountForm legend {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 8px;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row {
    margin-bottom: 16px;
}

/* Name fields side by side */
.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    display: inline-block;
    width: calc(50% - 12px);
    vertical-align: top;
}

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

.woocommerce-account .woocommerce-EditAccountForm .form-row-wide {
    width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-EditAccountForm input:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    outline: none;
}

.woocommerce-account .woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

/* Password change form rows - ensure inputs below labels */
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row label,
.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row .password-input,
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row input,
.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row .password-input,
.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row input {
    width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
}

.woocommerce-account .woocommerce-EditAccountForm .password-input {
    position: relative;
}

/* ============================================
   RADIO BUTTONS - Account Details & Form Fields
   ============================================ */

/* 
 * WooCommerce radio buttons can be:
 * 1. <input> inside <label> - input needs inline display
 * 2. <input> before <label> - parent needs flex row
 * 3. <label><input><span>text</span></label> - input before text
 * This CSS handles ALL common patterns
 */

/* Global radio button reset */
.woocommerce-account input[type="radio"],
.woocommerce-EditAccountForm input[type="radio"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    flex-shrink: 0 !important;
}

/* Pattern 1: Radio inside label - ensure inline layout */
.woocommerce-account label input[type="radio"],
.woocommerce-EditAccountForm label input[type="radio"] {
    margin-right: 10px !important;
}

/* Pattern 2: Paragraph/div container with radio + label as siblings */
.woocommerce-account p:has(input[type="radio"]),
.woocommerce-account div:has(input[type="radio"]),
.woocommerce-EditAccountForm p:has(input[type="radio"]),
.woocommerce-EditAccountForm div:has(input[type="radio"]) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Keep text flowing properly after radio */
.woocommerce-account p:has(input[type="radio"]) label,
.woocommerce-EditAccountForm p:has(input[type="radio"]) label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Mailchimp-specific containers as flex rows */
.woocommerce-EditAccountForm p[id*="mailchimp"],
.woocommerce-EditAccountForm .mc4wp-checkbox,
#mailchimp_woocommerce_is_subscribed,
#mailchimp_woocommerce_is_unsubscribed,
#mailchimp_woocommerce_is_transactional {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Labels next to radio buttons should be inline */
.woocommerce-EditAccountForm p[id*="mailchimp"] label,
#mailchimp_woocommerce_is_subscribed label,
#mailchimp_woocommerce_is_unsubscribed label,
#mailchimp_woocommerce_is_transactional label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

/* When radio is a sibling BEFORE the label */
.woocommerce-account input[type="radio"] + label,
.woocommerce-EditAccountForm input[type="radio"] + label {
    display: inline !important;
    margin-left: 0 !important;
}

/* Fallback: any radio in a woocommerce-form-row */
.woocommerce-form-row input[type="radio"] {
    width: auto !important;
    display: inline-block !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* Account Form Submit Button */
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content button.button,
.woocommerce-account .woocommerce-MyAccount-content .button {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ============================================
   LOGIN FORM - Inner Elements Styling
   ============================================ */

.woocommerce-form-login {
    max-width: 480px;
    padding: 32px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Form rows - stack vertically with spacing */
.woocommerce-form-login .form-row {
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-form-login .form-row-wide {
    width: 100% !important;
    clear: both;
}

/* Labels - block display above inputs */
.woocommerce-form-login label {
    display: block !important;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text inputs - full width with proper styling */
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-form-login input[type="text"]:focus,
.woocommerce-form-login input[type="email"]:focus,
.woocommerce-form-login input[type="password"]:focus {
    border-color: #8b0000 !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Password field wrapper */
.woocommerce-form-login .password-input {
    position: relative;
    width: 100%;
}

.woocommerce-form-login .password-input input {
    padding-right: 45px !important;
}

.woocommerce-form-login .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

/* Remember me row - inline checkbox and label */
.woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #8b0000;
}

.woocommerce-form-login .woocommerce-form-login__rememberme span {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Submit button */
.woocommerce-form-login button[type="submit"],
.woocommerce-form-login .woocommerce-button {
    padding: 14px 28px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Lost password link */
.woocommerce-form-login .woocommerce-LostPassword {
    margin-top: 20px;
}

.woocommerce-form-login .woocommerce-LostPassword a {
    color: #8b0000;
    text-decoration: none;
    font-size: 14px;
}

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

.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-login .woocommerce-button:hover {
    background: #333 !important;
    transform: translateY(-1px);
}

/* Orders Table */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-account .woocommerce-orders-table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.woocommerce-account .woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-account .woocommerce-orders-table .button {
    padding: 8px 16px;
    font-size: 13px;
}

/* Order actions cell */
.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
}

/* Add icons to View and Pay buttons */
.woocommerce-account .woocommerce-orders-table__cell-order-actions .view::before {
    content: "\f06e";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome;
    font-weight: 400;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .pay::before {
    content: "\f09d";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome;
    font-weight: 400;
}

/* ==========================================================================
   Messages / Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 15px 20px 15px 50px;
	margin-bottom: 20px;
	border-radius: 4px;
	position: relative;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome;
	font-size: 16px;
}

.woocommerce-message {
	background-color: #d4edda;
	border-left: 4px solid #28a745;
	color: #155724;
}

.woocommerce-message::before {
	content: "\f00c";
	color: #28a745;
}

.woocommerce-info {
	background-color: #d1ecf1;
	border-left: 4px solid #17a2b8;
	color: #0c5460;
}

.woocommerce-info::before {
	content: "\f05a";
	color: #17a2b8;
}

.woocommerce-error {
	background-color: #f8d7da;
	border-left: 4px solid #dc3545;
	color: #721c24;
}

.woocommerce-error::before {
	content: "\f071";
	color: #dc3545;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .woa-shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
    
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Related products on smaller screens */
    .woocommerce .related.products ul.products,
    .woocommerce .upsells.products ul.products,
    section.related.products > ul.products.columns-3,
    section.related.products ul.products,
    .single-product section.related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Related products items responsive */
    .woocommerce .related.products ul.products > li.product,
    section.related.products ul.products > li.product {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .woa-shop-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Hide desktop sidebar on mobile - use mobile filter instead */
    .woa-shop-sidebar {
        display: none !important;
    }
    
    /* Show mobile filter on mobile */
    .woa-mobile-filter {
        display: block !important;
    }
    
    /* Products go to 2 columns on tablet, 1 on mobile */
    .woocommerce .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Related products on mobile */
    .woocommerce .related.products ul.products,
    .woocommerce .upsells.products ul.products,
    section.related.products ul.products,
    section.related.products > ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Related products items responsive */
    .woocommerce .related.products ul.products > li.product,
    section.related.products ul.products > li.product {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Per page dropdown responsive */
    .woa-per-page-wrapper {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .woocommerce .woocommerce-ordering {
        float: none;
        width: 100%;
    }
    
    .woocommerce p.woocommerce-result-count {
        float: none;
        width: 100%;
    }
	
	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		max-width: 100%;
	}
	
	.woa-product-wrapper {
		flex-direction: column;
	}
	
	.woocommerce-checkout .col2-set .col-1,
	.woocommerce-checkout .col2-set .col-2 {
		flex-basis: 100%;
	}
	
	/* My Account responsive */
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: none;
        max-width: 100%;
        width: 100%;
        margin-bottom: 24px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 0;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .woocommerce-account .woocommerce-Addresses.col2-set,
    .woocommerce-account .col2-set.addresses,
    .woocommerce-account .woocommerce-MyAccount-content .col2-set {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce-account .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-account .woocommerce-EditAccountForm .form-row-last {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .woocommerce-form-login {
        max-width: 100%;
    }
	
	.woocommerce-cart table.cart .product-thumbnail {
		display: block !important;
	}
}

@media only screen and (max-width: 768px) {
    .woocommerce table.shop_table_responsive tbody th, .woocommerce-page table.shop_table_responsive tbody th {
        display: block;
    }
}

@media only screen and (max-width: 768px) {
    .woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {
        display: none;
    }
}


@media (max-width: 480px) {
	
	/* Single column layout for small screens */
	.woocommerce .products,
	.woocommerce ul.products,
	.woocommerce .related.products ul.products,
	.woocommerce .upsells.products ul.products,
	section.related.products ul.products,
	section.related.products > ul.products.columns-3 {
		grid-template-columns: 1fr !important;
        gap: 16px !important;
	}
	
	/* Related products items responsive */
	.woocommerce .related.products ul.products > li.product,
	section.related.products ul.products > li.product {
		width: 100% !important;
		max-width: 100% !important;
	}
    
    .woocommerce ul.products li.product a img {
        aspect-ratio: 4 / 3;
    }
	
	.woocommerce div.product form.cart {
		flex-direction: column;
		align-items: stretch;
	}
	
	.woocommerce div.product form.cart .quantity {
		justify-content: center;
	}
}


/* ==========================================================================
   Category Filter Sidebar
   ========================================================================== */

.woa-category-filter {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.woa-category-filter__header {
    padding: 16px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.woa-category-filter__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woa-category-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow-y: visible;
}

.woa-category-filter__item {
    border-bottom: 1px solid #f0f0f0;
}

.woa-category-filter__item:last-child {
    border-bottom: none;
}

/* Checkbox-based label styling */
.woa-category-filter__label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #444444;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.woa-category-filter__label:hover {
    background: #f8f8f8;
    color: #8b0000;
}

.woa-category-filter__label.active {
    background: rgba(139, 0, 0, 0.08);
    color: #8b0000;
    font-weight: 600;
}

/* Hide native checkbox */
.woa-category-filter__checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkmark */
.woa-category-filter__checkmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.woa-category-filter__checkmark::after {
    content: '';
    position: absolute;
    display: none;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.woa-category-filter__checkbox:checked ~ .woa-category-filter__checkmark {
    background: #8b0000;
    border-color: #8b0000;
}

.woa-category-filter__checkbox:checked ~ .woa-category-filter__checkmark::after {
    display: block;
}

.woa-category-filter__label:hover .woa-category-filter__checkmark {
    border-color: #8b0000;
}

/* Legacy link styling (kept for backwards compat) */
.woa-category-filter__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}

.woa-category-filter__link:hover {
    background: #f8f8f8;
    color: #8b0000;
}

.woa-category-filter__link.active {
    background: rgba(139, 0, 0, 0.08);
    color: #8b0000;
    font-weight: 600;
}

.woa-category-filter__name {
    flex: 1;
}

.woa-category-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    margin-left: auto;
}

.woa-category-filter__label:hover .woa-category-filter__count,
.woa-category-filter__label.active .woa-category-filter__count,
.woa-category-filter__link:hover .woa-category-filter__count,
.woa-category-filter__link.active .woa-category-filter__count {
    background: rgba(139, 0, 0, 0.15);
    color: #8b0000;
}

/* Child categories */
.woa-category-filter__children {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.woa-category-filter__children.expanded {
    max-height: 500px;
}

.woa-category-filter__children .woa-category-filter__label,
.woa-category-filter__children .woa-category-filter__link {
    padding-left: 36px;
    font-size: 13px;
}

/* Actions: Apply button and Clear link */
.woa-category-filter__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.woa-category-filter__apply {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: #8b0000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.woa-category-filter__apply:hover {
    background: #6b0000;
}

/* Clear filters link */
.woa-category-filter__clear {
    display: block;
    text-align: center;
    color: #8b0000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.woa-category-filter__clear:hover {
    color: #6b0000;
    text-decoration: underline;
}

/* ==========================================================================
   Tags Filter
   ========================================================================== */

.woa-tag-filter {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.woa-tag-filter__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.woa-tag-filter__header:hover {
    background: #fafafa;
}

.woa-tag-filter__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woa-tag-filter__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: transform 0.2s ease;
}

.woa-tag-filter__header.collapsed .woa-tag-filter__toggle-icon {
    transform: rotate(-90deg);
}

.woa-tag-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.woa-tag-filter__list.collapsed {
    max-height: 0;
    border-top: none;
    opacity: 0;
}

.woa-tag-filter__item {
    border-bottom: 1px solid #f0f0f0;
}

.woa-tag-filter__item:last-child {
    border-bottom: none;
}

.woa-tag-filter__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}

.woa-tag-filter__link:hover {
    background: #f8f8f8;
    color: #8b0000;
}

.woa-tag-filter__link.active {
    background: #8b0000;
    color: #fff;
}

.woa-tag-filter__link.active:hover {
    background: #a00000;
}

.woa-tag-filter__name {
    flex: 1;
}

.woa-tag-filter__count {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.woa-tag-filter__link.active .woa-tag-filter__count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.woa-tag-filter__clear {
    display: block;
    padding: 12px 18px;
    color: #8b0000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid #e5e5e5;
    transition: background 0.15s ease;
}

.woa-tag-filter__clear:hover {
    background: #fafafa;
}

/* Stock filter toggle */
.woa-stock-filter {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 18px;
}

.woa-stock-filter__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444444;
    user-select: none;
}

.woa-stock-filter__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #8b0000;
}

.woa-stock-filter__text {
    flex: 1;
}

/* ==========================================================================
   Sold Badge (WC Sold Out Badge for WooCommerce)
   ========================================================================== */

/* Style the WCSOB sold out badge */
.woocommerce ul.products li.product .wcsob_soldout,
.wcsob_soldout {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 10;
    display: inline-block !important;
    padding: 4px 12px !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    margin: 0 !important;
}

/* Ensure product thumbnail wrapper has position relative */
.woocommerce ul.products li.product {
    position: relative;
}

/* Sold products have reduced opacity on the image */
.woocommerce ul.products li.product.outofstock a img {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.woocommerce ul.products li.product.outofstock:hover a img {
    opacity: 0.8;
}

/* Stock status badge styling */
.woocommerce p.stock,
.woocommerce span.stock {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0;
}

.woocommerce p.stock.in-stock,
.woocommerce span.stock.in-stock {
    background-color: #28a745;
    color: #fff;
}

.woocommerce p.stock.out-of-stock,
.woocommerce span.stock.out-of-stock {
    background-color: #dc3545;
    color: #fff;
}

.woocommerce p.stock.available-on-backorder,
.woocommerce span.stock.available-on-backorder {
    background-color: #ffc107;
    color: #212529;
}

/* ==========================================================================
   Login / Register Page - Enhanced Styles
   ========================================================================== */

/* Single form layout (login only or register only) - default to block */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: block;
}

/* When only one form exists, constrain its width */
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-form-login {
    max-width: 480px;
}

/* Login/Register page layout - use grid ONLY when BOTH forms are present */
.woocommerce-account:not(.logged-in) .woocommerce:has(.u-column1):has(.u-column2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .woocommerce-account:not(.logged-in) .woocommerce:has(.u-column1):has(.u-column2) {
        grid-template-columns: 1fr;
    }
}

/* Ensure login form container styling */
.woocommerce-account .woocommerce .u-column1,
.woocommerce-account .woocommerce .u-column2 {
    width: 100%;
    max-width: 100%;
    float: none;
    padding: 0;
}

.woocommerce-account .woocommerce .u-column1 h2,
.woocommerce-account .woocommerce .u-column2 h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* Login Form - Enhanced */
.woocommerce-form-login,
.woocommerce-form-register {
    max-width: 100%;
    padding: 32px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login .form-row-first,
.woocommerce-form-login .form-row-last,
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-form-login label .required,
.woocommerce-form-register label .required {
    color: #8b0000;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    outline: none;
}

/* Password field with show/hide toggle */
.woocommerce-form-login .password-input,
.woocommerce-form-register .password-input {
    position: relative;
}

.woocommerce-form-login .show-password-input,
.woocommerce-form-register .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.woocommerce-form-login .show-password-input:hover,
.woocommerce-form-register .show-password-input:hover {
    color: #8b0000;
}

/* Form Row Wide */
.woocommerce-form-login .form-row-wide,
.woocommerce-form-register .form-row-wide {
    width: 100%;
}

/* Remember Me Checkbox */
.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8b0000;
}

/* Submit Button */
.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"] {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-register button[type="submit"]:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* Lost Password Link */
.woocommerce-form-login .woocommerce-LostPassword {
    margin-top: 16px;
}

.woocommerce-form-login .woocommerce-LostPassword a {
    color: #8b0000;
    text-decoration: none;
    font-size: 14px;
}

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

/* Privacy Policy Text */
.woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.woocommerce-privacy-policy-text a {
    color: #8b0000;
}

/* ==========================================================================
   Addresses Page - Enhanced Edit Form
   ========================================================================== */

/* Edit Address Form */
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

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

.woocommerce-address-fields .form-row-first {
    margin-right: 24px;
}

.woocommerce-address-fields .form-row-wide {
    width: 100%;
}

.woocommerce-address-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.woocommerce-address-fields label .required {
    color: #8b0000;
}

.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select,
.woocommerce-address-fields textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus,
.woocommerce-address-fields textarea:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    outline: none;
}

/* Select2 Override for Country/State Dropdowns */
.woocommerce-address-fields .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 16px;
    color: #333;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

/* Address Form Submit Button */
.woocommerce-address-fields button[type="submit"] {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.woocommerce-address-fields button[type="submit"]:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .woocommerce-address-fields .form-row-first,
    .woocommerce-address-fields .form-row-last {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Payment Methods Page - Enhanced Styles
   ========================================================================== */

/* Payment Methods Container */
.woocommerce-MyAccount-content .woocommerce-PaymentMethods,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethods th,
.woocommerce-MyAccount-content .woocommerce-PaymentMethods td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethods th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethods tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

/* No Payment Methods Message */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce .woocommerce-info {
    padding: 20px 20px 20px 50px !important;
    background: #f0f6fc;
    border-left: 4px solid #0366d6;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}

.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce .woocommerce-info::before {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome !important;
    font-size: 16px !important;
    content: "\f05a" !important;
    color: #0366d6 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    margin: 0 !important;
}

/* Add Payment Method Button */
.woocommerce-MyAccount-content a.add_payment_method,
.woocommerce-MyAccount-content .woocommerce-Button--add-payment-method,
.woocommerce-account .woocommerce-MyAccount-content a.button.wc-forward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-MyAccount-content a.add_payment_method:hover,
.woocommerce-MyAccount-content .woocommerce-Button--add-payment-method:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button.wc-forward:hover {
    background: #333;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Payment Method Action Buttons (Delete, Set as Default) */
.woocommerce-MyAccount-content .woocommerce-PaymentMethods .button,
.woocommerce-MyAccount-content .woocommerce-PaymentMethods a.button,
.woocommerce-account .woocommerce-MyAccount-content .button.delete,
.woocommerce-account .woocommerce-MyAccount-content .button.set-default {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethods .button:hover,
.woocommerce-MyAccount-content .woocommerce-PaymentMethods a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button.delete:hover,
.woocommerce-account .woocommerce-MyAccount-content .button.set-default:hover {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
}

/* Delete button specific */
.woocommerce-MyAccount-content .button.delete:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* ==========================================================================
   Lost Password / Reset Password Page
   ========================================================================== */

.woocommerce-ResetPassword {
    max-width: 480px;
    padding: 32px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.woocommerce-ResetPassword p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

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

.woocommerce-ResetPassword label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-ResetPassword input:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    outline: none;
}

.woocommerce-ResetPassword button[type="submit"] {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-ResetPassword button[type="submit"]:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   WooCommerce General Buttons - Consistent Styling
   ========================================================================== */

/* All WooCommerce Buttons */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce .woocommerce-Button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* Alt Button Style */
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
    background: #8b0000;
    color: #fff;
}

.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: #6b0000;
    color: #fff;
}

/* Disabled Button */
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce input.button:disabled,
.woocommerce a.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   WooCommerce Form Fields - Global Consistency
   ========================================================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    outline: none;
}

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

.woocommerce form .form-row .required {
    color: #8b0000;
    font-weight: 600;
}

/* ==========================================================================
   WooCommerce Checkout Form Enhancements
   ========================================================================== */

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* Checkout form field widths */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 12px);
    display: inline-block;
    vertical-align: top;
}

.woocommerce-checkout .form-row-first {
    margin-right: 24px;
}

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

@media (max-width: 768px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* ==========================================================================
   WooCommerce Select2 Dropdown Styling
   ========================================================================== */

.woocommerce .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 16px;
    color: #333;
    font-size: 15px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.select2-dropdown {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #8b0000;
}

/* ==========================================================================
   WooCommerce Quantity Input Styling
   ========================================================================== */

.woocommerce .quantity .qty {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
}

.woocommerce .quantity .qty:focus {
    border-color: #8b0000;
    outline: none;
}

/* ==========================================================================
   WooCommerce Order Details / Thank You Page
   ========================================================================== */

.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 24px;
}

.woocommerce-order-received .woocommerce-order-details {
    margin-top: 32px;
}

.woocommerce-order-received .woocommerce-order-details__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-order-received .woocommerce-table--order-details thead th {
    background: #fafafa;
    font-weight: 600;
}

/* ==========================================================================
   WooCommerce Mini Cart / Cart Widget
   ========================================================================== */

.woocommerce.widget_shopping_cart .cart_list li,
.woocommerce .widget_shopping_cart .cart_list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce.widget_shopping_cart .cart_list li:last-child,
.woocommerce .widget_shopping_cart .cart_list li:last-child {
    border-bottom: none;
}

.woocommerce.widget_shopping_cart .total,
.woocommerce .widget_shopping_cart .total {
    padding: 12px 0;
    font-weight: 600;
    border-top: 2px solid #e5e5e5;
}

.woocommerce.widget_shopping_cart .buttons a,
.woocommerce .widget_shopping_cart .buttons a {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.xoo-wsc-ft-btn-checkout {
    background-color: #28a745 !important;
}

.xoo-wsc-ft-btn-checkout:hover {
    color: #fff !important;
}

.xoo-wsc-cart-close {
    background-color: #8b0000 !important;
}

.xoo-wsc-cart-close:hover {
    color: #fff !important;
}

.xoo-wsc-sm-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.xoo-wsc-sm-right {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

span.xoo-wsc-smr-del {
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: #8b0000;
    border-radius: 4px;
    max-height: 200px;
    padding: 12px;
    align-content: center;
}

span.xoo-wsc-smr-del:hover {
    background-color: #dc3545;
}

span.xoo-wsc-smr-del::before {
        filter: invert(1);
}

/* ==========================================================================
   WooCommerce Pagination - Enhanced Styling
   ========================================================================== */

/* Add spacing between products grid and pagination */
.woocommerce ul.products {
    margin-bottom: 48px !important;
}

/* Pagination wrapper */
.woocommerce-pagination,
.woocommerce nav.woocommerce-pagination {
    margin: 40px 0;
    padding: 0;
    text-align: center;
    clear: both;
}

/* Top pagination - slightly less margin */
.woocommerce-pagination--top,
.woocommerce nav.woocommerce-pagination--top {
    margin-top: 0;
    margin-bottom: 32px;
}

/* Page numbers list */
.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    overflow-x: auto;
    max-width: 100%;
}

/* Individual page number items */
.woocommerce-pagination ul li,
.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
    border: none;
}

/* Page number links and spans */
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers,
nav.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover state */
.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-pagination .page-numbers:hover,
nav.woocommerce-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #1a1a1a;
}

/* Current page */
.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-pagination .page-numbers.current,
nav.woocommerce-pagination .page-numbers.current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    cursor: default;
}

/* Prev/Next arrows */
.woocommerce-pagination ul li a.prev,
.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next,
nav.woocommerce-pagination .page-numbers.prev,
nav.woocommerce-pagination .page-numbers.next {
    font-size: 18px;
    padding: 0 12px;
}

/* Dots/ellipsis */
.woocommerce-pagination ul li span.dots,
.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination .page-numbers.dots,
nav.woocommerce-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: 30px;
    cursor: default;
    color: #999;
}

/* Responsive - smaller pagination on mobile */
@media (max-width: 576px) {
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span,
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce-pagination .page-numbers,
    nav.woocommerce-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .woocommerce-pagination ul,
    .woocommerce nav.woocommerce-pagination ul {
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    /* Ensure prev/next don't wrap and stay visible */
    .woocommerce-pagination .page-numbers.prev,
    .woocommerce-pagination .page-numbers.next,
    nav.woocommerce-pagination .page-numbers.prev,
    nav.woocommerce-pagination .page-numbers.next {
        flex-shrink: 0;
    }
    
    .woocommerce-pagination,
    .woocommerce nav.woocommerce-pagination {
        margin: 24px 0;
    }
    
    .woocommerce ul.products {
        margin-bottom: 32px !important;
    }
}

/* ==========================================================================
   Mobile Category Filter - Only visible on mobile (< 768px)
   ========================================================================== */

/* Hidden on desktop */
.woa-mobile-filter {
    display: none;
}

/* Toggle button */
.woa-mobile-filter__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.woa-mobile-filter__toggle:hover {
    background: #eee;
    border-color: #ccc;
}

.woa-mobile-filter__toggle svg {
    margin-right: 8px;
    opacity: 0.7;
}

.woa-mobile-filter__toggle-text {
    flex: 1;
    text-align: left;
}

.woa-mobile-filter__toggle-icon {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    transition: transform 0.2s ease;
}

/* Expanded state */
.woa-mobile-filter.is-expanded .woa-mobile-filter__toggle {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    background: #eee;
}

.woa-mobile-filter.is-expanded .woa-mobile-filter__toggle-icon {
    content: '−';
}

.woa-mobile-filter.is-expanded .woa-mobile-filter__toggle-icon::before {
    content: '−';
}

.woa-mobile-filter__toggle-icon::before {
    content: '+';
}

/* Hide default text, use ::before */
.woa-mobile-filter__toggle-icon {
    font-size: 0;
}

.woa-mobile-filter__toggle-icon::before {
    font-size: 18px;
}

/* Panel - hidden by default */
.woa-mobile-filter__panel {
    display: none;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 16px;
}

.woa-mobile-filter.is-expanded .woa-mobile-filter__panel {
    display: block;
}

/* Category list */
.woa-mobile-filter__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woa-mobile-filter__item {
    margin: 0;
}

.woa-mobile-filter__link {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woa-mobile-filter__link:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.woa-mobile-filter__link.active {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.woa-mobile-filter__count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

/* Mobile filter sections (Tags, Stock) */
.woa-mobile-filter__section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.woa-mobile-filter__section-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

/* Stock filter checkbox */
.woa-mobile-filter__section--stock {
    display: flex;
    align-items: center;
}

.woa-mobile-filter__stock-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.woa-mobile-filter__stock-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #8b0000;
    cursor: pointer;
}

.woa-mobile-filter__stock-text {
    user-select: none;
}