/*
Theme Name: Woo Max Theme
Theme URI: 
Author: Woo Max Pro Theme
Author URI: 
Description: A premium, ultra-fast, mobile-first app-like WooCommerce theme optimized for Woo Max Pro.
Version: 1.1.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woomax
Tags: e-commerce, mobile-first, dark-mode, spiritual, fast, full-width
*/

/* ==========================================================================
   GLOBAL CSS VARIABLES (Light & Dark Mode)
   ========================================================================== */

:root {
    /* Base Colors - Light Mode (Default) */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    
    /* Brand Colors (Premium Spiritual/Astrological Vibe) */
    --brand-primary: #d97706; /* Elegant Saffron/Gold */
    --brand-secondary: #4f46e5; /* Deep Indigo */
    
    /* UI Elements */
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Layout */
    --container-width: 1280px;
    --nav-height: 70px;
    --mobile-nav-height: 60px;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    
    --header-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #020617;
    --footer-text: #f8fafc;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth Dark Mode Transition */
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-secondary);
}

/* Container for Boxed Content */
.woomax-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   6. WooCommerce Single Product Layout
   ========================================================================== */

.woomax-custom-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    background: transparent;
}

@media (min-width: 768px) {

    .woomax-custom-product-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 20px 20px 40px;
        gap: 50px;
        align-items: start;
    }
    
    /* Sticky Left Column */
    .woomax-product-gallery-section {
        position: sticky;
        top: 100px;
    }
}

/* Full width Breadcrumbs Top inside Grid */
.woomax-product-breadcrumbs-top {
    grid-column: 1 / -1;
    margin-bottom: -55px; /* Reduce the vertical gap even further to match top space exactly */
    font-size: 16px;
    text-align: left;
    width: 100%;
}
@media (max-width: 767px) {
    .woomax-product-breadcrumbs-top {
        margin-bottom: -20px; /* Offset grid gap slightly to perfectly balance top and bottom space on mobile */
    }
}
.woomax-product-breadcrumbs-top .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: #111;
    font-weight: 600;
    text-align: left;
}
.woomax-product-breadcrumbs-top .woocommerce-breadcrumb a {
    color: #888;
    font-weight: 400;
    text-decoration: none;
}
.woomax-product-breadcrumbs-top .woocommerce-breadcrumb a:hover {
    color: var(--primary-color);
}

/* Default Page Headers (e.g. Track Order) */
.entry-header {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 15px;
}
body.woocommerce-account .entry-header {
    display: none;
}
.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}
.entry-content > *:first-child {
    margin-top: 0;
}

/* Product Details Typography */
.woomax-product-details-section .product_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Product Description */
.woomax-product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-top: 20px;
}
.woomax-product-description h2,
.woomax-product-description h3,
.woomax-product-description h4 {
    color: var(--heading-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}
.woomax-product-description p {
    margin-bottom: 15px;
}
.woomax-product-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.woomax-product-description li {
    margin-bottom: 8px;
}
.woomax-product-description img {
    border-radius: 15px;
    display: block;
    margin: 30px auto; /* Adds the missing gap above and below images */
    max-width: 100%;
    height: auto;
}

/* General Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* WooCommerce Default Gallery Overrides for clean look */
.woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.woocommerce-product-gallery .flex-control-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    margin-top: 15px !important; /* Force gap between main image and thumbnails */
    padding: 0;
}
.woocommerce-product-gallery .flex-control-nav li {
    width: 25%;
}
.woocommerce-product-gallery .flex-control-nav img {
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.woocommerce-product-gallery .flex-control-nav img.flex-active,
.woocommerce-product-gallery .flex-control-nav img:hover {
    opacity: 1;
    border: 2px solid var(--brand-primary);
}

/* Shortcode Wrappers Margin */
.woomax-shortcode-wrapper {
    margin-bottom: 15px;
}
.woomax-rating-wrapper {
    margin-bottom: 5px;
}
.woomax-tags-wrapper {
    margin-bottom: 10px;
}
.woomax-pricing-wrapper {
    margin-bottom: 15px;
}

/* Trust Badges */
.woomax-trust-badges-container,
.woomax-reviews-section,
.woomax-fbt-section {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
    clear: both;
}

.woomax-trust-badges {
    background: #fffdf8;
    border: 1px solid #f6e6cd;
    border-radius: 12px;
    padding: 20px;
}

.woomax-trust-badges h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 24px;
}

