﻿html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f7f7;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

@font-face {
    font-family: 'Noto Nastaliq Urdu';
    src: url('/webfonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
    font-display: swap;
}

.urdu {
    font-family: "Noto Nastaliq Urdu", "Segoe UI", sans-serif;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
    line-height: 1.9;
}

.urdu-center {
    text-align: center;
}

.urdu-right {
    text-align: right;
}

.urdu-sm {
    font-size: 14px;
}

.urdu-md {
    font-size: 15px;
}

.urdu-lg {
    font-size: 16px;
}

.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
========================= */

.mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #145a1a;
}

/* LOGO */

.logo-wrapper {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* SEARCH */
/* SEARCH */

.mobile-search {
    flex: 1;
    min-width: 0;
}

.search-wrap {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 42px;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 0 44px 0 16px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #145a1a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ICONS */

.header-icon,
.menu-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
}

/* =========================
   MAIN
========================= */

.main-content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 14px;
    padding-bottom: 85px;
}

/* =========================
   SIDEBAR
========================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: left .25s ease;
    overflow-y: auto;
    padding: 22px 0px;
}

    .mobile-sidebar.active {
        left: 0;
    }

    .mobile-sidebar a {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        color: #145a1a;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 4px;
    }

/* =========================
   OVERLAY
========================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 1000;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cart-icon-wrap,
.cart-bottom-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-icon {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}



.toast-container {
    z-index: 9999;
}

.custom-toast {
    min-width: 300px;
    margin-bottom: 10px;
    padding: 15px 20px;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all .3s ease;
}

    .custom-toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .custom-toast.success {
        background: #28a745;
    }

    .custom-toast.error {
        background: #dc3545;
    }

/* =========================
   BOTTOM NAV
========================= */
* {
    box-sizing: border-box;
}

.bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 58px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    overflow: hidden;
}

    .bottom-nav a,
    .bottom-nav button {
        border: none;
        background: none;
        text-decoration: none;
        font-size: 22px;
        color: #0d7c1f;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .bottom-nav a.active {
            color: #e53935;
        }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-bottom: 14px;
    border: none;
    border-radius: 50%;
    background: #145a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* =========================================
   PLANTSPK PROFESSIONAL FOOTER
========================================= */

.mobile-footer {
    background: #f3f8f2;
    border-top: 3px solid #198754;
    padding: 42px 20px 80px;
    text-align: left;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 35px;
    align-items: start;
}

/* BRAND */

.footer-brand-name {
    font-size: 25px;
    font-weight: 800;
    color: #145a1a;
    margin-bottom: 12px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.8;
    color: #526458;
    max-width: 280px;
    margin-bottom: 18px;
}

/* HEADINGS */

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #145a1a;
    margin-bottom: 16px;
}

/* LINKS */

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

    .footer-links a {
        color: #355c40;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        min-height: 0;
        padding: 0;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: #198754;
            text-decoration: underline;
        }

/* TRACK ORDER */

.footer-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #198754;
    color: #fff;
    padding: 11px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

    .footer-track-btn:hover {
        background: #145a1a;
        color: #fff;
    }

/* SOCIAL ICONS */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #d6e6d8;
        border-radius: 50%;
        color: #198754;
        text-decoration: none;
        font-size: 16px;
        transition: .2s;
    }

        .footer-social a:hover {
            background: #198754;
            color: #fff;
            transform: translateY(-3px);
        }

/* COPYRIGHT */

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid #d6e6d8;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #66776a;
}




.sidebar-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 15px auto 10px;
    border: 3px solid #198754;
    background: #f5f5f5;
}

.sidebar-name {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    color: #222;
}

.header-user-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #198754;
}

.header-icon i {
    font-size: 20px;
    color: #fff;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-card {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 72px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    border: 1px solid #ececec;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .25s ease;
}

    .install-card.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.install-text strong {
    display: block;
    color: #145a1a;
    font-size: 15px;
    margin-bottom: 2px;
}

.install-text div {
    font-size: 13px;
    color: #666;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-btn {
    border: none;
    background: #198754;
    color: #fff;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.close-btn {
    border: none;
    background: transparent;
    color: #444;
    font-size: 18px;
    padding: 0;
}
.header-user {
    width: 40px;
    height: 40px;
    overflow: hidden;
    flex-shrink: 0;
}

    .header-user img {
        width: 40px !important;
        height: 40px !important;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
    }


.wishlist-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wishlist-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


/* FIND A PLANT - YELLOW FLOATING BUTTON */

.request-plant-btn {
    position: fixed;
    bottom: auto;
    right: 20px;
    top: 52%;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: #FFC107;
    color: #123d20 !important;
    border: 1px solid #E5AD00;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
    transition: 0.3s;
}

    .request-plant-btn:hover {
        background: #FFDA44;
        color: #123d20 !important;
        transform: translateY(0);
    }




/* =========================================
   GLOBAL PAGE BREADCRUMB
========================================= */

.page-breadcrumb {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 14px;
    line-height: 1.4;
}

    .page-breadcrumb a {
        color: #08752b;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .page-breadcrumb a:hover {
            color: #145a1a;
            text-decoration: underline;
        }

    .page-breadcrumb .separator {
        color: #999;
        font-size: 13px;
    }

    .page-breadcrumb .current {
        color: #444;
        font-weight: 500;
    }

.footer-seller-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #198754;
    border-radius: 30px;
    color: #198754;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

    .footer-seller-btn:hover {
        background: #198754;
        color: #fff;
    }

.tools-menu-active {
    background: #e8f7ed;
    color: #08752f !important;
    font-weight: 700;
    border-left: 3px solid #08752f;
}


