/* =========================
   SOKOKUSINI - STYLE
   ========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

/* =========================
   HEADER - SOKOKUSINI
========================= */

.header {
    background: #087f23;
    color: white;
    min-height: 64px;
    padding: 10px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.menu-btn {
    background: transparent;
    color: white;
    border: none;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================
   MENU
========================= */

.menu {
    background: white;
    padding: 10px 15px;

    border-bottom: 1px solid #ddd;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);

    position: relative;
    z-index: 999;
}

.menu button {
    width: 100%;

    padding: 13px 14px;
    margin-bottom: 7px;

    border: none;
    border-radius: 8px;

    background: #f5f5f5;
    color: #222;

    cursor: pointer;
    text-align: left;

    font-size: 16px;
}

.menu button:hover {
    background: #e8f5e9;
    color: #087f23;
}

/* =========================
   HERO - SOKOKUSINI
========================= */

.hero {
    background: white;
    padding: 38px 18px 28px;
    text-align: center;
}

.hero h1 {
    color: #087f23;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero p {
    color: #555;
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
}


/* =========================
   SEARCH
========================= */

.search-section {
    background: white;
    padding: 8px 15px 18px;
}

#search-home {
    width: 100%;
    height: 48px;

    padding: 0 16px;

    border: 1px solid #d5d5d5;
    border-radius: 24px;

    background: #f7f7f7;

    font-size: 16px;
    color: #222;

    outline: none;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#search-home:focus {
    border-color: #087f23;
    background: white;
    box-shadow: 0 0 0 3px rgba(8, 127, 35, 0.10);
}

#search-home::placeholder {
    color: #777;
}

/* =========================
   CATEGORIES
========================= */

.categories {
    display: flex;
    gap: 9px;

    padding: 12px 15px;

    overflow-x: auto;
    overflow-y: hidden;

    background: white;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories button {
    flex: 0 0 auto;

    border: 1px solid #087f23;
    background: white;
    color: #087f23;

    padding: 10px 16px;

    border-radius: 22px;

    white-space: nowrap;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: background 0.2s ease,
                color 0.2s ease;
}

.categories button:hover {
    background: #087f23;
    color: white;
}

/* =========================
   PRODUCTS - SOKOKUSINI
========================= */

.products-section {
    padding: 18px 8px 25px;
    background: #f5f5f5;
}

.products-section h2 {
    margin-bottom: 14px;
    font-size: 20px;
    color: #222;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.product-card img {
    width: 100%;
    height: 160px;

    display: block;

    object-fit: cover;

    margin: 0;
    padding: 0;

    background: #eee;
}

.product-card {
    padding: 0;
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    font-size: 15px;
    line-height: 1.3;

    margin-bottom: 6px;

    color: #666;
}

.product-price {
    color: #087f23;
    font-size: 16px;
    font-weight: 700;

    margin-bottom: 4px;
}

.product-location {
    color: #666;
    font-size: 13px;
}

/* BUTTONS */

button {
    font-family: inherit;
}

.auth-box button,
.page button,
.popup button {
    padding: 11px 18px;
    border: none;
    border-radius: 6px;
    background: #087f23;
    color: white;
    cursor: pointer;
}

/* AUTH */

.auth-box {
    max-width: 450px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.auth-box h2 {
    margin-bottom: 20px;
    color: #087f23;
}

.auth-box input {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.auth-box > button {
    width: 100%;
    margin-bottom: 15px;
}

/* DASHBOARD */

.page {
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.page h2 {
    color: #087f23;
    margin-bottom: 10px;
}

.page button {
    margin: 5px 3px;
}

/* HIDDEN */

.hidden {
    display: none !important;
}

/* POPUP */

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.popup-content {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: #087f23;
}

.popup-content p {
    margin-bottom: 20px;
}

/* LOADING */

.loading {
    text-align: center;
    color: #777;
    padding: 30px;
}

/* MOBILE / LARGE SCREEN */

@media (min-width: 700px) {

    .products-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 50px 20px;
    }

}

.password-box {
    position: relative;
    width: 100%;
}

.password-box input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 45px;
}

.password-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 5px;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   BIDHAA ZANGU
========================= */

.bidhaa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    padding: 10px 0;
}

/* =========================
   BIDHAA CARD - HOME
========================= */

/* =========================
   BIDHAA CARD
========================= */

.bidhaa-card {
    width: 100%;
    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);

    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bidhaa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}


/* =========================
   PICHA YA BIDHAA
========================= */

