/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== BASE ==================== */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #faf7f0;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #14532d;
}

a {
    color: #166534;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px;
}

/* ==================== HEADER ==================== */
h1 {
    font-size: 48px;
    font-weight: 800;
    color: #14532d;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

.tagline {
    font-size: 17px;
    color: #525252;
    margin-bottom: 30px;
}

/* ==================== FORMS ==================== */
form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background-color: white;
    transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #166534;
}

input[type="text"] {
    flex: 1;
    min-width: 200px;
}

select {
    cursor: pointer;
    color: #1a1a1a;
}

select:invalid {
    color: #888;
}

button {
    padding: 14px 28px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #14532d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

button:hover {
    background-color: #166534;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.btn-call {
    background-color: #14532d;
    color: white;
}

.btn-edit {
    background-color: #2563eb;
    color: white;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

/* ==================== LINKS ==================== */
.back-link {
    display: inline-block;
    color: #525252;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: #14532d;
}

.back-links {
    margin-bottom: 20px;
}

.back-links .back-link {
    margin-right: 20px;
}

.list-cta {
    margin-top: 25px;
    font-size: 15px;
    color: #525252;
}

.list-cta a {
    color: #14532d;
    font-weight: 600;
}

.list-cta a:hover {
    text-decoration: underline;
}

/* ==================== CATEGORY BADGES ==================== */
.category-badge {
    display: inline-block;
    background-color: #dcfce7;
    color: #14532d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.category-list {
    margin-bottom: 20px;
}

/* ==================== FEATURED GRID ==================== */
.featured-heading {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 24px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.featured-card {
    display: block;
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.15);
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured-no-photo {
    width: 100%;
    height: 200px;
    background-color: #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.featured-info {
    padding: 16px;
}

.featured-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #14532d;
}

.featured-cats {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.featured-loc {
    font-size: 12px;
    color: #888;
}

/* ==================== SELLER CARDS ==================== */
.seller-card {
    background-color: white;
    padding: 20px 24px;
    margin-bottom: 15px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
}

.seller-card h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

.seller-card h3 a {
    color: #14532d;
}

.seller-card h3 a:hover {
    text-decoration: underline;
}

.seller-card p {
    margin-bottom: 5px;
    color: #555;
}

.seller-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ==================== SELLER DETAIL ==================== */
.seller-detail {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    margin-bottom: 20px;
}

.seller-detail h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.location {
    color: #666;
    margin-bottom: 15px;
}

.description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== ITEMS GRID ==================== */
.items-heading {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 22px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.item-card {
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    transition: transform 0.15s ease;
}

.item-card:hover {
    transform: translateY(-2px);
}

.item-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.no-photo {
    width: 100%;
    height: 180px;
    background-color: #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.item-info {
    padding: 15px;
}

.item-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #14532d;
}

.item-material {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #14532d;
    margin-bottom: 4px;
}

.item-color {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.item-price {
    font-size: 17px;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 6px;
}

.item-desc {
    font-size: 13px;
    color: #666;
}

.out-of-stock {
    opacity: 0.55;
}

.out-of-stock-label {
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
}

/* ==================== MATCHING GRID (search results) ==================== */
.results-heading {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 22px;
}

.matching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.mini-product {
    background-color: #fafaf5;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0e5;
}

.mini-product img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.no-photo-small {
    width: 100%;
    height: 120px;
    background-color: #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
}

.mini-product-info {
    padding: 8px 10px;
}

.mini-material {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #14532d;
}

.mini-color {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.mini-price {
    font-size: 13px;
    font-weight: 700;
    color: #14532d;
}

/* ==================== LISTING FORM ==================== */
.listing-form {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.listing-form label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #14532d;
}

.listing-form label input[type="checkbox"] {
    margin-right: 6px;
}

.listing-form button {
    margin-top: 25px;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.category-group h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #166534;
}

.category-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.password-field {
    display: flex;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.toggle-btn {
    padding: 12px 20px;
    background-color: #e5e5e5;
    color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.toggle-btn:hover {
    background-color: #d4d4d4;
    transform: none;
}

/* ==================== ADMIN ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logout-btn {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.admin-seller-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    gap: 20px;
}

.admin-seller-info {
    flex: 1;
    min-width: 0;
}

.admin-seller-info h3 {
    margin-bottom: 6px;
    font-size: 17px;
    color: #14532d;
}

.admin-seller-cats {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-seller-loc {
    color: #888;
    font-size: 13px;
}

.admin-seller-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-section {
    background-color: white;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
}

.admin-section summary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-size: 17px;
    color: #14532d;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-product-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(20, 83, 45, 0.06);
}

.admin-product-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-product-info {
    flex: 1;
}

.admin-product-info h4 {
    margin-bottom: 4px;
    color: #14532d;
}

.admin-product-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

/* ==================== MISC ==================== */
.results-heading {
    margin-top: 30px;
    margin-bottom: 20px;
}
/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    padding: 70px 20px 80px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
    margin-bottom: 12px;
    line-height: 1;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #bef264;
    margin-bottom: 35px;
}

.hero-search {
    display: flex;
    gap: 10px;
    background-color: white;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-search input[type="text"] {
    border: none;
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
}

.hero-search input[type="text"]:focus {
    outline: none;
    border: none;
}

.hero-search button {
    padding: 15px 32px;
    background-color: #14532d;
}

.hero-cta {
    margin-top: 25px;
    font-size: 15px;
}

.hero-cta a {
    color: #bef264;
    font-weight: 600;
}

.hero-cta a:hover {
    text-decoration: underline;
}

/* ==================== SECTIONS ==================== */
.section-heading {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 18px;
    color: #14532d;
}

/* ==================== CATEGORY PILLS ==================== */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill {
    display: inline-block;
    background-color: #dcfce7;
    color: #14532d;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.pill:hover {
    background-color: #bef264;
    transform: translateY(-2px);
}
.hero-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 88px;
    font-weight: 800;
    color: white;
    letter-spacing: -3px;
    margin-bottom: 12px;
    line-height: 1;
}
/* ==================== MOBILE ==================== */
@media (max-width: 600px) {
    .hero {
        padding: 14px 20px 18px;
    }

    .hero-logo {
        font-size: 40px;
        letter-spacing: -1px;
        margin-bottom: 2px;
    }

    .hero-tagline {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hero-search {
        flex-direction: column;
        gap: 6px;
        padding: 5px;
        border-radius: 10px;
    }

    .hero-search input[type="text"] {
        padding: 11px 14px;
        font-size: 15px;
    }

    .hero-search button {
        width: 100%;
        padding: 11px;
        font-size: 15px;
    }

    .hero-cta {
        font-size: 13px;
        margin-top: 10px;
    }

    .container {
        padding: 10px 16px 20px;
    }

    .container > .section-heading:first-child {
        margin-top: 0;
    }

    .section-heading {
        font-size: 19px;
        margin-top: 14px;
        margin-bottom: 12px;
    }

    .category-pills {
        gap: 8px;
    }

    .pill {
        padding: 9px 18px;
        font-size: 14px;
        font-weight: 700;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-card img,
    .featured-no-photo {
        height: 140px;
    }

    .featured-info {
        padding: 12px;
    }

    .featured-info h3 {
        font-size: 14px;
    }

    .featured-cats {
        font-size: 12px;
    }

    .featured-loc {
        font-size: 11px;
    }

    .search-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .search-form input[type="text"],
    .search-form select,
    .search-form button {
        width: 100%;
        padding: 11px 14px;
        font-size: 14px;
    }

      .search-form select {
        appearance: none;
        background-image: url("data:image/svg+xml...");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 36px;
        color: #1a1a1a;
    }

    .results-heading {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 14px;
    }

    .seller-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .seller-card h3 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .seller-meta {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .matching-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mini-product img,
    .no-photo-small {
        height: 200px;
    }

    .mini-material {
        font-size: 14px;
    }

    .mini-color {
        font-size: 13px;
    }

    .mini-price {
        font-size: 15px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-checkboxes {
        grid-template-columns: 1fr;
    }

    .admin-seller-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-seller-actions {
        width: 100%;
        margin-top: 12px;
    }
}

/* ==================== IMAGE VIEWER ==================== */
.image-viewer {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    cursor: zoom-out;
}

.image-viewer::backdrop {
    background-color: rgba(0, 0, 0, 0.92);
}

.image-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #14532d;
    color: #dcfce7;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(220, 252, 231, 0.15);
}

.footer-brand h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #bef264;
    font-size: 14px;
}

.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #bef264;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: #dcfce7;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #bef264;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(220, 252, 231, 0.6);
}

@media (max-width: 600px) {
    .site-footer {
        padding: 30px 16px 16px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12px;
    }
}
/* ==================== ABOUT PAGE ==================== */
.about-hero {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    padding: 60px 20px;
    text-align: center;
}

.about-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.about-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #bef264;
    font-weight: 500;
}

.about-content {
    padding: 40px 0;
    max-width: 720px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    color: #14532d;
    margin-top: 40px;
    margin-bottom: 16px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.about-content a {
    color: #14532d;
    font-weight: 600;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0 40px;
}

.about-step {
    background-color: white;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.08);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #dcfce7;
    color: #14532d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 14px;
}

.about-step h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: #14532d;
    margin-bottom: 8px;
}

.about-step p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .about-hero {
        padding: 40px 20px;
    }

    .about-hero h1 {
        font-size: 34px;
    }

    .about-tagline {
        font-size: 16px;
    }

    .about-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .about-steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}