/*
Theme Name: FinetoShine
Theme URI: 
Author: FinetoShine Theme
Author URI: 
Description: A premium, ultra-fast, mobile-first app-like WooCommerce theme optimized for FinetoShine.
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: finetoshine
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: 1400px;
    --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 */
.finetoshine-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
   ========================================================================== */

.finetoshine-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) {

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

/* Full width Breadcrumbs Top inside Grid */
.finetoshine-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) {
    .finetoshine-product-breadcrumbs-top {
        margin-bottom: -20px; /* Offset grid gap slightly to perfectly balance top and bottom space on mobile */
    }
}
.finetoshine-product-breadcrumbs-top .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: #111;
    font-weight: 600;
    text-align: left;
}
.finetoshine-product-breadcrumbs-top .woocommerce-breadcrumb a {
    color: #888;
    font-weight: 400;
    text-decoration: none;
}
.finetoshine-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.fts-account-page .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 */
.finetoshine-product-details-section .product_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Product Description */
.finetoshine-product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-top: 20px;
}
.finetoshine-product-description h2,
.finetoshine-product-description h3,
.finetoshine-product-description h4 {
    color: var(--heading-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}
.finetoshine-product-description p {
    margin-bottom: 15px;
}
.finetoshine-product-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.finetoshine-product-description li {
    margin-bottom: 8px;
}
.finetoshine-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 */
.finetoshine-shortcode-wrapper {
    margin-bottom: 15px;
}
.finetoshine-rating-wrapper {
    margin-bottom: 5px;
}
.finetoshine-tags-wrapper {
    margin-bottom: 10px;
}
.finetoshine-pricing-wrapper {
    margin-bottom: 15px;
}

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

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

.finetoshine-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 */
.finetoshine-product-details-section {
    min-height: 100%;
}

@media (max-width: 768px) { .finetoshine-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;
    }
    .finetoshine-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;
    }
    .finetoshine-custom-product-layout {
        gap: 0px !important;
    }
    .finetoshine-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.fts-account-page .woocommerce::after {
    display: none !important;
}
body.fts-account-page .woocommerce {
    display: flex !important;
    flex-direction: column !important;
}

/* 1. Horizontal Scrollable Navigation */
body.fts-account-page .fts-account-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 25px;
}
body.fts-account-page .fts-account-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.fts-account-page .fts-account-navigation ul::-webkit-scrollbar {
    display: none;
}
body.fts-account-page .fts-account-navigation ul li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.fts-account-page .fts-account-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.fts-account-page .fts-account-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.fts-account-page .fts-account-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.fts-account-page .fts-account-content form.woocommerce-EditAccountForm,
body.fts-account-page .fts-account-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.fts-account-page .fts-account-content form.woocommerce-EditAccountForm .input-text,
body.fts-account-page .fts-account-content form.woocommerce-address-fields .input-text,
body.fts-account-page .fts-account-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.fts-account-page .fts-account-content form.woocommerce-EditAccountForm .input-text:focus,
body.fts-account-page .fts-account-content form.woocommerce-address-fields .input-text:focus,
body.fts-account-page .fts-account-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.fts-account-page .fts-account-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.fts-account-page .fts-account-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.fts-account-page .fts-account-content form button[type="submit"]:hover {
    background: #4A2C1D !important;
    transform: translateY(-2px);
}

/* 3. Address Cards */
body.fts-account-page .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.fts-account-page .woocommerce-Address:hover {
    transform: translateY(-3px);
}
body.fts-account-page .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.fts-account-page .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.fts-account-page .woocommerce-Address .edit:hover {
    background: #111 !important;
    color: #fff !important;
}
body.fts-account-page .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.fts-account-page .fts-account-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.fts-account-page .fts-account-content > p:first-of-type strong {
    font-weight: 800;
    color: #111;
    font-size: 20px;
    display: inline;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}
body.fts-account-page .fts-account-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.fts-account-page .fts-account-navigation ul {
        justify-content: center !important;
    }
}

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

/* Layout for Desktop - Unified App-Like Card */
body.fts-account-page #fts_customer_login {
    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.fts-account-page #fts_customer_login .fts-login-column,
body.fts-account-page #fts_customer_login .fts-register-column {
    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.fts-account-page #fts_customer_login .fts-login-column {
        border-right: 1px solid #f0f0f0;
    }
}

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

/* Remove separate card backgrounds from forms */
body.fts-account-page form.fts-form-login,
body.fts-account-page form.fts-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.fts-account-page #fts_customer_login h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
body.fts-account-page #fts_customer_login h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-radius: 3px;
}

