/* ==========================================================================
   eCartFlow - Store Owner Panel Stylesheet (store.css)
   Clean, Modern, Mobile-First Business App Design System
   Matches Reference: design-idea/deisgn for store.png
   ========================================================================== */

:root {
    --ecf-primary: #1d61f2;
    --ecf-primary-hover: #154ecc;
    --ecf-primary-light: #eff4ff;
    --ecf-primary-rgb: 29, 97, 242;
    --ecf-dark: #0f172a;
    --ecf-slate: #334155;
    --ecf-muted: #64748b;
    --ecf-light-muted: #94a3b8;
    --ecf-border: #e2e8f0;
    --ecf-input-bg: #f8fafc;
    --ecf-card-bg: #ffffff;
    --ecf-page-bg: #edf3fc;
    --ecf-app-bg: #f8faff;
    
    /* Semantic Badges */
    --ecf-success: #16a34a;
    --ecf-success-bg: #dcfce7;
    --ecf-warning: #d97706;
    --ecf-warning-bg: #fef3c7;
    --ecf-info: #0284c7;
    --ecf-info-bg: #e0f2fe;
    --ecf-danger: #dc2626;
    --ecf-danger-bg: #fee2e2;
    
    --ecf-radius-xs: 8px;
    --ecf-radius-sm: 12px;
    --ecf-radius: 16px;
    --ecf-radius-lg: 22px;
    --ecf-radius-xl: 28px;
    --ecf-radius-pill: 9999px;
    
    --ecf-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    --ecf-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --ecf-shadow-card: 0 6px 18px -3px rgba(29, 97, 242, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --ecf-shadow-frame: 0 20px 60px -10px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
    --ecf-shadow-bottom-nav: 0 -4px 20px rgba(15, 23, 42, 0.06);
    --ecf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--ecf-font);
    background-color: var(--ecf-page-bg);
    color: var(--ecf-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Centered App Canvas Layout (Desktop Frame + Mobile Native)
   ========================================================================== */
.ecf-app-canvas {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--ecf-page-bg);
    padding: 1.25rem 0.75rem;
}

.ecf-app-frame {
    width: 100%;
    max-width: 420px;
    height: 890px;
    max-height: 94vh;
    max-height: 94dvh;
    background-color: var(--ecf-app-bg);
    border-radius: var(--ecf-radius-xl);
    box-shadow: var(--ecf-shadow-frame);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Scrollable Content Viewport */
.ecf-app-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1rem 5.5rem;
    -webkit-overflow-scrolling: touch;
}

.ecf-app-body::-webkit-scrollbar {
    width: 4px;
}
.ecf-app-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Mobile & PWA Full Screen */
@media (max-width: 575px) {
    .ecf-app-canvas {
        padding: 0;
        background-color: var(--ecf-app-bg);
        align-items: stretch;
    }

    .ecf-app-frame {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}

/* PWA Safe Area Base */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .ecf-bottom-nav {
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.ecf-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem 0.75rem;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    position: sticky;
    top: 0;
    z-index: 40;
}

.ecf-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ecf-header-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--ecf-radius-sm);
    border: none;
    background-color: #f1f5f9;
    color: var(--ecf-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ecf-header-btn:hover {
    background-color: #e2e8f0;
    color: var(--ecf-dark);
}

.ecf-header-brand {
    display: flex;
    align-items: center;
}

.ecf-brand-logo-link {
    display: flex;
    align-items: center;
}

.ecf-app-header-logo-img {
    height: 28px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
    display: block !important;
}

.ecf-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ecf-dark);
    margin: 0;
    letter-spacing: -0.2px;
}

.ecf-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ecf-header-badge-btn {
    position: relative;
}

.ecf-notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.ecf-header-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--ecf-primary);
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--ecf-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(var(--ecf-primary-rgb), 0.3);
    transition: all 0.15s ease;
}

.ecf-header-action-pill:hover {
    background-color: var(--ecf-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Dashboard Components
   ========================================================================== */
/* 1. Hero Promo Banner */
.ecf-dash-hero {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 60%, #fff7ed 100%);
    border-radius: var(--ecf-radius-lg);
    padding: 1.25rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.6);
}

.ecf-dash-hero-content {
    z-index: 2;
    max-width: 62%;
}

.ecf-dash-hero-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ecf-dark);
    margin-bottom: 0.2rem;
    letter-spacing: -0.2px;
}

.ecf-dash-hero-sub {
    font-size: 0.82rem;
    color: var(--ecf-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.ecf-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--ecf-primary);
    color: #ffffff;
    padding: 0.45rem 0.95rem;
    border-radius: var(--ecf-radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 10px rgba(var(--ecf-primary-rgb), 0.3);
    transition: all 0.15s ease;
}

.ecf-btn-hero:hover {
    background-color: var(--ecf-primary-hover);
    color: #ffffff;
}

.ecf-dash-hero-art {
    width: 90px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    user-select: none;
}

/* 2. Key Metrics Grid */
.ecf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    margin-bottom: 1.35rem;
}

.ecf-stat-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius);
    padding: 0.85rem 0.5rem;
    text-align: center;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86px;
    transition: transform 0.15s ease;
}

.ecf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ecf-shadow);
}

.ecf-stat-card.is-sales {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #a7f3d0;
}

.ecf-stat-value {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ecf-dark);
    line-height: 1.1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.ecf-stat-card.is-sales .ecf-stat-value {
    color: #065f46;
}

.ecf-stat-label {
    font-size: 0.72rem;
    color: var(--ecf-muted);
    font-weight: 600;
    line-height: 1.2;
}

.ecf-stat-sublabel {
    font-size: 0.62rem;
    color: #059669;
    font-weight: 600;
    margin-top: 1px;
}

/* Section Header */
.ecf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.ecf-section-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ecf-dark);
    margin: 0;
    letter-spacing: -0.2px;
}

.ecf-section-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ecf-primary);
    transition: color 0.15s ease;
}

.ecf-section-link:hover {
    color: var(--ecf-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Order Cards
   ========================================================================== */
.ecf-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ecf-order-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius);
    padding: 0.95rem 1rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ecf-order-card:hover {
    box-shadow: var(--ecf-shadow-card);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ecf-order-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ecf-order-thumb {
    width: 46px;
    height: 46px;
    border-radius: var(--ecf-radius-sm);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--ecf-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.ecf-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecf-order-info {
    display: flex;
    flex-direction: column;
}

.ecf-order-id {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ecf-dark);
    margin-bottom: 0.1rem;
}

.ecf-order-customer {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ecf-slate);
    margin-bottom: 0.15rem;
}

.ecf-order-meta {
    font-size: 0.78rem;
    color: var(--ecf-muted);
    font-weight: 500;
}

.ecf-order-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

/* Status Badges */
.ecf-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: var(--ecf-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.ecf-status-badge.is-delivered {
    background-color: var(--ecf-success-bg);
    color: var(--ecf-success);
}

.ecf-status-badge.is-processing {
    background-color: var(--ecf-warning-bg);
    color: var(--ecf-warning);
}

.ecf-status-badge.is-shipped {
    background-color: var(--ecf-info-bg);
    color: var(--ecf-info);
}

.ecf-status-badge.is-cancelled {
    background-color: var(--ecf-danger-bg);
    color: var(--ecf-danger);
}

.ecf-order-date {
    font-size: 0.75rem;
    color: var(--ecf-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ==========================================================================
   Filter Pills & Search Bar
   ========================================================================== */
.ecf-search-box {
    position: relative;
    margin-bottom: 0.85rem;
}

.ecf-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ecf-muted);
    font-size: 1rem;
}

.ecf-search-input {
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius-pill);
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ecf-dark);
    outline: none;
    box-shadow: var(--ecf-shadow-sm);
    transition: all 0.2s ease;
}

.ecf-top-add-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: var(--ecf-radius-pill, 9999px);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: var(--ecf-primary, #1d61f2);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(29, 97, 242, 0.25);
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}
.ecf-top-add-btn:hover {
    background: #144ec2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 97, 242, 0.35);
}

.ecf-search-input:focus {
    border-color: var(--ecf-primary);
    box-shadow: 0 0 0 3px rgba(var(--ecf-primary-rgb), 0.12);
}

