/* ==========================================================================
   WooCommerce Custom Styles - Professional Redesign
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout & Grid
   -------------------------------------------------------------------------- */

/* STAR RATING - CRITICAL INLINE FIX
   Ensures stars are visible and clickable without external files
*/

/* 1. Display Rating (Static in Reviews) */
.star-rating {
    float: right;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2em;
    font-size: 1em;
    width: 5.4em;
    font-family: sans-serif;
    color: transparent !important;
    /* Hide text */
}

.star-rating::before {
    content: '★★★★★';
    display: block;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 0.25;
    color: var(--color-text-muted) !important;
    visibility: visible;
}

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

.star-rating span::before {
    content: '★★★★★';
    top: 0;
    position: absolute;
    left: 0;
    color: var(--color-accent) !important;
    /* Gold */
    visibility: visible;
}

/* 2. Input Rating (Interactive Form) */
.woocommerce p.stars {
    display: flex;
    gap: 0.25em;
    font-size: 1em;
    margin-bottom: var(--space-4);
}

.woocommerce p.stars a {
    position: relative;
    height: 24px;
    width: 24px;
    text-indent: 0;
    display: inline-block;
    text-decoration: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.woocommerce p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 24px;
    font-family: sans-serif;
    content: '★';
    text-indent: 0;
    text-align: center;
    visibility: visible;
    color: var(--color-text-muted);
}

/* Hover & Selection Logic */
.woocommerce p.stars:hover a::before {
    color: var(--color-accent);
}

.woocommerce p.stars a:hover~a::before {
    color: var(--color-text-muted);
}

.woocommerce p.stars.selected a.active::before {
    color: var(--color-accent);
}

.woocommerce p.stars.selected a:not(.active)::before {
    color: var(--color-accent);
}

.woocommerce p.stars.selected a.active~a::before {
    color: var(--color-text-muted);
}

.woocommerce div.product {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    /* Mobile Layout: Flex Column (DOM Order: Images -> Summary -> Tabs) */
    width: 100%;
}

.woocommerce div.product .woocommerce-product-gallery {
    order: 1;
}

.woocommerce div.product .summary {
    order: 2;
}

.woocommerce div.product .woocommerce-tabs {
    order: 3;
    display: block !important;
    /* Force visible */
    position: relative !important;
    z-index: 50 !important;
    /* Ensure it's on top */
    margin-top: var(--space-8) !important;
    padding-top: var(--space-8) !important;
    background: var(--color-background);
    /* Ensure opaque background */
    width: 100% !important;
    clear: both !important;
}

.woocommerce div.product .upsells {
    order: 4;
}

@media (min-width: 900px) {
    .woocommerce div.product {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        row-gap: var(--space-4);
        /* Tighter vertical spacing */
        column-gap: var(--space-12);
        /* Keep wide horizontal spacing */
        grid-template-areas:
            "notices notices"
            "gallery summary"
            "tabs summary"
            "upsells upsells";
        align-items: start;
    }

    /* Reset order for grid */
    .woocommerce div.product .woocommerce-product-gallery,
    .woocommerce div.product .summary,
    .woocommerce div.product .woocommerce-tabs,
    .woocommerce div.product .upsells {
        order: unset;
    }
}

/* Assign Areas */
.woocommerce-notices-wrapper {
    grid-area: notices;
    width: 100%;
}

/* Ensure Gallery and Summary stay in their lanes */
.woocommerce-product-gallery {
    grid-area: gallery;
    width: 100%;
    /* Ensure no overflow from zoom plugins */
    position: relative;
    z-index: 1;
}

.woocommerce div.product div.summary {
    grid-area: summary;
    width: 100%;
    padding: var(--space-4);
    /* Add breathing room */
    background: var(--color-background);
    /* Ensure contrast */
}

