﻿/* =========================================
   MASTER CSS - CLEAN OPTIMIZED VERSION
   LIGHTHOUSE FRIENDLY
========================================= */

:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --green-light: #43a047;
    --text: #222;
    --muted: #777;
    --border: #ececec;
    --bg: #f4f9f4;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(0,0,0,.06);
    --transition: .18s ease;
}

/* =========================================
   GLOBAL
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button {
    border: none;
    outline: none;
}

/* =========================================
   URDU
========================================= */

.urdu {
    font-family: "Noto Nastaliq Urdu", "Segoe UI", sans-serif;
    direction: auto;
    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;
}

/* =========================================
   HEADER
========================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient( 90deg, var(--green), var(--green-light));
    box-shadow: var(--shadow);
}

/* =========================================
   LOGO
========================================= */

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

.site-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.site-subtitle {
    font-size: 12px;
    color: #f1f1f1;
}

/* =========================================
   HEADER ACTIONS
========================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   USER
========================================= */

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.25);
}

.user-name {
    font-size: 14px;
}

/* =========================================
   BUTTONS
========================================= */

.btn-light,
.btn-outline-light {
    border-radius: 40px;
    transition: background .18s ease, color .18s ease;
}

/* =========================================
   NOTIFICATION
========================================= */

.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    contain: content;
}

    .notif-bell i {
        font-size: 19px;
    }

#wishlistCount,
#cartCount {
    font-size: 11px;
}

/* =========================================
   MENU BUTTON
========================================= */

.menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
    background: var(--green-dark) !important;
}

.navbar-nav .nav-link {
    position: relative;
    color: #fff !important;
    font-weight: 500;
    transition: color .18s ease;
}

    .navbar-nav .nav-link:hover {
        color: #ffdd91 !important;
    }

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #cddc39;
        transition: width .18s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

/* =========================================
   SEARCH
========================================= */

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .search-container .form-control {
        height: 40px;
        border-radius: 40px;
        border: 1px solid #d7e7d8;
        padding-inline: 16px;
    }

        .search-container .form-control:focus {
            border-color: #66bb6a;
            box-shadow: none;
        }

#btnSearch {
    height: 40px;
    padding-inline: 18px;
    border-radius: 40px;
    background: #ff9800;
    border-color: #ff9800;
    color: #fff;
    font-weight: 600;
}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    flex: 1;
    padding-bottom: 80px;
}

/* =========================================
   SIDEBAR
========================================= */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left .22s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    contain: layout paint;
}

    .mobile-sidebar.active {
        left: 0;
    }

/* =========================================
   OVERLAY
========================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease;
    z-index: 9998;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* =========================================
   SIDEBAR HEADER
========================================= */

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient( 135deg, var(--green), var(--green-light));
    color: #fff;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 700;
}

.sidebar-sub {
    font-size: 12px;
    opacity: .88;
}

/* =========================================
   SIDEBAR SECTION
========================================= */

.sidebar-section-title {
    padding: 14px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* =========================================
   SIDEBAR MENU
========================================= */

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

    .sidebar-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 12px 16px;
        color: #1f1f1f;
        font-weight: 500;
        font-size: 14px;
        border-bottom: 1px solid #f2f2f2;
        transition: background .18s ease;
        contain: content;
    }

        .sidebar-menu a:hover {
            background: #edf7ee;
        }

    .sidebar-menu .arrow {
        font-size: 12px;
        color: #666;
    }

/* =========================================
   DIVIDER
========================================= */

.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf7ee;
    color: #444;
    cursor: pointer;
}

/* =========================================
   MOBILE BOTTOM BAR
========================================= */

.mobile-bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    z-index: 999;
}

    .mobile-bottom-bar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #444;
        font-weight: 500;
    }

    .mobile-bottom-bar i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .mobile-bottom-bar a.active {
        color: #145a1a;
    }


.pre-footer {
    margin-top: 40px;
    padding: 48px 0 28px;
    background: #fff;
    border-top: 3px solid var(--green);
    box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}

    /* CONTAINER */

    .pre-footer .container {
        max-width: 1200px;
        margin: auto;
        padding-inline: 16px;
    }

/* GRID */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 40px;
    align-items: start;
}

/* LINKS */