.trust-text strong {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
}

.trust-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* Ensure description scrolls while sticky is active */
.woomax-product-details-section {
    min-height: 100%;
}

@media (max-width: 768px) { .woomax-container { padding: 0 8px !important; } }

/* =========================================================
   CATEGORY PAGE CUSTOM UI
   ========================================================= */
.wmp-category-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0;
    background: transparent;
}

.wmp-cat-banner {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}
.wmp-cat-banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.wmp-filters-and-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}
/* =========================================
   RESTORED HORIZONTAL FILTERS
   ========================================= */
.wmp-cat-filters-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wmp-cat-filters-bar::-webkit-scrollbar {
    display: none;
}
.wmp-filter-pill {
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    background: #FFF;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.wmp-filter-pill.active, .wmp-filter-pill:hover {
    background: #333;
    color: #FFF;
    border-color: #333;
}

/* =========================================
   BLINKIT STYLE LAYOUT
   ========================================= */
.wmp-blinkit-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px; /* Strict 8px gap between sidebar and content */
    align-items: start;
    margin-bottom: 30px;
}
.wmp-sidebar-title {
    font-size: 8px; /* Smaller to fit 60px */
    font-weight: 800;
    text-align: center;
    color: #888;
    text-transform: uppercase;
    padding: 8px 2px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.wmp-blinkit-sidebar {
    width: 100%;
    max-width: none;
    position: sticky;
    top: 60px; /* Adjust based on top header */
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.wmp-blinkit-sidebar::-webkit-scrollbar {
    display: none;
}
.wmp-blinkit-content {
    min-width: 0; /* Prevents grid blowouts */
    width: 100%;
}

.wmp-blinkit-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 2px;
    border-bottom: 1px solid #f9f9f9;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.wmp-blinkit-tag.active {
    background: #fdfdfd;
    border-left: 3px solid #2e7d32;
}
.wmp-blinkit-tag-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
    background: #f9f9f9;
}
.wmp-blinkit-tag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wmp-blinkit-tag-name {
    font-size: 8px; /* Micro size */
    text-align: center;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
    word-break: break-word;
}
.wmp-blinkit-tag.active .wmp-blinkit-tag-name {
    font-weight: 800;
    color: #111;
}
.wmp-custom-sort-trigger {
    margin-left: auto;
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.wmp-custom-sort-trigger svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* CUSTOM PRODUCT CARD (Square) */
body.woocommerce-page .wmp-category-page-container ul.products,
body.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start; /* Fixes centering issue on 1-2 products */
}

body.woocommerce-page .wmp-category-page-container ul.products li.product,
body.woocommerce-page ul.products li.product {
    width: 100%;
    margin: 0;
    float: none;
    clear: none;
}

/* Hide WooCommerce subcategory boxes injected into the grid */
body.woocommerce-page .wmp-category-page-container ul.products li.product-category,
body.woocommerce-page ul.products::before,
body.woocommerce-page ul.products::after {
    display: none !important;
}

.wmp-custom-product-card {
    background: #FFF;
    border: 1px solid #F0E6DD;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.wmp-custom-product-card > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}
.wmp-custom-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.wmp-product-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
    background: #FFF9F2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wmp-square-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.wmp-badge-best-seller {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #FFD700;
    color: #2C1A11;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 700;
    color: #2C1A11;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wmp-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #6B5C54;
    min-height: 14px; /* Reserves space even if empty */
}
.wmp-product-rating .star-rating {
    font-size: 12px;
    color: #FACC15;
}

.wmp-product-price {
    font-size: 17px;
    font-weight: 700;
    color: #2C1A11;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wmp-product-price del {
    color: #A3968F;
    font-weight: 400;
    font-size: 14px;
    order: 2;
}
.wmp-product-price ins {
    text-decoration: none;
    color: #2C1A11;
    font-size: 18px;
    order: 1;
}
.wmp-discount-pct {
    font-size: 11px;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    order: 3;
}