.ecf-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.ecf-filter-pills::-webkit-scrollbar {
    display: none;
}

.ecf-pill {
    padding: 0.42rem 0.95rem;
    border-radius: var(--ecf-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    background-color: #ffffff;
    color: var(--ecf-slate);
    border: 1.5px solid var(--ecf-border);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ecf-pill.is-active, .ecf-pill:hover {
    background-color: var(--ecf-primary);
    color: #ffffff;
    border-color: var(--ecf-primary);
    box-shadow: 0 2px 8px rgba(var(--ecf-primary-rgb), 0.25);
}

/* ==========================================================================
   2-Column Products Grid
   ========================================================================== */
.ecf-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.ecf-product-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius);
    padding: 0.85rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.15s ease;
}

.ecf-product-card:hover {
    box-shadow: var(--ecf-shadow-card);
    transform: translateY(-2px);
}

.ecf-product-thumb {
    width: 100%;
    height: 125px;
    border-radius: var(--ecf-radius-sm);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.65rem;
    font-size: 2.5rem;
    color: var(--ecf-muted);
}

.ecf-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.ecf-product-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ecf-dark);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecf-product-price {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ecf-dark);
    margin-bottom: 0.5rem;
}

.ecf-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Switch Toggle Component */
.ecf-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.ecf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ecf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.ecf-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .ecf-slider {
    background-color: var(--ecf-primary);
}

input:checked + .ecf-slider:before {
    transform: translateX(16px);
}

/* ==========================================================================
   More Hub Screen & List Tiles
   ========================================================================== */
.ecf-more-store-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius-lg);
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ecf-more-store-card:hover {
    box-shadow: var(--ecf-shadow);
    border-color: #cbd5e1;
}

.ecf-more-store-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ecf-store-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--ecf-radius-sm);
    background: linear-gradient(135deg, #1d61f2 0%, #0284c7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(var(--ecf-primary-rgb), 0.25);
    overflow: hidden;
    object-fit: cover;
}

.ecf-store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Store Profile Page Logo Upload Box */
.ecf-avatar-upload-box {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecf-store-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: inherit;
}

.ecf-store-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--ecf-primary, #1d61f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.ecf-logo-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: inherit;
}

/* Store URL & WhatsApp Sharing Card on More Screen */
.ecf-share-store-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius-lg);
    padding: 1rem 1.15rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    margin-bottom: 1.15rem;
    transition: all 0.15s ease;
}
.ecf-share-store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.ecf-share-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--ecf-primary, #1d61f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}
.ecf-share-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    display: block;
    line-height: 1.2;
}
.ecf-share-url-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ecf-primary, #1d61f2);
}
.ecf-btn-view-store {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ecf-btn-view-store:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--ecf-primary, #1d61f2);
}
.ecf-share-store-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
}
.ecf-btn-copy-url {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.ecf-btn-copy-url:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.ecf-btn-whatsapp-share {
    background: #25d366;
    border: 1px solid #20ba5a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}
.ecf-btn-whatsapp-share:hover {
    background: #20ba5a;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.35);
}
@media (max-width: 360px) {
    .ecf-share-store-actions {
        grid-template-columns: 1fr;
    }
}

.ecf-menu-group {
    background-color: #ffffff;
    border-radius: var(--ecf-radius-lg);
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ecf-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--ecf-dark);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.15s ease;
}

.ecf-menu-item:last-child {
    border-bottom: none;
}

.ecf-menu-item:hover {
    background-color: #f8fafc;
}

.ecf-menu-item.is-logout {
    color: var(--ecf-danger);
}

.ecf-menu-item-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ecf-menu-icon {
    font-size: 1.25rem;
    width: 26px;
    display: flex;
    justify-content: center;
    color: var(--ecf-primary);
}

.ecf-menu-item.is-logout .ecf-menu-icon {
    color: var(--ecf-danger);
}

.ecf-menu-chevron {
    color: var(--ecf-light-muted);
    font-size: 1rem;
}

/* ==========================================================================
   List Tiles (Categories, Subcategories, Settings)
   ========================================================================== */
.ecf-tile-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ecf-list-tile {
    background-color: #ffffff;
    border-radius: var(--ecf-radius);
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ecf-list-tile:hover {
    box-shadow: var(--ecf-shadow-card);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ecf-tile-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ecf-tile-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--ecf-radius-sm);
    background-color: #eff6ff;
    color: var(--ecf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ecf-tile-info {
    display: flex;
    flex-direction: column;
}

.ecf-tile-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ecf-dark);
    margin-bottom: 0.1rem;
}

.ecf-tile-sub {
    font-size: 0.78rem;
    color: var(--ecf-muted);
    font-weight: 500;
}

/* ==========================================================================
   Banner Cards
   ========================================================================== */
.ecf-banner-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ecf-banner-card {
    background-color: #ffffff;
    border-radius: var(--ecf-radius);
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.ecf-banner-preview {
    flex: 1;
    height: 80px;
    border-radius: var(--ecf-radius-sm);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #ffffff;
}

.ecf-banner-preview.is-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.ecf-banner-preview.is-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.ecf-banner-text-h {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.ecf-banner-text-p {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ==========================================================================
   Add / Edit Form Sheet
   ========================================================================== */
.ecf-form-sheet {
    background-color: #ffffff;
    border-radius: var(--ecf-radius-lg);
    padding: 1.25rem 1.15rem 1.5rem;
    border: 1px solid var(--ecf-border);
    box-shadow: var(--ecf-shadow-sm);
}

.ecf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ecf-image-picker-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--ecf-radius);
    padding: 1.25rem 1rem;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ecf-img-preview-thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--ecf-radius-sm);
    background-color: #ffffff;
    border: 1px solid var(--ecf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--ecf-muted);
    overflow: hidden;
}

.ecf-img-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecf-btn-choose-img {
    background-color: var(--ecf-primary);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: var(--ecf-radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(var(--ecf-primary-rgb), 0.25);
    transition: all 0.15s ease;
}

.ecf-btn-choose-img:hover {
    background-color: var(--ecf-primary-hover);
}

.ecf-select {
    width: 100%;
    background-color: var(--ecf-input-bg);
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--ecf-dark);
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.ecf-textarea {
    width: 100%;
    background-color: var(--ecf-input-bg);
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--ecf-dark);
    font-family: inherit;
    font-weight: 500;
    outline: none;
    resize: vertical;
    min-height: 85px;
}

.ecf-textarea:focus, .ecf-select:focus {
    border-color: var(--ecf-primary);
    box-shadow: 0 0 0 3px rgba(var(--ecf-primary-rgb), 0.12);
}

/* ==========================================================================
   Permanent Bottom Navigation & Floating Center `+` Button
   ========================================================================== */
.ecf-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--ecf-shadow-bottom-nav);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    z-index: 50;
}

.ecf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    transition: color 0.15s ease;
    cursor: pointer;
    min-width: 54px;
}

.ecf-nav-icon {
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 2px;
}

.ecf-nav-item:hover, .ecf-nav-item.is-active {
    color: var(--ecf-primary);
}

.ecf-nav-item.is-active .ecf-nav-icon {
    transform: scale(1.08);
}

/* Floating Center `+` Quick Add Button */
.ecf-nav-center-item {
    position: relative;
    top: -16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecf-center-plus-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d61f2 100%);
    color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 18px rgba(var(--ecf-primary-rgb), 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecf-center-plus-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(var(--ecf-primary-rgb), 0.55);
    color: #ffffff;
}

.ecf-center-plus-btn:active {
    transform: scale(0.95);
}

/* Quick Add Bottom Sheet Modal */
.ecf-quick-sheet-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top-left-radius: var(--ecf-radius-xl);
    border-top-right-radius: var(--ecf-radius-xl);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
    padding: 1.5rem 1.25rem 2rem;
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecf-quick-sheet-modal.is-open {
    transform: translateY(0);
}

.ecf-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ecf-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ecf-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ecf-sheet-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ecf-dark);
    margin: 0;
}

.ecf-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.ecf-sheet-btn {
    background-color: #f8fafc;
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ecf-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ecf-sheet-btn:hover {
    background-color: #eff6ff;
    border-color: var(--ecf-primary);
    color: var(--ecf-primary);
    transform: translateY(-2px);
}

.ecf-sheet-icon {
    font-size: 1.65rem;
    color: var(--ecf-primary);
}

/* ==========================================================================
   Existing Login Page Compatibility (Preserved)
   ========================================================================== */
.ecf-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--ecf-page-bg);
    padding: 1.5rem 1rem;
}

