/* =========================================================
   Alter Pixel Store — woocommerce.css
   WooCommerce-specific styling overrides
   ========================================================= */

/* ── Remove default WC styles ────────────────────────────── */
.woocommerce-page .woocommerce { max-width: none; }

/* ── Quantity input ──────────────────────────────────────── */
.quantity .qty {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    border-radius: var(--ap-radius);
    padding: .625rem 1rem;
    width: 80px;
    text-align: center;
    font-size: 1rem;
    font-family: var(--ap-font-display);
    font-weight: 600;
    outline: none;
    transition: var(--ap-transition);
}
.quantity .qty:focus { border-color: var(--ap-accent); }

/* ── Add to cart button ──────────────────────────────────── */
.single_add_to_cart_button,
button.single_add_to_cart_button {
    background: var(--ap-accent) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: var(--ap-radius) !important;
    padding: .875rem 2rem !important;
    font-family: var(--ap-font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--ap-transition) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
}
.single_add_to_cart_button:hover { 
    background: var(--ap-accent-dark) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 0 25px var(--ap-secondary-glow), 0 0 0 1px var(--ap-secondary) !important; 
}

/* Product form layout */
.woocommerce div.product form.cart { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 0; }
.woocommerce div.product form.cart .variations { margin-bottom: 0; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: .25rem .5rem; }
.woocommerce div.product form.cart .variations label { color: var(--ap-text); font-weight: 600; }
.woocommerce div.product form.cart .variations select { background: var(--ap-surface); border: 1px solid var(--ap-border); color: var(--ap-text); border-radius: var(--ap-radius-sm); padding: .5rem .875rem; width: 100%; outline: none; font-family: inherit; font-size: .9375rem; }
.woocommerce div.product form.cart .variations select:focus { border-color: var(--ap-accent); }

/* ── WC Notices ──────────────────────────────────────────── */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    position: relative;
    border-radius: var(--ap-radius-lg);
    border: 1px solid var(--ap-border);
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
    color: var(--ap-text);
    font-size: .9375rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.woocommerce-error   { border-color: rgba(255, 51, 102, 0.25); background: linear-gradient(to right, rgba(255, 51, 102, 0.04), rgba(20, 18, 26, 0.4)); box-shadow: 0 4px 20px rgba(255, 51, 102, 0.05); }
.woocommerce-info    { border-color: rgba(205, 53, 255, 0.25); background: linear-gradient(to right, rgba(205, 53, 255, 0.04), rgba(20, 18, 26, 0.4)); box-shadow: 0 4px 20px rgba(205, 53, 255, 0.05); }
.woocommerce-message { border-color: rgba(0, 240, 144, 0.25); background: linear-gradient(to right, rgba(0, 240, 144, 0.04), rgba(20, 18, 26, 0.4)); box-shadow: 0 4px 20px rgba(0, 240, 144, 0.05); }

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.woocommerce-error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF3366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E"); }
.woocommerce-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CD35FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E"); }
.woocommerce-message::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F090' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E"); }

.woocommerce-error li::before,
.woocommerce-info li::before,
.woocommerce-message li::before { display: none; }

/* ── Cart / Checkout page shell ──────────────────────────── */
.ap-woocommerce-page {
    max-width: var(--ap-container);
    margin-inline: auto;
    padding: 2.5rem 1.5rem 5rem;
}
.ap-woo-content { width: 100%; }

.ap-cart-page .ap-page__header,
.ap-checkout-page .ap-page__header { margin-bottom: 2rem; }
.ap-cart-page .ap-page__title,
.ap-checkout-page .ap-page__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    margin-bottom: .75rem;
}

/* ── Cart layout ─────────────────────────────────────────── */
.ap-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
}
.ap-cart-main {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: .5rem 1.5rem;
    overflow: hidden;
}

