/* ================================================================
   ZimLink — styles.css
   Original colors strictly preserved:
     Green:   rgb(37, 189, 37) | rgb(3, 192, 3)
     White:   #ffffff
     Dark:    rgb(6, 6, 24) | rgb(10, 10, 48)
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

:root {
    --green:      rgb(37, 189, 37);
    --green-dark: rgb(3, 192, 3);
    --green-mid:  rgb(30, 160, 30);
    --white:      #ffffff;
    --dark:       rgb(6, 6, 24);
    --dark2:      rgb(10, 10, 48);
    --border:     rgb(196, 193, 193);
    --bg-color:   white;
    --text-color: black;
    --card-bg:    white;
    --header-bg:  rgb(37, 189, 37);
    --footer-bg:  rgb(6, 6, 24);
}

/* ================================================================
   NAVBAR — sticky wrapper
   ================================================================ */
.main {
    backdrop-filter: blur(50px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 300;
    background: white;
}

/* ---- Top announcement bar ---- */
.Mainheader {
    display: flex;
    flex-direction: column;
    padding: 8px 20px;
    background-color: var(--green);
    color: white;
    text-align: center;
    gap: 2px;
}
.one, .two { font-size: 13px; padding: 2px 0; }

/* ---- Middle row ---- */
.sec {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    background: white;
}

.pad{
    margin-left: 20px;
}

/* Logo link */
.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.nav-logo-link img,
.sec > img {
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 46px;
    width: 46px;
    object-fit: cover;
}
.nav-logo-link h1,
.sec h1 {
    font-size: 20px;
    color: var(--green);
    white-space: nowrap;
    margin-right: 0;
}

/* Spacer */
.plane { display: none; }

/* ---- Search bar ---- */
.nav-search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Keep .sec input for backward compat on other pages */
.sec input,
.nav-search-input {
    flex: 1;
    width: 100%;
    height: 46px;
    border: 1px solid rgb(211, 209, 209);
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.nav-search-input:focus,
.sec input:focus { border-color: var(--green); }

/* Live dropdown */
.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(6, 6, 24, 0.14);
    z-index: 400;
    display: none;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green) #f0f0f0;
}
.nav-search-dropdown::-webkit-scrollbar { width: 6px; }
.nav-search-dropdown::-webkit-scrollbar-track { background: transparent; }
.nav-search-dropdown::-webkit-scrollbar-thumb { background: var(--green); border-radius: 6px; }
.nav-search-dropdown.open {
    display: block;
    animation: navDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes navDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-search-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa1a9;
}
.nav-search-section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.nav-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin: 2px 6px;
    border-radius: 10px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    gap: 10px;
}
.nav-search-item:hover,
.nav-search-item.active { background: #f0faf0; }
.nav-search-item:active { transform: scale(0.99); }

.nav-search-item-type {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 7px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Product suggestion rows */
.nav-search-product { gap: 12px; }
.nav-search-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f4f2;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c3c9c3;
    font-size: 16px;
}
.nav-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nav-search-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}
.nav-search-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.nav-search-item-cat {
    font-size: 11px;
    color: #9aa1a9;
}
.nav-search-item-price {
    font-weight: 800;
    color: var(--green);
    flex-shrink: 0;
    font-size: 13.5px;
}
mark.nav-search-hl {
    background: rgba(37, 189, 37, 0.18);
    color: rgb(3, 140, 3);
    font-weight: 800;
    border-radius: 3px;
    padding: 0 1px;
}