/* Inputs */
body.fts-account-page form.fts-form-login .input-text,
body.fts-account-page form.fts-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.fts-account-page form.fts-form-login .input-text:focus,
body.fts-account-page form.fts-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.fts-account-page form.fts-form-login label,
body.fts-account-page form.fts-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.fts-account-page form.fts-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.fts-account-page form.fts-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.fts-account-page form.fts-form-login button[type="submit"],
body.fts-account-page form.fts-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.fts-account-page form.fts-form-login button[type="submit"]:hover,
body.fts-account-page form.fts-form-register button[type="submit"]:hover {
    background: #4A2C1D !important;
    transform: translateY(-2px);
}

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

/* Register text description */
body.fts-account-page form.fts-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 .finetoshine-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 .fts-account-navigation,
.woocommerce-account .page-title,
.woocommerce-account .entry-title {
    display: none !important;
}
.woocommerce-account .fts-account-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;
}

/* Header Styles Extracted */

        /* Header specific variables & resets */
        :root {
            --header-bg-top: <?php echo $header_top_css; ?>;
            --header-bg-bottom: <?php echo $header_bottom_css; ?>;
            --text-dark: #2c1a11;
            --text-muted: #6b5c54;
            --brand-gold: #9c731e;
        }
        
        body, #page {
            background: var(--header-bg-bottom);
        }

        .site-header {
            background: #ffffff !important;
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }
        .site-header.is-hidden {
            transform: translateY(-100%);
        }

        /* Desktop Top Bar */
        .top-bar-desktop {
            display: none;
            background: var(--header-bg-top);
            padding: 8px 0;
            font-size: 13px;
            font-weight: 600;
            color: #1a0f09;
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }
        .top-bar-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-grow: 1;
            overflow: hidden;
        }
        .top-bar-left > span:first-child {
            flex-shrink: 0;
            white-space: nowrap;
        }
        .marquee-container {
            flex-grow: 1;
            overflow: hidden;
            white-space: nowrap;
            margin-right: 20px;
            mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        }
        .marquee-text {
            display: inline-block;
            animation: scrollText 30s linear infinite;
            padding-left: 100%;
            font-size: 13px;
            color: #d35400; /* Distinct spiritual color */
        }
        @keyframes scrollText {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        .top-bar-right, .top-bar-right {
            display: flex;
            gap: 25px;
            align-items: center;
        }
        .top-bar-right ul, .top-bar-right li {
            display: flex;
            gap: 25px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .top-bar-right a, .top-bar-right li a { 
            color: #1a0f09; 
            font-weight: 700; 
            display: flex; 
            align-items: center; 
            gap: 6px; 
            text-decoration: none; 
        }
        .top-bar-right a:hover, .top-bar-right li a:hover { opacity: 0.8; }

        /* Main Header Area */
        .main-header-area {
            padding: 8px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }
        .header-logo { flex: 0 0 auto; }
        .header-logo img { max-height: 35px; width: auto; display: block; object-fit: contain; }
        .header-logo a { text-decoration: none; display: flex; align-items: center; color: #4a2f1d; }
        
        .header-search { flex-grow: 1; max-width: 600px; position: relative; margin: 0 20px; }
        .header-search form { width: 100%; display: flex; }
        .search-field {
            width: 100%;
            padding: 10px 20px 10px 42px;
            border-radius: 30px;
            border: 1px solid #dcbfa2;
            background-color: transparent;
            font-size: 14px;
            color: #4a2f1d;
            font-weight: 500;
            outline: none;
            box-shadow: none;
        }
        .search-field::placeholder {
            color: #8c7662;
            font-weight: 400;
        }
        .header-search svg {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #4a2f1d;
            width: 20px;
            height: 20px;
        }

        .header-icons {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 0 0 auto;
        }
        .icon-circle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background-color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4a2f1d;
            border: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .icon-circle:hover { background-color: #ffffff; border-color: rgba(0,0,0,0.15); }

        /* Category Navigation (Below Search) */
        .main-navigation {
            display: none;
            background: transparent;
            border-top: 1px solid rgba(0,0,0,0.04);
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }
        .category-nav-ul {
            display: flex;
            justify-content: center;
            gap: 30px;
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
            padding: 5px 0;
            list-style: none;
            margin: 0;
        }
        .category-nav li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .category-nav::-webkit-scrollbar, .category-nav-ul::-webkit-scrollbar { display: none; }
        
        .cat-item > a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-decoration: none;
            color: #4a2f1d !important;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
            min-width: max-content;
            padding-bottom: 5px;
            transition: opacity 0.2s;
        }
        .cat-item:hover > a { opacity: 0.8; }
        .cat-item.active > a, 
        .cat-item.current-menu-item > a,
        .cat-item.current-menu-parent > a,
        .cat-item.current-menu-ancestor > a,
        .cat-item.current_page_item > a {
            border-bottom: 2px solid #111;
        }
        .cat-item svg, .cat-item img { width: 22px; height: 22px; object-fit: contain; }

        /* Mega Menu Dropdown for specific category items */
        .category-nav-wrap { position: relative !important; }
        .category-nav-ul { position: static !important; }
        .cat-item { position: static !important; }
        .wmp-desktop-has-mega { position: static !important; }
        .wmp-desktop-mega-dropdown {
            position: absolute; top: 100%; left: 0; right: 0; margin: 0 auto;
            width: 100%; max-width: 1200px; height: 480px; overflow: hidden;
            background: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.12);
            border-radius: 0 0 12px 12px; z-index: 99999;
            opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(15px); border: 1px solid rgba(0,0,0,0.05); border-top: none;
            display: flex; flex-direction: row; pointer-events: none; padding: 0;
        }
        .wmp-desktop-has-mega:hover .wmp-desktop-mega-dropdown,
        .wmp-desktop-has-mega:focus-within .wmp-desktop-mega-dropdown {
            opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
        }

        /* Custom Scrollbar */
        .wmp-desktop-mega-sidebar::-webkit-scrollbar, .wmp-desktop-mega-content::-webkit-scrollbar { width: 6px; }
        .wmp-desktop-mega-sidebar::-webkit-scrollbar-track, .wmp-desktop-mega-content::-webkit-scrollbar-track { background: transparent; }
        .wmp-desktop-mega-sidebar::-webkit-scrollbar-thumb, .wmp-desktop-mega-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
        .wmp-desktop-mega-sidebar::-webkit-scrollbar-thumb:hover, .wmp-desktop-mega-content::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

        /* Split Layout CSS */
        .wmp-desktop-mega-sidebar {
            width: 280px; background: #fff; padding: 30px; border-right: 1px solid #f0f0f0;
            display: flex; flex-direction: column; gap: 12px; height: 100%; overflow-y: auto; overflow-x: hidden !important;
        }
        .wmp-desktop-mega-tag {
            display: flex; justify-content: space-between; align-items: center;
            background: #e9ecef; color: #555; padding: 14px 20px; border-radius: 6px;
            font-size: 14px; font-weight: 800; text-transform: uppercase; text-decoration: none;
            transition: all 0.2s; letter-spacing: 0.5px; cursor: pointer; flex-shrink: 0;
        }
        .wmp-desktop-mega-tag:hover, .wmp-desktop-mega-tag.active {
            background: #15803d !important; color: #ffffff !important; /* Green */
        }
        .wmp-desktop-mega-tag:hover span, .wmp-desktop-mega-tag.active span {
            color: #ffffff !important;
        }
        .wmp-desktop-mega-tag svg { width: 18px; height: 18px; opacity: 0; transition: opacity 0.2s; stroke: #fff; }
        .wmp-desktop-mega-tag:hover svg, .wmp-desktop-mega-tag.active svg { opacity: 1; }

        .wmp-desktop-mega-content { flex: 1; padding: 30px; background: #fafafa; height: 100%; overflow-y: auto; overflow-x: hidden !important; }
        .wmp-desktop-mega-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; align-content: start !important; align-items: start !important; }
        .wmp-desktop-mega-item { 
            background: transparent !important; border-radius: 0 !important; padding: 0 !important; text-align: center !important;
            text-decoration: none !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important;
            transition: all 0.25s ease; border: none !important; box-shadow: none !important; height: auto !important;
            width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important;
        }
        .wmp-desktop-mega-item:hover { transform: translateY(-4px); box-shadow: none !important; }
        .wmp-desktop-mega-image { 
            width: 100% !important; padding-bottom: 100% !important; height: 0 !important; margin-bottom: 15px !important;
            border-radius: 8px !important; overflow: hidden !important; background: transparent !important;
            position: relative !important; flex-shrink: 0 !important; display: block !important;
        }
        .wmp-desktop-mega-image img { 
            position: absolute !important; top: 0 !important; left: 0 !important; 
            width: 100% !important; height: 100% !important; object-fit: cover !important; 
        }
        .wmp-desktop-mega-text {
            font-size: 14px !important; font-weight: 600 !important; color: #333 !important; line-height: 1.4 !important;
            white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; 
            width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: block !important; text-align: center !important;
        }

        @media (min-width: 992px) {
            .top-bar-desktop { display: block; }
            .category-nav { justify-content: space-between; }
            .category-nav-ul { gap: 30px; overflow: visible !important; overflow-x: visible !important; }
            .cat-item a { flex-direction: row; font-size: 14px; gap: 8px; }
            .cat-item svg, .cat-item img { width: 20px; height: 20px; }
        }
        @media (max-width: 768px) {
            .main-header-area { flex-wrap: wrap; padding: 12px 15px 5px 15px; gap: 10px; }
            .header-logo { order: 1; }
            .header-icons { order: 2; gap: 10px; }
            .header-search { order: 3; flex-basis: 100%; max-width: 100%; margin: 0; }
            .search-field { padding: 8px 15px 8px 36px; font-size: 13px; }
            .header-search svg { width: 16px; height: 16px; left: 12px; }
            .header-logo img { max-height: 28px; height: auto; margin-left: 0; }
            .icon-circle { width: 32px; height: 32px; }
            .icon-circle svg, .icon-circle img { width: 16px; height: 16px; }
            .category-nav-ul { gap: 18px; padding: 5px 15px; justify-content: flex-start; }
            
            /* Keep Search & Menu sticky, let Logo & Icons scroll out of view */
            /* Removed custom top adjustments to let the standard sticky logic work cleanly */
            /* Custom My Account Mobile Header */
            .woocommerce-account .site-header { display: none !important; }
            .wmp-myaccount-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: linear-gradient(135deg, #FFEFBA 0%, #FFFFFF 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
            .wmp-myaccount-header .header-logo { order: 0 !important; }
            .wmp-myaccount-header .header-logo img, .wmp-myaccount-header .header-logo h1 svg { height: 32px; width: auto; }
            .wmp-myaccount-header .header-logo h1 { font-size: 20px; margin: 0; display: flex; align-items: center; font-family: serif; color: #4a2f1d; }
            .wmp-myaccount-actions { display: flex; align-items: center; gap: 15px; order: 1; }
            .wmp-myaccount-india { display: flex; align-items: center; }
            .wmp-myaccount-india img { width: 24px; height: auto; border-radius: 2px; }
            .wmp-myaccount-search { color: #333; cursor: pointer; display: flex; align-items: center; }
        }
        @media (min-width: 769px) {
            .wmp-myaccount-header { display: none !important; }
        }
    
/* Footer Styles Extracted */

        .site-footer {
            background-color: var(--footer-bg);
            color: var(--footer-text);
            padding: 60px 0 20px;
        }
        .footer-widget-area {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        .site-info {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            text-align: center;
            font-size: 14px;
            color: rgba(255,255,255,0.7);
        }
        
        /* Mobile Bottom Nav Styles */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #ffffff;
            border-top: 1px solid #e8e8e8;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            z-index: 9999;
            height: 70px;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            padding-bottom: env(safe-area-inset-bottom);
            box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        }
        .mobile-bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #8b7c74; /* Updated inactive color to blend softly */
            font-size: 10px;
            font-weight: 600;
            text-decoration: none;
            flex: 1;
            gap: 4px;
            transition: color 0.2s ease;
        }
        .nav-icon { width: 22px; height: 22px; }
        .mobile-bottom-nav .nav-item.active {
            color: var(--text-dark); /* Crisp dark brown for active */
        }
        
        /* Floating Center Button */
        .nav-item-center-wrap {
            flex: 1;
            display: flex;
            justify-content: center;
            position: relative;
        }
        .nav-item-center {
            position: absolute;
            bottom: -18px;
            background: linear-gradient(135deg, #FFE175, #F5B301); /* Premium Yellow/Gold gradient */
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 6px 16px rgba(245, 179, 1, 0.4);
            border: 3px solid #fff;
            z-index: 10000;
            transition: transform 0.2s ease;
        }
        .nav-item-center:active {
            transform: scale(0.92);
        }
        .naam-jap-text { 
            color: #044a33; /* Deep Peacock Green */
            font-family: Georgia, serif; 
            font-size: 13px; 
            font-weight: 800; 
            text-align: center; 
            line-height: 1.1; 
            letter-spacing: 0.5px; 
        }

        /* Mobile specific media queries */
        @media (max-width: 768px) {
            .site-footer {
                display: none; /* Hide large desktop footer on mobile */
            }
            .mobile-bottom-nav {
                display: flex; /* Show bottom app bar */
            }
            body {
                padding-bottom: calc(90px + env(safe-area-inset-bottom)); /* Prevent content overlap with center button */
            }
        }
        /* Mobile Drawer CSS - Amazon Split Style */
        .wmp-mobile-drawer-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.6); z-index: 9997; opacity: 0; visibility: hidden;
            transition: all 0.3s ease;
        }
        .wmp-mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
        
        .wmp-amazon-drawer {
            position: fixed; top: 0; left: -100vw; width: 100vw; height: calc(100vh - 70px - env(safe-area-inset-bottom)); /* Full screen minus bottom nav */
            background: #fff; z-index: 9998;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex; flex-direction: column;
        }
        @media (min-width: 768px) {
            .wmp-amazon-drawer { width: 400px; left: -400px; height: 100vh; z-index: 9999; } /* Full height on desktop */
        }
        .wmp-amazon-drawer.active { left: 0; }
        
        .wmp-amazon-header {
            padding: 10px 15px; border-bottom: 1px solid #eee;
            display: flex; justify-content: space-between; align-items: center; background: #fff;
        }
        .wmp-drawer-search-form {
            flex: 1; display: flex; align-items: center; background: #f0f2f5; 
            border-radius: 8px; padding: 0 10px; margin-right: 15px; height: 42px;
        }
        .wmp-drawer-search-form .search-icon { margin-right: 8px; }
        .wmp-drawer-search-field {
            border: none; background: transparent; flex: 1; outline: none; font-size: 15px;
        }
        .wmp-close-drawer-btn {
            background: none !important; border: none; font-size: 28px; line-height: 1;
            color: #333 !important; padding: 0; min-width: auto; height: auto;
        }
        
        /* Split Layout */
        .wmp-split-layout {
            display: flex; flex: 1; overflow: hidden; background: #f9f9f9;
        }
        .wmp-split-sidebar {
            width: 90px; background: #fff; border-right: 1px solid #eee; overflow-y: auto;
        }
        .wmp-sidebar-item {
            display: flex; flex-direction: column; align-items: center; padding: 15px 5px;
            text-align: center; border-bottom: 1px solid #f5f5f5; cursor: pointer;
            transition: background 0.2s; position: relative;
        }
        .wmp-sidebar-item.active {
            background: #f0f8ff; /* Active tint */
        }
        .wmp-sidebar-item.active::before {
            content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
            background: var(--wmp-global-color); border-radius: 0 4px 4px 0;
        }
        .wmp-sidebar-icon {
            width: 40px; height: 40px; border-radius: 50%; background: #f0f2f5; 
            display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
            overflow: hidden;
        }
        .wmp-sidebar-icon img { width: 100%; height: 100%; object-fit: cover; }
        .wmp-sidebar-icon svg { width: 24px; height: 24px; color: var(--wmp-global-color); }
        .wmp-sidebar-text {
            font-size: 11px; font-weight: 600; color: #555; line-height: 1.2;
        }
        .wmp-sidebar-item.active .wmp-sidebar-text { color: var(--wmp-global-color); }
        
        .wmp-split-main {
            flex: 1; overflow-y: auto; padding: 15px; background: #f9f9f9;
        }
        
        /* Grid Layout */
        .wmp-grid-title {
            font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; margin-top: 0;
        }
        .wmp-menu-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
        }
        .wmp-grid-item {
            background: #fff; border-radius: 8px; padding: 10px 5px; text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03); text-decoration: none; display: flex;
            flex-direction: column; align-items: center; border: 1px solid #eee;
        }
        .wmp-grid-image {
            width: 60px; height: 60px; margin-bottom: 8px;
            border-radius: 6px; overflow: hidden; background: #f9f9f9;
            display: flex; align-items: center; justify-content: center;
        }
        .wmp-grid-image img { width: 100%; height: 100%; object-fit: contain; }
        .wmp-grid-text {
            font-size: 11px; font-weight: 600; color: #333; line-height: 1.3;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .wmp-grid-price {
            font-size: 12px; font-weight: 700; color: var(--wmp-global-color); margin-top: 4px;
        }
    
/* Unfollow Dropdown Styling */
.fts-unfollow-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    min-width: 140px;
}

.fts-unfollow-action-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #ed4956;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fts-unfollow-action-btn:hover {
    background: #fafafa;
}