.woocommerce-cart-form table.shop_table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-cart-form table.shop_table th {
    background: transparent;
    color: var(--ap-text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1.25rem 1rem .875rem;
    border-bottom: 1px solid var(--ap-border);
    font-weight: 700;
    text-align: left;
}
.woocommerce-cart-form table.shop_table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--ap-border);
    vertical-align: middle;
    color: var(--ap-text);
}
.woocommerce-cart-form table.shop_table tr:last-child td { border-bottom: none; }
.woocommerce-cart-form table.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--ap-radius);
    border: 1px solid var(--ap-border);
    display: block;
}
.woocommerce-cart-form table.shop_table .product-name a { color: var(--ap-text); text-decoration: none; font-weight: 600; }
.woocommerce-cart-form table.shop_table .product-name a:hover { color: var(--ap-accent); }
.woocommerce-cart-form table.shop_table .product-price,
.woocommerce-cart-form table.shop_table .product-subtotal { font-weight: 600; }
.woocommerce-cart-form table.shop_table .product-subtotal { color: var(--ap-text); }
.woocommerce-cart-form table.shop_table .product-remove {
    width: 40px;
    text-align: center;
}
.woocommerce-cart-form table.shop_table .product-remove a.remove {
    color: var(--ap-text-subtle) !important;
    font-size: 1.5rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ap-radius-full);
    transition: var(--ap-transition);
    text-decoration: none;
}
.woocommerce-cart-form table.shop_table .product-remove a.remove:hover {
    color: var(--ap-danger, #FF3366) !important;
    background: rgba(255, 51, 102, 0.12);
}
.woocommerce-cart-form table.shop_table input.qty { width: 72px; }

/* Cart actions row (coupon + update) */
.woocommerce-cart-form td.actions {
    padding: 1.5rem 1rem !important;
    border-bottom: none !important;
}
.woocommerce-cart-form td.actions .coupon {
    display: flex;
    gap: .625rem;
    align-items: center;
    flex-wrap: wrap;
    float: none !important;
}
.woocommerce-cart-form td.actions .coupon label { display: none; }
.woocommerce-cart-form td.actions .coupon .input-text {
    flex: 1 1 180px;
    max-width: 260px;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    border-radius: var(--ap-radius);
    padding: .75rem 1rem;
    outline: none;
}
.woocommerce-cart-form td.actions .coupon .input-text:focus { border-color: var(--ap-accent); }
.woocommerce-cart-form td.actions button[name="update_cart"] {
    float: right;
}

/* ── Cart sidebar (totals) ───────────────────────────────── */
.ap-cart-aside { position: sticky; top: 1.5rem; }
.ap-cart-aside .cart-collaterals { margin: 0; width: 100%; }
.ap-cart-aside .cart-collaterals .cross-sells { display: none; }
.cart_totals {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 1.75rem;
    width: 100% !important;
    float: none !important;
}
.cart_totals h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; }
.cart_totals table.shop_table { width: 100%; }
.cart_totals table.shop_table th,
.cart_totals table.shop_table td { padding: .75rem 0; border-bottom: 1px solid var(--ap-border); color: var(--ap-text); text-align: left; }
.cart_totals table.shop_table th { color: var(--ap-text-muted); font-weight: 600; }
.cart_totals table.shop_table td { text-align: right; }
.cart_totals .order-total th { font-size: 1rem; color: var(--ap-text); }
.cart_totals .order-total td strong { color: var(--ap-accent); font-size: 1.375rem; }
.cart_totals .checkout-button {
    width: 100% !important;
    margin-top: 1.25rem !important;
    text-align: center;
    justify-content: center;
}
.cart_totals .wc-proceed-to-checkout { padding: 0; }

/* Cross-sells full width below */
.ap-cart-crosssells { margin-top: 3rem; }
.ap-cart-crosssells .cross-sells > h2 { font-size: 1.375rem; margin-bottom: 1.5rem; }
.ap-cart-crosssells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Checkout layout ─────────────────────────────────────── */
.ap-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 2rem;
    align-items: start;
}
.ap-checkout-main {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 2rem;
}
.ap-checkout-main #customer_details .col2-set,
.ap-checkout-main #customer_details .col-1,
.ap-checkout-main #customer_details .col-2 { width: 100%; float: none; }

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--ap-border);
}

.woocommerce form .form-row label { color: var(--ap-text-muted); font-size: .875rem; font-weight: 600; margin-bottom: .375rem; display: block; }
.woocommerce form .form-row { margin-bottom: 1rem; padding: 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    border-radius: var(--ap-radius);
    padding: .75rem 1rem;
    width: 100%;
    font-family: inherit;
    font-size: .9375rem;
    outline: none;
    transition: var(--ap-transition);
    line-height: 1.4;
}
.woocommerce-checkout .select2-container--default .select2-selection--single { height: auto; display: flex; align-items: center; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ap-text); padding: 0; line-height: 1.4; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 8px; }
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--ap-accent);
    box-shadow: 0 0 0 3px var(--ap-accent-glow);
}

