/**
 * MMM Modern Custom Header & Navigation
 * Stylesheet - Ultra-fast, Responsive, Zero-Overflow
 * Version: 1.0.2 - Strict 380px Mobile Fit
 */

:root {
    --mmm-primary: #10b981;
    --mmm-primary-hover: #059669;
    --mmm-primary-light: #ecfdf5;
    --mmm-accent: #e11d48;
    --mmm-header-bg: #ffffff;
    --mmm-nav-bg: #ffffff;
    --mmm-text-color: #1f2937;
    --mmm-text-muted: #6b7280;
    --mmm-border-color: #e5e7eb;
    --mmm-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --mmm-shadow-lg: 0 10px 30px -4px rgba(0, 0, 0, 0.1);
    --mmm-radius: 10px;
    --mmm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Greenmart Theme & Elementor Header Suppressors (Decoupling)
   ========================================================================== */
#tbay-header,
.tbay_header-template,
#tbay-mobile-smartmenu,
.topbar-device-mobile,
.tbay-offcanvas-main,
.tbay-offcanvas-body,
#tbay-mobile-menu-navbar,
.header-device-mobile,
.tbay-search-min {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
}

/* Prevent ANY horizontal page overflow, kill top margins, and ensure 100% fit */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
}

#wrapper-container,
#tbay-main-content,
.wrapper-container {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Header Main Wrapper
   ========================================================================== */
.mmm-header-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    background-color: var(--mmm-header-bg);
    position: relative;
    z-index: 9999;
    font-family: var(--mmm-font);
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: visible !important; /* Allow desktop dropdowns to pop down freely! */
}

.mmm-header-wrap *,
.mmm-header-wrap *::before,
.mmm-header-wrap *::after {
    box-sizing: border-box;
}

.mmm-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.mmm-topbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    font-size: 13px;
    padding: 7px 0;
    line-height: 1.4;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.mmm-topbar a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.2s;
}

.mmm-topbar a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.mmm-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mmm-topbar-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.mmm-topbar-contact a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Main Brand Row (Desktop)
   ========================================================================== */
.mmm-main-header {
    padding: 14px 0;
    background-color: var(--mmm-header-bg);
    border-bottom: 1px solid var(--mmm-border-color);
    width: 100%;
}

.mmm-main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.mmm-brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mmm-brand-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mmm-logo-img {
    height: 46px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

.mmm-logo-text {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--mmm-accent);
    line-height: 1;
}

/* Search Box Container */
.mmm-search-container {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.mmm-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px 5px 3px 18px;
    transition: all 0.25s ease;
}

.mmm-search-form:focus-within {
    background: #ffffff;
    border-color: var(--mmm-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.mmm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--mmm-text-color);
    padding: 8px 6px;
    font-family: inherit;
    min-width: 0;
}

.mmm-search-input::placeholder {
    color: #94a3b8;
}

.mmm-search-clear {
    background: none;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    line-height: 1;
}

.mmm-search-clear:hover {
    color: #475569;
}

.mmm-search-submit {
    background: var(--mmm-primary);
    border: none;
    outline: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.mmm-search-submit:hover {
    background: var(--mmm-primary-hover);
    transform: scale(1.04);
}

.mmm-search-submit svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Predictive Live Search Dropdown */
.mmm-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--mmm-border-color);
    border-radius: 12px;
    box-shadow: var(--mmm-shadow-lg);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.mmm-search-results.is-open {
    display: block;
}

.mmm-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--mmm-text-color);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.mmm-search-result-item:last-child {
    border-bottom: none;
}

.mmm-search-result-item:hover {
    background: #f8fafc;
}

.mmm-search-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.mmm-search-item-info {
    flex: 1;
    min-width: 0;
}

.mmm-search-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mmm-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px 0;
}

.mmm-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.mmm-search-item-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.mmm-search-item-price {
    font-weight: 700;
    color: var(--mmm-primary);
}

.mmm-search-loading {
    padding: 18px;
    text-align: center;
    color: var(--mmm-text-muted);
    font-size: 13px;
}

/* Header Right Actions */
.mmm-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* WhatsApp Help Widget */
.mmm-action-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mmm-action-whatsapp:hover {
    background: #f0fdf4;
}

.mmm-whatsapp-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.mmm-whatsapp-icon-wrap svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.mmm-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: mmm-pulse-ring 2s infinite ease-out;
}

@keyframes mmm-pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

.mmm-whatsapp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mmm-whatsapp-label {
    font-size: 11px;
    color: var(--mmm-text-muted);
    font-weight: 500;
}

.mmm-whatsapp-number {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
}

/* User Account Widget */
.mmm-action-account {
    position: relative;
}

.mmm-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--mmm-text-color);
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.mmm-account-btn:hover {
    background: #f8fafc;
}

.mmm-account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    overflow: hidden;
    flex-shrink: 0;
}

.mmm-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmm-account-avatar svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mmm-account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mmm-account-label {
    font-size: 10.5px;
    color: var(--mmm-text-muted);
    font-weight: 500;
}

.mmm-account-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--mmm-text-color);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Account Dropdown */
.mmm-account-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--mmm-border-color);
    border-radius: 12px;
    box-shadow: var(--mmm-shadow-lg);
    width: 210px;
    padding: 8px 0;
    display: none;
    z-index: 10001;
}

/* Invisible hover bridge to eliminate gap so mouse movement never loses hover */
.mmm-account-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.mmm-action-account:hover .mmm-account-dropdown,
.mmm-account-dropdown:hover,
.mmm-action-account.is-open .mmm-account-dropdown {
    display: block !important;
}

.mmm-account-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 13px;
    color: var(--mmm-text-color);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.mmm-account-dropdown a:hover {
    background: #f8fafc;
    color: var(--mmm-primary);
}

.mmm-account-dropdown a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.7;
}

.mmm-account-dropdown .mmm-logout-link {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    color: #ef4444;
}

.mmm-account-dropdown .mmm-logout-link:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* WooCommerce Cart Widget */
.mmm-action-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mmm-primary);
    color: #ffffff !important;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.mmm-action-cart:hover {
    background: var(--mmm-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.35);
}

.mmm-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mmm-cart-icon-wrap svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mmm-cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #ffffff;
    color: var(--mmm-primary);
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    border-radius: 9999px;
    text-align: center;
    padding: 0 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mmm-cart-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mmm-cart-amount {
    font-weight: 700;
    opacity: 0.95;
}

/* ==========================================================================
   Navigation Bar (Desktop)
   ========================================================================== */
.mmm-nav-bar {
    background-color: var(--mmm-nav-bg);
    border-bottom: 1px solid var(--mmm-border-color);
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.mmm-nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible !important;
}

.mmm-primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    overflow: visible !important;
}