@media (min-width: 900px) {

    /* Sticky logic - confined to track */
    .woocommerce div.product div.summary {
        position: sticky;
        top: calc(var(--header-height) + var(--space-8));
        align-self: start;
        z-index: 2;
        padding-left: var(--space-8);
        /* Visual separation from image */
        border-left: 1px solid var(--color-border-light);
        /* Optional divider */
    }
}

.woocommerce div.product .woocommerce-tabs {
    grid-area: tabs;
    width: 100%;
    margin-top: 0;
    /* Reduced from space-8 to fix "too far" gap */
    clear: both;
}



.woocommerce div.product .upsells.products {
    grid-area: upsells;
    width: 100%;
    margin-top: var(--space-12);
}

/* Remove old overrides that might cause conflict */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products,
.woocommerce-product-gallery,
.woocommerce div.product div.summary {
    grid-column: auto;
}

/* --------------------------------------------------------------------------
   Images & Gallery
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Images & Gallery - Refined & "Tidy"
   -------------------------------------------------------------------------- */

.woocommerce-product-gallery {
    position: relative;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.woocommerce-product-gallery.initialized {
    opacity: 1;
}

/* Main Image Container */
.woocommerce-product-gallery__image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Clips the zoomed image */
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    /* Removed spacing as requested */
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
}

/* Main Image - Enforce Aspect Ratio */
/* Main Image - Enforce Aspect Ratio */
.woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Standard professional ratio */
    object-fit: cover;
    display: block;
    margin: 0;
    transition: opacity var(--transition-base);
    /* Ensure image fills the corners perfectly */
    border-radius: var(--radius-xl);
}

/* Fix for any zoom plugins creating clones */
.zoomImg {
    border-radius: var(--radius-xl);
}

/* Zoom Trigger (Magnifying Glass) - Custom "Floating Button" Style */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    text-indent: -9999px;
    /* Hide default text */
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: var(--color-primary);
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
}

/* Thumbnails - Tidy Grid */
.woocommerce-product-gallery .flex-control-thumbs {
    margin: var(--space-2) 0 0;
    /* Reduced from space-4 */
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 thumbnails per row is standard */
    gap: var(--space-3);
}

.woocommerce-product-gallery .flex-control-thumbs li {
    list-style: none;
    margin: 0;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square thumbs */
    object-fit: cover;
    opacity: 0.6;
    display: block;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
    border-color: var(--color-primary);
    opacity: 1;
    transform: scale(1.05);
    /* Subtle zoom hint */
}

/* --------------------------------------------------------------------------
   Product Summary (Sticky)
   -------------------------------------------------------------------------- */

.woocommerce div.product div.summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 900px) {
    .woocommerce div.product div.summary {
        position: sticky;
        top: calc(var(--header-height) + var(--space-8));
    }
}

/* Typography Enhancements */
.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    /* Larger title */
    font-weight: var(--font-bold);
    color: var(--color-heading);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.02em;
}