/* Place order button */
#place_order {
    background: var(--ap-accent) !important;
    color: #000 !important;
    border: none !important;
    border-radius: var(--ap-radius) !important;
    padding: 1rem 2rem !important;
    font-family: var(--ap-font-display) !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: var(--ap-transition) !important;
}
#place_order:hover {
    background: var(--ap-accent-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 25px var(--ap-secondary-glow), 0 0 0 1px var(--ap-secondary) !important;
}

/* ── Checkout sidebar / order review ─────────────────────── */
.ap-checkout-sidebar { position: sticky; top: 1.5rem; }
.ap-order-review {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 1.75rem;
}
#order_review table.shop_table { width: 100%; border-collapse: collapse; background: transparent; border: none; }
#order_review table.shop_table th { background: transparent; color: var(--ap-text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .75rem 0; font-weight: 700; text-align: left; border-bottom: 1px solid var(--ap-border); }
#order_review table.shop_table td { padding: .75rem 0; border-bottom: 1px solid var(--ap-border); color: var(--ap-text); text-align: right; }
#order_review table.shop_table .product-name { text-align: left; color: var(--ap-text-muted); }
#order_review table.shop_table tfoot th { text-transform: none; font-size: .9375rem; color: var(--ap-text); letter-spacing: 0; }
#order_review .order-total th { font-size: 1rem; }
#order_review .order-total td strong { color: var(--ap-accent); font-size: 1.375rem; }
#order_review #payment { background: transparent; border-radius: 0; margin-top: 1rem; }
#order_review #payment ul.payment_methods {
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 1rem;
    margin: 0 0 1rem;
    list-style: none;
}
#order_review #payment ul.payment_methods li { margin-bottom: .5rem; color: var(--ap-text); }
#order_review #payment div.payment_box {
    background: var(--ap-surface-2);
    color: var(--ap-text-muted);
    border-radius: var(--ap-radius-sm);
    font-size: .85rem;
}
#order_review #payment div.payment_box::before { display: none; }

.ap-checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
    color: var(--ap-text-subtle);
    font-size: .8125rem;
}
.ap-checkout-secure svg { color: var(--ap-secondary); flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .ap-cart-layout,
    .ap-checkout-layout { grid-template-columns: 1fr; }
    .ap-cart-aside,
    .ap-checkout-sidebar { position: static; }
}
@media (max-width: 600px) {
    .ap-cart-main { padding: .5rem 1rem; }
    .ap-checkout-main,
    .ap-order-review,
    .cart_totals { padding: 1.25rem; }
    .woocommerce-cart-form td.actions button[name="update_cart"] { float: none; width: 100%; margin-top: .75rem; }
    .woocommerce-cart-form td.actions .coupon .input-text { max-width: none; }
}

/* ════════════════════════════════════════════════════════════
   FALLBACK: WooCommerce Cart / Checkout BLOCKS styling
   (applies if the classic-shortcode swap is ever disabled)
   ════════════════════════════════════════════════════════════ */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
    max-width: var(--ap-container);
    margin-inline: auto;
    color: var(--ap-text);
}

/* Section headings */
.wc-block-components-title,
.wc-block-checkout__main h2,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {
    color: var(--ap-text) !important;
    font-family: var(--ap-font-display);
}
.wc-block-components-checkout-step__description,
.wc-block-components-checkout-step__heading-content { color: var(--ap-text-muted) !important; }

/* Inputs / selects */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select select,
.wc-block-components-select__select,
.wc-block-checkout .components-form-token-field__input,
.wc-block-components-combobox-control input {
    background: var(--ap-bg) !important;
    border: 1px solid var(--ap-border) !important;
    color: var(--ap-text) !important;
    border-radius: var(--ap-radius) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
    border-color: var(--ap-accent) !important;
    box-shadow: 0 0 0 3px var(--ap-accent-glow) !important;
}
.wc-block-components-text-input label,
.wc-block-components-checkout-step label,
.wc-block-components-select label { color: var(--ap-text-muted) !important; }
/* Floated label backgrounds (so they don't show white) */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
    background: var(--ap-bg) !important;
    color: var(--ap-text-muted) !important;
}