.wmp-trust-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    margin-top: auto;
}
.wmp-trust-badge {
    font-size: 10px;
    color: #6B5C54;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.wmp-trust-badge svg {
    width: 12px;
    height: 12px;
    stroke: #2C1A11;
}

.wmp-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
/* Stronger Selectors to beat WooCommerce default button CSS */
body.woocommerce-page .wmp-product-actions a.wmp-btn-add-to-cart, 
body.woocommerce-page .wmp-product-actions a.wmp-btn-buy-now,
body.woocommerce-page .wmp-product-actions button.wmp-btn-sold-out {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
body.woocommerce-page .wmp-product-actions a.wmp-btn-add-to-cart {
    background: #2C1A11 !important; /* Premium Dark */
    color: #FFF !important;
    border: 1px solid #2C1A11 !important;
}
body.woocommerce-page .wmp-product-actions a.wmp-btn-add-to-cart:hover {
    background: #4A2C1D !important;
    color: #FFF !important;
}
body.woocommerce-page .wmp-product-actions a.wmp-btn-add-to-cart.disabled {
    background: #E0E0E0 !important;
    border-color: #E0E0E0 !important;
    color: #888 !important;
    cursor: not-allowed;
}
body.woocommerce-page .wmp-product-actions button.wmp-btn-sold-out {
    grid-column: span 2;
    background: #F5F5F5 !important;
    color: #9E9E9E !important;
    border: 1px solid #E0E0E0 !important;
    cursor: not-allowed !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
body.woocommerce-page .wmp-product-actions a.wmp-btn-buy-now {
    background: #FFF9E6 !important; /* Premium Yellow */
    color: #854D0E !important;
    border: 1px solid #FDE047 !important;
}
body.woocommerce-page .wmp-product-actions a.wmp-btn-buy-now:hover {
    background: #FFF5CC !important;
}

@media (max-width: 768px) {
    .wmp-category-page-container {
        padding: 0 12px;
    }
    .woomax-container .wmp-category-page-container {
        padding: 0 !important;
    }
    body.woocommerce-page .wmp-category-page-container ul.products,
    body.woocommerce-page ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }
    .wmp-custom-product-card {
        padding: 8px;
    }
    .woocommerce-loop-product__title {
        font-size: 13px;
        /* height removed for natural scaling */
    }
    .wmp-product-price {
        font-size: 14px;
        flex-wrap: wrap;
    }
    .wmp-trust-badges {
        flex-direction: column;
        gap: 5px;
    }
    .wmp-product-actions {
        grid-template-columns: 1fr;
    }
    body.single-product .category-nav-wrap {
        display: none !important;
    }
    .woomax-custom-product-layout {
        gap: 0px !important;
    }
    .woomax-product-breadcrumbs-top {
        margin-bottom: 10px !important;
    }
    body.single-product .woocommerce-product-gallery {
        margin-bottom: 15px !important;
    }
    body.single-product .summary.entry-summary {
        margin-top: 0 !important;
        clear: none !important;
    }
}

/* =========================================
   NEW ASTRO TALK + DIVINE HINDU HYBRID CARDS
   ========================================= */
.wmp-hybrid-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wmp-hybrid-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.wmp-hybrid-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Image Section - Divine Hindu Style (Edge to Edge) */
.wmp-hybrid-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
}
.wmp-hybrid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Overlays */
.wmp-hybrid-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2e7d32;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.wmp-hybrid-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #ffffff;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Details Section - Astro Talk Style */
.wmp-hybrid-details {
    padding: 10px 6px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wmp-hybrid-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wmp-hybrid-price {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wmp-hybrid-price del {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}
.wmp-hybrid-price ins {
    text-decoration: none;
    font-weight: 800;
}

/* Action Section - Astro Talk Style Button */
.wmp-hybrid-actions {
    padding: 0 12px 12px 12px;
    margin-top: auto;
}
.wmp-hybrid-add-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 4px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: opacity 0.2s ease;
    /* Color is injected globally by plugin */
}
.wmp-hybrid-add-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}
.wmp-hybrid-sold-out {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f3f4f6;
    color: #9ca3af;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================================
   HIDE WOOCOMMERCE DEFAULT "VIEW CART"
   ========================================= */
a.added_to_cart.wc-forward,
a.added_to_cart {
    display: none !important;
}

/* =========================================
   CUSTOM SORT BOTTOM SHEET
   ========================================= */
.wmp-sort-sheet-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.wmp-sort-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wmp-sort-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 99999;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    transition: bottom 0.3s cubic-bezier(0.17, 0.67, 0.22, 1);
}
.wmp-sort-sheet.active {
    bottom: 0;
}