/* ── Skeleton rows while a product query is in flight ── */
.nav-search-skel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 6px;
}
.nav-search-skel-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}
.nav-search-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.nav-search-skel-line { height: 9px; border-radius: 5px; }
.nav-search-skel-line.short { width: 40%; }
.nav-search-skel-thumb,
.nav-search-skel-line {
    background: linear-gradient(110deg, #e9ecef 8%, #f4f5f6 18%, #e9ecef 33%);
    background-size: 200% 100%;
    animation: navSkelShimmer 1.4s ease-in-out infinite;
}
@keyframes navSkelShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── Empty state ── */
.nav-search-empty {
    text-align: center;
    padding: 26px 20px 22px;
}
.nav-search-empty i {
    font-size: 26px;
    color: #d5dad5;
    display: block;
    margin-bottom: 8px;
}
.nav-search-empty p {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #8a9090;
}
.nav-search-empty p strong { color: #555; }
.nav-search-empty-cta {
    display: inline-block;
    padding: 7px 16px;
    background: var(--green);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.2s;
}
.nav-search-empty-cta:hover { background: var(--green-dark); }

.nav-search-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    background: #fafcfa;
    border-radius: 0 0 13px 13px;
    transition: background 0.15s;
}
.nav-search-viewall:hover { background: #f0faf0; }

/* ---- Search button ---- */
.tony,
.nav-search-btn {
    height: 46px;
    width: auto;
    min-width: 80px;
    padding: 0 16px;
    background-color: var(--green);
    border: 1px solid var(--green);
    border-radius: 0 5px 5px 0;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}
.tony:hover, .nav-search-btn:hover { background-color: var(--green-mid); }

/* ================================================================
   HOMEPAGE PREVIEW SECTIONS
   New Arrivals · Most Viewed · Top Profiles
   ================================================================ */

/* ── Shared section wrapper ── */
.hp-section {
    padding: 0 14px 28px;
    max-width: 100%;
    overflow: hidden;
}

.hp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px 14px;
}

.hp-section-head h2 {
    font-size: 17px;
    font-weight: 800;
    color: rgb(6, 6, 24);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hp-section-head h2 .head-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hp-section-head h2 .head-icon.blue  { background: #e8f4ff; color: #2563eb; }
.hp-section-head h2 .head-icon.amber { background: #fff8e1; color: #f59e0b; }
.hp-section-head h2 .head-icon.green { background: #e8fce8; color: rgb(37,189,37); }

.hp-see-all {
    font-size: 13px;
    font-weight: 700;
    color: rgb(37,189,37);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1.5px solid rgb(37,189,37);
    border-radius: 20px;
    transition: all 0.2s;
}
.hp-see-all:hover,
.hp-see-all:active {
    background: rgb(37,189,37);
    color: white;
}

/* ── Horizontal scroll track ── */
.hp-scroll-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hp-scroll-track::-webkit-scrollbar { display: none; }

/* ── Product card (compact, scroll version) ── */
.hp-prod-card {
    flex-shrink: 0;
    width: calc(50vw - 22px);   /* ~2 per screen on mobile */
    max-width: 220px;
    min-width: 150px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    animation: hp-fadein 0.4s ease both;
}
.hp-prod-card:active { transform: scale(0.97); }

/* entrance animation, staggered by JS */
@keyframes hp-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Product image ── */
.hp-prod-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}
.hp-prod-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.hp-prod-card:hover .hp-prod-img img { transform: scale(1.04); }

.hp-prod-img .hp-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #c0c0c0; font-size: 28px;
}

/* Badge on image */
.hp-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.hp-badge-new  { background: rgb(37,189,37); color: white; }
.hp-badge-hot  { background: #ef4444; color: white; }
.hp-badge-sold { background: #6b7280; color: white; }

/* ── Product info ── */
.hp-prod-info {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-prod-cat {
    font-size: 10px;
    font-weight: 700;
    color: rgb(37,189,37);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.hp-prod-name {
    font-size: 13px;
    font-weight: 700;
    color: rgb(6,6,24);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-prod-price {
    font-size: 15px;
    font-weight: 800;
    color: rgb(37,189,37);
    margin-top: auto;
    padding-top: 6px;
}
.hp-prod-price span { font-size: 11px; font-weight: 600; }

.hp-prod-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.hp-prod-seller {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.hp-prod-views {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── "View More" ghost card ── */
.hp-viewmore-card {
    flex-shrink: 0;
    width: calc(50vw - 22px);
    max-width: 220px;
    min-width: 150px;
    background: #f4f4f4;
    border-radius: 14px;
    overflow: hidden;
    border: 2px dashed #d0d0d0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
    padding: 20px 10px;
    min-height: 160px;
    transition: all 0.2s;
    animation: hp-fadein 0.4s ease 0.3s both;
}
.hp-viewmore-card:hover,
.hp-viewmore-card:active {
    background: #eafcea;
    border-color: rgb(37,189,37);
}
.hp-viewmore-icon {
    width: 44px; height: 44px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: rgb(37,189,37);
    box-shadow: 0 2px 8px rgba(37,189,37,0.15);
}
.hp-viewmore-label {
    font-size: 13px;
    font-weight: 800;
    color: #555;
    text-align: center;
    line-height: 1.3;
}
.hp-viewmore-card:hover .hp-viewmore-label,
.hp-viewmore-card:active .hp-viewmore-label { color: rgb(37,189,37); }

/* ── Skeleton loading ── */
.hp-skel-card {
    flex-shrink: 0;
    width: calc(50vw - 22px);
    max-width: 220px;
    min-width: 150px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
}
.hp-skel-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.4s ease-in-out infinite;
}
.hp-skel-line {
    height: 12px;
    border-radius: 6px;
    margin: 10px 10px 6px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.4s ease-in-out infinite;
}
@keyframes hp-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── Section divider ── */
.hp-divider {
    height: 8px;
    background: #f4f6f8;
    margin: 0;
}

/* ================================================================
   TOP PROFILES SECTION
   ================================================================ */
.hp-profiles-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hp-profiles-track::-webkit-scrollbar { display: none; }

.hp-profile-card {
    flex-shrink: 0;
    width: calc(38vw - 10px);
    max-width: 160px;
    min-width: 130px;
    background: white;
    border-radius: 16px;
    padding: 16px 12px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: hp-fadein 0.4s ease both;
    position: relative;
}
.hp-profile-card:active { transform: scale(0.97); }

/* Rank badge */
.hp-rank {
    position: absolute;
    top: 10px; left: 10px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
}
.hp-rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 6px rgba(245,158,11,0.4); }
.hp-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 2px 6px rgba(100,116,139,0.4); }
.hp-rank-3 { background: linear-gradient(135deg, #cd7f32, #b45309); box-shadow: 0 2px 6px rgba(180,83,9,0.4); }
.hp-rank-n { background: rgb(37,189,37); }

/* Avatar */
.hp-avatar-wrap {
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgb(37,189,37);
    background: #f0f9f0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.hp-avatar-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hp-avatar-placeholder {
    font-size: 24px;
    color: rgb(37,189,37);
}

.hp-profile-name {
    font-size: 13px;
    font-weight: 800;
    color: rgb(6,6,24);
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

.hp-profile-role {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hp-profile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #f59e0b;
    margin-top: 2px;
}
.hp-profile-rating i { font-size: 12px; }

.hp-profile-reviews {
    font-size: 10px;
    color: #aaa;
    margin-top: -4px;
}

.hp-profile-sales {
    font-size: 11px;
    color: rgb(37,189,37);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* View more profile card */
.hp-profile-viewmore {
    flex-shrink: 0;
    width: calc(38vw - 10px);
    max-width: 160px;
    min-width: 130px;
    background: #f4f4f4;
    border-radius: 16px;
    padding: 16px 10px 14px;
    border: 2px dashed #d0d0d0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
    transition: all 0.2s;
    animation: hp-fadein 0.4s ease 0.4s both;
    min-height: 160px;
}
.hp-profile-viewmore:hover,
.hp-profile-viewmore:active {
    background: #eafcea;
    border-color: rgb(37,189,37);
}
.hp-profile-viewmore .hp-viewmore-label { font-size: 12px; }

/* Skeleton profile cards */
.hp-skel-profile {
    flex-shrink: 0;
    width: calc(38vw - 10px);
    max-width: 160px;
    min-width: 130px;
    background: white;
    border-radius: 16px;
    padding: 16px 12px;
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hp-skel-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.4s ease-in-out infinite;
}
.hp-skel-pill {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.4s ease-in-out infinite;
}

/* ================================================================
   RESPONSIVE — on wider screens show 3 cards
   ================================================================ */
@media (min-width: 480px) {
    .hp-prod-card,
    .hp-viewmore-card,
    .hp-skel-card {
        width: calc(33vw - 14px);
        max-width: 200px;
    }
    .hp-profile-card,
    .hp-profile-viewmore,
    .hp-skel-profile {
        width: calc(30vw - 10px);
        max-width: 150px;
    }
}

@media (min-width: 768px) {
    .hp-section { padding: 0 24px 32px; }
    .hp-prod-card,
    .hp-viewmore-card,
    .hp-skel-card {
        width: 200px;
        max-width: 200px;
    }
    .hp-profile-card,
    .hp-profile-viewmore,
    .hp-skel-profile {
        width: 155px;
        max-width: 155px;
    }
}

/* Keep old .btn001 for any pages still using it */
.btn001 {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 46px;
}

/* ---- Cart icon in header ---- */
.nav-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.nav-cart-icon:hover { background: var(--green); color: white; }
.nav-cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid white;
}
.nav-cart-icon:hover .nav-cart-count { background: var(--dark); }

/* ---- Notification bell in header ---- */
.nav-bell-wrap {
    position: relative;
    flex-shrink: 0;
}

.nav-bell-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    border: none;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    /* Reset browser default <button> chrome — without this, the UA
       stylesheet's own font/padding/line-height fights the flex
       centering above and the bell renders off-center / oddly sized
       depending on browser, unlike the cart icon (an <a> tag, which
       has minimal default styling and never had this problem). */
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.nav-bell-icon svg {
    display: block;
    pointer-events: none;
}
.nav-bell-icon:hover { background: var(--green); color: white; }
.nav-bell-icon:focus-visible { box-shadow: 0 0 0 2px var(--green); }
.nav-bell-count {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid white;
}

/* ---- Notification dropdown panel ---- */
.notif-panel {
    position: absolute;
    top: 52px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    border: 1px solid #eee;
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.notif-panel-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}
.notif-panel-mark-read {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
}
.notif-panel-mark-read:hover { text-decoration: underline; }
.notif-panel-list {
    overflow-y: auto;
    flex: 1;
}
.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
.notif-row {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f6f6f6;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.notif-row:hover { background: #fafafa; }
.notif-row.unread { background: #f3fdf3; }
.notif-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-soft, #e8f9e8);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.notif-row-body { flex: 1; min-width: 0; }
.notif-row-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}
.notif-row-text {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-row-time {
    font-size: 11px;
    color: #aab1bb;
    margin-top: 3px;
}
.notif-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    position: absolute;
    top: 16px;
    right: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .notif-panel { right: 12px; left: 12px; width: auto; top: 64px; }
}

/* ---- Auth buttons (logged out) ---- */
.nav-auth-btns { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.muna {
    height: 46px;
    width: 90px;
    background-color: white;
    border: 1px solid var(--green);
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.muna:hover { background: #f0f9f0; }

.juni {
    height: 46px;
    width: 90px;
    background-color: var(--green);
    border: 1px solid var(--green);
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.juni:hover { background-color: var(--green-mid); }

.btn002 {
    color: var(--green);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
}
.btn003 {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
}

/* ---- User button (logged in) ---- */
.nav-user-area { position: relative; flex-shrink: 0; }

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 5px;
    border: 1.5px solid var(--green);
    border-radius: 22px;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-user-btn:hover { background: #f0f9f0; }

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

#navUsername {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-chev { color: #888; transition: transform 0.2s; }
.nav-user-btn.open .nav-chev { transform: rotate(180deg); }

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 170px;
    z-index: 400;
    display: none;
    overflow: hidden;
}
.nav-user-menu.open { display: block; animation: menuDrop 0.18s ease; }

@keyframes menuDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-menu-item {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: sans-serif;
    transition: background 0.15s, color 0.15s;
}
.nav-menu-item:hover { background: #f0f9f0; color: var(--green); }
.nav-menu-divider { height: 1px; background: #eee; }
.nav-menu-logout { color: #e53935; }
.nav-menu-logout:hover { background: #fff0f0 !important; color: #e53935 !important; }

/* ---- Hamburger (mobile) ---- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    width: 20px;
    background: #333;
    border-radius: 2px;
    transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Bottom nav links ---- */
.secheader {
    padding: 0 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    background: white;
    overflow-x: auto;
}

.Tadi {
    text-decoration: none;
    color: black;
    padding: 11px 14px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s, background 0.2s;
}
.Tadi:hover { color: var(--green); background: #f7fff7; }

.sandy {
    text-decoration: none;
    color: var(--green);
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.sandy:hover { background: #f0f9f0; }

/* Cart badge in secheader */
.nav-cart-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-cart-badge {
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Mobile menu extras (injected by navbar.js) */
.nav-mobile-search {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding: 10px 14px;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
}
.nav-mobile-search .nav-search-dropdown {
    top: calc(100% + 3px);
    left: 14px;
    right: 14px;
}
.nav-mobile-search input {
    flex: 1;
    height: 40px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.nav-mobile-search button {
    height: 40px;
    padding: 0 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 13px;
    cursor: pointer;
}
.nav-mobile-auth {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #eee;
    width: 100%;
}
.nav-mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.mob-signin { border: 1px solid var(--green); color: var(--green); background: white; }
.mob-join   { background: var(--green); color: white; }

/* ================================================================
   BODY CONTENT
   ================================================================ */
.hes {
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(204, 211, 204, 0.219);
}
.hes h1 { margin-bottom: 12px; }
.hes p   { font-size: 15px; line-height: 1.6; }

.Parags {
    padding: 20px;
    background-color: rgba(204, 211, 204, 0.219);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.Parags a { text-decoration: none; color: black; }

.p2 {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: white 3px solid;
    border-radius: 15px;
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.p2:hover { box-shadow: 0 6px 20px rgba(37,189,37,0.15); transform: translateY(-3px); }
.p2 img   { border: white 1px solid; border-radius: 10px; height: 50px; width: 50px; }
.p2 h2    { padding-top: 15px; font-size: 20px; }
.p2 p     { padding-top: 10px; font-size: 16px; }

/* CTA section */
.dist   { background-color: rgba(204, 211, 204, 0.219); padding: 30px; }
.final {
    margin: 0 auto 50px;
    text-align: center;
    border: var(--green) 5px solid;
    border-radius: 10px;
    background-color: var(--green-dark);
    color: white;
    width: 90%;
    max-width: 800px;
    padding: 25px 20px;
}
.final h1 { padding-bottom: 15px; }
.btn      { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; }

.last {
    width: 140px;
    height: 65px;
    border: var(--green-dark) 2px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.last:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.final a {
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#t1 { background-color: white; }
#t4 { color: var(--green-dark); }
#t2 { background-color: yellow; }
#t5 { color: black; }
#t3 { border: white 3px solid; background-color: var(--green-dark); width: 170px; }
#t6 { color: white; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 20px;
}

.maggie {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 12px;
}
.maggie img { border: 1px solid var(--dark2); border-radius: 10px; height: 50px; width: 50px; }
.maggie h2  { padding-left: 0; font-size: 22px; }

.pr { width: 100%; padding-bottom: 20px; line-height: 1.6; font-size: 14px; color: #aaa; }

/* ---- Social media buttons ---- */
.btn2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 28px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    color: white;
}
.social-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.facebook-btn  { background-color: #1877F2; }
.instagram-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.twitter-btn   { background-color: #000000; }
.whatsapp-btn  { background-color: #25D366; }

/* Footer lower sections */
.footer-off { width: 100%; padding-bottom: 30px; }
.footer-off h2  { padding-bottom: 15px; font-size: 16px; }

.go {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.footer-off img { border: 1px solid var(--dark2); border-radius: 10px; height: 30px; width: 30px; }

.payment { padding: 10px 0 20px; }
.payment h2 { margin-bottom: 15px; font-size: 16px; }
.why { display: flex; flex-wrap: wrap; gap: 10px; }
.why p { padding: 8px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; font-size: 13px; }

.align h2 { padding-bottom: 15px; }
.align a {
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 12px;
    margin: 4px;
    display: inline-block;
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.2s;
}
.align a:hover { background: rgba(255,255,255,0.08); }

.second-footer { display: flex; flex-wrap: wrap; gap: 30px; padding: 20px 0; }
.links, .contacts, .info { flex: 1; min-width: 180px; }
.links h2, .contacts h2, .info h2 { font-size: 16px; margin-bottom: 12px; }
.links a { display: block; margin-bottom: 6px; }

#cool  { padding-top: 0; }
.end   { margin-bottom: 10px; font-size: 14px; }

.woww { margin-bottom: 20px; display: flex; gap: 0; }
.woww input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    background: rgba(255,255,255,0.07);
    color: white;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
}
.woww input::placeholder { color: #888; }
.woww button {
    background-color: var(--dark2);
    color: white;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.woww button:hover { background: var(--green); border-color: var(--green); }

.finalfooter {
    padding: 16px;
    background-color: var(--green-dark);
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

/* ================================================================
   RESPONSIVE — MOBILE  (max 768px)
   ================================================================ */
@media (max-width: 768px) {

    .sec {
        flex-wrap: nowrap;
        padding: 10px 12px;
        gap: 8px;
    }

    /* Hide search, auth, cart from middle row on mobile */
    .nav-search-wrap { display: none; }
    .nav-auth-btns   { display: none; }
    .nav-user-area   { display: none; }
    .nav-cart-icon   { display: none; }
    .plane           { display: none !important; }

    /* Show hamburger */
    .nav-hamburger { display: flex; }

    /* Logo stays visible */
    .nav-logo-link h1 { font-size: 17px; }
    .nav-logo-link img { height: 36px; width: 36px; }

    /* Secheader becomes slide-down mobile menu */
    .secheader {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        padding: 0;
        border-top: 2px solid var(--green);
    }
    .secheader.mobile-open { display: flex; }

    .Tadi, .sandy {
        padding: 14px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        justify-content: flex-start;
    }

    /* Body */
    .Parags { flex-direction: column; align-items: center; }
    .p2 { min-width: 100%; }
    .btn { flex-direction: column; align-items: center; }
    .last { width: 90%; }
    #t3   { width: 90%; }

    /* Footer */
    .btn2 { flex-direction: column; }
    .social-btn { width: 100%; justify-content: center; }
    .second-footer { flex-direction: column; gap: 20px; }
    .woww { flex-direction: column; }
    .woww input  { border-right: 1px solid rgba(255,255,255,0.2); border-radius: 4px; margin-bottom: 6px; }
    .woww button { border-radius: 4px; }
}

/* ================================================================
   RESPONSIVE — TABLET  (769px–1024px)
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .sec { flex-wrap: wrap; }
    .nav-search-wrap { min-width: 240px; }
    .muna, .juni { width: 82px; font-size: 14px; }
    #navUsername { max-width: 80px; }
    .p2 { min-width: 250px; }
    .final { width: 95%; }
    .btn2 { flex-wrap: wrap; }
}

/* ================================================================
   RESPONSIVE — DESKTOP  (1025px+)
   ================================================================ */
@media (min-width: 1025px) {
    .Mainheader { flex-direction: row; justify-content: space-between; padding: 8px 30px; }
    .sec        { padding: 10px 30px; }
    .secheader  { padding: 0 30px; }
    .plane      { display: block; flex: 1; }
}

/* ================================================================
   TRANSACTION / ALERT STYLES  (unchanged from original)
   ================================================================ */
.transaction-card {
    background: white; border-radius: 12px; padding: 20px;
    margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #25bd25;
}
.transaction-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.transaction-id     { font-family: monospace; color: #666; font-size: 14px; }
.transaction-date   { color: #888; font-size: 14px; }
.transaction-body   { display: flex; justify-content: space-between; align-items: center; }
.transaction-amount { font-size: 24px; font-weight: bold; color: #25bd25; }
.transaction-status { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.transaction-status.pending_delivery  { background: #fff3cd; color: #856404; }
.transaction-status.delivery_confirmed{ background: #d4edda; color: #155724; }
.transaction-status.completed         { background: #cce5ff; color: #004085; }

.btn-confirm {
    background: linear-gradient(135deg, #25bd25, #1ea01e);
    color: white; border: none; padding: 10px 20px;
    border-radius: 20px; font-weight: 600; cursor: pointer;
    margin-top: 10px; width: 100%;
}
.no-transactions { text-align: center; padding: 40px 20px; color: #666; }
.no-transactions i { font-size: 50px; color: #ccc; margin-bottom: 20px; }

.alert-success, .alert-error {
    position: fixed; top: 20px; right: 20px;
    padding: 15px 20px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    z-index: 10000; animation: slideIn 0.3s ease;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}