.mmm-menu-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmm-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--mmm-text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mmm-menu-link:hover,
.mmm-menu-item.current-menu-item > .mmm-menu-link,
.mmm-menu-item.current-menu-ancestor > .mmm-menu-link {
    color: var(--mmm-primary);
}

.mmm-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2.5px;
    background-color: var(--mmm-primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mmm-menu-item:hover > .mmm-menu-link::after,
.mmm-menu-item.current-menu-item > .mmm-menu-link::after,
.mmm-menu-item.current-menu-ancestor > .mmm-menu-link::after {
    transform: scaleX(1);
}

.mmm-chevron {
    width: 12px;
    height: 12px;
    fill: currentColor;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.mmm-menu-item:hover > .mmm-menu-link .mmm-chevron,
.mmm-menu-item.is-open > .mmm-menu-link .mmm-chevron {
    transform: rotate(180deg);
}

.mmm-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--mmm-border-color);
    border-radius: 12px;
    box-shadow: var(--mmm-shadow-lg);
    min-width: 230px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10005;
}

.mmm-menu-item:hover > .mmm-sub-menu,
.mmm-menu-item.is-open > .mmm-sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.mmm-sub-menu .mmm-menu-item {
    width: 100%;
}

.mmm-sub-menu .mmm-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    width: 100%;
}

.mmm-sub-menu .mmm-menu-link::after {
    display: none;
}

.mmm-sub-menu .mmm-menu-link:hover {
    background: #f8fafc;
    color: var(--mmm-primary);
    padding-left: 22px;
}

/* Badges (HOT, NEW, OFFER) */
.mmm-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.mmm-badge-hot {
    background: #fee2e2;
    color: #ef4444;
}

.mmm-badge-new {
    background: #dcfce7;
    color: #15803d;
}

.mmm-badge-offer {
    background: #fef3c7;
    color: #b45309;
}

/* Nav Right CTA Button */
.mmm-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.mmm-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

/* Sticky Header - Zero Layout Shifts, Zero Gaps */
.mmm-header-wrap.enable-sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

body.admin-bar .mmm-header-wrap.enable-sticky {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .mmm-header-wrap.enable-sticky {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .mmm-header-wrap.enable-sticky {
        top: 0 !important;
    }
}

body.single-quiz .mmm-header-wrap.enable-sticky,
body.single-ca_quiz .mmm-header-wrap.enable-sticky,
body.mmm-quiz-focus-mode .mmm-header-wrap {
    position: relative !important;
    top: auto !important;
}

/* ==========================================================================
   Mobile Header Bar (<= 991px) - Zero Overflow, Precision 380px Layout
   ========================================================================== */
.mmm-mobile-header {
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 8px !important;
    background: var(--mmm-header-bg) !important;
    border-bottom: 1px solid var(--mmm-border-color) !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.mmm-mobile-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    max-width: 72px !important;
}

.mmm-mobile-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 180px !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0 2px !important;
}

.mmm-mobile-logo a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 34px !important;
    max-width: 100% !important;
    text-decoration: none !important;
}

.mmm-mobile-logo-img {
    height: 32px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.mmm-mobile-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    max-width: 72px !important;
}

.mmm-mobile-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--mmm-text-color) !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    padding: 0 !important;
    position: relative !important;
    text-decoration: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.mmm-mobile-btn:hover,
.mmm-mobile-btn:active {
    background: #f1f5f9 !important;
}

.mmm-mobile-btn svg,
.mmm-mobile-btn path {
    width: 19px !important;
    height: 19px !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

.mmm-mobile-btn.mmm-drawer-open-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
}

.mmm-mobile-btn.mmm-drawer-open-btn svg,
.mmm-mobile-btn.mmm-drawer-open-btn svg path {
    width: 25px !important;
    height: 25px !important;
}

.mmm-mobile-btn .mmm-cart-count {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    background: var(--mmm-accent) !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 15px !important;
    border-radius: 9999px !important;
    text-align: center !important;
    padding: 0 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Mobile Search Expandable Bar */
.mmm-mobile-search-bar {
    display: none;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    animation: mmm-slide-down 0.2s ease-out;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10000 !important;
}

.mmm-mobile-search-bar.is-open {
    display: block !important;
}

/* ==========================================================================
   Off-Canvas Slide-Out Mobile Drawer
   ========================================================================== */
.mmm-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mmm-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mmm-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84vw;
    max-width: 310px;
    background: #ffffff;
    z-index: 100001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
}

.mmm-drawer-backdrop.is-open .mmm-drawer {
    transform: translateX(0);
}

.mmm-drawer-header {
    padding: 16px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--mmm-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mmm-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmm-drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mmm-primary-light);
    color: var(--mmm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.mmm-drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mmm-drawer-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mmm-drawer-greeting {
    font-size: 11px;
    color: var(--mmm-text-muted);
    font-weight: 500;
}

.mmm-drawer-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--mmm-text-color);
}

.mmm-drawer-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmm-drawer-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.mmm-drawer-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mmm-drawer-body {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.mmm-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmm-drawer-item {
    border-bottom: 1px solid #f1f5f9;
}

.mmm-drawer-link-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}

.mmm-drawer-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--mmm-text-color);
    text-decoration: none;
    flex: 1;
}

.mmm-drawer-link:hover,
.mmm-drawer-link.is-active {
    color: var(--mmm-primary);
}

.mmm-drawer-item.has-children > .mmm-drawer-link-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
}

.mmm-drawer-toggle {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.2s;
}

.mmm-drawer-item.is-open > .mmm-drawer-link-wrap .mmm-drawer-toggle,
.mmm-drawer-toggle.is-open {
    transform: rotate(180deg);
    color: var(--mmm-primary);
}

.mmm-drawer-toggle svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.mmm-drawer-submenu {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px 24px;
    background: #f8fafc;
    display: none;
    border-top: 1px solid #f1f5f9;
}

.mmm-drawer-item.is-open > .mmm-drawer-submenu,
.mmm-drawer-submenu.is-open {
    display: block !important;
    animation: mmm-drawer-fade-in 0.2s ease-in-out;
}

@keyframes mmm-drawer-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mmm-drawer-submenu li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.mmm-drawer-submenu li a:hover {
    color: var(--mmm-primary);
}