.wmp-sort-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}
.wmp-sort-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}
.wmp-close-sort-sheet {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.wmp-sort-sheet-content {
    display: flex;
    flex-direction: column;
}
.wmp-sort-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}
.wmp-sort-option:last-child {
    border-bottom: none;
}
.wmp-sort-option.active {
    font-weight: 700;
    color: #2e7d32;
}

/* =========================================
   MY ACCOUNT - APP-LIKE UI UPGRADE
   ========================================= */

/* Override WooCommerce Layout */
body.woocommerce-account .woocommerce::after {
    display: none !important;
}
body.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: column !important;
}

/* 1. Horizontal Scrollable Navigation */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 25px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 0 10px !important;
    margin: 0 !important;
    list-style: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: #f8f9fa;
    color: #4b5563 !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}
/* Active state */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #2C1A11 !important;
    color: #ffffff !important;
    border-color: #2C1A11 !important;
    box-shadow: 0 4px 10px rgba(44, 26, 17, 0.2);
}

/* Content Area */
body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    padding: 0 10px !important;
    max-width: 800px;
    margin: 0 auto !important;
}

/* 2. Premium Forms (Edit Account, Address Forms) */
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

/* Form Inputs */
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .input-text,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields .input-text,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields select {
    width: 100% !important;
    padding: 16px 20px !important;
    background: #f9fafb !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #111 !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields .input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-fields select:focus {
    background: #ffffff !important;
    border-color: #2C1A11 !important;
    box-shadow: 0 0 0 4px rgba(44, 26, 17, 0.1) !important;
    outline: none !important;
}
/* Labels */
body.woocommerce-account .woocommerce-MyAccount-content form label {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Big Action Buttons */
body.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"] {
    width: 100% !important;
    padding: 18px !important;
    background: #2C1A11 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 15px rgba(44, 26, 17, 0.2) !important;
}
body.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover {
    background: #4A2C1D !important;
    transform: translateY(-2px);
}

/* 3. Address Cards */
body.woocommerce-account .woocommerce-Address {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.3s ease;
}
body.woocommerce-account .woocommerce-Address:hover {
    transform: translateY(-3px);
}
body.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f3f4f6 !important;
}
body.woocommerce-account .woocommerce-Address .edit {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6 !important;
    color: #374151 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}
body.woocommerce-account .woocommerce-Address .edit:hover {
    background: #111 !important;
    color: #fff !important;
}
body.woocommerce-account .woocommerce-Address address {
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
}

/* 4. Dashboard Greeting (App Welcome Style) */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    line-height: 1.6;
}
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type strong {
    font-weight: 800;
    color: #111;
    font-size: 20px;
    display: inline;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type a {
    color: #ef4444; /* Distinct logout red */
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #ef4444;
}

/* Desktop Centering for Nav */
@media (min-width: 768px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        justify-content: center !important;
    }
}

/* =========================================
   LOGIN & REGISTER - APP-LIKE UI UPGRADE
   ========================================= */

/* Layout for Desktop - Unified App-Like Card */
body.woocommerce-account .u-columns.col2-set {
    display: flex !important;
    flex-wrap: wrap !important;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    width: 100% !important;
    max-width: 500px !important;
    margin: 50px auto !important;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    gap: 0 !important;
    position: relative;
    box-sizing: border-box !important;
}