.woocommerce div.product .price {
    font-size: var(--text-3xl);
    /* Prominent price */
    color: var(--color-primary);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce div.product .price del {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-weight: var(--font-normal);
    opacity: 0.7;
}

.woocommerce div.product .price ins {
    text-decoration: none;
}

/* Short Description */
.woocommerce-product-details__short-description {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: var(--leading-relaxed);
    margin: var(--space-2) 0 var(--space-4);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

/* Meta (SKU, Categories) */
.product_meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.product_meta>span {
    display: block;
    margin-bottom: var(--space-2);
}

.product_meta a {
    color: var(--color-text);
    font-weight: var(--font-medium);
}

.product_meta a:hover {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Badges (Sale / New)
   -------------------------------------------------------------------------- */

.woocommerce span.onsale {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 10;
    background: var(--color-accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    min-height: auto;
    min-width: auto;
    line-height: var(--leading-none);
}

/* --------------------------------------------------------------------------
   Add to Cart
   -------------------------------------------------------------------------- */

.woocommerce div.product form.cart {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

/* Quantity Input */
.woocommerce .quantity {
    position: relative;
    float: none;
    /* Override default float */
    margin: 0;
}

.woocommerce .quantity .qty {
    width: 100%;
    height: 54px;
    padding: 0 var(--space-4);
    text-align: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    -moz-appearance: textfield;
    appearance: textfield;
    /* Standard property */
}

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

/* Button */
.woocommerce div.product form.cart .button {
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
    padding: 0 var(--space-8);
    border: none;
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(108, 72, 197, 0.3);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce div.product form.cart .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 72, 197, 0.4);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.woocommerce-tabs {
    margin-top: 0 !important;
    background: transparent;
    /* Clean look */
    border-radius: 0;
    padding: 0;
    border: none;
    /* Removed duplicate border causing scroll */
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0 0 var(--space-8);
    padding: 0;
    display: flex;
    gap: var(--space-6);
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    overflow-y: hidden;
    /* Fix vertical scroll */
    white-space: nowrap;
    /* Prevent wrapping */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.woocommerce-tabs .panel {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    /* Rounded corners for content */
    border-top-left-radius: 0;
    /* Connects to tabs */
    padding: var(--space-8);
    background: var(--color-background);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-8);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
}

/* Hide specific redundant headings inside tabs */
#tab-description h2,
#reviews h2.woocommerce-Reviews-title {
    display: none !important;
}

/* 
   Related Products Removed by User Request
   (Styles deleted to keep file clean)
*/

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--space-4) var(--space-6);
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.woocommerce-error {
    border-left-color: var(--color-error);
    background-color: #fef2f2;
}

.woocommerce-info {
    border-left-color: var(--color-info);
    background-color: #eff6ff;
}

.woocommerce-message .button {
    float: right;
    margin-left: var(--space-4);
}

/* --------------------------------------------------------------------------
   Breadcrumbs (Custom)
   -------------------------------------------------------------------------- */

.breadcrumbs {
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text);
    font-weight: var(--font-medium);
}

.breadcrumbs-separator {
    margin: 0 var(--space-2);
    color: var(--color-text-light);
}

/* ==========================================================================
   Shop / Archive Page - Clean Professional Design
   ========================================================================== */

/* Layout Container */
.archive.woocommerce .content-area,
.post-type-archive-product .content-area {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 1024px) {



    .archive.woocommerce .content-area.has-sidebar,
    .post-type-archive-product .content-area.has-sidebar {
        grid-template-columns: 280px 1fr;
        gap: var(--space-10);
        align-items: start;
    }
}

/* WooCommerce Ordering Dropdown */
.woocommerce-ordering {
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .woocommerce-ordering {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .woocommerce-ordering {
        width: 20%;
    }
}

/* --------------------------------------------------------------------------
   Product Grid
   -------------------------------------------------------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* --------------------------------------------------------------------------
   Product Card
   -------------------------------------------------------------------------- */
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Product Link Wrapper */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* Product Image - Compact */
body .woocommerce ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
    background: var(--color-surface);
    flex-shrink: 0;
}

/* Product Title - Always Visible */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: var(--space-3) var(--space-3) var(--space-1);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-heading);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    flex-shrink: 0;
}

/* Product Price - Always Visible */
.woocommerce ul.products li.product .price {
    padding: 0 var(--space-3) var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    flex-shrink: 0;
}

.woocommerce ul.products li.product .price del {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: normal;
    margin-right: var(--space-1);
}

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

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    margin: auto var(--space-4) var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   Sidebar Widgets
   -------------------------------------------------------------------------- */