.ecf-auth-container {
    width: 100%;
    max-width: 410px;
    background-color: #ffffff;
    border-radius: var(--ecf-radius-xl);
    box-shadow: var(--ecf-shadow-frame);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.ecf-hero-section {
    width: 100%;
    height: 270px;
    background-image: url('../img/background/store.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-color: #eaf2fd;
    position: relative;
}

.ecf-auth-card {
    background-color: var(--ecf-card-bg);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 1.75rem 1.6rem 2.2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: -24px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
}

.ecf-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ecf-auth-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ecf-dark);
    letter-spacing: -0.4px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ecf-wave-emoji {
    font-size: 1.45rem;
    display: inline-block;
    animation: ecfWave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes ecfWave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
    50% { transform: rotate(0deg); }
}

.ecf-form-group {
    margin-bottom: 1.35rem;
}

.ecf-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ecf-dark);
    margin-bottom: 0.6rem;
    letter-spacing: -0.1px;
}

.ecf-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius-sm);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.ecf-input-group:focus-within {
    border-color: var(--ecf-primary);
    box-shadow: 0 0 0 4px rgba(var(--ecf-primary-rgb), 0.12);
    background-color: #ffffff;
}

.ecf-input-group.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.12) !important;
}

.ecf-input-group.is-invalid .ecf-input-icon-prefix {
    color: #ef4444 !important;
}

.ecf-input-icon-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem 0 0.95rem;
    font-size: 1.05rem;
    color: var(--ecf-muted);
    background: transparent;
    user-select: none;
}

/* Standardized Store Owner Form Controls (Visible Borders for Standalone Inputs & Modals) */
.form-control,
.form-select,
.ecf-select,
.ecf-textarea,
.ecf-input,
.modal .form-control,
.modal .ecf-input,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="number"],
.modal input[type="password"],
.modal select,
.modal textarea {
    border: 1px solid #d8dee8 !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.9rem !important;
    color: var(--ecf-dark, #0f172a) !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    min-height: 44px;
    box-sizing: border-box;
}

.form-control:focus,
.form-select:focus,
.ecf-select:focus,
.ecf-textarea:focus,
.ecf-input:focus,
.ecf-input:focus-visible,
.modal .form-control:focus,
.modal .ecf-input:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    border-color: var(--ecf-primary, #1d61f2) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(29, 97, 242, 0.15) !important;
    outline: 0 !important;
}

/* Inner inputs inside input-groups remain borderless inside their container */
.ecf-input-group .ecf-input {
    flex: 1;
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 0 !important;
    min-height: 44px;
}

.ecf-input-group .ecf-input:focus,
.ecf-input-group .ecf-input:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Standalone File Inputs */
input[type="file"].form-control,
.modal input[type="file"] {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0.35rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #d8dee8 !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
}

input[type="file"].form-control::file-selector-button,
.modal input[type="file"]::file-selector-button {
    height: 28px !important;
    padding: 0 10px !important;
    margin-right: 10px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

input[type="file"].form-control::file-selector-button:hover,
.modal input[type="file"]::file-selector-button:hover {
    background-color: #eff4ff !important;
    border-color: #bfdbfe !important;
    color: #1d61f2 !important;
}

.ecf-input.ps-0 {
    padding-left: 0;
}

.ecf-input::placeholder {
    color: var(--ecf-light-muted);
    font-weight: 400;
}

.ecf-input-suffix-btn {
    border: none;
    background: transparent;
    color: var(--ecf-muted);
    padding: 0 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: color 0.15s ease;
}

.ecf-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
    font-size: 0.88rem;
}

.ecf-checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--ecf-slate);
    font-weight: 500;
}

.ecf-checkbox-container input[type="checkbox"] {
    accent-color: var(--ecf-primary);
    width: 17px;
    height: 17px;
    margin-right: 0.45rem;
    cursor: pointer;
}

.ecf-link {
    color: var(--ecf-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.ecf-link:hover {
    color: var(--ecf-primary-hover);
    text-decoration: underline;
}

.ecf-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background-color: var(--ecf-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ecf-radius);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(var(--ecf-primary-rgb), 0.35);
    gap: 0.6rem;
}

.ecf-btn-primary:hover {
    background-color: var(--ecf-primary-hover);
    box-shadow: 0 6px 20px rgba(var(--ecf-primary-rgb), 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

.ecf-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.ecf-register-text {
    font-size: 0.92rem;
    color: var(--ecf-slate);
    font-weight: 500;
}

/* ==========================================================================
   intl-tel-input Integration Styles
   ========================================================================== */
.iti {
    width: 100%;
    position: relative;
    display: block;
}

.iti input.ecf-input,
.iti .iti__tel-input {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid var(--ecf-border);
    border-radius: var(--ecf-radius);
    background-color: #ffffff;
    padding: 0.85rem 1rem 0.85rem 56px;
    font-size: 0.98rem;
    color: var(--ecf-dark);
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.iti input.ecf-input:focus,
.iti .iti__tel-input:focus {
    border-color: var(--ecf-primary);
    box-shadow: 0 0 0 4px rgba(var(--ecf-primary-rgb), 0.12);
}

.iti__country-container {
    border-top-left-radius: var(--ecf-radius);
    border-bottom-left-radius: var(--ecf-radius);
}

.iti__selected-country {
    padding-left: 0.85rem;
}

.iti__selected-country-primary {
    display: flex !important;
    align-items: center !important;
}

.iti__flag {
    display: inline-block !important;
}

.iti__dropdown-content {
    border-radius: var(--ecf-radius);
    box-shadow: var(--ecf-shadow-frame);
    border: 1px solid var(--ecf-border);
    font-family: var(--ecf-font);
    z-index: 100;
    max-height: 220px;
}

/* ==========================================================================
   eCartFlow Modern Toast / Notifications
   ========================================================================== */
#ecfToastContainer {
    pointer-events: none;
}

.ecf-toast {
    pointer-events: auto;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    border-left: 4.5px solid var(--ecf-primary) !important;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--ecf-font);
}

.ecf-toast.ecf-toast-success {
    border-left-color: #10b981 !important;
}

.ecf-toast.ecf-toast-danger,
.ecf-toast.ecf-toast-error {
    border-left-color: #ef4444 !important;
}

.ecf-toast.ecf-toast-warning {
    border-left-color: #f59e0b !important;
}

.ecf-toast.ecf-toast-info {
    border-left-color: #0ea5e9 !important;
}

.ecf-toast .toast-header {
    padding: 0.75rem 1rem 0.25rem 1rem;
}

.ecf-toast .toast-body {
    padding: 0.35rem 1rem 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: #334155;
}

.ecf-toast-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    #ecfToastContainer {
        top: 10px !important;
        right: 0 !important;
        left: 0 !important;
        margin: 0 auto;
        padding: 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .ecf-toast {
        width: 100% !important;
    }
}






/* Store Owner Auth & Registration Styles */
.ecf-auth-body {
    background-color: #edf3fc;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: var(--ecf-font);
    overflow-x: hidden;
    overflow-y: auto !important;
}

.ecf-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem 1rem;
    background-color: #edf3fc;
    overflow-y: auto !important;
    box-sizing: border-box;
}

.ecf-auth-container {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: var(--ecf-radius-xl);
    box-shadow: var(--ecf-shadow-frame);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.85);
    margin: auto auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ecf-auth-register-container {
    max-width: 460px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.ecf-hero-section {
    width: 100%;
    height: 230px;
    background-image: url('../img/background/store.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-color: #eaf2fd;
    position: relative;
    display: block !important;
    flex-shrink: 0;
}

.ecf-auth-card {
    background-color: #ffffff;
    border-top-left-radius: var(--ecf-radius-xl);
    border-top-right-radius: var(--ecf-radius-xl);
    padding: 1.5rem 1.35rem 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: -24px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
}

.ecf-auth-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.ecf-auth-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ecf-dark);
    letter-spacing: -0.3px;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.ecf-wave-emoji, .ecf-rocket-emoji {
    font-size: 1.3rem;
    display: inline-block;
    vertical-align: middle;
}

.ecf-form-group {
    margin-bottom: 1.05rem;
}

.ecf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ecf-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ecf-dark);
    margin-bottom: 0.4rem;
    letter-spacing: -0.1px;
}