body.woocommerce-account .u-columns.col2-set .u-column1,
body.woocommerce-account .u-columns.col2-set .u-column2 {
    flex: 1 1 300px !important;
    width: 100% !important;
    padding: 50px 40px !important;
    float: none !important;
    background: transparent !important;
}

/* Divider on Desktop */
@media (min-width: 768px) {
    body.woocommerce-account .u-columns.col2-set .u-column1 {
        border-right: 1px solid #f0f0f0;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    body.woocommerce-account .u-columns.col2-set {
        margin: 15px auto !important;
        width: calc(100% - 30px) !important;
        border-radius: 16px;
    }
    body.woocommerce-account .u-columns.col2-set .u-column1,
    body.woocommerce-account .u-columns.col2-set .u-column2 {
        padding: 25px 20px !important;
        flex: 1 1 100% !important;
    }
    body.woocommerce-account .u-columns.col2-set .u-column1 {
        border-bottom: 1px solid #f0f0f0;
    }
    
    body.woocommerce-account .u-columns.col2-set h2 {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }
    body.woocommerce-account form.woocommerce-form-login .input-text,
    body.woocommerce-account form.woocommerce-form-register .input-text {
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    body.woocommerce-account form.woocommerce-form-login button[type="submit"],
    body.woocommerce-account form.woocommerce-form-register button[type="submit"] {
        padding: 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
}

/* Remove separate card backgrounds from forms */
body.woocommerce-account form.woocommerce-form-login,
body.woocommerce-account form.woocommerce-form-register {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

/* Headings with Modern Accent */
body.woocommerce-account .u-columns.col2-set h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
body.woocommerce-account .u-columns.col2-set h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 3px;
}

/* Inputs */
body.woocommerce-account form.woocommerce-form-login .input-text,
body.woocommerce-account form.woocommerce-form-register .input-text {
    width: 100% !important;
    padding: 16px 20px !important;
    background: #f9fafb !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #111 !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}
body.woocommerce-account form.woocommerce-form-login .input-text:focus,
body.woocommerce-account form.woocommerce-form-register .input-text:focus {
    background: #ffffff !important;
    border-color: #2C1A11 !important;
    box-shadow: 0 0 0 4px rgba(44, 26, 17, 0.1) !important;
    outline: none !important;
}

/* Labels */
body.woocommerce-account form.woocommerce-form-login label,
body.woocommerce-account form.woocommerce-form-register label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-transform: none !important;
}

/* Checkbox (Remember Me) */
body.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 15px 0 !important;
    font-weight: 600 !important;
    color: #374151 !important;
}
body.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2C1A11;
    cursor: pointer;
    margin: 0 !important;
}

/* Big Action Buttons */
body.woocommerce-account form.woocommerce-form-login button[type="submit"],
body.woocommerce-account form.woocommerce-form-register button[type="submit"] {
    width: 100% !important;
    padding: 18px !important;
    background: #2C1A11 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 15px rgba(44, 26, 17, 0.2) !important;
}
body.woocommerce-account form.woocommerce-form-login button[type="submit"]:hover,
body.woocommerce-account form.woocommerce-form-register button[type="submit"]:hover {
    background: #4A2C1D !important;
    transform: translateY(-2px);
}

