/* ====================================
   PAK-PIGEON PREMIUM STYLES
   ==================================== */

/* --- Fonts & Base --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f1f5f9;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
}

main {
    flex: 1;
}

/* --- Utility --- */
.min-vh-75 { min-height: 75vh; }

/* --- Cards --- */
.card {
    border-radius: 14px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.06) !important;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* --- Buttons --- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary { background: linear-gradient(135deg, #2563eb, #0d6efd); border: none; }
.btn-success { background: linear-gradient(135deg, #059669, #10b981); border: none; }

/* --- Dashboard Analytics Cards --- */
.border-start { border-left-width: 5px !important; }
.card.border-start.border-primary { border-left-color: #2563eb !important; }
.card.border-start.border-info    { border-left-color: #0ea5e9 !important; }
.card.border-start.border-success { border-left-color: #10b981 !important; }
.card.border-start.border-warning { border-left-color: #f59e0b !important; }

/* --- Product Cards (Store & detail) --- */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14) !important;
}

/* --- Badges --- */
.badge { border-radius: 6px; font-weight: 500; }

/* --- Forms --- */
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* --- Tables --- */
.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
}
thead.table-dark th { background-color: #0f172a !important; }

/* --- Hero Section on homepage --- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0e7490 100%);
    color: white;
    border-radius: 20px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: rgba(14, 116, 144, 0.1);
    pointer-events: none;
}

/* --- Feature Cards on Homepage --- */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* --- Pricing --- */
.pricing-card-title { font-size: 3rem; }

/* --- Calculator UI --- */
#setup-screen, #calc-screen {
    background: white;
    border-radius: 16px;
}
.carousel { border-radius: 12px; }

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
    color: #94a3b8 !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* --- Bottom Navigation --- */
.bottom-nav {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-link {
    transition: all 0.2s ease;
}
.bottom-nav .nav-link:hover, .bottom-nav .nav-link:focus, .bottom-nav .nav-link.active {
    color: #60a5fa !important;
    opacity: 1 !important;
    transform: translateY(-2px);
}
.bottom-nav .nav-link i {
    transition: transform 0.2s;
}
.bottom-nav .nav-link:hover i, .bottom-nav .nav-link.active i {
    transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════════
   PREMIUM E-COMMERCE HOMEPAGE  — Pak-Pigeon
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.ec-hero {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.ec-slide {
    min-height: 460px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.ec-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.ec-slide--blue   { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0e7490 100%); }
.ec-slide--amber  { background: linear-gradient(135deg, #1c1002 0%, #451a03 45%, #92400e 100%); }
.ec-slide--emerald{ background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%); }

.ec-slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 56px 56px;
    gap: 32px;
}
.ec-slide-left { flex: 1; max-width: 560px; }
.ec-slide-right { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }

.ec-eyebrow {
    display: inline-block;
    background: rgba(96,165,250,0.18);
    color: #93c5fd;
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.ec-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.ec-hero-title em { font-style: normal; color: #60a5fa; }
.ec-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}
.ec-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.ec-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.ec-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; box-shadow: 0 8px 28px rgba(37,99,235,0.5); }
.ec-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    transition: all 0.2s;
}
.ec-btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-2px); }

/* Hero blob */
.ec-hero-blob {
    width: 280px; height: 280px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ec-blob-blue   { background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, rgba(96,165,250,0.02) 70%); border: 1.5px solid rgba(96,165,250,0.15); }
.ec-blob-amber  { background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, rgba(251,191,36,0.02) 70%);  border: 1.5px solid rgba(251,191,36,0.15); }
.ec-blob-emerald{ background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, rgba(52,211,153,0.02) 70%);  border: 1.5px solid rgba(52,211,153,0.15); }
.ec-hero-icon { font-size: 8rem; opacity: 0.22; color: #60a5fa; }

/* Slider controls */
.ec-slider-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.carousel-control-prev:hover .ec-slider-btn,
.carousel-control-next:hover .ec-slider-btn { background: rgba(255,255,255,0.25); }
.carousel-control-prev { left: 18px; width: auto; }
.carousel-control-next { right: 18px; width: auto; }
.ec-slider-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
}
.ec-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}
.ec-dot.active { width: 24px; border-radius: 4px; background: #fff; }

/* ── Trust Strip ─────────────────────────────────────── */
.ec-trust-strip {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    padding: 22px 32px;
    margin-bottom: 28px;
    gap: 0;
    overflow: hidden;
}
.ec-trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 24px;
}
.ec-trust-item i { font-size: 1.6rem; flex-shrink: 0; }
.ec-trust-item div { display: flex; flex-direction: column; }
.ec-trust-item strong { font-size: 0.88rem; color: #0f172a; font-weight: 700; }
.ec-trust-item span  { font-size: 0.75rem; color: #94a3b8; }
.ec-trust-sep { width: 1px; background: #f1f5f9; margin: 8px 0; flex-shrink: 0; }

/* ── Stats Bar ─────────────────────────────────────── */
.ec-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 8px 30px rgba(15,23,42,0.25);
}
.ec-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.ec-stat:last-child { border-right: none; }
.ec-stat-num { font-size: 1.8rem; font-weight: 900; color: #60a5fa; line-height: 1; margin-bottom: 6px; }
.ec-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Section ─────────────────────────────────────── */
.ec-section { margin-bottom: 56px; }
.ec-section-header { margin-bottom: 28px; }
.ec-section-title-group { display: flex; flex-direction: column; gap: 6px; }
.ec-section-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ec-section-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}
.ec-section-sub { color: #64748b; font-size: 0.9rem; margin: 0; }

/* ── Product Grid ─────────────────────────────────── */
.ec-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ec-product-link { text-decoration: none; display: block; }

/* ── Product Card ─────────────────────────────────── */
.ec-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #f1f5f9;
    transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease;
    position: relative;
}
.ec-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.ec-product-card--featured {
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251,191,36,0.12);
}
.ec-product-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}
.ec-product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.ec-product-card:hover .ec-product-img { transform: scale(1.08); }
.ec-product-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    color: #cbd5e1;
}

/* overlay on hover */
.ec-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ec-product-card:hover .ec-product-overlay { opacity: 1; }
.ec-overlay-btn {
    background: #fff;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 30px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateY(8px);
    transition: transform 0.25s ease;
}
.ec-product-card:hover .ec-overlay-btn { transform: translateY(0); }

/* Featured badge */
.ec-badge-featured {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 3;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 10px rgba(245,158,11,0.4);
}
.ec-product-body { padding: 14px 16px 16px; }
.ec-product-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.ec-product-price {
    font-size: 1.08rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.ec-product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}
.ec-product-meta i { margin-right: 3px; }

/* ── Filters ─────────────────────────────────────── */
.ec-filters {
    background: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(37,99,235,0.06);
    border: 1.5px solid #e0eaff;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.ec-filter-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.ec-filter-search > i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}
.ec-filter-search input {
    width: 100%;
    padding: 11px 48px 11px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.ec-filter-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}
.ec-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.ec-clear-btn:hover { color: #ef4444; }
.ec-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.ec-select {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    white-space: nowrap;
}
.ec-select:focus { border-color: #2563eb; }
.ec-price-range { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ec-price-input {
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #f8fafc;
    width: 110px;
    outline: none;
    transition: border-color 0.2s;
}
.ec-price-input:focus { border-color: #2563eb; }
.ec-price-dash { color: #94a3b8; font-weight: 600; }
.ec-filter-meta { font-size: 0.8rem; color: #64748b; font-weight: 500; white-space: nowrap; flex-shrink: 0; }

/* No results / empty */
.ec-no-results, .ec-empty {
    text-align: center;
    padding: 72px 20px;
    color: #94a3b8;
}
.ec-no-results i, .ec-empty i { font-size: 3.5rem; display: block; margin-bottom: 16px; opacity: 0.3; }
.ec-no-results h5, .ec-empty h5 { color: #475569; font-weight: 700; margin-bottom: 8px; }

/* ── CTA ─────────────────────────────────────────── */
.ec-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 48px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.3);
    overflow: hidden;
    position: relative;
}
.ec-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(96,165,250,0.06);
    pointer-events: none;
}
.ec-cta-inner { display: flex; align-items: stretch; gap: 0; }
.ec-cta-left {
    flex: 1;
    padding: 56px 48px;
}
.ec-cta-right {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-left: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
}
.ec-cta-eyebrow {
    display: inline-block;
    background: rgba(96,165,250,0.15);
    color: #93c5fd;
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ec-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.ec-cta-title em { font-style: normal; color: #60a5fa; }
.ec-cta-sub { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.ec-cta-list { list-style: none; padding: 0; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.ec-cta-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.ec-cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ec-cta-btn-main {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2563eb;
    color: #fff; font-weight: 800; font-size: 0.95rem;
    padding: 14px 32px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    transition: all 0.2s;
}
.ec-cta-btn-main:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.ec-cta-btn-ghost { color: rgba(255,255,255,0.55); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.ec-cta-btn-ghost:hover { color: #fff; }

.ec-cta-card {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    backdrop-filter: blur(8px);
    width: 100%;
}
.ec-cta-icon-ring {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(96,165,250,0.15);
    border: 2px solid rgba(96,165,250,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #60a5fa;
    margin: 0 auto 20px;
}
.ec-cta-card h4 { color: #fff; font-weight: 800; margin-bottom: 10px; font-size: 1.1rem; }
.ec-cta-card p  { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.6; margin-bottom: 24px; }
.ec-cta-stats-row { display: flex; justify-content: center; gap: 32px; }
.ec-cta-stats-row div { display: flex; flex-direction: column; align-items: center; }
.ec-cta-stats-row strong { font-size: 1.6rem; font-weight: 900; color: #60a5fa; }
.ec-cta-stats-row span  { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .ec-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ec-slide-content { padding: 36px 28px; flex-direction: column; }
    .ec-slide-right { display: none; }
    .ec-slide { min-height: 340px; }
    .ec-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ec-trust-strip { flex-direction: column; gap: 16px; padding: 20px; }
    .ec-trust-sep { display: none; }
    .ec-trust-item { padding: 0; }
    .ec-stats { grid-template-columns: repeat(2, 1fr); }
    .ec-stat { padding: 22px 14px; }
    .ec-stat-num { font-size: 1.4rem; }
    .ec-cta-inner { flex-direction: column; }
    .ec-cta-right { display: none; }
    .ec-cta-left { padding: 36px 28px; }
    /* On mobile: hide sort and price, show only search + result count */
    .ec-filter-meta { display: none !important; }
    .ec-filters { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════════════
   USER PANELS - MOBILE OPTIMIZATION
   ══════════════════════════════════════════════════════════ */

/* ── Mobile Data Cards (Replacing Tables) ─────────────── */
.mobile-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-data-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.mobile-data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1.5px solid #f8fafc;
    padding-bottom: 16px;
}
.mobile-data-card-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.3;
}
.mobile-data-card-badge {
    flex-shrink: 0;
}
.mobile-data-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
}
.mobile-data-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-data-card-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mobile-data-card-value {
    font-weight: 600;
    color: #1e293b;
}
.mobile-data-card-actions {
    display: flex;
    gap: 10px;
}
.mobile-data-card-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 10px;
    font-weight: 700;
    border-radius: 10px;
}

/* ── Form Enhancements ─────────────── */
.mobile-optimized-form .form-label {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.mobile-optimized-form .form-control, 
.mobile-optimized-form .form-select {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background-color: #f8fafc;
}
.mobile-optimized-form .form-control:focus, 
.mobile-optimized-form .form-select:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

/* ── Viewport Toggles ─────────────── */
@media (min-width: 768px) {
    .desktop-only-table { display: table !important; }
    .mobile-only-cards { display: none !important; }
}
@media (max-width: 767px) {
    .desktop-only-table { display: none !important; }
    .mobile-only-cards { display: block !important; }
    .card-header h5 { font-size: 1.1rem; font-weight: 800; }
    .bottom-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
    .bottom-nav .nav-link { padding: 6px 0 !important; }
    .bottom-nav .nav-link i { font-size: 1.35rem !important; }
    .bottom-nav .nav-link span { font-size: 0.7rem; font-weight: 600; margin-top: 2px; }

    /* Center Sell Now FAB */
    .ec-bottom-fab-container { position: relative; top: -7px; }
    .ec-bottom-fab {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(37,99,235,0.4);
        color: white;
        border: 4px solid #0f172a; /* matches the bottom nav background */
        transition: transform 0.2s;
    }
    .ec-bottom-fab:active { transform: scale(0.95); }
    .ec-fab-text {
        font-size: 0.7rem;
        font-weight: 700;
        color: #fff;
        margin-top: 4px;
    }
}
@media (max-width: 480px) {
    .ec-hero { border-radius: 16px; }
    .ec-product-grid { gap: 12px; }
    .ec-section-title { font-size: 1.35rem; }
}

/* ============================================
   E-COMMERCE HOMEPAGE
   ============================================ */

/* -- Hero Slider -- */
.hp-hero { border-radius: 20px; overflow: hidden; }
.hp-hero-slide {
    border-radius: 20px;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hp-slide-1 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0e7490 100%); }
.hp-slide-2 { background: linear-gradient(135deg, #1c1410 0%, #3b1f00 60%, #92400e 100%); }
.hp-slide-3 { background: linear-gradient(135deg, #052e16 0%, #064e3b 60%, #065f46 100%); }
.hp-hero .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
}
.hp-hero .carousel-indicators .active { background-color: #fff; }

/* -- Stats Strip -- */
.hp-stats-strip {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.hp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}
.hp-stat-item:last-child { border-right: none; }
.hp-stat-item h3 { font-size: 1.6rem; color: #0f172a; }

/* -- Search Bar -- */
.hp-search-bar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(37,99,235,0.08);
    border: 1.5px solid #e0eaff;
}

/* -- Product Card -- */
.hp-product-card {
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    background: white;
}
.hp-product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.13) !important;
}
.hp-featured-card {
    border: 2px solid #f59e0b !important;
}
.hp-product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}
.hp-product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.hp-product-card:hover .hp-product-img { transform: scale(1.06); }
.hp-product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    color: #cbd5e1;
    background: #f1f5f9;
}
.hp-featured-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}
.hp-product-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.hp-product-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #2563eb;
}

/* -- Why Us Strip -- */
.hp-why-us {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.hp-why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}
.hp-why-item:last-child { border-right: none; }

/* -- CTA Banner -- */
.hp-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #0e7490 100%);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(14,116,144,0.2);
}

/* -- Mobile tweaks -- */
@media (max-width: 576px) {
    .hp-cta { padding: 32px 20px; text-align: center; }
    .hp-cta .col-lg-5 { text-align: center !important; margin-top: 16px; }
    .hp-stat-item { padding: 18px 10px; }
    .hp-stat-item h3 { font-size: 1.2rem; }
    .hp-hero-slide { min-height: 340px; }
}

/* ====================================
   RTL (Urdu) SUPPORT
   ==================================== */

/* Flip margin/padding utilities for RTL */
[dir="rtl"] .ms-auto  { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2     { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-1     { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2     { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .text-start { text-align: right !important; }

/* Urdu font for body when RTL */
[dir="rtl"] body {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Segoe UI', serif;
    font-size: 1.05rem;
    line-height: 2;
}

/* Flip Bootstrap icons used as leading icons */
[dir="rtl"] .bi-box-arrow-in-right::before { content: "\f116"; } /* point left */
[dir="rtl"] .bi-box-arrow-right::before    { content: "\f118"; }

/* Navbar direction */
[dir="rtl"] .navbar-nav { flex-direction: row-reverse; }
[dir="rtl"] .navbar-brand { margin-left: auto; margin-right: 0; }

/* Mobile bottom nav RTL */
[dir="rtl"] .ec-bottom-nav .navbar-nav { flex-direction: row; }

/* Card body text alignment */
[dir="rtl"] .card-body,
[dir="rtl"] .modal-body { text-align: right; }

/* Table headers */
[dir="rtl"] th,
[dir="rtl"] td { text-align: right; }
[dir="rtl"] .text-md-end { text-align: left !important; }

/* Form labels */
[dir="rtl"] .form-label { display: block; text-align: right; }
[dir="rtl"] .input-group { flex-direction: row-reverse; }
[dir="rtl"] .input-group .btn { border-radius: 8px 0 0 8px !important; }
[dir="rtl"] .input-group .form-control { border-radius: 0 8px 8px 0 !important; }

/* Border flip for dashboard stat cards */
[dir="rtl"] .border-start { border-left: none !important; border-right: 4px solid !important; }
[dir="rtl"] .border-primary.border-start  { border-right-color: #0d6efd !important; }
[dir="rtl"] .border-info.border-start     { border-right-color: #0dcaf0 !important; }
[dir="rtl"] .border-success.border-start  { border-right-color: #198754 !important; }
[dir="rtl"] .border-warning.border-start  { border-right-color: #ffc107 !important; }

/* Mobile data card flip */
[dir="rtl"] .mobile-data-card-label { text-align: right; }
[dir="rtl"] .mobile-data-card-value { text-align: left; }

/* Language toggle button style */
.lang-toggle-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.85rem;
    color: #fff;
    transition: background 0.2s;
}
.lang-toggle-btn:hover {
    background: rgba(255,255,255,0.22);
    text-decoration: none;
    color: #fff;
}