.sidebar .widget {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-heading);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-border);
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget ul li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--text-sm);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidebar .widget ul li a:hover {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.woocommerce nav.woocommerce-pagination {
    margin-top: var(--space-10);
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   PREMIUM CART PAGE DESIGN (Targeting .container-cart-page)
   -------------------------------------------------------------------------- */

/* 1. Page Wrapper & Header */
.container-cart-page {
    max-width: 1200px;
    /* Slightly wider for modern feel */
    margin: 0 auto;
    padding: var(--space-8);
}

.cart-header {
    margin-bottom: var(--space-12);
}

.container-cart-page .page-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.cart-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* 2. Layout Structure */
@media (min-width: 1024px) {
    .container-cart-page .woocommerce {
        display: grid;
        grid-template-columns: 1fr 420px;
        /* Precise sidebar width */
        gap: 80px;
        /* Luxurious spacing */
        align-items: start;
    }

    .container-cart-page .woocommerce-cart-form {
        grid-column: 1;
        width: 100%;
    }

    .container-cart-page .cart-collaterals {
        grid-column: 2;
        width: 100%;
        margin: 0;
    }
}

/* 3. Cart Table (Clean & Minimalist) */
.container-cart-page table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0;
}

.container-cart-page table.shop_table th {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-weight: 700;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.container-cart-page table.shop_table td {
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

/* Row Hover Interaction */
.container-cart-page table.shop_table tr {
    transition: background-color 0.2s ease;
}

/* Product Thumbnail */
.container-cart-page td.product-thumbnail {
    width: 110px;
}

.container-cart-page td.product-thumbnail img {
    width: 90px;
    height: 110px;
    /* Slightly taller aspect ratio */
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    background: var(--color-surface);
}

.container-cart-page td.product-thumbnail img:hover {
    transform: scale(1.03);
}

/* Product Info */
.container-cart-page td.product-name {
    padding-left: var(--space-6);
}

.container-cart-page td.product-name a {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-1);
    line-height: 1.4;
}

.container-cart-page td.product-name a:hover {
    color: var(--color-primary);
}

/* Meta Data (SKU, etc) */
.container-cart-page dl.variation {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
}

.container-cart-page dl.variation dt {
    font-weight: 600;
    float: left;
    margin-right: var(--space-2);
}

.container-cart-page dl.variation dd {
    margin: 0 0 var(--space-1);
}

/* Prices */
.container-cart-page td.product-price .amount {
    color: var(--color-text);
    font-weight: 500;
    font-size: var(--text-base);
}

.container-cart-page td.product-subtotal .amount {
    color: var(--color-heading);
    font-weight: 700;
    font-size: var(--text-lg);
}

/* Quantity Input (Modern Pill Shape) */
.container-cart-page .quantity {
    display: inline-block;
    position: relative;
    background: white;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    padding: 2px;
}

.container-cart-page .quantity .qty {
    width: 60px;
    height: 40px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: var(--text-base);
    text-align: center;
    color: var(--color-heading);
    padding: 0;
    -moz-appearance: textfield;
}

.container-cart-page .quantity .qty::-webkit-inner-spin-button,
.container-cart-page .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.container-cart-page .quantity .qty:focus {
    outline: none;
    background: var(--color-surface);
    border-radius: var(--radius-full);
}

/* Remove Button (Minimalist X) */
.container-cart-page td.product-remove {
    width: 40px;
    padding-right: 0;
    text-align: right;
}

.container-cart-page a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    color: var(--color-text-light) !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.container-cart-page a.remove:hover {
    background: #fee2e2 !important;
    /* Soft Red Bg */
    color: #ef4444 !important;
    /* Red Text */
    transform: rotate(90deg);
}

/* 4. Actions Row (Coupon & Buttons) */
.container-cart-page td.actions {
    padding: var(--space-8) 0 0;
    border: none;
}

/* Coupon Area */
.container-cart-page .coupon {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    float: left;
    background: var(--color-surface);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
}

.container-cart-page .coupon .input-text {
    border: none;
    background: transparent;
    padding: 0 var(--space-4);
    height: 40px;
    width: 180px;
    font-size: var(--text-sm);
    color: var(--color-heading);
}

.container-cart-page .coupon .input-text::placeholder {
    color: var(--color-text-light);
}

.container-cart-page .coupon .input-text:focus {
    outline: none;
    box-shadow: none;
}

.container-cart-page .coupon button {
    height: 40px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-full);
    background: white;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.container-cart-page .coupon button:hover {
    background: var(--color-heading);
    color: white;
    border-color: var(--color-heading);
    transform: translateY(-1px);
}

/* Update Cart Button (Link Style) */
.container-cart-page button[name="update_cart"] {
    float: right;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    padding: 0;
    line-height: 56px;
    /* Vertical align with coupon box */
    transition: color 0.2s ease;
}

.container-cart-page button[name="update_cart"]:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.container-cart-page button[name="update_cart"]:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: none;
}

/* 5. Cart Totals (Premium Card) */
.container-cart-page .cart-collaterals .cart_totals {
    background: white;
    padding: 48px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.container-cart-page .cart_totals h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-8);
    color: var(--color-heading);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-cart-page .cart_totals table {
    width: 100%;
    margin-bottom: var(--space-8);
    border-collapse: collapse;
}

.container-cart-page .cart_totals table th {
    text-align: left;
    padding: var(--space-4) 0;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: var(--text-base);
    width: 40%;
}

.container-cart-page .cart_totals table td {
    text-align: right;
    padding: var(--space-4) 0;
    color: var(--color-heading);
    font-weight: 600;
    font-size: var(--text-base);
}

/* Divider lines for totals */
.container-cart-page .cart_totals table tr {
    border-bottom: 1px dashed var(--color-border-light);
}

.container-cart-page .cart_totals table tr:last-child {
    border-bottom: none;
}

/* Order Total Row */
.container-cart-page .cart_totals .order-total th,
.container-cart-page .cart_totals .order-total td {
    padding-top: var(--space-6);
    padding-bottom: 0;
    border-top: 2px solid var(--color-border-light);
    border-bottom: none;
    font-size: var(--text-xl);
    color: var(--color-heading);
    font-weight: 800;
}

.container-cart-page .cart_totals .order-total td {
    color: var(--color-primary);
}

/* Proceed Button */
.container-cart-page .wc-proceed-to-checkout {
    padding: 0;
    margin-top: var(--space-8);
}

.container-cart-page .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    background: var(--color-heading);
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.container-cart-page .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(108, 72, 197, 0.25);
}