.bidhaa-card img {
    width: 100%;
    height: 170px;

    display: block;

    margin: 0;
    padding: 0;

    object-fit: cover;

    background: #eee;
}


/* =========================
   TAARIFA ZA BIDHAA
========================= */

.bidhaa-info {
    padding: 10px 12px 12px;
}


/* BEI */

.bidhaa-info .bidhaa-bei {
    margin: 0 0 5px;

    font-size: 17px;
    font-weight: 700;

    color: #087f23;
}


/* JINA LA BIDHAA */


.bidhaa-info h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.3;
    color: #222;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* MAHALI */


.bidhaa-info .bidhaa-mahali {
    margin: 0 0 5px;

    font-size: 13px;
    line-height: 1.5;

    color: #555;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* =========================
   PAKIA ZAIDI
========================= */

#load-more-products {
    display: block;

    width: 100%;
    max-width: 300px;

    margin: 20px auto 5px;

    padding: 12px 20px;

    border: 1px solid #087f23;
    border-radius: 8px;

    background: white;
    color: #087f23;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease,
                color 0.2s ease;
}

#load-more-products:hover {
    background: #087f23;
    color: white;
}

#load-more-products:active {
    transform: scale(0.98);
}

/* =========================
   PRODUCT DETAILS
========================= */

#product-details {
    padding: 20px 15px 30px;
    background: #f5f5f5;
    min-height: 100vh;
}

#product-details > button {
    margin-bottom: 15px;

    padding: 10px 15px;

    border: none;
    border-radius: 7px;

    background: white;
    color: #087f23;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#product-details-content {
    max-width: 600px;
    margin: 0 auto;
}

.product-details-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.product-details-card img {
    width: 100%;
    height: auto;

    max-height: 450px;

    display: block;

    object-fit: cover;

    background: #eee;
}

.product-details-info {
   padding: 28px 18px 18px;
}

.product-details-info h2 {
    margin: 0 0 15px;

    font-size: 24px;
    line-height: 1.3;

    color: #222;
}

.product-details-info p {
    margin: 10px 0;

    font-size: 15px;
    line-height: 1.5;

    color: #555;
}

.product-details-info .bei {
    color: #087f23;

    font-size: 21px;
    font-weight: 700;
}

.product-details-info .maelezo {
    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #eee;

    white-space: pre-wrap;
}

.product-details-info .mawasiliano {
    margin-top: 20px;
}

.product-details-info .mawasiliano a {
    display: block;

    padding: 12px;

    margin-bottom: 10px;

    border-radius: 8px;

    background: #087f23;
    color: white;

    text-align: center;
    text-decoration: none;

    font-weight: 600;
}

.product-details-info .report-button {
    width: 100%;

    margin-top: 12px;

    padding: 11px;

    border: 1px solid #d9534f;
    border-radius: 8px;

    background: white;
    color: #d9534f;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.login-divider {
    text-align: center;
    margin: 15px 0;
}

/* =========================
   REPORT FORM
========================= */

.report-form {
    margin-top: 20px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 16px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.report-form h3 {
    margin-top: 0;
    margin-bottom: 16px;

    font-size: 19px;
}

.report-form label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
}

.report-form select {
    width: 100%;

    padding: 12px;

    margin-bottom: 14px;

    border: 1px solid #ccc;
    border-radius: 10px;

    background: #fff;

    font-size: 15px;

    box-sizing: border-box;
}

.report-form textarea {
    width: 100%;

    min-height: 120px;

    padding: 12px;

    margin-bottom: 14px;

    border: 1px solid #ccc;
    border-radius: 10px;

    font-size: 15px;

    line-height: 1.5;

    resize: vertical;

    box-sizing: border-box;

    font-family: inherit;
}

.report-form textarea:focus,
.report-form select:focus {
    outline: none;

    border-color: #087f23;

    box-shadow: 0 0 0 2px rgba(8, 127, 35, 0.10);
}

.report-form button {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 10px;

    background: #087f23;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.report-form button:hover {
    opacity: 0.9;
}

.bidhaa-info h3 {
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 5px;
    color: #666;
}

.bidhaa-info .bidhaa-mahali {
    color: #666;
}

/* =========================
   BIDHAA CARD - RANGI
========================= */

.bidhaa-card .bidhaa-info h3 {
    color: #666 !important;
}

.bidhaa-card .bidhaa-info .bidhaa-mahali {
    color: #666 !important;
}