.ecf-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    background-color: var(--ecf-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ecf-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(var(--ecf-primary-rgb), 0.35);
    gap: 0.5rem;
}

/* ==========================================================================
   Page Extracted Styles
   ========================================================================== */

/* From store_auth_forgot_password.blade.php */
.ecf-otp-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 8px;
            margin: 1.25rem 0;
        }
        .ecf-otp-box {
            width: 100%;
            height: 52px;
            text-align: center;
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--ecf-dark, #071b41);
            border: 2px solid var(--ecf-border, #e2e8f0);
            border-radius: 10px;
            background-color: #f8fafc;
            outline: none;
            transition: all 0.2s ease;
        }
        .ecf-otp-box:focus {
            border-color: var(--ecf-primary, #0865f5);
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(8, 101, 245, 0.15);
        }
        .ecf-success-badge {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            margin-bottom: 1.25rem;
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
            animation: ecfPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes ecfPopIn {
            0% { transform: scale(0.4); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

/* From dashboard_index.blade.php */
/* Premium Dashboard Stats Grid Alignment */
    .ecf-dash-metrics-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .ecf-dash-stat-box {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 16px;
        padding: 0.95rem 0.65rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 98px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none !important;
        position: relative;
        overflow: hidden;
    }
    .ecf-dash-stat-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }
    .ecf-dash-stat-box.is-collected {
        background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
        border-color: #86efac;
    }
    .ecf-dash-stat-val {
        font-size: 1.18rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.1;
        margin-bottom: 0.3rem;
        letter-spacing: -0.3px;
    }
    .ecf-dash-stat-box.is-collected .ecf-dash-stat-val {
        color: #15803d;
    }
    .ecf-dash-stat-lbl {
        font-size: 0.76rem;
        font-weight: 700;
        color: #64748b;
        line-height: 1.2;
        margin-bottom: 0.15rem;
    }
    .ecf-dash-stat-sub {
        font-size: 0.68rem;
        font-weight: 600;
        color: #94a3b8;
    }

    /* Clean White Recent Orders Cards with Structured Alignment */
    .ecf-recent-orders-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .ecf-white-order-card {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 16px;
        padding: 1rem 1.15rem;
        display: flex;
        align-items: flex-start;
        gap: 0.95rem;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ecf-white-order-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }
    .ecf-order-circle-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: #eff6ff;
        color: var(--ecf-primary, #2563eb);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    .ecf-recent-order-id {
        font-size: 0.9rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.2px;
    }
    .ecf-recent-order-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.3;
    }
    .ecf-recent-order-meta {
        font-size: 0.8rem;
        font-weight: 500;
        color: #64748b;
    }
    .ecf-recent-order-price {
        font-weight: 800;
        color: #0f172a;
    }

    /* Distinct Status Badge Colors & Backgrounds */
    .ecf-status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        border-radius: 9999px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1px;
    }
    .ecf-status-badge.is-pending {
        background-color: #fff7ed !important;
        color: #ea580c !important;
        border: 1px solid #fed7aa !important;
    }
    .ecf-status-badge.is-processing {
        background-color: #eff6ff !important;
        color: #2563eb !important;
        border: 1px solid #dbeafe !important;
    }
    .ecf-status-badge.is-shipped {
        background-color: #f5f3ff !important;
        color: #7c3aed !important;
        border: 1px solid #ede9fe !important;
    }
    .ecf-status-badge.is-delivered {
        background-color: #ecfdf5 !important;
        color: #059669 !important;
        border: 1px solid #d1fae5 !important;
    }
    .ecf-status-badge.is-cancelled {
        background-color: #fef2f2 !important;
        color: #dc2626 !important;
        border: 1px solid #fee2e2 !important;
    }

/* From orders_index.blade.php */
/* Live Order Search Box */
    .ecf-order-search-box {
        position: relative;
        margin-bottom: 0.95rem;
    }
    .ecf-order-search-input {
        width: 100%;
        height: 44px;
        background-color: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding-left: 2.5rem;
        padding-right: 2.2rem;
        font-size: 0.9rem;
        font-weight: 500;
        color: #0f172a;
        transition: all 0.2s ease;
        outline: none;
    }
    .ecf-order-search-input:focus {
        border-color: var(--ecf-primary, #2563eb);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    .ecf-order-search-icon {
        position: absolute;
        left: 0.95rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.95rem;
        pointer-events: none;
    }
    .ecf-order-search-clear {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 2px;
        display: none;
        align-items: center;
        justify-content: center;
    }
    .ecf-order-search-clear:hover {
        color: #64748b;
    }

    /* Smooth, Visible Horizontal Scroll for Filter Tabs */
    .ecf-filter-pills {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        overflow-x: auto;
        white-space: nowrap;
        padding: 4px 2px 10px 2px;
        margin-bottom: 1.15rem;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        -webkit-overflow-scrolling: touch;
    }
    .ecf-filter-pills::-webkit-scrollbar {
        height: 4px;
    }
    .ecf-filter-pills::-webkit-scrollbar-track {
        background: rgba(241, 245, 249, 0.8);
        border-radius: 10px;
    }
    .ecf-filter-pills::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
    .ecf-filter-pills::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    .ecf-pill {
        flex-shrink: 0;
        cursor: pointer;
        user-select: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none !important;
    }
    .ecf-pill:active {
        transform: scale(0.96);
    }
    .ecf-pill.is-active {
        background-color: var(--ecf-primary, #2563eb) !important;
        color: #ffffff !important;
        border-color: var(--ecf-primary, #2563eb) !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }
    .ecf-pill.is-active i {
        color: #ffffff !important;
    }

    /* Structured White Order Cards (Identical to Dashboard) */
    .ecf-orders-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .ecf-white-order-card {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 16px;
        padding: 1rem 1.15rem;
        display: flex;
        align-items: flex-start;
        gap: 0.95rem;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ecf-white-order-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }
    .ecf-order-circle-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: #eff6ff;
        color: var(--ecf-primary, #2563eb);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    .ecf-recent-order-id {
        font-size: 0.9rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.2px;
    }
    .ecf-recent-order-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.3;
    }
    .ecf-recent-order-meta {
        font-size: 0.8rem;
        font-weight: 500;
        color: #64748b;
    }
    .ecf-recent-order-price {
        font-weight: 800;
        color: #0f172a;
    }

    /* Distinct Status Badge Colors & Backgrounds */
    .ecf-status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        border-radius: 9999px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1px;
    }
    .ecf-status-badge.is-pending {
        background-color: #fff7ed !important;
        color: #ea580c !important;
        border: 1px solid #fed7aa !important;
    }
    .ecf-status-badge.is-processing {
        background-color: #eff6ff !important;
        color: #2563eb !important;
        border: 1px solid #dbeafe !important;
    }
    .ecf-status-badge.is-shipped {
        background-color: #f5f3ff !important;
        color: #7c3aed !important;
        border: 1px solid #ede9fe !important;
    }
    .ecf-status-badge.is-delivered {
        background-color: #ecfdf5 !important;
        color: #059669 !important;
        border: 1px solid #d1fae5 !important;
    }
    .ecf-status-badge.is-cancelled {
        background-color: #fef2f2 !important;
        color: #dc2626 !important;
        border: 1px solid #fee2e2 !important;
    }

/* From orders_show.blade.php */
.ecf-order-header-box {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 18px;
        padding: 1.15rem 1.25rem;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
        margin-bottom: 1.25rem;
    }
    .ecf-order-tag {
        font-size: 0.82rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .ecf-order-num {
        font-size: 1.1rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.2px;
    }
    .ecf-customer-single-line {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    .ecf-control-select {
        height: 46px;
        background-color: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 0 0.85rem;
        font-size: 0.88rem;
        font-weight: 700;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.15s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 14px 10px;
        padding-right: 2rem;
    }
    .ecf-control-select:focus {
        background-color: #ffffff;
        border-color: var(--ecf-primary, #2563eb);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        outline: none;
    }
    .ecf-control-select.is-paid {
        background-color: #f0fdf4;
        border-color: #86efac;
        color: #15803d;
    }
    .ecf-control-select.is-unpaid {
        background-color: #fffbeb;
        border-color: #fde68a;
        color: #b45309;
    }

/* From index.blade.php */
/* Controls Bar */
    .ecf-controls-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
    }
    .ecf-view-toggle-group {
        display: inline-flex;
        background: #f1f5f9;
        border-radius: 8px;
        padding: 2px;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
    }
    .ecf-view-btn {
        background: none;
        border: none;
        padding: 4px 8px;
        border-radius: 6px;
        color: #64748b;
        font-size: 0.85rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
    }
    .ecf-view-btn.is-active {
        background: #ffffff;
        color: var(--ecf-primary, #1d61f2);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        font-weight: bold;
    }

    /* -------------------------------------------------------------
       1. COMPACT LIST VIEW
       ------------------------------------------------------------- */
    .ecf-products-list-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ecf-compact-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .ecf-compact-item:hover {
        border-color: #cbd5e1;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
    }
    .ecf-compact-thumb {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
    }
    .ecf-compact-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .ecf-compact-info {
        flex-grow: 1;
        min-width: 0;
    }
    .ecf-compact-title {
        font-size: 0.94rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.35;
        margin-bottom: 3px;
        white-space: normal;
        word-break: break-word;
        display: block;
    }
    .ecf-compact-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    .ecf-compact-price-wrap {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    .ecf-compact-price {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
    }
    .ecf-compact-mrp {
        font-size: 0.78rem;
        color: #94a3b8;
        text-decoration: line-through;
    }
    .ecf-compact-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    /* -------------------------------------------------------------
       2. COMPACT GRID VIEW
       ------------------------------------------------------------- */
    .ecf-products-grid-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .ecf-grid-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .ecf-grid-item:hover {
        border-color: #cbd5e1;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
    }
    .ecf-grid-thumb {
        width: 100%;
        height: 110px;
        border-radius: 8px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 6px;
        position: relative;
    }
    .ecf-grid-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .ecf-grid-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
        margin-bottom: 3px;
        white-space: normal;
        word-break: break-word;
        display: block;
    }
    .ecf-grid-meta {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 4px;
    }
    .ecf-grid-price {
        font-size: 0.95rem;
        font-weight: 800;
        color: #0f172a;
    }

    /* Variant Blue Badge / Text */
    .ecf-variant-blue-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #eff6ff;
        color: #1d61f2;
        border: 1px solid #dbeafe;
        font-size: 0.70rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 20px;
    }

    /* Interactive Status Toggle Badge */
    .ecf-status-toggle-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        outline: none;
        user-select: none;
        display: inline-flex;
        align-items: center;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .ecf-status-toggle-btn:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }
    .ecf-status-toggle-btn:active {
        transform: scale(0.96);
    }
    .ecf-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        padding: 3px 8px;
        border-radius: 12px;
    }
    .ecf-status-badge.is-delivered {
        background: #dcfce7;
        color: #15803d;
    }
    .ecf-status-badge.is-cancelled {
        background: #fee2e2;
        color: #b91c1c;
    }
    .status-indicator-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
    }

    /* Action Buttons (Edit, Delete) */
    .ecf-action-icon-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        text-decoration: none;
        transition: all 0.15s ease;
        padding: 0;
    }
    .ecf-action-icon-btn:hover {
        background: #eff6ff;
        color: var(--ecf-primary, #1d61f2);
        border-color: #bfdbfe;
    }
    .ecf-action-icon-btn.is-delete:hover {
        background: #fef2f2;
        color: #ef4444;
        border-color: #fca5a5;
    }

    /* Load More & Lazy Loading */
    .ecf-load-more-wrap {
        padding: 16px 0 24px;
        text-align: center;
    }
    .ecf-load-more-btn {
        border-radius: 50px;
        padding: 8px 24px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

/* From create.blade.php */
/* 2-Column Grid Layout */
    .ecf-form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .ecf-form-row-2 > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Custom Searchable Select Dropdowns */
    .ecf-custom-select-wrap {
        position: relative;
        width: 100%;
        min-width: 0;
    }
    .ecf-select-trigger {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 8px 12px;
        min-height: 48px;
        width: 100%;
        box-sizing: border-box;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        overflow: hidden;
    }
    .ecf-select-trigger:hover {
        border-color: #cbd5e1;
        background: #fafafa;
    }
    .ecf-select-trigger.is-open {
        border-color: var(--ecf-primary, #1d61f2);
        box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.12);
        background: #ffffff;
    }
    .ecf-select-trigger.is-invalid {
        border-color: #ef4444 !important;
    }
    .ecf-select-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
        z-index: 1050;
        overflow: hidden;
        animation: dropFadeIn 0.15s ease-out;
    }
    @keyframes dropFadeIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .ecf-select-item {
        font-size: 0.85rem;
        color: #334155;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ecf-select-item:hover {
        background: #eff6ff;
        color: var(--ecf-primary, #1d61f2);
    }
    .ecf-select-item.is-selected {
        background: #f0f7ff;
        color: var(--ecf-primary, #1d61f2);
        font-weight: 600;
    }
    .ecf-select-item.is-selected .item-check {
        display: inline-block !important;
    }
    .ecf-select-options-list::-webkit-scrollbar {
        width: 5px;
    }
    .ecf-select-options-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    /* Images Grid */
    .ecf-img-slots-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 8px;
    }
    .ecf-img-slot {
        position: relative;
        aspect-ratio: 1;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    .ecf-img-slot:hover {
        border-color: var(--ecf-primary, #1d61f2);
        background: #eff6ff;
    }
    .ecf-img-slot.has-image {
        border: 2px solid var(--ecf-primary, #1d61f2);
        background: #fff;
    }
    .ecf-img-slot.is-invalid-slot {
        border-color: #ef4444 !important;
        background: #fef2f2 !important;
    }
    .ecf-img-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .ecf-img-slot-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        background: rgba(29, 97, 242, 0.9);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
        letter-spacing: 0.3px;
        z-index: 2;
    }
    .ecf-img-remove-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 24px;
        height: 24px;
        background: rgba(239, 68, 68, 0.9);
        color: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        cursor: pointer;
        z-index: 3;
        transition: transform 0.15s;
    }
    .ecf-img-remove-btn:hover {
        transform: scale(1.1);
    }
    .ecf-opt-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
        animation: fadeIn 0.2s ease-in-out;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .ecf-chip {
        display: inline-flex;
        align-items: center;
        background: #f1f5f9;
        color: #1e293b;
        font-size: 0.82rem;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 20px;
        margin: 3px 4px 3px 0;
        border: 1px solid #e2e8f0;
    }
    .ecf-chip-color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 6px;
        border: 1px solid rgba(0,0,0,0.15);
        display: inline-block;
    }
    .ecf-chip-remove {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 1rem;
        line-height: 1;
        padding: 0 0 0 6px;
        cursor: pointer;
    }
    .ecf-chip-remove:hover {
        color: #ef4444;
    }
    .ecf-suggest-badge {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d61f2;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 16px;
        margin-right: 6px;
        margin-bottom: 6px;
        display: inline-flex;
        align-items: center;
    }

    /* Variant Pricing Matrix Card */
    .ecf-variant-matrix-card {
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-top: 12px;
        animation: fadeIn 0.2s ease-in-out;
    }
    .ecf-variant-row {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 8px;
        transition: all 0.15s ease;
    }
    .ecf-variant-row.is-default-row {
        border-color: #93c5fd;
        background: #f0f7ff;
    }
    .ecf-base-price-badge {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d61f2;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
    }
    .ecf-field-error {
        color: #ef4444;
        font-size: 0.78rem;
        margin-top: 4px;
        display: none;
    }
    .ecf-field-error.show {
        display: block;
    }

/* From edit.blade.php */
/* 2-Column Grid Layout */
    .ecf-form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .ecf-form-row-2 > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Custom Searchable Select Dropdowns */
    .ecf-custom-select-wrap {
        position: relative;
        width: 100%;
        min-width: 0;
    }
    .ecf-select-trigger {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 8px 12px;
        min-height: 48px;
        width: 100%;
        box-sizing: border-box;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        overflow: hidden;
    }
    .ecf-select-trigger:hover {
        border-color: #cbd5e1;
        background: #fafafa;
    }
    .ecf-select-trigger.is-open {
        border-color: var(--ecf-primary, #1d61f2);
        box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.12);
        background: #ffffff;
    }
    .ecf-select-trigger.is-invalid {
        border-color: #ef4444 !important;
    }
    .ecf-select-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
        z-index: 1050;
        overflow: hidden;
        animation: dropFadeIn 0.15s ease-out;
    }
    @keyframes dropFadeIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .ecf-select-item {
        font-size: 0.85rem;
        color: #334155;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ecf-select-item:hover {
        background: #eff6ff;
        color: var(--ecf-primary, #1d61f2);
    }
    .ecf-select-item.is-selected {
        background: #f0f7ff;
        color: var(--ecf-primary, #1d61f2);
        font-weight: 600;
    }
    .ecf-select-item.is-selected .item-check {
        display: inline-block !important;
    }
    .ecf-select-options-list::-webkit-scrollbar {
        width: 5px;
    }
    .ecf-select-options-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    /* Images Grid */
    .ecf-img-slots-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 8px;
    }
    .ecf-img-slot {
        position: relative;
        aspect-ratio: 1;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        background: #f8fafc;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    .ecf-img-slot:hover {
        border-color: var(--ecf-primary, #1d61f2);
        background: #eff6ff;
    }
    .ecf-img-slot.has-image {
        border: 2px solid var(--ecf-primary, #1d61f2);
        background: #fff;
    }
    .ecf-img-slot.is-invalid-slot {
        border-color: #ef4444 !important;
        background: #fef2f2 !important;
    }
    .ecf-img-slot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .ecf-img-slot-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        background: rgba(29, 97, 242, 0.9);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
        letter-spacing: 0.3px;
        z-index: 2;
    }
    .ecf-img-remove-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 24px;
        height: 24px;
        background: rgba(239, 68, 68, 0.9);
        color: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        cursor: pointer;
        z-index: 3;
        transition: transform 0.15s;
    }
    .ecf-img-remove-btn:hover {
        transform: scale(1.1);
    }
    .ecf-opt-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
        animation: fadeIn 0.2s ease-in-out;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .ecf-chip {
        display: inline-flex;
        align-items: center;
        background: #f1f5f9;
        color: #1e293b;
        font-size: 0.82rem;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 20px;
        margin: 3px 4px 3px 0;
        border: 1px solid #e2e8f0;
    }
    .ecf-chip-color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 6px;
        border: 1px solid rgba(0,0,0,0.15);
        display: inline-block;
    }
    .ecf-chip-remove {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 1rem;
        line-height: 1;
        padding: 0 0 0 6px;
        cursor: pointer;
    }
    .ecf-chip-remove:hover {
        color: #ef4444;
    }
    .ecf-suggest-badge {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d61f2;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 16px;
        margin-right: 6px;
        margin-bottom: 6px;
        display: inline-flex;
        align-items: center;
    }

    /* Variant Pricing Matrix Card */
    .ecf-variant-matrix-card {
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-top: 12px;
        animation: fadeIn 0.2s ease-in-out;
    }
    .ecf-variant-row {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 8px;
        transition: all 0.15s ease;
    }
    .ecf-variant-row.is-default-row {
        border-color: #93c5fd;
        background: #f0f7ff;
    }
    .ecf-base-price-badge {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d61f2;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
    }
    .ecf-field-error {
        color: #ef4444;
        font-size: 0.78rem;
        margin-top: 4px;
        display: none;
    }
    .ecf-field-error.show {
        display: block;
    }

/* From promo_codes_index.blade.php */
.ecf-promo-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ecf-promo-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .ecf-promo-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
    }
    .ecf-promo-icon-box {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .ecf-promo-code {
        font-family: monospace;
        font-size: 0.92rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        color: #0f172a;
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        padding: 4px 10px;
        border-radius: 6px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ecf-promo-discount-badge {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        white-space: nowrap;
        line-height: 1;
        flex-shrink: 0;
    }
    .ecf-promo-discount-badge.is-percent {
        background: #eff6ff;
        color: #1d61f2;
        border: 1px solid #dbeafe;
    }
    .ecf-promo-discount-badge.is-flat {
        background: #fdf2f8;
        color: #db2777;
        border: 1px solid #fce7f3;
    }
    .ecf-promo-meta {
        font-size: 0.76rem;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    /* Actions */
    .ecf-promo-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .ecf-status-toggle-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        outline: none;
        display: inline-flex;
        align-items: center;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .ecf-status-toggle-btn:hover {
        transform: scale(1.05);
    }
    .ecf-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 9px;
        border-radius: 12px;
        white-space: nowrap;
    }
    .ecf-status-badge.is-delivered {
        background: #dcfce7;
        color: #15803d;
    }
    .ecf-status-badge.is-cancelled {
        background: #fee2e2;
        color: #b91c1c;
    }
    .status-indicator-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
    }
    .ecf-action-icon-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        text-decoration: none;
        transition: all 0.15s ease;
        padding: 0;
    }
    .ecf-action-icon-btn:hover {
        background: #eff6ff;
        color: var(--ecf-primary, #1d61f2);
        border-color: #bfdbfe;
    }
    .ecf-action-icon-btn.is-delete:hover {
        background: #fef2f2;
        color: #ef4444;
        border-color: #fca5a5;
    }

/* From sliders_index.blade.php */
.ecf-banners-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ecf-banner-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .ecf-banner-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
    }
    .ecf-banner-thumb-box {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }
    .ecf-banner-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .ecf-banner-info {
        min-width: 0;
    }
    .ecf-banner-title-text {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Actions */
    .ecf-banner-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .ecf-status-toggle-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        outline: none;
        display: inline-flex;
        align-items: center;
        transition: transform 0.15s ease;
    }
    .ecf-status-toggle-btn:hover {
        transform: scale(1.05);
    }
    .ecf-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 9px;
        border-radius: 12px;
        white-space: nowrap;
    }
    .ecf-status-badge.is-delivered {
        background: #dcfce7;
        color: #15803d;
    }
    .ecf-status-badge.is-cancelled {
        background: #fee2e2;
        color: #b91c1c;
    }
    .status-indicator-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
    }
    .ecf-action-icon-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        text-decoration: none;
        transition: all 0.15s ease;
        padding: 0;
    }
    .ecf-action-icon-btn:hover {
        background: #eff6ff;
        color: var(--ecf-primary, #1d61f2);
        border-color: #bfdbfe;
    }
    .ecf-action-icon-btn.is-delete:hover {
        background: #fef2f2;
        color: #ef4444;
        border-color: #fca5a5;
    }

    /* Upload Dropzone Preview */
    .ecf-upload-dropzone {
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        background: #f8fafc;
        cursor: pointer;
        transition: all 0.15s ease;
        position: relative;
    }
    .ecf-upload-dropzone:hover {
        border-color: var(--ecf-primary, #1d61f2);
        background: #eff6ff;
    }
    .ecf-preview-container {
        width: 100%;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        display: none;
        margin-top: 8px;
        border: 1px solid #e2e8f0;
    }
    .ecf-preview-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Helper utility classes for clean views */
.ecf-badge-xs { font-size: 0.65rem; }
.ecf-badge-sm { font-size: 0.72rem; }
.ecf-text-xs { font-size: 0.72rem; }
.ecf-text-sm { font-size: 0.78rem; }
.ecf-text-md { font-size: 0.88rem; }
.ecf-text-lg { font-size: 0.95rem; }
.ecf-lh-sm { line-height: 1.4; }
.ecf-lh-md { line-height: 1.5; }
.ecf-modal-rounded { border-radius: 20px; }
.ecf-modal-card-shadow { border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.ecf-icon-empty-lg { font-size: 3.5rem; }
.ecf-cat-avatar-box { font-size: 1.5rem; display: flex; align-items: center; justify-content: center; background: #F8FAFC; }
.ecf-color-picker-btn { width: 28px; height: 24px; padding: 0; border: none; cursor: pointer; }
.ecf-dropdown-scroll-sm { max-height: 220px; overflow-y: auto; }
.ecf-dropdown-scroll-md { max-height: 280px; overflow-y: auto; }
.ecf-option-header-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.ecf-variant-price-input { width: 120px; }
.ecf-toggle-scale { cursor: pointer; transform: scale(1.2); }
.ecf-avatar-circle-sm { object-fit: cover; border-radius: 50%; }
.ecf-badge-info-subtle { background-color: #e0f2fe; color: #0284c7; }
.ecf-badge-warning-subtle { background-color: #fef3c7; color: #d97706; }
.ecf-promo-icon-percent { background-color: #eff6ff; color: #1d61f2; }
.ecf-promo-icon-fixed { background-color: #fdf2f8; color: #db2777; }
.ecf-ls-sm { letter-spacing: 0.5px; }

/* ==========================================================================
   Bootstrap Datepicker Ultra-Modern Popup Styling (Store Owner Panel)
   ========================================================================== */
.datepicker-dropdown {
    padding: 0.85rem !important;
    min-width: 300px !important;
    width: auto !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18) !important;
    background-color: #ffffff !important;
    z-index: 1070 !important;
    font-family: 'Inter', sans-serif !important;
}

.datepicker-dropdown::before,
.datepicker-dropdown::after {
    display: none !important;
}

.datepicker {
    min-width: 280px !important;
}

.datepicker table {
    width: 100% !important;
    min-width: 270px !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 3px !important;
}

.datepicker-months table,
.datepicker-years table,
.datepicker-decades table,
.datepicker-centuries table {
    min-width: 280px !important;
}

.datepicker-months table td,
.datepicker-years table td,
.datepicker-decades table td,
.datepicker-centuries table td {
    padding: 0.5rem 0 !important;
}

.datepicker table tr td,
.datepicker table tr th {
    text-align: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    vertical-align: middle !important;
}

.datepicker table tr th {
    font-weight: 700 !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}

.datepicker table tr th.datepicker-switch {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
    padding: 0.45rem 0.6rem !important;
    cursor: pointer !important;
}

.datepicker table tr th.datepicker-switch:hover,
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover,
.datepicker tfoot tr th:hover {
    background-color: #f1f5f9 !important;
    color: #1d61f2 !important;
}

.datepicker table tr td.day:hover,
.datepicker table tr td.focused {
    background-color: #eff6ff !important;
    color: #1d61f2 !important;
    cursor: pointer !important;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.selected,
.datepicker table tr td.selected:hover {
    background: linear-gradient(135deg, #1d61f2 0%, #155eef 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(29, 97, 242, 0.35) !important;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
    background-color: #f1f5f9 !important;
    color: #1d61f2 !important;
    font-weight: 700 !important;
    border: 1px solid #bfdbfe !important;
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    background: none !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   Quick Actions Center `+` Bottom Sheet Modal
   ========================================================================== */
.ecf-sheet-backdrop,
.quick-actions-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1050 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.ecf-sheet-backdrop.is-open,
.quick-actions-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ecf-quick-sheet-modal,
.quick-actions-sheet {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translate(-50%, 100%) !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2) !important;
    padding: 1.25rem 1.25rem calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 20px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 1060 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ecf-quick-sheet-modal.is-open,
.quick-actions-sheet.is-open {
    transform: translate(-50%, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ecf-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.ecf-sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ecf-sheet-grid,
.quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.ecf-sheet-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-decoration: none !important;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.ecf-sheet-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateY(-2px);
}

.ecf-sheet-icon {
    font-size: 1.6rem;
    color: #2563eb;
}

/* ==========================================================================
   Products List & Controls Bar Component Styles
   ========================================================================== */
.ecf-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.ecf-view-toggle-group {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ecf-view-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.ecf-view-btn.is-active {
    background: #ffffff;
    color: var(--ecf-primary, #1d61f2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: bold;
}

.ecf-products-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ecf-compact-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.ecf-compact-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}
.ecf-compact-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.ecf-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ecf-compact-info {
    flex-grow: 1;
    min-width: 0;
}
.ecf-compact-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
    white-space: normal;
    word-break: break-word;
    display: block;
}
.ecf-compact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.ecf-compact-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ecf-compact-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.ecf-compact-mrp {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.ecf-compact-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ecf-products-grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.ecf-grid-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.ecf-grid-thumb {
    width: 100%;
    height: 110px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}
.ecf-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ecf-grid-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Modal and Frame Quick Actions Positioning */
.ecf-app-frame {
    position: relative !important;
}
.ecf-sheet-backdrop,
.quick-actions-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1050 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}
.ecf-sheet-backdrop.is-open,
.quick-actions-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.ecf-quick-sheet-modal,
.quick-actions-sheet {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: translateY(100%) !important;
    background-color: #ffffff !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    border-bottom-left-radius: inherit !important;
    border-bottom-right-radius: inherit !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2) !important;
    padding: 1.25rem 1.25rem calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 85% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 1060 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.ecf-quick-sheet-modal.is-open,
.quick-actions-sheet.is-open {
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Store Product Form & Custom Dropdown Styles
   ========================================================================== */
.ecf-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.ecf-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.ecf-section-card:hover {
    border-color: #cbd5e1;
}

@media (max-width: 576px) {
    .ecf-section-card {
        padding: 14px 16px;
        margin-bottom: 12px;
    }
}

.ecf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.ecf-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecf-section-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--ecf-primary, #1d61f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.ecf-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.ecf-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

/* 2-Column Responsive Grid */
.ecf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 576px) {
    .ecf-form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.ecf-form-row-2 > * {
    min-width: 0;
    max-width: 100%;
}

/* Form Fields Styling */
.ecf-form-group {
    position: relative;
}
.ecf-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.ecf-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    outline: none;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
}
.ecf-textarea:focus {
    border-color: var(--ecf-primary, #1d61f2);
    box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.1);
}

/* Custom Searchable Select Dropdowns */
.ecf-custom-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}
.ecf-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    height: 44px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.ecf-select-trigger:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}
.ecf-select-trigger.is-open {
    border-color: var(--ecf-primary, #1d61f2);
    box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.12);
    background: #ffffff;
}
.ecf-select-trigger.is-invalid {
    border-color: #ef4444 !important;
}
.ecf-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    z-index: 1050;
    overflow: hidden;
    animation: dropFadeIn 0.15s ease-out;
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.ecf-select-item {
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ecf-select-item:hover {
    background: #eff6ff;
    color: var(--ecf-primary, #1d61f2);
}
.ecf-select-item.is-selected {
    background: #f0f7ff;
    color: var(--ecf-primary, #1d61f2);
    font-weight: 600;
}
.ecf-select-item.is-selected .item-check {
    display: inline-block !important;
}
.ecf-select-options-list::-webkit-scrollbar {
    width: 5px;
}
.ecf-select-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Images Grid */
.ecf-img-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ecf-img-slot {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}
.ecf-img-slot:hover {
    border-color: var(--ecf-primary, #1d61f2);
    background: #eff6ff;
}
.ecf-img-slot.has-image {
    border: 2px solid var(--ecf-primary, #1d61f2);
    background: #fff;
}
.ecf-img-slot.is-invalid-slot {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}
.ecf-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ecf-img-slot-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #1e293b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ecf-img-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.15s ease;
}
.ecf-img-remove-btn:hover {
    transform: scale(1.1);
}

/* Option Badges & Cards */
.ecf-suggest-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    margin-bottom: 6px;
    user-select: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ecf-suggest-badge:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.ecf-suggest-badge.is-active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d61f2;
}

.ecf-preset-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.ecf-preset-chip {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.ecf-preset-chip:hover {
    background: #eff6ff;
    border-color: #1d61f2;
    color: #1d61f2;
}

.ecf-opt-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.ecf-opt-card:hover {
    border-color: #cbd5e1;
}
.ecf-opt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ecf-opt-icon-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.15s ease;
}
.ecf-opt-icon-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}
.ecf-suggest-trash-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.ecf-suggest-trash-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}
.ecf-opt-add-tag-btn {
    background: var(--ecf-primary, #1d61f2);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.ecf-opt-add-tag-btn:hover {
    background: #144ec2;
}
.ecf-color-picker-input {
    width: 38px;
    height: 38px;
    padding: 2px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    flex-shrink: 0;
}
.ecf-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.ecf-opt-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ecf-opt-tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    min-height: 42px;
    cursor: text;
}
.ecf-opt-tag-input-wrap:focus-within {
    border-color: var(--ecf-primary, #1d61f2);
    box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.1);
}
.ecf-opt-tag {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--ecf-primary, #1d61f2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ecf-opt-tag-del {
    cursor: pointer;
    color: #60a5fa;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.ecf-opt-tag-del:hover {
    color: #ef4444;
}
.ecf-opt-text-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    flex: 1;
    min-width: 120px;
    color: #0f172a;
}

/* Variant Matrix Card */
.ecf-variant-matrix-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}
.ecf-variant-row {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.15s ease;
}
.ecf-variant-row:last-child {
    margin-bottom: 0;
}
.ecf-variant-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.ecf-variant-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.ecf-variant-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}
.ecf-variant-price-input {
    width: 120px;
    height: 40px;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    outline: none;
    text-align: right;
    color: #0f172a;
    transition: all 0.15s ease;
}
.ecf-variant-price-input:focus {
    border-color: var(--ecf-primary, #1d61f2);
    box-shadow: 0 0 0 3px rgba(29, 97, 242, 0.1);
}
.ecf-base-price-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d61f2;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}
.ecf-select-options-list {
    max-height: 200px;
    overflow-y: auto;
}
.ecf-badge-optional {
    font-size: 0.68rem;
    font-weight: 500;
}
.ecf-select-search-icon {
    font-size: 0.75rem;
}
.ecf-btn-add-opt {
    font-size: 0.78rem;
}
.ecf-dropdown-menu-scrollable {
    max-height: 280px;
    overflow-y: auto;
}
.ecf-suggest-header-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748b;
}
.ecf-variant-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}
.ecf-img-slot-text {
    font-size: 0.7rem;
}
.ecf-opt-hint {
    font-size: 0.72rem;
    color: #64748b;
}
.ecf-quick-label {
    font-size: 0.7rem;
    color: #64748b;
}
.ecf-base-badge-pill {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 6px;
}
.ecf-variant-currency {
    font-size: 0.95rem;
}
.ecf-quick-color-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.ecf-quick-color-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}
.ecf-field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}
.ecf-field-error.show {
    display: block;
}

/* Submit Button */
.ecf-btn-primary {
    background: var(--ecf-primary, #1d61f2);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(29, 97, 242, 0.2);
}
.ecf-btn-primary:hover {
    background: #144ec2;
    box-shadow: 0 4px 14px rgba(29, 97, 242, 0.3);
    color: #fff;
}
.ecf-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   Mobile & PWA App Responsive Optimizations
   ========================================================================== */
@media (max-width: 576px) {
    .ecf-form-container {
        padding: 0 4px;
        margin-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    }
    .ecf-section-card {
        padding: 12px 14px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .ecf-card-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .ecf-img-slots-grid {
        gap: 8px;
    }
    .ecf-img-slot {
        border-radius: 8px;
    }
    .ecf-variant-row {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .ecf-variant-price-wrap {
        width: 100%;
        justify-content: flex-end;
        padding-top: 6px;
        border-top: 1px dashed #f1f5f9;
        margin-top: 4px;
    }
    .ecf-variant-price-input {
        width: 100%;
        max-width: 140px;
        height: 38px;
    }
    .ecf-opt-card {
        padding: 8px 10px;
    }
    .ecf-quick-color-btn {
        padding: 2px 6px;
        font-size: 0.68rem;
    }
}

@media (max-width: 400px) {
    .ecf-img-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .ecf-select-trigger {
        height: 42px;
        padding: 0 10px;
        font-size: 0.84rem;
    }
    .ecf-btn-primary {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   Store Owner Subscription Page Styles (Responsive, Web, Mobile & PWA)
   ========================================================================== */
.ecf-sub-page-wrap {
    width: 100%;
}

/* 1. Current Plan Card */
.ecf-sub-current-card {
    border-radius: 18px;
    padding: 1.25rem 1.15rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(29, 97, 242, 0.25);
    transition: all 0.2s ease;
}

.ecf-sub-current-card.is-active {
    background: linear-gradient(135deg, #1d61f2 0%, #1545ad 100%);
}

.ecf-sub-current-card.is-trial {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.ecf-sub-current-card.is-expired {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 8px 24px -6px rgba(220, 38, 38, 0.35);
}

.ecf-sub-current-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.ecf-sub-current-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
}

.ecf-sub-current-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    font-weight: 600;
    display: block;
}

.ecf-sub-current-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.ecf-sub-countdown-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.ecf-sub-expired-notice {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ecf-sub-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ecf-sub-meta-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 10px;
}

.ecf-sub-meta-lbl {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ecf-sub-meta-val {
    font-size: 0.82rem;
    font-weight: 700;
    display: block;
    color: #ffffff;
}

/* 2. Available Plans List & Cards */
.ecf-sub-plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecf-plan-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    padding: 1.15rem 1.15rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ecf-plan-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ecf-plan-card.is-current-plan {
    border-color: var(--ecf-primary, #1d61f2);
    background: #f8faff;
}

.ecf-plan-badge-current {
    position: absolute;
    top: 0;
    right: 1.25rem;
    background: var(--ecf-primary, #1d61f2);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ecf-plan-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.ecf-plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.ecf-plan-limit {
    font-size: 0.78rem;
    color: #64748b;
}

.ecf-plan-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ecf-primary, #1d61f2);
    line-height: 1;
}

.ecf-plan-cycle {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

.ecf-plan-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ecf-plan-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.85rem;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
}

.ecf-plan-feat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #334155;
    font-weight: 500;
}

.ecf-btn-sub-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ecf-btn-sub-wa:hover,
.ecf-btn-sub-wa:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Disable Browser Autofill Styling
   ========================================================================== */

/* Disable autofill styling for all inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background-color: #ffffff !important;
}

/* ==========================================================================
   Store Analytics Page Styles (Centered Mobile-Style Compact Desktop View)
   ========================================================================== */
.ecf-analytics-container {
    max-width: 580px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

/* Range Filter Pills / Header */
.ecf-analytics-header {
    margin-bottom: 1.25rem;
}
.ecf-analytics-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ecf-dark, #0f172a);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}
.ecf-analytics-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ecf-muted, #64748b);
    margin-bottom: 0.75rem;
}

.ecf-range-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 9999px;
    flex-shrink: 0;
}
.ecf-range-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}
.ecf-range-btn:hover {
    color: #0f172a;
}
.ecf-range-btn.is-active {
    background: #1d61f2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(29, 97, 242, 0.3);
}

/* Section Title */
.ecf-analytics-sec-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ecf-dark, #0f172a);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

/* 2-Column Grid (Maintained on Mobile & Desktop) */
.ecf-analytics-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ecf-breakdown-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.ecf-breakdown-grid-2col .ecf-card-full-span {
    grid-column: 1 / -1;
}

/* Cards Common */
.ecf-stat-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ecf-stat-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ecf-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ecf-stat-icon.bg-blue-soft {
    background-color: #eff6ff;
    color: #1d61f2;
}
.ecf-stat-icon.bg-green-soft {
    background-color: #f0fdf4;
    color: #16a34a;
}
.ecf-stat-icon.bg-teal-soft {
    background-color: #f0f9ff;
    color: #0284c7;
}
.ecf-stat-icon.bg-orange-soft {
    background-color: #fff7ed;
    color: #ea580c;
}
.ecf-stat-icon.bg-emerald-soft {
    background-color: #ecfdf5;
    color: #059669;
}
.ecf-stat-icon.bg-indigo-soft {
    background-color: #eef2ff;
    color: #4f46e5;
}
.ecf-stat-icon.bg-rose-soft {
    background-color: #fff1f2;
    color: #e11d48;
}

.ecf-stat-info {
    overflow: hidden;
    min-width: 0;
}
.ecf-stat-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.ecf-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.ecf-stat-sub {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Store Traffic Trend Hero Card */
.ecf-hero-trend-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.ecf-hero-trend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.ecf-hero-trend-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ecf-trend-metrics {
    margin-bottom: 0.5rem;
}
.ecf-trend-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.ecf-trend-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.ecf-trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    background-color: #f0fdf4;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.ecf-trend-chart-area {
    position: relative;
    width: 100%;
    height: 140px;
    margin-top: 1rem;
}