.container-cart-page .wc-proceed-to-checkout .checkout-button span {
    margin-right: var(--space-2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container-cart-page {
        padding: var(--space-4);
    }

    .container-cart-page table.shop_table tr {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
        border: 1px solid var(--color-border-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .container-cart-page .cart-collaterals .cart_totals {
        padding: var(--space-6);
    }

    .container-cart-page .coupon {
        width: 100%;
        display: flex;
        padding: var(--space-2);
    }

    .container-cart-page .coupon .input-text {
        flex: 1;
        width: auto;
    }
}

/* -------------------------------------------------------------------------
   PREMIUM CHECKOUT PAGE STYLES (Modern & Professional)
   ------------------------------------------------------------------------- */

/* Wrapper & Layout */
.container-checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    background: transparent;
}

.container-checkout-page .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Billing (Left) vs Order (Right) */
    gap: 60px;
    align-items: start;
}

/* Headers */
.container-checkout-page h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

/* Form Fields (Modern Pill Shape) */
.container-checkout-page .input-text,
.container-checkout-page select {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 99px;
    /* Pill shape */
    height: 54px;
    padding: 0 var(--space-6);
    font-size: var(--text-base);
    color: var(--color-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    width: 100%;
}

.container-checkout-page textarea.input-text {
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    height: auto;
    min-height: 120px;
}

.container-checkout-page .input-text:focus,
.container-checkout-page select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(108, 72, 197, 0.1);
    outline: none;
}

.container-checkout-page .form-row label {
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--space-2);
    display: block;
    font-size: var(--text-sm);
}

/* Left Column: Billing & Shipping */
.container-checkout-page #customer_details {
    width: 100%;
}

/* Right Column: Order Review & Payment (Sticky Card) */
.container-checkout-page #order_review_heading,
.container-checkout-page #order_review {
    grid-column: 2;
}