.bidhaa-card .bidhaa-info .bidhaa-bei {
    color: #087f23 !important;
}

/* RANGI ZA BIDHAA CARD */

.bidhaa-card .bidhaa-info h3 {
    color: #666 !important;
}

.bidhaa-card .bidhaa-info .bidhaa-mahali {
    color: #666 !important;
}


/* RANGI ZA BIDHAA CARD */

.bidhaa-card .bidhaa-info h3 {
    color: #777  !important;
    font-weight: 500 !important;
}

.bidhaa-card .bidhaa-info .bidhaa-mahali {
    color: #777 !important;
}


/* =========================
   WEKA BIDHAA FORM
========================= */

.weka-bidhaa-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e0e0e0;
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.weka-bidhaa-form h2 {
    margin-bottom: 20px;

    color: #087f23;

    font-size: 22px;
}

.weka-bidhaa-form input,
.weka-bidhaa-form select,
.weka-bidhaa-form textarea {
    width: 100%;

    margin-bottom: 14px;
    padding: 13px 14px;

    border: 1px solid #d5d5d5;
    border-radius: 10px;

    background: #fff;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.weka-bidhaa-form input:focus,
.weka-bidhaa-form select:focus,
.weka-bidhaa-form textarea:focus {
    border-color: #087f23;

    box-shadow: 0 0 0 3px rgba(8, 127, 35, 0.10);
}

/* MAELEZO */

.weka-bidhaa-form textarea {
    min-height: 160px;

    resize: vertical;

    line-height: 1.5;

    border-radius: 14px;
}

/* PICHA */

.weka-bidhaa-form input[type="file"] {
    padding: 10px;
    background: #f8f8f8;
}

/* BUTTON */

.weka-bidhaa-form > button {
    width: 100%;

    padding: 13px 18px;

    margin-top: 4px;

    border: none;
    border-radius: 10px;

    background: #087f23;
    color: white;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: opacity 0.2s ease,
                transform 0.1s ease;
}

.weka-bidhaa-form > button:hover {
    opacity: 0.92;
}

.weka-bidhaa-form > button:active {
    transform: scale(0.98);
}

/* SIMU */

@media (max-width: 600px) {

    .weka-bidhaa-form {
        margin: 15px 8px;
        padding: 16px;

        border-radius: 14px;
    }

    .weka-bidhaa-form h2 {
        font-size: 20px;
    }

    .weka-bidhaa-form textarea {
        min-height: 180px;
    }
}

/* =========================
   MUUZAJI - PRODUCT DETAILS
========================= */

.seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 14px;
    border: 1px solid #e5e5e5;
}

.seller-profile-photo,
.seller-profile-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.seller-profile-photo {
    object-fit: cover;
    display: block;
}

.seller-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    font-size: 25px;
}

.seller-info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.seller-info-text span {
    font-size: 13px;
    color: #888;
}

.seller-info-text strong {
    font-size: 16px;
    color: #444;
    font-weight: 600;
}

/* Muuzaji anaweza kubonyezwa */
.seller-info {
    cursor: pointer;
}


/* =========================
   SELLER PROFILE
========================= */

.seller-profile-card {
    max-width: 600px;
    margin: 25px auto;
    padding: 25px 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.seller-profile-main-photo,
.seller-profile-main-placeholder {
    width: 110px;
    height: 110px;
    margin: 5px auto 15px;
    border-radius: 50%;
}

.seller-profile-main-photo {
    display: block;
    object-fit: cover;
}

.seller-profile-main-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    font-size: 50px;
}

.seller-profile-card h2 {
    margin: 8px 0 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

@media (max-width: 600px) {

    .seller-profile-card {
        margin: 20px 10px;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .seller-profile-main-photo,
    .seller-profile-main-placeholder {
        width: 95px;
        height: 95px;
    }

    .seller-profile-main-placeholder {
        font-size: 42px;
    }

    .seller-profile-card h2 {
        font-size: 21px;
    }
}

/* =========================
   USER PROFILE
========================= */

#user-profile-box {
    margin: 20px 0;
    padding: 18px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
}

#user-profile-box h3 {
    margin-bottom: 15px;
}

#my-profile-photo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-profile-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-profile-placeholder {
    font-size: 45px;
}

#my-profile-photo {
    display: block;
    width: 100%;
    margin: 10px 0 15px;
}

#user-profile-box button {
    width: 100%;
    max-width: 300px;
}