/* Drawer Quick Links (Daily CA, Wishlist, All PDFs & Custom Buttons) */
.mmm-drawer-quick-links-container {
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.mmm-drawer-quick-link-featured {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 9px 12px !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1.5px solid #10b981 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.2s ease !important;
}

.mmm-drawer-quick-links-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.mmm-drawer-quick-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.mmm-drawer-wishlist-link svg {
    color: #e11d48 !important;
}

/* Normal secondary quick links hover */
.mmm-drawer-quick-link:not(.mmm-drawer-quick-link-featured):hover {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Featured Daily Current Affairs link hover (Ensure text and icons stay bright white) */
.mmm-drawer-quick-link.mmm-drawer-quick-link-featured:hover,
.mmm-drawer-quick-link-featured:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

.mmm-drawer-quick-link.mmm-drawer-quick-link-featured:hover span,
.mmm-drawer-quick-link.mmm-drawer-quick-link-featured:hover svg,
.mmm-drawer-quick-link-featured:hover span,
.mmm-drawer-quick-link-featured:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.mmm-drawer-quick-link.mmm-drawer-quick-link-featured:hover .mmm-badge,
.mmm-drawer-quick-link-featured:hover .mmm-badge {
    background: #ffffff !important;
    color: #059669 !important;
}

.mmm-drawer-parent-item {
    border-bottom: 1px dashed #e2e8f0 !important;
    background: #f1f5f9 !important;
}

.mmm-drawer-parent-link {
    color: #10b981 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
}

.mmm-drawer-footer {
    padding: 14px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--mmm-border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmm-drawer-footer-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
}

.mmm-drawer-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 8px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.mmm-drawer-btn-full {
    width: 100% !important;
    padding: 11px 16px !important;
    font-size: 13.5px !important;
}

.mmm-drawer-btn-account {
    background: #1e293b !important;
    color: #ffffff !important;
}

.mmm-drawer-btn-account:hover {
    background: #0f172a !important;
}

.mmm-drawer-btn-tg {
    background: #229ED9 !important;
    color: #ffffff !important;
}

.mmm-drawer-btn-tg:hover {
    background: #1c88bb !important;
}

.mmm-drawer-btn-wa {
    background: #25D366 !important;
    color: #ffffff !important;
}

.mmm-drawer-btn-wa:hover {
    background: #1eb855 !important;
}

.mmm-drawer-logout-link {
    display: block !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #dc2626 !important;
    text-decoration: none !important;
    padding-top: 4px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Mobile Bottom Navigation App Bar (Sticky at bottom, 100% Fit)
   ========================================================================== */
.mmm-bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 54px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--mmm-border-color) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
    z-index: 9998 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-sizing: border-box !important;
}

.mmm-bottom-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
}

.mmm-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    flex: 1 1 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0 !important;
    height: 100% !important;
    position: relative !important;
    padding: 2px 0 !important;
    transition: color 0.15s !important;
    box-sizing: border-box !important;
}

.mmm-bottom-item:hover,
.mmm-bottom-item.is-active {
    color: var(--mmm-primary) !important;
}

.mmm-bottom-item span {
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin-top: 1px !important;
}

.mmm-bottom-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 auto 1px auto !important;
}

.mmm-bottom-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    display: block !important;
}

.mmm-bottom-badge {
    position: absolute !important;
    top: -4px !important;
    right: -7px !important;
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 15px !important;
    border-radius: 999px !important;
    text-align: center !important;
    padding: 0 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    z-index: 10 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .mmm-main-header,
    .mmm-nav-bar {
        display: none !important;
    }
    
    .mmm-mobile-header {
        display: flex !important;
    }

    .mmm-bottom-nav {
        display: block !important;
    }
    
    body.has-mmm-bottom-nav {
        padding-bottom: 58px !important;
    }
}

@media (max-width: 768px) {
    .mmm-topbar {
        font-size: 11px;
        padding: 5px 8px;
    }
    .mmm-topbar-contact {
        display: none !important;
    }
    .mmm-topbar-flex {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Strict check for small screen widths down to 320px/380px */
@media (max-width: 480px) {
    .mmm-container {
        padding: 0 8px !important;
    }
    
    .mmm-mobile-header {
        padding: 6px 6px !important;
    }

    .mmm-mobile-left {
        flex: 0 0 74px !important;
        width: 74px !important;
        max-width: 74px !important;
        gap: 2px !important;
    }

    .mmm-mobile-right {
        flex: 0 0 68px !important;
        width: 68px !important;
        max-width: 68px !important;
        gap: 2px !important;
    }

    .mmm-mobile-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
    
    .mmm-mobile-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .mmm-mobile-btn.mmm-drawer-open-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .mmm-mobile-btn.mmm-drawer-open-btn svg,
    .mmm-mobile-btn.mmm-drawer-open-btn svg path {
        width: 24px !important;
        height: 24px !important;
    }

    .mmm-mobile-logo-img {
        max-width: 100px !important;
        height: 30px !important;
    }
    
    .mmm-drawer {
        width: 86vw !important;
    }
}

/* ==========================================================================
   Fix IMG1 #1: Zero White Gap Above Sticky Header & Kill WP Admin Bar Margins
   ========================================================================== */
html {
    margin-top: 0 !important;
}
body {
    margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }
    * html body {
        margin-top: 0 !important;
    }
    #wpadminbar {
        display: none !important;
        height: 0 !important;
    }
}
.mmm-header-wrap.is-sticky {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   Fix IMG5: Sticky Header OFF on Quiz Pages (Mobile & Desktop)
   ========================================================================== */
body.single-quiz .mmm-header-wrap,
body.single-ca_quiz .mmm-header-wrap,
body:has(.mmm-quiz-container) .mmm-header-wrap {
    position: static !important;
    box-shadow: none !important;
    animation: none !important;
}

/* ==========================================================================
   Fix IMG1 #2 & #3: WooCommerce Cart Page Styling & Checkout CTA
   ========================================================================== */
.woocommerce-cart .woocommerce {
    padding-bottom: 90px !important;
}
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 16px 0 !important;
    margin: 16px 0 30px !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-transform: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    margin: 0 !important;
    line-height: normal !important;
    z-index: auto !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #059669 !important;
    color: #ffffff !important;
}
/* Quantity box for limited-1 or digital products in cart */
.woocommerce-cart table.cart td.product-quantity {
    display: table-cell !important;
    vertical-align: middle !important;
}
.woocommerce-cart table.cart td.product-quantity .box-quantity {
    display: inline-flex !important;
    align-items: center !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 36px !important;
    margin: 0 !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity button.minus,
.woocommerce-cart table.cart td.product-quantity .quantity button.plus {
    width: 32px !important;
    height: 36px !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #334155 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.15s ease !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity button.minus:hover,
.woocommerce-cart table.cart td.product-quantity .quantity button.plus:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity input.qty {
    width: 42px !important;
    height: 36px !important;
    background: #ffffff !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity button.minus i,
.woocommerce-cart table.cart td.product-quantity .quantity button.plus i {
    display: none !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity button.minus::after {
    content: "−" !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity button.plus::after {
    content: "+" !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity:has(input[max="1"]) button.minus,
.woocommerce-cart table.cart td.product-quantity .quantity:has(input[max="1"]) button.plus {
    display: none !important;
}
.woocommerce-cart table.cart td.product-quantity .quantity:has(input[max="1"]) input.qty {
    border: none !important;
    width: 32px !important;
}
.woocommerce-cart table.cart td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    margin-left: 8px !important;
}

/* ==========================================================================
   Fix IMG4: Single Product Page - Zero Interference, Instant Image, Compact Layout, & Floating Sticky Bar
   ========================================================================== */

/* 1. Force Product Gallery Visibility */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery--with-images {
    opacity: 1 !important;
    visibility: visible !important;
}

.single-product .woocommerce-product-gallery img {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
}

/* 2. Completely eliminate Greenmart's broken popup and close icons */
#mobile-close-infor,
#mobile-close-infor-wrapper,
.mobile-infor-wrapper,
.mobile-btn-cart-click,
#tbay-click-addtocart,
#tbay-click-buy-now,
.form-cart-popup #mobile-close-infor,
.form-cart-popup #mobile-close-infor-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
}

/* 3. Single Product Compact Spacing & Breadcrumb Fix (Prevents text clipping) */
.single-product #tbay-breadscrumb {
    display: block !important;
    padding: 14px 0 8px 0 !important;
    margin: 0 0 10px 0 !important;
    background: transparent !important;
    overflow: visible !important;
    clear: both !important;
}
.single-product #tbay-breadscrumb .breadscrumb-inner {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}
.single-product #tbay-breadscrumb .breadcrumb,
.single-product #tbay-breadscrumb .tbay-woocommerce-breadcrumb {
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
}
.single-product #tbay-breadscrumb .breadcrumb li,
.single-product #tbay-breadscrumb .tbay-woocommerce-breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.6 !important;
    font-size: 13.5px !important;
}
.single-product .single-product-before-wrapper {
    margin-bottom: 6px !important;
}
.single-product h1.product_title {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin: 4px 0 8px 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-weight: 700 !important;
}
.single-product .row-active-full {
    margin-top: 0 !important;
}
.single-product .product-inside-wrapper {
    padding-top: 0 !important;
}
.single-product .image-mains {
    margin-bottom: 12px !important;
}
.single-product .summary.entry-summary {
    padding: 0 !important;
}
.single-product .summary .price {
    margin: 8px 0 !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
}

/* 4. Desktop Inline Buttons in Form Cart & Alignment Fix */
.single-product div.product div.summary,
.single-product .information .summary,
.single-product .summary.entry-summary,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
}