/* Lost Password Link */
body.woocommerce-account form.woocommerce-form-login .woocommerce-LostPassword {
    margin-top: 15px !important;
    text-align: center;
}
body.woocommerce-account form.woocommerce-form-login .woocommerce-LostPassword a {
    color: #e65100 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
body.woocommerce-account form.woocommerce-form-login .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* Register text description */
body.woocommerce-account form.woocommerce-form-register p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* =========================================
   TOP-NOTCH PREMIUM FOOTER
   ========================================= */
.wmp-premium-footer {
    padding: 40px 0 0 0;
    font-family: inherit;
    color: #4a4a4a;
    position: relative;
    z-index: 10;
}
.wmp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 10px;
}
.wmp-footer-col {
    display: flex;
    flex-direction: column;
}
.wmp-footer-brand-text {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin: 0 0 15px 0;
}
.wmp-footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}
.wmp-footer-title {
    font-size: 14px;
    font-weight: 800;
    color: #2C1A11;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
ul.wmp-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.wmp-footer-menu li {
    margin-bottom: 12px;
}
ul.wmp-footer-menu li a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}
ul.wmp-footer-menu li a:hover {
    color: #2C1A11;
    text-decoration: underline;
}
.wmp-footer-text {
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.wmp-footer-email-link {
    color: #2C1A11;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}
.wmp-footer-email-link:hover {
    text-decoration: underline;
}

/* Footer Bottom Bar */
.wmp-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}
.wmp-copyright-text {
    font-size: 14px;
    color: #6b6b6b;
    text-align: center;
    width: 100%;
}

/* Back to Top Button */
.wmp-back-to-top {
    position: absolute;
    right: 0;
    top: -20px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2C1A11;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}
.wmp-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .wmp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wmp-footer-logo {
        max-width: 140px;
    }
}
@media screen and (max-width: 767px) {
    .wmp-premium-footer {
        padding: 40px 20px 80px 20px; /* Extra bottom padding for mobile nav */
    }
    .wmp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .wmp-footer-logo {
        margin: 0 auto 20px auto;
    }
    .wmp-footer-bottom {
        flex-direction: column;
        padding-top: 20px;
    }
    .wmp-back-to-top {
        position: static;
        margin: 20px auto 0 auto;
        opacity: 1;
        visibility: visible;
    }
    .wmp-copyright-text {
        text-align: center;
    }
}

/* =========================================
   PREMIUM DYNAMIC FAQ ACCORDION
   ========================================= */
.wmp-dynamic-faq-container {
    margin: 30px 0;
    width: 100%;
}
details.wmp-faq-item {
    border-bottom: 1px solid #eaeaea;
    background: transparent;
}
details.wmp-faq-item:first-child {
    border-top: 1px solid #eaeaea;
}
summary.wmp-faq-question {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary.wmp-faq-question::-webkit-details-marker {
    display: none;
}
.wmp-faq-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}
.wmp-faq-icon::before, .wmp-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #555;
    transition: transform 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.wmp-faq-icon::before {
    width: 100%;
    height: 1.5px;
}
.wmp-faq-icon::after {
    width: 1.5px;
    height: 100%;
}
details.wmp-faq-item[open] .wmp-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}
.wmp-faq-answer {
    padding: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
.wmp-faq-answer p {
    margin-bottom: 12px;
}
.wmp-faq-answer p:last-child {
    margin-bottom: 0;
}

/* FBT Off-Canvas Modal Styles */
.wmp-fbt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: flex-end; /* Bottom sheet on mobile */
    justify-content: center;
}

.wmp-fbt-modal.active {
    display: flex;
}

.wmp-fbt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.wmp-fbt-modal.active .wmp-fbt-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.wmp-fbt-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px; /* Max width for desktop */
    max-height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.wmp-fbt-modal.active .wmp-fbt-modal-content {
    transform: translateY(0);
}

.wmp-fbt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
}

.wmp-fbt-modal-header .section-title {
    margin: 0 !important;
    font-size: 20px !important;
}

.wmp-fbt-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: background 0.2s;
}
.wmp-fbt-modal-close:hover {
    background: #e0e0e0;
}

.wmp-fbt-modal-body {
    padding: 15px 12px 20px; /* Added 12px horizontal padding for mobile */
    overflow-y: auto;
    flex-grow: 1;
    overflow-x: hidden;
}

.wmp-fbt-modal-body .woomax-container {
    padding: 0 !important;
}

/* Ensure desktop looks more like a centered modal than a bottom sheet */
@media screen and (min-width: 768px) {
    .wmp-fbt-modal {
        align-items: center;
    }
    .wmp-fbt-modal-content {
        border-radius: 20px;
        max-height: 85vh;
        transform: scale(0.95);
        opacity: 0;
    }
    .wmp-fbt-modal.active .wmp-fbt-modal-content {
        transform: scale(1);
        opacity: 1;
    }
    }
    .wmp-fbt-modal-body {
        padding: 20px 20px 25px; /* Increase padding for desktop */
    }
}