#my-profile-name {
    margin: 10px 0 15px;
    font-size: 20px;
}

/* =========================
   SELLER INFO - PRODUCT DETAILS
========================= */

#product-details .product-details-card .seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 35px;
    padding: 8px 0 0 8px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.product-details-card .seller-profile-photo,
.product-details-card .seller-profile-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
}

.product-details-card .seller-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-details-card .seller-info-text span {
    font-size: 12px;
    color: #888;
}

.product-details-card .seller-info-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.seller-product-gap {
    height: 30px;
}

/* =========================
   PRODUCT DETAILS - MPANGILIO MPYA
========================= */

#product-details-content {
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   MUUZAJI
========================= */

#product-details .product-details-card .seller-info {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;
    max-width: 100%;

    margin: 0;
    padding: 12px 12px 0;

    background: transparent;
    border: none;
    border-radius: 0;

    cursor: pointer;
}

.product-details-card .seller-profile-photo,
.product-details-card .seller-profile-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;

    border-radius: 50%;
}

.product-details-card .seller-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-details-card .seller-info-text span {
    font-size: 12px;
    color: #888;
}

.product-details-card .seller-info-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}


/* =========================
   GAPS
========================= */

.seller-product-gap {
    height: 25px;
}

.product-details-gap {
    height: 25px;
}


/* =========================
   PICHA YA BIDHAA
========================= */

.product-details-image-section {
    width: 100%;
}

.product-details-main-image {
    width: 100%;
    max-height: 450px;

    display: block;

    object-fit: cover;

    background: #eee;
}

.no-product-image {
    padding: 30px 20px;
    text-align: center;
    color: #777;
}


/* =========================
   TAARIFA ZA BIDHAA
========================= */

.product-details-info {
    padding: 0 18px;
}

.product-details-info h2 {
    margin: 0 0 12px;

    font-size: 23px;
    line-height: 1.3;

    color: #222;
}

.product-details-info p {
    margin: 8px 0;

    font-size: 15px;
    line-height: 1.5;

    color: #555;
}

.product-details-info .bei {
    color: #087f23;

    font-size: 21px;
    font-weight: 700;
}


/* =========================
   MAELEZO
========================= */

.product-details-description {
    padding: 0 18px;
}

.product-details-description h3 {
    margin: 0 0 10px;

    font-size: 17px;
    color: #333;
}

.product-details-description p {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: #555;

    white-space: pre-wrap;
}


/* =========================
   MAWASILIANO
========================= */

.product-details-card .mawasiliano {
    padding: 0 18px 20px;
}

.product-details-card .mawasiliano a,
.product-details-card .mawasiliano .share-button,
.product-details-card .mawasiliano .report-button {
    display: block;

    width: 100%;

    padding: 12px;

    margin: 0 0 10px;

    border-radius: 8px;

    text-align: center;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}


/* PIGA SIMU + UJUMBE */

.product-details-card .mawasiliano a {
    background: #087f23;
    color: white;

    text-decoration: none;
}


/* SHIRIKI */

.product-details-card .mawasiliano .share-button {
    border: 1px solid #087f23;

    background: white;
    color: #087f23;
}


/* RIPOTI */

.product-details-card .mawasiliano .report-button {
    border: 1px solid #d9534f;

    background: white;
    color: #d9534f;
}


/* Namba haipo */

.no-phone {
    margin-bottom: 10px;
    color: #777;
    text-align: center;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    #product-details {
        padding: 15px 10px 25px;
    }

    .seller-product-gap {
        height: 22px;
    }

    .product-details-gap {
        height: 22px;
    }

    .product-details-info {
        padding: 0 15px;
    }

    .product-details-description {
        padding: 0 15px;
    }

    .product-details-card .mawasiliano {
        padding: 0 15px 18px;
    }

    .product-details-info h2 {
        font-size: 21px;
    }

    .product-details-main-image {
        max-height: 400px;
    }
}

/* =========================
   KADI YA MUUZAJI
========================= */

.seller-details-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    overflow: hidden;
}

/* Muonekano wa seller ndani ya kadi yake */
.seller-details-card .seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.seller-details-card .seller-profile-photo,
.seller-details-card .seller-profile-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
}

.seller-details-card .seller-profile-photo {
    object-fit: cover;
    display: block;
}

.seller-details-card .seller-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    font-size: 25px;
}

.seller-details-card .seller-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-details-card .seller-info-text span {
    font-size: 12px;
    color: #888;
}

.seller-details-card .seller-info-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}