.container-checkout-page #order_review_heading {
    display: none;
    /* Hide default heading, we'll style the box */
}

.container-checkout-page #order_review {
    background: white;
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

/* Order Table */
.container-checkout-page table.shop_table {
    border: none;
    margin: 0 0 var(--space-8);
    border-bottom: 2px solid var(--color-border-light);
}

.container-checkout-page table.shop_table thead {
    display: none;
}

.container-checkout-page table.shop_table td {
    padding: var(--space-4) 0;
    border-top: 1px dashed var(--color-border-light);
}

.container-checkout-page table.shop_table tr:first-child td {
    border-top: none;
}

.container-checkout-page table.shop_table .product-name {
    color: var(--color-heading);
    font-weight: 500;
}

.container-checkout-page table.shop_table .product-total,
.container-checkout-page table.shop_table .cart-subtotal td,
.container-checkout-page table.shop_table .order-total td {
    text-align: right;
    font-weight: 700;
    color: var(--color-heading);
}

.container-checkout-page table.shop_table .order-total th {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-heading);
    text-align: left;
    padding-top: var(--space-4);
}

.container-checkout-page table.shop_table .order-total td {
    font-size: var(--text-xl);
    color: var(--color-primary);
    padding-top: var(--space-4);
}

/* Payment Methods */
.container-checkout-page #payment {
    background: transparent;
    border-radius: 0;
}

.container-checkout-page #payment ul.payment_methods {
    border-bottom: none;
    padding: 0;
}

.container-checkout-page #payment ul.payment_methods li {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.container-checkout-page #payment ul.payment_methods li:hover {
    border-color: var(--color-primary);
}

.container-checkout-page #payment div.payment_box {
    background: transparent;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    padding: var(--space-3) 0 0 0;
}

.container-checkout-page #payment div.payment_box::before {
    display: none;
}

/* Place Order Button */
.container-checkout-page #place_order {
    width: 100%;
    height: 64px;
    background: var(--color-heading);
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    border-radius: var(--radius-xl);
    /* Rounded pill */
    margin-top: var(--space-6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.container-checkout-page #place_order:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(108, 72, 197, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .container-checkout-page .woocommerce-checkout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .container-checkout-page #order_review,
    .container-checkout-page #order_review_heading {
        grid-column: auto;
    }

    .container-checkout-page #order_review {
        position: static;
        padding: var(--space-6);
    }
}

/* -------------------------------------------------------------------------
   PREMIUM MY ACCOUNT PAGE STYLES (Modern Dashboard)
   ------------------------------------------------------------------------- */

/* Global Wrapper */
.woocommerce-account .woocommerce {
    display: grid;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

@media (min-width: 1024px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 280px 1fr;
        gap: var(--space-10);
        align-items: start;
    }
}

/* 1. Sidebar Navigation (Card Style) */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-height) + 40px);
    z-index: 10;
}

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

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: var(--space-2);
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    /* Prevent layout shift */
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-bg-light);
    color: var(--color-heading);
}

/* Active State */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 700;
    border-color: rgba(108, 72, 197, 0.1);
    /* Subtle border match */
}

/* Log Out Link */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--color-border-light);
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* 2. Content Area (Card Style) */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 40px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    min-height: 500px;
}

/* Typography in Content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.woocommerce-MyAccount-content h2 {
    font-size: var(--text-2xl);
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: var(--space-4);
}

.woocommerce-MyAccount-content h3 {
    font-size: var(--text-xl);
}

.woocommerce-MyAccount-content p {
    color: var(--color-text);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

/* Welcome Message Specifics */
.woocommerce-MyAccount-content p a {
    color: var(--color-heading);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 2px;
}

.woocommerce-MyAccount-content p a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

/* 3. Orders Table (Clean & Modern) */
.woocommerce-MyAccount-content table.my_account_orders {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    margin-bottom: var(--space-8);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    /* Round corners */
}

.woocommerce-MyAccount-content table.my_account_orders thead th {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 700;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
}