/* ========================================= */
/* My Account Custom Dashboard (Amazon+Blinkit) */
/* ========================================= */
.wmp-custom-dashboard {
    padding: 10px 15px 30px;
    background: #fcfcfc;
    min-height: calc(100vh - 80px);
}

.wmp-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.wmp-profile-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wmp-profile-info {
    display: flex;
    flex-direction: column;
}

.wmp-greeting {
    font-size: 14px;
    color: #666;
}

.wmp-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.wmp-dashboard-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.wmp-pill-btn {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #fff;
    text-decoration: none !important;
    transition: all 0.2s;
}

.wmp-pill-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.wmp-recent-orders-section {
    margin-bottom: 25px;
}

.wmp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wmp-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.wmp-section-header a {
    color: #111;
}

.wmp-recent-orders-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.wmp-recent-orders-scroll::-webkit-scrollbar {
    display: none;
}

.wmp-recent-order-card {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmp-recent-order-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wmp-dashboard-list-section {
    margin-bottom: 20px;
}

.wmp-list-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.wmp-list-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.wmp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none !important;
    color: #333;
    transition: background 0.2s;
}

.wmp-list-item:hover {
    background: #fafafa;
}

.wmp-list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

/* Orders UI Visibility Upgrade */
.woocommerce-orders-table__row {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    display: block !important;
    padding: 15px !important;
}
.woocommerce-orders-table__cell {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #eee !important;
}
.woocommerce-orders-table__cell:last-child {
    border-bottom: none !important;
}
.woocommerce-orders-table__cell::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: #666;
}

/* Hide Default WooCommerce Account Elements Globally (Mobile + Desktop) */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .page-title,
.woocommerce-account .entry-title {
    display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

/* ========================================= */
/* Custom App-Style Thank You Page */
/* ========================================= */
.wmp-custom-thankyou {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: 'Inter', sans-serif;
    background: #fdfdfd;
}

/* Success Header & Animation */
.wmp-thankyou-success-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.wmp-thankyou-success-header h2 {
    color: #166534;
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0 5px;
}

.wmp-thankyou-success-header p {
    color: #15803d;
    font-size: 15px;
    margin: 0;
}

/* Checkmark Animation */
.wmp-success-checkmark {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}
.checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #22c55e;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px rgba(34,197,94,0.05); } }

/* Cards Styling */
.wmp-thankyou-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    padding: 20px;
    margin-bottom: 20px;
}
.wmp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Order Meta Grid */
.wmp-order-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}
.wmp-meta-item {
    display: flex;
    flex-direction: column;
}
.wmp-meta-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.wmp-meta-value {
    font-size: 15px;
    color: #222;
    font-weight: 600;
}
.wmp-amount-highlight {
    color: #e67e22;
    font-size: 16px;
}

/* Order Items */
.wmp-order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}
.wmp-order-item-row:last-child {
    border-bottom: none;
}
.wmp-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
}
.wmp-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wmp-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wmp-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.wmp-item-qty {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.wmp-item-total {
    font-weight: 700;
    color: #111;
    font-size: 15px;
}

/* Order Totals */
.wmp-order-totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}
.wmp-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.wmp-total-row span:last-child {
    font-weight: 600;
    color: #222;
}
.wmp-grand-total {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.wmp-grand-total span:last-child {
    color: #e67e22;
}

/* Shipping Card */
.wmp-shipping-card address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Action Buttons */
.wmp-thankyou-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}
.wmp-btn-primary {
    background: var(--wmp-global-color, #e67e22);
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    display: block;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}
.wmp-btn-secondary {
    background: #fff;
    color: #333 !important;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    display: block;
    border: 1px solid #ddd;
}
.wmp-btn-primary:hover, .wmp-btn-secondary:hover {
    opacity: 0.9;
}

/* Hide Default WooCommerce Notice on Thank You */
.woocommerce-order p.woocommerce-notice.woocommerce-notice--success {
    display: none !important;
}

/* Hide Default "Order received" Page Title */
.woocommerce-order-received .entry-title,
.woocommerce-order-received .page-title {
    display: none !important;
}