/* =========================
   NAFASI KATI YA KADI MBILI
========================= */

.seller-product-gap {
    height: 20px;
}


/* =========================
   KADI YA BIDHAA
========================= */

/* =========================
   BUTTONS ZA MAWASILIANO
========================= */

#product-details .mawasiliano a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin: 0 0 10px;
    border-radius: 8px;
    background: #087f23;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   KADI ZA PRODUCT DETAILS
========================= */

.product-details-info-card,
.product-details-description-card,
.product-details-actions-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    padding: 18px;
}

/* TAARIFA ZA BIDHAA */

.product-details-info-card h2 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.3;
    color: #222;
}

.product-details-info-card p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.product-details-info-card .bei {
    color: #087f23;
    font-size: 21px;
    font-weight: 700;
}


/* MAELEZO */

.product-details-description-card p {
   margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
    text-align: left;
}


/* VITENDEO */

.product-details-actions-card {
    padding: 18px;
}

.product-details-actions-card .mawasiliano {
    padding: 0;
}

.product-details-actions-card .mawasiliano a,
.product-details-actions-card .mawasiliano .share-button,
.product-details-actions-card .mawasiliano .report-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin: 0 0 10px;
    border-radius: 8px;
    text-align: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.product-details-actions-card .mawasiliano a {
    background: #087f23;
    color: #fff;
    text-decoration: none;
}

.product-details-actions-card .mawasiliano .share-button {
    border: 1px solid #087f23;
    background: #fff;
    color: #087f23;
}

.product-details-actions-card .mawasiliano .report-button {
    border: 1px solid #d9534f;
    background: #fff;
    color: #d9534f;
}

@media (max-width: 600px) {

    .product-details-info-card,
    .product-details-description-card,
    .product-details-actions-card {
        padding: 15px;
    }

    .product-details-info-card h2 {
        font-size: 21px;
    }

}

/* =========================
   SELLER PROFILE - PRODUCT CARDS
========================= */

.seller-products-grid {
    display: grid;
    gap: 18px;
}

.seller-products-grid .bidhaa-card {
    margin-bottom: 0;
}

/* =========================
   ADMIN - BIDHAA
========================= */

.admin-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    margin-bottom: 18px;
}

.admin-product-image {
    width: 100%;
    max-height: 300px;
    display: block;
    object-fit: cover;
    background: #eee;
}

.admin-no-image {
    padding: 40px 20px;
    text-align: center;
}

.admin-product-info {
    padding: 15px;
}

.admin-product-price {
    margin: 0 0 5px;
    color: #087f23;
    font-size: 19px;
    font-weight: 700;
}

.admin-product-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.admin-product-location {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.admin-product-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.admin-product-actions button {
    flex: 1;
    padding: 11px 8px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .admin-product-actions {
        flex-direction: column;
    }
}

/* =========================
   BIDHAA ZANGU
========================= */

.bidhaa-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.bidhaa-actions button {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {

    .bidhaa-actions {
        flex-direction: column;
    }

}


/* =========================
   PRODUCT IMAGE GALLERY
========================= */

.product-gallery {
    width: 100%;
    background: #fff;
}

/* =========================
   GALLERY - MISHARE NJE YA PICHA
========================= */

.product-gallery-main {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    background: #fff;
}


/* PICHA */

.product-gallery-main .product-details-main-image {
    width: 100%;
    max-height: 450px;

    display: block;

    object-fit: cover;

    background: #eee;
}


/* =========================
   MISHARE
========================= */

.product-gallery-main .gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    width: 42px;
    height: 60px;

    padding: 0;
    margin: 0;

    border: none;
    background: white;

    color: #333;

    font-size: 48px;
    font-weight: 400;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: none;
}


/* KUSHOTO */

.product-gallery-main .gallery-prev {
    left: -42px;
}


/* KULIA */

.product-gallery-main .gallery-next {
    right: -42px;
}


/* HOVER */

.product-gallery-main .gallery-arrow:hover {
    background: white;
    color: #087f23;
}


/* =========================
   SIMU
========================= */

@media (max-width: 600px) {

    .product-gallery-main .gallery-arrow {
        width: 34px;
        height: 55px;

        font-size: 42px;
    }

    .product-gallery-main .gallery-prev {
        left: -30px;
    }

    .product-gallery-main .gallery-next {
        right: -30px;
    }
}


.product-details-main-image {
    width: 100%;
    max-height: 450px;

    display: block;

    object-fit: cover;

    background: #eee;
}



/* =========================
   MISHARE YA GALLERY
========================= */

.gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 42px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    background: transparent;

    color: #333;

    font-size: 38px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    box-shadow: none;
}