.woocommerce-MyAccount-content table.my_account_orders tr td {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    font-size: var(--text-sm);
    vertical-align: middle;
    transition: background 0.2s;
}

.woocommerce-MyAccount-content table.my_account_orders tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.my_account_orders tr:hover td {
    background: #fafafa;
}

.woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number a {
    color: var(--color-heading);
    font-weight: 700;
    text-decoration: none;
    background: var(--color-surface);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number a:hover {
    background: var(--color-heading);
    color: white;
}

.woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions {
    text-align: right;
}

.woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: white;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 80px;
}

.woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions a.button:hover {
    background: var(--color-heading);
    color: white;
    border-color: var(--color-heading);
    transform: translateY(-1px);
}

/* 4. Address Boxes - Professional Card */
/* 4. Address Boxes - Unified Professional Card */
.woocommerce-MyAccount-content .woocommerce-Address {
    background: #fff;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce-MyAccount-content address {
    font-style: normal;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: var(--text-sm);
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-grow: 1;
    /* Push content to fill height */
}

/* Address Card Grid */
.woocommerce-MyAccount-content .u-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.woocommerce-MyAccount-content .u-columns .u-column1,
.woocommerce-MyAccount-content .u-columns .u-column2 {
    width: 100%;
    /* Reset float widths */
    float: none;
}

/* Header inside Address Card */
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: var(--space-3);
    width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0;
    padding: 0;
    font-size: var(--text-lg);
    border: none;
    color: var(--color-heading);
}

.woocommerce-MyAccount-content .edit {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-surface);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.woocommerce-MyAccount-content .edit:hover {
    background: var(--color-primary);
    color: white;
}

/* Mobile Address Stack */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content .u-columns {
        grid-template-columns: 1fr;
    }
}

/* 5. Account Details Form - Precise Alignment */
.woocommerce-EditAccountForm {
    max-width: 720px;
    /* Increased slightly */
}

.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: var(--space-8) 0;
    background: transparent;
}

.woocommerce-EditAccountForm fieldset legend {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: var(--space-6);
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: var(--space-3);
}

.woocommerce-MyAccount-content form .form-row {
    margin-bottom: var(--space-5);
    width: 100%;
}

/* Split Name Fields */
.woocommerce-MyAccount-content form .form-row-first,
.woocommerce-MyAccount-content form .form-row-last {
    width: 48%;
    /* Space for gap */
    float: left;
    margin-bottom: var(--space-5);
}

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

/* Clear fix for floats */
.woocommerce-MyAccount-content form .clear {
    clear: both;
}

.woocommerce-MyAccount-content form label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--color-heading);
    font-size: var(--text-sm);
}

.woocommerce-MyAccount-content form .input-text {
    width: 100%;
    height: 50px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: var(--text-base);
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);

}

.woocommerce-MyAccount-content form .input-text:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(108, 72, 197, 0.1);
    outline: none;
}

/* Password Change Section */
.woocommerce-EditAccountForm fieldset:last-of-type {
    background: var(--color-bg-light);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
    border: 1px solid var(--color-border-light);
    position: relative;
    /* Create context */
}

/* Ensure password fields are full width and neat */
.woocommerce-EditAccountForm fieldset:last-of-type .form-row {
    width: 100%;
    margin-bottom: var(--space-5);
    float: none;
    position: relative;
    /* Context for show/hide toggle */
}

/* Password Input Wrapper */
.woocommerce-password-strength {
    text-align: right;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
}

.woocommerce-password-strength.strong {
    color: #10b981;
}

.woocommerce-password-strength.short {
    color: #ef4444;
}

.woocommerce-password-strength.bad {
    color: #ef4444;
}

.woocommerce-password-strength.good {
    color: #f59e0b;
}

/* Show/Hide Password Toggle */
.woocommerce-form-row .password-input {
    position: relative;
    display: block;
    width: 100%;
}