.pre-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-links-title {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
}

    .quick-links-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 42px;
        height: 3px;
        border-radius: 20px;
        background: #ff9800;
    }

.pre-links a {
    font-size: 14px;
    font-weight: 600;
    color: #0f3d14;
    line-height: 1.6;
    text-decoration: none;
}

    .pre-links a:hover,
    .pre-links a:focus-visible {
        color: #08280d;
        text-decoration: underline;
        outline: none;
    }
    .pre-links a:focus-visible,
    .footer-track-btn:focus-visible,
    .contact-item a:focus-visible {
        outline: 3px solid #145a1a;
        outline-offset: 3px;
        border-radius: 6px;
    }

/* =========================================
   CONTACT
========================================= */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #555;
}

.contact-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .contact-item a {
        color: #0f3d14;
        font-weight: 600;
        font-size: 14px;
    }

/* TRACK BUTTON */

.footer-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 40px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   SOCIAL
========================================= */

.social-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #145a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}

    .social-icon:hover {
        background: var(--green-dark);
    }
    .social-icon:focus-visible {
        outline: 3px solid #145a1a;
        outline-offset: 3px;
    }

/* =========================================
   FOOTER
========================================= */

footer {
    padding: 18px 0;
    background: linear-gradient( 90deg, var(--green-dark), var(--green));
    color: #fff;
    text-align: center;
}

    footer .small {
        margin-top: 4px;
        color: #dfeee0;
        opacity: 1;
    }


.footer-muted-text {
    color: #3f3f3f;
    font-size: 13px;
}
.pre-links a,
.contact-item a,
.footer-track-btn,
.social-icon {
    text-decoration: none;
}

/* =========================================
   MOBILE FOOTER FIX
========================================= */

@media(max-width:768px) {

    /* PRE FOOTER */

    .pre-footer {
        margin-top: 24px;
        padding: 24px 0 90px;
    }

    /* GRID */

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* LINKS */

    .pre-links {
        gap: 6px;
    }

    .quick-links-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .pre-links a {
        font-size: 12px;
        line-height: 1.4;
    }

    /* CONTACT */

    .footer-contact {
        grid-column: 1/-1;
        margin-top: 4px;
        gap: 10px;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

        .contact-item a {
            font-size: 12px;
        }

    /* TRACK */

    .footer-track-btn {
        min-height: 36px;
        padding: 0 16px;
        font-size: 12px;
        background: #145a1a;
        color: #fff;
    }

    /* SOCIAL */

    .social-section {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 10px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* FLOAT BUTTON */

    .request-plant-btn {
        bottom: 72px;
        left: 12px;
        padding: 8px 14px;
        font-size: 12px;
        z-index: 998;
    }

    /* FOOTER */

    footer {
        padding: 14px 10px 75px;
    }

        footer .small {
            font-size: 11px;
        }
}
/* =========================================
   FLOATING BUTTON
========================================= */

.request-plant-btn {
    position: fixed;
    right: 18px;
    bottom: 85px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 50px;
    background: linear-gradient( 135deg, #ffc107, #ffb300);
    color: #222;
    font-weight: 700;
    z-index: 999;
}

/* =========================================
   INSTALL CARD
========================================= */

.install-card {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: -120px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
    transition: bottom .22s ease;
    z-index: 9999;
}

    .install-card.show {
        bottom: 70px;
    }

.install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    font-size: 16px;
    cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

    .main-header {
        min-height: 56px;
    }

    .navbar {
        display: none;
    }

    .site-title {
        font-size: 16px;
    }

    .site-subtitle {
        display: none;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .user-name,
    .hide-mobile,
    .btn-light,
    .btn-outline-light {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .search-container {
        width: 100%;
    }

        .search-container .form-control {
            flex: 1;
        }

    .links-section {
        gap: 1rem;
    }

    .request-plant-btn {
        left: 15px;
        right: auto;
        bottom: 75px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .urdu {
        line-height: 1.6;
    }

    .urdu-sm {
        font-size: 11px;
    }

    .urdu-md {
        font-size: 12px;
    }

    .urdu-lg {
        font-size: 13px;
    }
}

/* =========================================
   DESKTOP
========================================= */

@media(min-width:769px) {

    .show-mobile {
        display: none !important;
    }
}