/* MSHARE WA KUSHOTO */

.gallery-prev {
    left: 4px;
}


/* MSHARE WA KULIA */

.gallery-next {
    right: 4px;
}


/* Hover kwenye laptop */

.gallery-arrow:hover {
    background: transparent;
    color: #087f23;
}


/* Kubonyeza */

.gallery-arrow:active {
    background: transparent;
    transform: translateY(-50%) scale(0.90);
}


/* =========================
   SIMU
========================= */

@media (max-width: 600px) {

    .gallery-arrow {
        width: 38px;
        height: 55px;

        font-size: 36px;
    }

    .gallery-prev {
        left: 2px;
    }

    .gallery-next {
        right: 2px;
    }
}


/* Hover kwenye laptop */

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}


/* Kubonyeza */

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.92);
}


/* =========================
   COUNTER
========================= */

.product-gallery-counter {
    text-align: center;

    padding: 8px 0;

    font-size: 13px;
    font-weight: 600;

    color: #666;

    background: white;
}


/* =========================
   SIMU
========================= */

@media (max-width: 600px) {

    .product-details-main-image {
        max-height: 400px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;

        font-size: 20px;

        background: rgba(0, 0, 0, 0.40);
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .product-gallery-counter {
        padding: 7px 0;

        font-size: 12px;
    }
}


/* =========================
   GALLERY ARROWS - FINAL
========================= */

.product-gallery-main .gallery-arrow {
    position: absolute !important;

    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 40px !important;
    height: 60px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #333 !important;

    font-size: 42px !important;
    font-weight: 400 !important;

    line-height: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: none !important;

    cursor: pointer;
}

.product-gallery-main .gallery-prev {
    left: 3px !important;
}

.product-gallery-main .gallery-next {
    right: 3px !important;
}

.product-gallery-main .gallery-arrow:hover {
    background: transparent !important;
    color: #087f23 !important;
}

.product-gallery-main .gallery-arrow:active {
    background: transparent !important;
    transform: translateY(-50%) scale(0.90) !important;
}

@media (max-width: 600px) {

    .product-gallery-main .gallery-arrow {
        width: 36px !important;
        height: 55px !important;

        font-size: 40px !important;
    }

    .product-gallery-main .gallery-prev {
        left: 1px !important;
    }

    .product-gallery-main .gallery-next {
        right: 1px !important;
    }
}

/* =========================
   SOKOKUSINI FOOTER
========================= */

.site-footer {
    background: #087f23;
    color: #ffffff;
    text-align: center;
    padding: 12px 10px;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.site-footer {
    transition: opacity 0.45s ease;
}

.site-footer.footer-hidden {
    opacity: 0;
    pointer-events: none;
}


.site-footer h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.site-footer p {
    font-size: 12px;
    line-height: 1.35;
    margin: 4px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 9px 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 7px;
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.4;
}

@media (max-width: 360px) {
    .scroll-footer-bar {
        padding: 10px 8px;
        gap: 6px;
    }

    .scroll-footer-links {
        gap: 8px;
    }

    .scroll-footer-links a {
        font-size: 10px;
    }
}

.forgot-password {
    margin-top: 10px;
    text-align: center;
}

.forgot-password a {
    color: #087f23;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* KUREJESHA NENOSIRI */

#box-reset-password {
    max-width: 450px;
    margin: 25px auto;
    padding: 15px;
    text-align: center;
}

#box-reset-password h2 {
    margin-bottom: 12px;
    color: #087f23;
    font-size: 22px;
}

#box-reset-password p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

#box-reset-password input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

#box-reset-password button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    background: #087f23;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

#box-reset-password #reset-password-message {
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* ============================= */
/* MENYU YA CHINI YA SIMU */
/* ============================= */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
    z-index: 9999;
}

.bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bottom-nav-icon {
    color: #087f23;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

.bottom-nav-label {
    color: #999999;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}


/* Nafasi ili menyu isifunike bidhaa za mwisho au footer */
body {
    padding-bottom: 75px;
}

/* Ficha menyu kwenye skrini kubwa */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* Nafasi kwenye Profile ya muuzaji */

.seller-products-section > h3 {
    margin-bottom: 20px;
}

.seller-products-grid {
    margin-top: 0;
}