.woocommerce-form-row .show-password-input {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.woocommerce-form-row .show-password-input:hover {
    color: var(--color-primary);
}

.woocommerce-form-row .show-password-input::after {
    display: none;
    /* remove potential icons if text is used */
}

/* Ensure input has padding for the toggle */
.woocommerce-form-row input[type="password"],
.woocommerce-form-row input[type="text"].password-input {
    padding-right: 80px !important;
}

/* Ensure password fields are full width and neat */
.woocommerce-EditAccountForm fieldset:last-of-type .form-row {
    width: 100%;
    margin-bottom: var(--space-5);
    float: none;
}

/* 6. Account Details Button - Consistent & Neat */
.woocommerce-MyAccount-content form button[name="save_account_details"] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-8) auto 0;
    /* Centered with margin */
    background: var(--color-heading);
    color: white;
    font-weight: 700;
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-full);
    padding: 0 64px;
    height: 56px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    float: none;
    width: fit-content;
    min-width: 200px;
    clear: both;
}

.woocommerce-MyAccount-content form button[name="save_account_details"]:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 72, 197, 0.3);
}

.woocommerce-MyAccount-content form button[name="save_account_details"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 6. Mobile Responsiveness */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        padding: var(--space-4);
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .woocommerce-MyAccount-navigation {
        position: relative;
        top: 0;
        margin-bottom: 0;
        padding: var(--space-2);
        background: #fff;
        border-radius: var(--radius-xl);
        overflow: hidden;
        /* Contain inner elements */
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: var(--space-3);
        padding: var(--space-2);
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }

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

    .woocommerce-MyAccount-navigation ul li {
        flex: 0 0 auto;
        margin: 0;
        scroll-snap-align: start;
    }

    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin: 0;
        padding: 0;
        border: none;
        margin-left: auto;
        /* Push to end */
        padding-left: var(--space-4);
        border-left: 1px solid var(--color-border-light);
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 16px;
        font-size: var(--text-sm);
        white-space: nowrap;
        background: var(--color-bg-light);
        border: 1px solid transparent;
        border-radius: var(--radius-full);
        height: 40px;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-color: var(--color-primary);
        background: var(--color-heading);
        color: white;
        box-shadow: var(--shadow-sm);
    }

    .woocommerce-MyAccount-content {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        min-height: auto;
    }

    /* Content Typography Mobile */
    .woocommerce-MyAccount-content h2 {
        font-size: var(--text-xl);
        background: #fff;
        padding: var(--space-5);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border-light);
        margin-bottom: var(--space-4);
        border-bottom: 1px solid var(--color-border-light);
    }

    .woocommerce-MyAccount-content p {
        background: #fff;
        padding: var(--space-5);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border-light);
        margin-bottom: var(--space-4);
    }

    /* Orders Mobile Card View */
    .woocommerce-MyAccount-content table.my_account_orders {
        border: none;
        background: transparent;
        display: block;
    }

    .woocommerce-MyAccount-content table.my_account_orders thead {
        display: none;
    }

    .woocommerce-MyAccount-content table.my_account_orders tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }

    .woocommerce-MyAccount-content table.my_account_orders tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--color-border-light);
        border-radius: var(--radius-xl);
        padding: var(--space-5);
        box-shadow: var(--shadow-sm);
    }

    .woocommerce-MyAccount-content table.my_account_orders td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) 0;
        border: none;
        text-align: right;
        font-size: var(--text-sm);
        width: 100%;
    }

    .woocommerce-MyAccount-content table.my_account_orders td::before {
        content: attr(data-title);
        font-weight: 700;
        color: var(--color-text-muted);
        text-align: left;
        margin-right: var(--space-4);
    }

    .woocommerce-MyAccount-content table.my_account_orders td.woocommerce-orders-table__cell-order-actions::before {
        display: none;
    }

    .woocommerce-MyAccount-content table.my_account_orders td.woocommerce-orders-table__cell-order-actions {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px dashed var(--color-border-light);
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions a.button {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 12px;
        height: 48px;
    }
}