.single-product .summary form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

/* Neutralize WooCommerce core clearfix pseudo-elements that turn into phantom flex items */
.single-product .summary form.cart::before,
.single-product .summary form.cart::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hide Quantity Box when quantity cannot be increased / limit is 1 / sold individually */
.single-product .summary form.cart .box-quantity.hidden,
.single-product .summary form.cart .quantity.hidden,
.single-product .summary form.cart .box-quantity.mmm-qty-hidden,
.single-product .summary form.cart .box-quantity:has(input[type="hidden"]),
.single-product .summary form.cart .box-quantity:has(input[max="1"]),
.single-product .summary form.cart:has(input[name="quantity"][max="1"]) .box-quantity,
.single-product .summary form.cart:has(input[type="hidden"][name="quantity"]) .box-quantity,
.single-product .summary form.cart.mmm-no-qty .box-quantity {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* Style Quantity Box when visible */
.single-product .summary form.cart .box-quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.single-product .summary form.cart .box-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 48px !important;
    width: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.single-product .summary form.cart .box-quantity .quantity .qty {
    width: 44px !important;
    height: 45px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.single-product .summary form.cart .box-quantity .quantity button.plus,
.single-product .summary form.cart .box-quantity .quantity button.minus {
    width: 32px !important;
    height: 45px !important;
    border: none !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.single-product .summary form.cart .box-quantity .quantity button.plus:hover,
.single-product .summary form.cart .box-quantity .quantity button.minus:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Add to Cart & Buy Now Buttons - Always Perfectly Aligned 50/50 Side by Side */
.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary form.cart .tbay-buy-now,
.single-product .summary .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    float: none !important;
    clear: none !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    flex: 1 1 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
}

/* Neutralize legacy Greenmart button pseudo-elements & offsets */
.single-product .summary form.cart .single_add_to_cart_button:before,
.single-product .summary form.cart .single_add_to_cart_button:after,
.single-product .summary form.cart .tbay-buy-now:before,
.single-product .summary form.cart .tbay-buy-now:after {
    display: none !important;
    content: none !important;
}

.single-product .summary form.cart .single_add_to_cart_button {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}
.single-product .summary form.cart .single_add_to_cart_button:hover {
    background: #059669 !important;
}
.single-product .summary form.cart .tbay-buy-now {
    background: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
}
.single-product .summary form.cart .tbay-buy-now:hover {
    background: #d97706 !important;
}

/* Frequently Bought Together Clean Layout */
.single-product .tbay-ywfbt-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.single-product .tbay-ywfbt-wrapper:empty,
.single-product .tbay-ywfbt-wrapper:not(:has(.yith-wfbt-section)),
.single-product .tbay-ywfbt-wrapper:not(:has(.yith-wfbt-form)),
.single-product .tbay-ywfbt-wrapper .container:empty {
    display: none !important;
}

.single-product .yith-wfbt-section {
    margin-top: 20px !important;
    padding: 18px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
.yith-wfbt-section > h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: none !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}
.yith-wfbt-section .yith-wfbt-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.yith-wfbt-section .yith-wfbt-images {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.yith-wfbt-section .yith-wfbt-images td {
    padding: 0 6px !important;
    vertical-align: middle !important;
    border: none !important;
}
.yith-wfbt-section .yith-wfbt-images td.image-td {
    width: 76px !important;
    height: 76px !important;
    padding: 0 !important;
}
.yith-wfbt-section .yith-wfbt-images td.image-td a {
    display: block !important;
    width: 76px !important;
    height: 76px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    transition: border-color 0.2s !important;
}
.yith-wfbt-section .yith-wfbt-images td.image-td a:hover {
    border-color: #10b981 !important;
}
.yith-wfbt-section .yith-wfbt-images td.image-td img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.yith-wfbt-section .yith-wfbt-images td.image_plus {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    width: 20px !important;
    text-align: center !important;
    line-height: 1 !important;
}
.yith-wfbt-section .yith-wfbt-form .yith-wfbt-submit-block {
    position: static !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}
.yith-wfbt-section .yith-wfbt-form .yith-wfbt-submit-block::before {
    display: none !important;
    content: none !important;
}
.yith-wfbt-section .price_text .total_price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    margin: 0 !important;
}
.yith-wfbt-section .price_text .total_price_label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}
.yith-wfbt-section .yith-wfbt-submit-button {
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-transform: none !important;
}
.yith-wfbt-section .yith-wfbt-submit-button:hover {
    background: #059669 !important;
}
.yith-wfbt-section .yith-wfbt-items {
    width: 100% !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.yith-wfbt-section .yith-wfbt-item {
    font-size: 13px !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}
@media (max-width: 640px) {
    .single-product .yith-wfbt-section {
        padding: 14px 12px !important;
        margin-top: 16px !important;
    }
    .yith-wfbt-section .yith-wfbt-images td.image-td {
        width: 62px !important;
        height: 62px !important;
    }
    .yith-wfbt-section .yith-wfbt-images td.image-td a {
        width: 62px !important;
        height: 62px !important;
    }
    .yith-wfbt-section .yith-wfbt-images td.image_plus {
        font-size: 16px !important;
        width: 14px !important;
    }
    .yith-wfbt-section .yith-wfbt-form .yith-wfbt-submit-block {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 14px !important;
    }
    .yith-wfbt-section .yith-wfbt-submit-button {
        padding: 9px 14px !important;
        font-size: 12.5px !important;
    }
}
@media (min-width: 1200px) {
    #sidebar-shop+.singular-shop .yith-wfbt-section .yith-wfbt-images {
        padding-right: 0 !important;
    }
}

/* 5. Mobile Floating Sticky Action Bar (Directly Above .mmm-bottom-nav) */
.mmm-product-sticky-bar {
    display: none;
}

@media (max-width: 991px) {
    .mmm-product-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 58px !important; /* DIRECTLY ABOVE the 58px mobile bottom nav */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 52px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
        z-index: 9997 !important; /* Immediately below .mmm-bottom-nav (9998) */
        padding: 6px 10px !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .mmm-product-sticky-bar .mmm-sticky-btn {
        flex: 1 1 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 40px !important;
        border-radius: 6px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        border: none !important;
        cursor: pointer !important;
        outline: none !important;
        box-sizing: border-box !important;
        transition: filter 0.15s ease !important;
    }

    .mmm-product-sticky-bar .mmm-sticky-btn:active {
        filter: brightness(0.92) !important;
        transform: scale(0.98) !important;
    }

    .mmm-product-sticky-bar .mmm-sticky-btn-cart {
        background: #10b981 !important;
        color: #ffffff !important;
    }

    .mmm-product-sticky-bar .mmm-sticky-btn-buy {
        background: #f59e0b !important;
        color: #ffffff !important;
    }

    /* Give body extra padding so bottom content is never obscured by sticky CTA + bottom nav */
    body.single-product {
        padding-bottom: 118px !important;
    }

    /* Clean inline cart & buy now block in summary on mobile (Perfect 50/50 alignment) */
    .single-product .summary form.cart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 16px 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .single-product .summary form.cart .single_add_to_cart_button,
    .single-product .summary form.cart .tbay-buy-now {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        padding: 0 12px !important;
        text-align: center !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .single-product .summary form.cart .single_add_to_cart_button {
        background: #10b981 !important;
        color: #ffffff !important;
    }
    .single-product .summary form.cart .tbay-buy-now {
        background: #f59e0b !important;
        color: #ffffff !important;
    }
    .single-product .summary form.cart .single-btn-action,
    .single-product .summary .cart-actions {
        display: contents !important;
    }
}

/* ==========================================================================
   Fix IMG3: Login Page Compact Spacing (Mobile & Desktop)
   ========================================================================== */
.woocommerce-account #tbay-main-content,
.page-template-template-myaccount #tbay-main-content {
    padding-top: 6px !important;
    margin-top: 0 !important;
}
.woocommerce-account .mmm-auth-outer {
    margin: 4px auto 20px auto !important;
}
.woocommerce-account .mmm-auth-card.card-minimal {
    margin: 4px auto !important;
}
.woocommerce-account .mmm-auth-form-pane,
.woocommerce-account .card-minimal .mmm-auth-form-pane {
    padding: 16px 18px !important;
}
.woocommerce-account .mmm-auth-topbar {
    margin-bottom: 8px !important;
}
.woocommerce-account .mmm-auth-tabs-row {
    margin-bottom: 10px !important;
    padding: 3px !important;
}
.woocommerce-account .mmm-google-auth-box {
    margin-bottom: 10px !important;
}
.woocommerce-account .mmm-google-btn {
    min-height: 40px !important;
    padding: 6px 12px !important;
}
.woocommerce-account .mmm-auth-divider {
    margin: 10px 0 !important;
}
.woocommerce-account .mmm-form-intro {
    margin-bottom: 10px !important;
}
.woocommerce-account .mmm-form-intro h3 {
    font-size: 1.15rem !important;
    margin: 0 0 2px 0 !important;
}
.woocommerce-account .mmm-form-intro p {
    font-size: 0.78rem !important;
    margin: 0 !important;
}
.woocommerce-account .mmm-field-group {
    margin-bottom: 10px !important;
}
.woocommerce-account .mmm-input {
    height: 42px !important;
    font-size: 0.88rem !important;
}
.woocommerce-account .mmm-submit-btn {
    height: 42px !important;
    font-size: 0.92rem !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   Single Product Gallery Carousel & Thumbnails Slider (Requirement 2)
   ========================================================================== */
.single-product .woocommerce-product-gallery {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Single Product Clean Image Viewer (Pure CSS Tabs - One image at a time) */
.single-product .woocommerce-product-gallery__wrapper {
    position: relative !important;
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    min-height: 280px !important;
}

/* Initially display ONLY the active or first image */
.single-product .woocommerce-product-gallery__image {
    display: none !important;
    width: 100% !important;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* First image is ALWAYS visible by default (ensures single-image products never hide) */
.single-product .woocommerce-product-gallery__image:first-child {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.single-product .woocommerce-product-gallery__image.mmm-active-slide {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Only hide non-active slides when slider has multiple items and is initialized */
.single-product .woocommerce-product-gallery__wrapper.mmm-has-slider .woocommerce-product-gallery__image:not(.mmm-active-slide) {
    display: none !important;
    opacity: 0 !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
}

/* Single Product Sale Badge Scoped Styling */
.single-product .onsale,
.single-product span.onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: max-content !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    z-index: 15 !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}

/* ==========================================================================
   PhotoSwipe Lightbox Modal Fix (Lens click on product images)
   Ensures the lightbox modal is ALWAYS layered ABOVE the sticky header (z-index: 9999999)
   so the top head part of the image and close controls are never obscured.
   ========================================================================== */
.pswp,
div.pswp,
body .pswp,
.pswp--open {
    z-index: 9999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.pswp__top-bar {
    z-index: 99999999 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    height: 48px !important;
}

.pswp__button--close {
    opacity: 1 !important;
    cursor: pointer !important;
}

.pswp__img {
    max-height: calc(100vh - 100px) !important;
    max-width: calc(100vw - 24px) !important;
    object-fit: contain !important;
    margin: auto !important;
    padding-top: 10px !important;
}

.pswp__zoom-wrap {
    transform-origin: center center !important;
}

/* Gallery Navigation Arrows */
.mmm-gallery-nav-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: absolute !important;
    top: 45% !important;
    left: 8px !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

.mmm-gallery-nav {
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.mmm-gallery-nav:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.mmm-gallery-counter {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    letter-spacing: 0.5px !important;
    pointer-events: none !important;
    backdrop-filter: blur(4px) !important;
}

/* Accessible visually hidden - hide duplicate flex-control-thumbs without breaking click events */
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-control-thumbs,
.woocommerce-product-gallery ol.flex-control-nav,
.single-product .image-mains .flex-control-thumbs,
.single-product .woocommerce-product-gallery .flex-control-thumbs,
.single-product .image-mains ol.flex-control-thumbs {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Active Working Thumbnails Row Below Main Image (Green mark) */
.mmm-gallery-thumbs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 10px 4px !important;
    margin-top: 10px !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
}

.mmm-gallery-thumb {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 2px !important;
    cursor: pointer !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.65 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.mmm-gallery-thumb.is-active,
.mmm-gallery-thumb:hover {
    border-color: #10b981 !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
    transform: scale(1.05) !important;
}

.mmm-gallery-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   Mobile Cart Floating Sticky Checkout Bar (Requirement 1)
   ========================================================================== */
.mmm-cart-sticky-bar {
    display: none;
}

@media (max-width: 991px) {
    .mmm-cart-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 54px !important; /* directly above mobile bottom nav */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 56px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08) !important;
        z-index: 9997 !important;
        padding: 8px 12px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .mmm-cart-sticky-total {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
    }

    .mmm-cart-sticky-lbl {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .mmm-cart-sticky-amount {
        font-size: 15.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .mmm-cart-sticky-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        background: #10b981 !important;
        color: #ffffff !important;
        padding: 9px 13px !important;
        border-radius: 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
    }

    .mmm-cart-sticky-btn:active {
        filter: brightness(0.92) !important;
        transform: scale(0.98) !important;
    }

    body.woocommerce-cart {
        padding-bottom: 125px !important;
    }
}

/* ==========================================================================
   Mobile Checkout Floating Sticky Pay Now Bar
   ========================================================================== */
.mmm-checkout-sticky-bar {
    display: none;
}

@media (max-width: 991px) {
    .mmm-checkout-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 54px !important; /* directly above mobile bottom nav */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 58px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1) !important;
        z-index: 9997 !important;
        padding: 8px 14px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .mmm-checkout-sticky-total {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }

    .mmm-checkout-sticky-lbl {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .mmm-checkout-sticky-amount {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .mmm-checkout-sticky-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        padding: 10px 18px !important;
        border-radius: 8px !important;
        border: none !important;
        outline: none !important;
        cursor: pointer !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35) !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        flex-grow: 1 !important;
        max-width: 220px !important;
    }

    .mmm-checkout-sticky-btn:active {
        filter: brightness(0.92) !important;
        transform: scale(0.98) !important;
    }

    .mmm-checkout-sticky-btn:disabled,
    .mmm-checkout-sticky-btn.loading {
        opacity: 0.65 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }

    body.woocommerce-checkout {
        padding-bottom: 130px !important;
    }
}

/* ==========================================================================
   Related Products "Add All to Cart" + Individual Buttons (Requirement 4)
   ========================================================================== */
.related.products .widget-title,
.related.products h2,
.related.products h3,
.product-related-wrapper .related.products .widget-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    position: relative !important;
    margin-bottom: 14px !important;
}

.mmm-add-all-related-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 11px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.mmm-add-all-related-btn:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
}

.mmm-add-all-related-btn.is-loading {
    opacity: 0.7 !important;
    cursor: wait !important;
}

.related.products .product-block,
.related.products .product-content,
.related.products .caption,
.related.products .meta,
.related.products .infor {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.related.products .mmm-price-cart-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
    clear: both !important;
}

.related.products .mmm-price-cart-row .price {
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    flex: 1 1 auto !important;
}

.related.products .mmm-price-cart-row .price del,
.related.products .mmm-price-cart-row .price ins {
    display: inline-block !important;
    float: none !important;
}

.mmm-related-single-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
}

.mmm-related-single-cart-btn:hover {
    background: #059669 !important;
}

/* Related Single Product Button: Compact Rounded Rectangular Cart Icon Button (PC & Mobile) */
.mmm-related-single-cart-btn {
    width: 36px !important;
    height: 32px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.mmm-related-single-cart-btn .btn-text {
    display: none !important;
}
.mmm-related-single-cart-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

/* Hide bulky Greenmart action group in related products */
.related.products .groups-button,
.product-related-wrapper .groups-button {
    display: none !important;
}

/* ==========================================================================
   11. WooCommerce My Account Dashboard Hub & Quick Access Cards
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2) {
    display: none !important; /* Replace default plain text */
}

.mmm-account-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

/* Profile Welcome Banner */
.mmm-dash-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.mmm-dash-profile-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mmm-dash-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.mmm-dash-user-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.mmm-dash-email {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 6px 0;
}

.mmm-dash-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mmm-dash-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmm-dash-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 18px;
    text-decoration: none;
    min-width: 95px;
    transition: all 0.2s ease;
}

.mmm-dash-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mmm-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
}

.mmm-stat-label {
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Section Header */
.mmm-dash-section-header {
    margin-top: 4px;
}

.mmm-dash-section-header h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.mmm-dash-section-header p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* Cards Grid */
.mmm-dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    width: 100%;
}

.mmm-dash-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.mmm-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.mmm-dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.mmm-card-analytics .mmm-dash-card-icon { background: #eff6ff; color: #2563eb; }
.mmm-card-downloads .mmm-dash-card-icon { background: #ecfdf5; color: #059669; }
.mmm-card-orders .mmm-dash-card-icon { background: #fef3c7; color: #d97706; }
.mmm-card-address .mmm-dash-card-icon { background: #f3e8ff; color: #7c3aed; }
.mmm-card-account .mmm-dash-card-icon { background: #e0f2fe; color: #0284c7; }
.mmm-card-shop .mmm-dash-card-icon { background: #fdf2f8; color: #db2777; }
.mmm-card-support .mmm-dash-card-icon { background: #dcfce7; color: #16a34a; }
.mmm-card-logout .mmm-dash-card-icon { background: #fee2e2; color: #dc2626; }

.mmm-dash-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.mmm-dash-card-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    margin: 0 0 16px 0 !important;
    min-height: 36px;
}

.mmm-dash-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.mmm-card-analytics .mmm-dash-card-cta { color: #2563eb; }
.mmm-card-downloads .mmm-dash-card-cta { color: #059669; }
.mmm-card-orders .mmm-dash-card-cta { color: #d97706; }
.mmm-card-address .mmm-dash-card-cta { color: #7c3aed; }
.mmm-card-account .mmm-dash-card-cta { color: #0284c7; }
.mmm-card-shop .mmm-dash-card-cta { color: #db2777; }
.mmm-card-support .mmm-dash-card-cta { color: #16a34a; }
.mmm-card-logout .mmm-dash-card-cta { color: #dc2626; }

@media (max-width: 768px) {
    .mmm-dash-profile-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .mmm-dash-stats-row {
        width: 100%;
        justify-content: space-between;
    }
    .mmm-dash-stat-item {
        flex: 1;
    }
    .mmm-dash-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   12. Shop Page (/all-pdf) Full-Width Modern Grid Redesign
   ========================================================================== */
.archive.post-type-archive-product #main-container,
.tax-product_cat #main-container,
.tax-product_tag #main-container,
.woocommerce-shop #main-container,
body.post-type-archive-product #main-container {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px 40px !important;
}

.archive.post-type-archive-product .shop-page,
.tax-product_cat .shop-page,
.tax-product_tag .shop-page,
.woocommerce-shop .shop-page {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.archive.post-type-archive-product .archive-shop,
.tax-product_cat .archive-shop,
.tax-product_tag .archive-shop,
.woocommerce-shop .archive-shop {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* Hide empty theme sidebars on Shop archive */
.archive.post-type-archive-product #tbay-sidebar,
.archive.post-type-archive-product .tbay-sidebar,
.tax-product_cat #tbay-sidebar,
.tax-product_tag #tbay-sidebar,
.woocommerce-shop #tbay-sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Shop Breadcrumb */
.archive.post-type-archive-product #tbay-breadscrumb,
.tax-product_cat #tbay-breadscrumb,
.woocommerce-shop #tbay-breadscrumb {
    margin-bottom: 12px !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

.archive.post-type-archive-product .page-title.title-woocommerce,
.woocommerce-shop .page-title.title-woocommerce {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 18px 0 !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
}

/* Shop Hero Banner */
.mmm-shop-hero-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 16px;
    padding: 24px 28px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.15);
}

.mmm-shop-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.mmm-shop-hero-heading {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.mmm-shop-hero-subheading {
    font-size: 13.5px;
    line-height: 1.5;
    color: #d1fae5;
    margin: 0 0 18px 0;
    max-width: 720px;
}

.mmm-shop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mmm-shop-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.mmm-shop-pill:hover,
.mmm-shop-pill.is-active {
    background: #ffffff;
    color: #065f46 !important;
    font-weight: 700;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mmm-shop-pill.mmm-pill-vip {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff !important;
}
.mmm-shop-pill.mmm-pill-vip:hover {
    background: #d97706;
    color: #ffffff !important;
}

/* Products Modern CSS Grid */
.archive.post-type-archive-product .products.products-grid .row,
.tax-product_cat .products.products-grid .row,
.woocommerce-shop .products.products-grid .row,
body.post-type-archive-product .products.products-grid .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1199px) {
    .archive.post-type-archive-product .products.products-grid .row,
    .tax-product_cat .products.products-grid .row,
    .woocommerce-shop .products.products-grid .row,
    body.post-type-archive-product .products.products-grid .row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767px) {
    .archive.post-type-archive-product .products.products-grid .row,
    .tax-product_cat .products.products-grid .row,
    .woocommerce-shop .products.products-grid .row,
    body.post-type-archive-product .products.products-grid .row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .mmm-shop-hero-banner {
        padding: 16px 18px;
    }
    .mmm-shop-hero-heading {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .archive.post-type-archive-product .products.products-grid .row,
    .tax-product_cat .products.products-grid .row,
    .woocommerce-shop .products.products-grid .row,
    body.post-type-archive-product .products.products-grid .row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

/* Product Card Styling */
.archive.post-type-archive-product .products .product,
.tax-product_cat .products .product,
.woocommerce-shop .products .product,
body.post-type-archive-product .products .product {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.archive.post-type-archive-product .product-block,
.tax-product_cat .product-block,
.woocommerce-shop .product-block,
body.post-type-archive-product .product-block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    display: block !important;
    position: relative !important;
    height: 100% !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.archive.post-type-archive-product .product-block:hover,
.tax-product_cat .product-block:hover,
.woocommerce-shop .product-block:hover,
body.post-type-archive-product .product-block:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09) !important;
    border-color: #10b981 !important;
}

.archive.post-type-archive-product .product-content,
.tax-product_cat .product-content,
.woocommerce-shop .product-content,
body.post-type-archive-product .product-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    width: 100% !important;
}

.archive.post-type-archive-product .block-inner,
.tax-product_cat .block-inner,
.woocommerce-shop .block-inner,
body.post-type-archive-product .block-inner {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Image container */
.archive.post-type-archive-product figure.image,
.tax-product_cat figure.image,
.woocommerce-shop figure.image,
body.post-type-archive-product figure.image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
    padding-top: 0 !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border-radius: 13px 13px 0 0 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .archive.post-type-archive-product figure.image,
    .tax-product_cat figure.image,
    .woocommerce-shop figure.image,
    body.post-type-archive-product figure.image {
        height: 170px !important;
    }
}

.archive.post-type-archive-product figure.image a,
.tax-product_cat figure.image a,
.woocommerce-shop figure.image a,
body.post-type-archive-product figure.image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.archive.post-type-archive-product figure.image img,
.tax-product_cat figure.image img,
.woocommerce-shop figure.image img,
body.post-type-archive-product figure.image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease !important;
}

.archive.post-type-archive-product figure.image img.image-hover,
.woocommerce-shop figure.image img.image-hover {
    display: none !important;
}

.archive.post-type-archive-product .product-block:hover figure.image img,
.woocommerce-shop .product-block:hover figure.image img {
    transform: scale(1.03) !important;
}

/* Sale Discount Badge */
.archive.post-type-archive-product .onsale,
.tax-product_cat .onsale,
.woocommerce-shop .onsale,
body.post-type-archive-product .onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 3px 8px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    z-index: 10 !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
}

.archive.post-type-archive-product .onsale .saled,
.woocommerce-shop .onsale .saled {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

/* Wishlist and Quickview Overlay Buttons - hide completely on shop cards */
.archive.post-type-archive-product .group-actions-product,
.tax-product_cat .group-actions-product,
.woocommerce-shop .group-actions-product,
body.post-type-archive-product .group-actions-product,
.archive.post-type-archive-product .yith-wcqv-button,
.woocommerce-shop .yith-wcqv-button,
.archive.post-type-archive-product .yith-wcwl-add-to-wishlist,
.woocommerce-shop .yith-wcwl-add-to-wishlist,
.archive.post-type-archive-product .product-btn,
.woocommerce-shop .product-btn {
    display: none !important;
}

/* Card Caption */
.archive.post-type-archive-product .caption,
.tax-product_cat .caption,
.woocommerce-shop .caption,
body.post-type-archive-product .caption {
    padding: 14px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 140px !important;
}

@media (max-width: 767px) {
    .archive.post-type-archive-product .caption,
    .tax-product_cat .caption,
    .woocommerce-shop .caption,
    body.post-type-archive-product .caption {
        padding: 10px 10px 12px !important;
        min-height: 120px !important;
    }
}

.archive.post-type-archive-product .meta,
.tax-product_cat .meta,
.woocommerce-shop .meta,
body.post-type-archive-product .meta {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
}

.archive.post-type-archive-product .infor,
.tax-product_cat .infor,
.woocommerce-shop .infor,
body.post-type-archive-product .infor {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
}

/* Product Name / Title */
.archive.post-type-archive-product .name-subtitle,
.tax-product_cat .name-subtitle,
.woocommerce-shop .name-subtitle,
body.post-type-archive-product .name-subtitle {
    display: block !important;
    height: auto !important;
    margin-bottom: 8px !important;
}

.archive.post-type-archive-product .name-subtitle .name,
.tax-product_cat .name-subtitle .name,
.woocommerce-shop .name-subtitle .name,
body.post-type-archive-product .name-subtitle .name {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    min-height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: normal !important;
    white-space: normal !important;
    width: 100% !important;
}

.archive.post-type-archive-product .name-subtitle .name a,
.tax-product_cat .name-subtitle .name a,
.woocommerce-shop .name-subtitle .name a,
body.post-type-archive-product .name-subtitle .name a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.archive.post-type-archive-product .name-subtitle .name a:hover,
.woocommerce-shop .name-subtitle .name a:hover {
    color: #10b981 !important;
}

@media (max-width: 480px) {
    .archive.post-type-archive-product .name-subtitle .name,
    .tax-product_cat .name-subtitle .name,
    .woocommerce-shop .name-subtitle .name,
    body.post-type-archive-product .name-subtitle .name {
        font-size: 12px !important;
        min-height: 32px !important;
        max-height: 32px !important;
    }
}

/* Price */
.archive.post-type-archive-product .price,
.tax-product_cat .price,
.woocommerce-shop .price,
body.post-type-archive-product .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    margin: 0 0 10px 0 !important;
    height: auto !important;
}

.archive.post-type-archive-product .price del,
.tax-product_cat .price del,
.woocommerce-shop .price del {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.archive.post-type-archive-product .price ins,
.tax-product_cat .price ins,
.woocommerce-shop .price ins {
    text-decoration: none !important;
    color: #059669 !important;
}

/* Action button */
.archive.post-type-archive-product .groups-button,
.tax-product_cat .groups-button,
.woocommerce-shop .groups-button,
body.post-type-archive-product .groups-button {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.archive.post-type-archive-product .groups-button .quantity-group-btn,
.tax-product_cat .groups-button .quantity-group-btn,
.woocommerce-shop .groups-button .quantity-group-btn {
    width: 100% !important;
}

.archive.post-type-archive-product .add-cart,
.tax-product_cat .add-cart,
.woocommerce-shop .add-cart {
    width: 100% !important;
}

.archive.post-type-archive-product .button.add_to_cart_button,
.tax-product_cat .button.add_to_cart_button,
.woocommerce-shop .button.add_to_cart_button,
body.post-type-archive-product .button.add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 8px 12px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.archive.post-type-archive-product .button.add_to_cart_button:hover,
.tax-product_cat .button.add_to_cart_button:hover,
.woocommerce-shop .button.add_to_cart_button:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}

@media (max-width: 480px) {
    .archive.post-type-archive-product .button.add_to_cart_button,
    .tax-product_cat .button.add_to_cart_button,
    .woocommerce-shop .button.add_to_cart_button,
    body.post-type-archive-product .button.add_to_cart_button {
        padding: 6px 3px !important;
        font-size: 10.5px !important;
        letter-spacing: -0.2px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        gap: 3px !important;
    }
    .archive.post-type-archive-product .button.add_to_cart_button svg,
    .tax-product_cat .button.add_to_cart_button svg,
    .woocommerce-shop .button.add_to_cart_button svg,
    body.post-type-archive-product .button.add_to_cart_button svg {
        width: 11px !important;
        height: 11px !important;
        flex-shrink: 0 !important;
    }
}




/* Mobile Navigation & Search Fixes */
#mmm-mobile-search-toggle svg,
#mmm-mobile-search-toggle svg *,
.mmm-drawer-open-btn svg,
.mmm-drawer-open-btn svg *,
.mmm-drawer-toggle svg,
.mmm-drawer-toggle svg *,
.mmm-drawer-close svg,
.mmm-drawer-close svg * {
    pointer-events: none !important;
}

#mmm-mobile-search-toggle,
.mmm-drawer-open-btn,
.mmm-drawer-toggle,
.mmm-drawer-close {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.mmm-mobile-search-bar {
    display: none;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    position: relative !important;
    z-index: 99999 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mmm-mobile-search-bar.is-open {
    display: block !important;
    animation: mmm-search-slide-down 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes mmm-search-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mmm-drawer-item.has-children.is-open > .mmm-drawer-link-wrap {
    background: #f1f5f9 !important;
    border-left: 3px solid var(--mmm-primary) !important;
}

.mmm-drawer-item.has-children.is-open .mmm-drawer-toggle svg {
    transform: rotate(180deg) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mmm-drawer-toggle svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mmm-drawer-submenu {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 10px 10px 18px !important;
    background: #f8fafc !important;
    display: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mmm-drawer-item.is-open > .mmm-drawer-submenu,
.mmm-drawer-submenu.is-open {
    display: block !important;
    animation: mmm-drawer-fade-in 0.2s ease-in-out !important;
}

.mmm-drawer-submenu li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s !important;
}

.mmm-drawer-submenu li a:hover,
.mmm-drawer-submenu li a:active {
    background: #e2e8f0 !important;
    color: var(--mmm-primary) !important;
}

.mmm-drawer-parent-link {
    color: var(--mmm-primary) !important;
    font-weight: 700 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    margin-bottom: 4px !important;
}