/* FREE ONLINE TOOLS - FLOATING INDICATOR */

.pp-floating-tools-btn {
    position: fixed;
    top: calc(52% - 58px);
    right: 20px;
    bottom: auto;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 2px solid #E5AD00;
    border-radius: 50px;
    background: #FFC107;
    color: #123d20 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .pp-floating-tools-btn:hover {
        background: #FFDA44;
        border-color: #D49B00;
        color: #123d20 !important;
        box-shadow: 0 5px 18px rgba(255, 193, 7, 0.35);
        transform: translateY(-3px);
    }

    .pp-floating-tools-btn:focus-visible {
        outline: 2px solid #0d6efd;
        outline-offset: 3px;
    }

html {
    scroll-behavior: smooth;
}

#free-online-tools {
    scroll-margin-top: 85px;
}



@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }

    .mobile-footer {
        padding-bottom: 35px;
    }

    .main-content {
        padding-bottom: 30px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 991px) {
    .bottom-nav {
        display: flex;
    }

    .mobile-footer {
        padding-bottom: 85px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .request-plant-btn {
        right: 20px;
        bottom: 25px;
    }

    .pp-floating-tools-btn {
        right: 20px;
        bottom: 85px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .mobile-footer {
        padding: 25px 15px 85px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
        text-align: left;
    }

    /* Brand full width */
    .footer-brand-section {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 18px;
        border-bottom: 1px solid #d6e6d8;
    }

    .footer-brand-name {
        font-size: 23px;
        margin-bottom: 8px;
    }

    .footer-description {
        max-width: 310px;
        margin: 0 auto 15px;
        font-size: 12px;
    }

    /* Two link columns */
    .footer-left,
    .footer-right {
        width: auto;
        border: 0;
        padding: 0;
        text-align: left;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-links {
        align-items: flex-start;
        gap: 12px;
    }

        .footer-links a {
            display: inline-flex;
            align-items: center;
            min-height: 32px;
        }

    /* Social full width */
    .footer-center {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        padding-top: 18px;
        border-top: 1px solid #d6e6d8;
    }

    .footer-social {
        justify-content: center;
        gap: 12px;
    }

        .footer-social a {
            width: 38px;
            height: 38px;
        }

    .footer-bottom {
        margin-top: 22px;
        padding-top: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
        font-size: 11px;
    }

    .footer-action-buttons {
        justify-content: center;
        gap: 8px;
    }

    .footer-track-btn,
    .footer-seller-btn {
        font-size: 12px;
        padding: 9px 12px;
    }
    .request-plant-btn {
        right: 8px;
        left: auto;
        top: 52%;
        bottom: auto;
        padding: 9px 11px;
        font-size: 11px;
        z-index: 9998;
    }

    .pp-floating-tools-btn {
        right: 8px;
        left: auto;
        top: calc(52% - 48px);
        bottom: auto;
        padding: 8px 10px;
        font-size: 10px;
        z-index: 9998;
    }
}

/* Mobile */
@media (max-width: 575.98px) {

    .page-breadcrumb {
        padding: 11px 14px;
        font-size: 13px;
        gap: 5px;
    }
}

/* ==========================================
   PLANTSPK - PROFESSIONAL RESPONSIVE HEADER
========================================== */

.mobile-header {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: #145a1a;
    box-sizing: border-box;
}

/* LOGO */

.logo-wrapper {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

/* SEARCH */

.mobile-search {
    flex: 1 1 auto;
    min-width: 80px;
}

.search-wrap {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: box-shadow .2s;
}

    .search-input:focus {
        box-shadow: 0 0 0 3px rgba(255,255,255,.25);
    }

.search-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #145a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* HEADER ICONS */

.header-icon,
.menu-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 19px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

    .header-icon:hover,
    .menu-btn:hover {
        color: #d5f5a5;
    }

/* PROFILE */

.header-user {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user-img {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

/* ACCESSIBILITY */

.header-icon:focus-visible,
.menu-btn:focus-visible,
.search-btn:focus-visible,
.header-user:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* SMALL MOBILE */

@media (max-width: 400px) {

    .mobile-header {
        gap: 6px;
        padding: 8px;
    }

    .logo-wrapper,
    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-wrapper {
        flex-basis: 36px;
    }

    .header-icon,
    .menu-btn {
        width: 29px;
        height: 34px;
        flex-basis: 29px;
        font-size: 16px;
    }

    .header-user {
        width: 32px;
        height: 34px;
        flex-basis: 32px;
    }

    .header-user-img {
        width: 32px;
        height: 32px;
    }

    .search-input {
        height: 38px;
        font-size: 12px;
        padding-left: 12px;
        padding-right: 38px;
    }

    .search-btn {
        width: 30px;
        height: 30px;
        top: 4px;
        right: 4px;
        font-size: 12px;
    }
}

/* ==========================================
   MOBILE WIDTH / OVERFLOW FIX
========================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.app-shell {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.mobile-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
}

.mobile-search {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.search-wrap {
    min-width: 0;
}

.search-input {
    min-width: 0;
}

.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 400px) {

    .mobile-header {
        gap: 4px;
        padding: 7px 6px;
    }

    .header-icon,
    .menu-btn {
        flex: 0 0 27px;
        width: 27px;
    }

    .logo-wrapper,
    .logo-img {
        width: 34px;
        height: 34px;
    }

    .logo-wrapper {
        flex-basis: 34px;
    }

    .header-user {
        flex-basis: 30px;
        width: 30px;
    }

    .header-user-img {
        width: 30px;
        height: 30px;
    }
}