/* Order summary / sidebar card */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-order-summary {
    background: var(--ap-surface) !important;
    border: 1px solid var(--ap-border) !important;
    border-radius: var(--ap-radius-xl) !important;
    padding: 1.5rem !important;
}
.wc-block-components-totals-item,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value { color: var(--ap-text) !important; }
.wc-block-components-totals-footer-item,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--ap-accent) !important;
}
.wc-block-components-panel,
.wc-block-components-totals-coupon,
.wc-block-components-order-summary-item {
    border-color: var(--ap-border) !important;
    color: var(--ap-text-muted) !important;
}
.wc-block-components-product-name { color: var(--ap-text) !important; }

/* Place order / proceed buttons */
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
.wc-block-cart__submit-button,
.wc-block-components-button.contained {
    background: var(--ap-accent) !important;
    color: #000 !important;
    border: none !important;
    border-radius: var(--ap-radius) !important;
    font-family: var(--ap-font-display) !important;
    font-weight: 700 !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button.contained:hover {
    background: var(--ap-accent-dark) !important;
}

/* Block notices */
.wc-block-components-notice-banner {
    background: var(--ap-surface-2) !important;
    border-radius: var(--ap-radius-lg) !important;
    color: var(--ap-text) !important;
}

/* ── My Account ──────────────────────────────────────────── */
.ap-myaccount-page {
    padding: 3rem 0 6rem;
}

/* Header Greeting & Profile */
.ap-myaccount-header {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ap-shadow);
}

.ap-myaccount-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 100%, rgba(205, 53, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 0%, rgba(255, 0, 133, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.ap-myaccount-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ap-myaccount-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ap-secondary) 0%, var(--ap-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ap-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    box-shadow: 0 0 20px rgba(205, 53, 255, 0.25), 0 0 0 4px rgba(205, 53, 255, 0.06);
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.ap-myaccount-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ap-myaccount-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ap-myaccount-name-row h2 {
    font-family: var(--ap-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ap-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ap-myaccount-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--ap-text-muted);
}

.ap-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ap-meta-item svg {
    color: var(--ap-secondary);
    stroke-width: 2.2px;
}

/* Stats dashboard cards */
.ap-myaccount-stats {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    gap: 1rem;
    flex-shrink: 0;
}

.ap-stat-tile {
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--ap-transition);
}

.ap-stat-tile:hover {
    border-color: rgba(205, 53, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.ap-stat-tile__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ap-stat-tile__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-text-muted);
}

.ap-stat-tile__value {
    font-family: var(--ap-font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ap-text);
    line-height: 1;
}

.ap-stat-tile__value.status-active {
    color: var(--ap-success);
    font-family: var(--ap-font-display);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.125rem;
}

.ap-status-dot {
    width: 8px;
    height: 8px;
    background: var(--ap-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ap-success);
    display: inline-block;
    animation: apPulseGreen 2s infinite;
}

@keyframes apPulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Sidebar split grid layout */
.ap-myaccount-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.ap-myaccount-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Navigation Styling */
.woocommerce-MyAccount-navigation {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 1rem;
    box-shadow: var(--ap-shadow-sm);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ap-text-muted);
    text-decoration: none;
    border-radius: var(--ap-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--ap-font-display);
    transition: var(--ap-transition);
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--ap-text);
    background: var(--ap-secondary-glow);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #000000 !important;
    background: var(--ap-secondary) !important;
    box-shadow: 0 0 15px rgba(205, 53, 255, 0.25);
    font-weight: 700;
}

/* Content Area */
.woocommerce-MyAccount-content {
    color: var(--ap-text);
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 2.25rem;
    box-shadow: var(--ap-shadow-sm);
}

/* Dashboard Text formatting */
.woocommerce-MyAccount-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ap-text-muted);
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content p a {
    color: var(--ap-secondary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.woocommerce-MyAccount-content p a:hover {
    color: var(--ap-accent);
    border-bottom-color: var(--ap-accent);
}

/* Orders Table modern styling */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: var(--ap-surface-3);
    color: var(--ap-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ap-border);
    font-weight: 700;
    text-align: left;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--ap-border);
    vertical-align: middle;
    color: var(--ap-text);
    font-size: 0.9375rem;
}

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

/* Table buttons / badges */
.woocommerce-MyAccount-content table.shop_table .button {
    background: var(--ap-surface-3) !important;
    border: 1px solid var(--ap-border) !important;
    color: var(--ap-text) !important;
    padding: 0.4rem 0.875rem !important;
    border-radius: var(--ap-radius-sm) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: var(--ap-transition) !important;
    text-decoration: none;
    display: inline-block;
}

.woocommerce-MyAccount-content table.shop_table .button:hover {
    background: var(--ap-secondary-glow) !important;
    border-color: var(--ap-secondary) !important;
    color: var(--ap-text) !important;
    transform: translateY(-1px);
}

/* Status Micro-chips */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status span {
    padding: 0.25rem 0.625rem;
    border-radius: var(--ap-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}

/* WC order status colors mapped cleanly */
.woocommerce-MyAccount-content .status-completed {
    background: rgba(0, 240, 144, 0.1) !important;
    color: var(--ap-success) !important;
    border: 1px solid rgba(0, 240, 144, 0.2);
}

.woocommerce-MyAccount-content .status-processing {
    background: rgba(205, 53, 255, 0.1) !important;
    color: var(--ap-secondary) !important;
    border: 1px solid rgba(205, 53, 255, 0.2);
}

.woocommerce-MyAccount-content .status-on-hold,
.woocommerce-MyAccount-content .status-pending {
    background: rgba(255, 184, 0, 0.1) !important;
    color: var(--ap-warning) !important;
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.woocommerce-MyAccount-content .status-cancelled,
.woocommerce-MyAccount-content .status-failed {
    background: rgba(255, 51, 102, 0.1) !important;
    color: var(--ap-danger) !important;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Responsiveness for My Account */
@media (max-width: 1024px) {
    .ap-myaccount-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    .ap-myaccount-stats {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .ap-myaccount-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ── Star Ratings ────────────────────────────────────────── */
.woocommerce .star-rating span::before { color: #f59e0b; }
.woocommerce .star-rating { color: var(--ap-text-subtle); }

/* ── Review form ─────────────────────────────────────────── */
#review_form #respond { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-lg); padding: 1.75rem; }
#review_form #respond .comment-reply-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; }
#review_form #respond textarea,
#review_form #respond input[type="text"],
#review_form #respond input[type="email"] {
    background: var(--ap-bg) !important;
    border: 1px solid var(--ap-border) !important;
    color: var(--ap-text) !important;
    border-radius: var(--ap-radius) !important;
    padding: .625rem 1rem !important;
    width: 100% !important;
    font-family: inherit !important;
    font-size: .9375rem !important;
    outline: none !important;
    transition: var(--ap-transition) !important;
}
#review_form #respond textarea:focus,
#review_form #respond input[type="text"]:focus,
#review_form #respond input[type="email"]:focus {
    border-color: var(--ap-accent) !important;
    box-shadow: 0 0 15px var(--ap-accent-glow) !important;
}
#review_form #respond input#submit { 
    background: var(--ap-accent) !important; 
    color: #000 !important; 
    border: none !important; 
    border-radius: var(--ap-radius) !important; 
    padding: .625rem 1.5rem !important; 
    font-family: var(--ap-font-display) !important; 
    font-weight: 700 !important; 
    cursor: pointer !important; 
    transition: var(--ap-transition) !important; 
}
#review_form #respond input#submit:hover { 
    background: var(--ap-accent-dark) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 0 25px var(--ap-accent-glow-strong), 0 0 0 1px var(--ap-accent) !important; 
}

/* ── Variation swatches (YITH / 3rd party) ───────────────── */
.ap-variation-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.ap-swatch {
    padding: .375rem .875rem;
    border: 1.5px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--ap-text-muted);
    cursor: pointer;
    transition: var(--ap-transition);
}
.ap-swatch:hover { border-color: var(--ap-secondary); color: var(--ap-text); background: var(--ap-secondary-glow); }
.ap-swatch--active { border-color: var(--ap-accent); color: var(--ap-accent); background: var(--ap-accent-glow); }

/* ── License key display ─────────────────────────────────── */
.ap-license-key {
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border-accent);
    border-radius: var(--ap-radius);
    padding: 1rem 1.25rem;
    font-family: var(--ap-font-mono);
    font-size: .875rem;
    color: var(--ap-accent);
    word-break: break-all;
    position: relative;
}

.woocommerce-account .woocommerce-MyAccount-navigation{
    width: 100% !important;
}