/* =========================================================
   NSBM MARKETPLACE - CLEAN STYLE SHEET
   ========================================================= */

/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f9;
    color: #222;
    line-height: 1.5;
}

a {
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================
   NAVIGATION
========================= */

.site-header {
    background: #006b3c;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.site-header nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 800px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header nav {
        width: 100%;
        flex-direction: column;
    }

    .site-header nav a {
        width: 100%;
    }
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #006b3c;
    color: white;
    margin-top: 50px;
    padding: 25px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin: 5px 0;
}


/* =========================================================
   HOMEPAGE
========================================================= */

.market-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.market-hero {
    background: linear-gradient(135deg, #006837 0%, #004d28 100%);
    color: white;
    padding: 90px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.market-hero .hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.market-hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin: 0 0 20px;
    color: white;
}

.market-hero h1 span {
    display: block;
    color: #8cc63f;
}

.market-hero p {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.hero-primary-btn {
    background: #8cc63f;
    color: #1f2937;
}

.hero-primary-btn:hover {
    background: #7ab332;
    transform: translateY(-2px);
}

.hero-secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-secondary-btn:hover {
    background: white;
    color: #006837;
}

.quick-section {
    padding: 75px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.section-heading span {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 34px;
    margin: 8px 0;
}

.section-heading p {
    color: #6b7280;
    margin: 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.quick-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: 12px;
    font-size: 25px;
    margin-bottom: 18px;
}

.quick-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.quick-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-card a {
    color: #006837;
    font-weight: bold;
    text-decoration: none;
}

.quick-card a:hover {
    text-decoration: underline;
}

.market-info {
    padding: 20px 0 80px;
}

.info-card {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 45px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.info-content h2 {
    font-size: 34px;
    margin: 10px 0 15px;
    color: #1f2937;
}

.info-content p {
    color: #6b7280;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-button {
    display: inline-block;
    background: #006837;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.info-button:hover {
    background: #004d28;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-features div {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-features strong {
    font-size: 24px;
}

.info-features span {
    font-weight: bold;
    color: #374151;
}


/* =========================================================
   PRODUCTS PAGE
========================================================= */

.products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.products-header {
    text-align: center;
    margin-bottom: 35px;
}

.products-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.products-header p {
    color: #666;
}

.filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 7px;
    font-weight: bold;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-buttons button {
    padding: 10px 18px;
    background: #006b3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filter-buttons button:hover {
    opacity: 0.9;
}

.filter-buttons a {
    padding: 10px 15px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
}

.products-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-section-header h2 {
    margin: 0;
}

.products-section-header span {
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 220px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #777;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.product-category {
    color: #666;
    font-size: 14px;
}

.product-price {
    font-size: 21px;
    font-weight: bold;
    margin: 12px 0;
}

.view-product-button {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 11px;
    background: #006b3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.view-product-button:hover {
    opacity: 0.9;
}

.no-products {
    text-align: center;
    background: white;
    padding: 50px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.no-products a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #006b3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .products-header h1 {
        font-size: 30px;
    }

    .products-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-buttons button,
    .filter-buttons a {
        flex: 1;
        text-align: center;
    }
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-details-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.product-details-image {
    width: 100%;
    min-height: 400px;
    background: #f1f1f1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-details-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-no-image {
    color: #777;
    font-size: 18px;
}

.product-details-info {
    padding: 10px 0;
}

.details-category {
    color: #666;
    font-size: 15px;
    margin-bottom: 8px;
}

.product-details-info h1 {
    font-size: 36px;
    margin: 0 0 15px;
}

.details-price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.details-description {
    margin-bottom: 25px;
}

.details-description h3 {
    margin-bottom: 8px;
}

.details-description p {
    line-height: 1.6;
    color: #555;
}

.details-info-list {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin-bottom: 25px;
}

.add-cart-section {
    padding-top: 5px;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-controls label {
    font-weight: bold;
}

.cart-controls input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.add-cart-button {
    padding: 11px 20px;
    background: #006b3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.add-cart-button:hover {
    opacity: 0.9;
}

.cart-message {
    margin-top: 15px;
    font-weight: bold;
}

.out-of-stock {
    color: #b02a37;
    font-weight: bold;
}

.seller-section {
    margin-top: 35px;
}

.seller-section h2 {
    margin-bottom: 15px;
}

.seller-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.seller-card p {
    margin: 10px 0;
}

.back-products {
    margin-top: 25px;
}

.back-products a {
    display: inline-block;
    padding: 10px 18px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

@media (max-width: 800px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .product-details-image {
        min-height: 300px;
    }

    .product-details-image img {
        height: 300px;
    }

    .product-details-info h1 {
        font-size: 28px;
    }

    .details-price {
        font-size: 24px;
    }
}


/* =========================================================
   CART
========================================================= */

.cart-page {
    min-height: 60vh;
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-title {
    text-align: center;
    margin-bottom: 35px;
}

.cart-title h1 {
    margin-bottom: 10px;
}

.cart-title p {
    color: #666;
}

.cart-loading,
.cart-message-box {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 25px;
    align-items: center;
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.cart-image {
    width: 110px;
    height: 110px;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-info h3 {
    margin: 0 0 10px;
}

.cart-price {
    font-size: 18px;
    font-weight: bold;
    color: #006b3c;
}

.stock-info {
    color: #666;
    font-size: 14px;
}

.cart-quantity {
    text-align: center;
}

.cart-quantity label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quantity-controls input {
    width: 65px;
    padding: 9px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.update-btn {
    padding: 9px 12px;
    background: #006b3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.update-btn:hover {
    opacity: 0.9;
}

.cart-actions {
    text-align: right;
}

.cart-subtotal {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.remove-btn {
    padding: 8px 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.remove-btn:hover {
    opacity: 0.9;
}

.cart-summary {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.cart-summary > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.cart-summary strong {
    font-size: 26px;
    color: #006b3c;
}

.cart-summary-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.continue-shopping-btn,
.checkout-btn {
    display: inline-block;
    padding: 11px 20px;
    text-decoration: none;
    border-radius: 6px;
}

.continue-shopping-btn {
    background: #eee;
    color: #333;
}

.checkout-btn {
    background: #006b3c;
    color: white;
}

.continue-shopping-btn:hover,
.checkout-btn:hover {
    opacity: 0.9;
}

.empty-cart {
    background: white;
    text-align: center;
    padding: 70px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.empty-cart-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 25px;
}

@media (max-width: 800px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-image {
        margin: 0 auto;
    }

    .quantity-controls {
        justify-content: center;
    }

    .cart-actions {
        text-align: center;
    }

    .cart-summary > div:first-child {
        flex-direction: column;
        gap: 10px;
    }

    .cart-summary-buttons {
        justify-content: center;
    }
}


/* =========================================================
   ORDER SUCCESS
========================================================= */

.success-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.success-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.success-box {
    background: white;
    padding: 50px 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5ee;
    color: #006b3c;
    font-size: 50px;
    font-weight: bold;
}

.success-box h1 {
    margin-bottom: 15px;
    color: #006b3c;
    font-size: 32px;
}

.success-message {
    max-width: 500px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

.order-number {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin: 30px auto;
    padding: 15px 30px;
    background: #f5f7f9;
    border-radius: 10px;
}

.order-number span {
    color: #777;
    font-size: 14px;
}

.order-number strong {
    color: #333;
    font-size: 22px;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.success-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.success-btn:hover {
    opacity: 0.85;
}

.primary-btn {
    background: #006b3c;
    color: white;
}

.secondary-btn {
    background: #333;
    color: white;
}

.outline-btn {
    background: white;
    color: #006b3c;
    border: 1px solid #006b3c;
}

@media (max-width: 600px) {
    .success-container {
        padding: 35px 15px;
    }

    .success-box {
        padding: 40px 20px;
    }

    .success-box h1 {
        font-size: 26px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-btn {
        width: 100%;
    }
}


/* =========================================================
   USER ORDER DETAILS
========================================================= */

.order-details-page {
    min-height: 65vh;
}

.order-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.order-title {
    text-align: center;
    margin-bottom: 35px;
}

.order-title h1 {
    margin-bottom: 10px;
    font-size: 34px;
}

.order-title p {
    color: #666;
}

.order-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.order-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.order-label {
    display: block;
    color: #777;
    font-size: 14px;
    margin-bottom: 5px;
}

.order-header h2 {
    margin: 0;
}

.order-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: capitalize;
    background: #e7f5ed;
    color: #006b3c;
}

.order-status.pending {
    background: #fff4d6;
    color: #856404;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #842029;
}

.order-status.completed {
    background: #e7f5ed;
    color: #006b3c;
}

.order-date {
    padding: 18px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin-top: 25px;
}

.order-items h2 {
    margin-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-product-image {
    width: 80px;
    height: 80px;
    background: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info h3 {
    margin: 0 0 8px;
}

.item-info p {
    margin: 4px 0;
    color: #666;
}

.item-total {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    font-size: 22px;
}

.order-total strong {
    font-size: 27px;
    color: #006b3c;
}

.order-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.order-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.primary-order-btn {
    background: #006b3c;
    color: white;
}

.secondary-order-btn {
    background: #333;
    color: white;
}

.order-btn:hover {
    opacity: 0.85;
}

.order-message {
    text-align: center;
    padding: 45px 20px;
}

.message-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.order-message p {
    color: #666;
    margin-bottom: 25px;
}

.no-order-items {
    padding: 30px;
    text-align: center;
    color: #777;
}

@media (max-width: 650px) {
    .order-box {
        padding: 20px;
    }

    .order-header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .order-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-total {
        align-self: flex-end;
    }

    .order-total {
        font-size: 19px;
    }

    .order-total strong {
        font-size: 23px;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-btn {
        text-align: center;
    }
}


/* =========================================================
   USER DASHBOARD
========================================================= */

.user-dashboard-page {
    min-height: 65vh;
}

.user-dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.user-dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
}

.dashboard-label {
    color: #006b3c;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.user-dashboard-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.user-dashboard-header p:last-child {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.dashboard-section {
    margin-bottom: 35px;
}

.dashboard-section h2 {
    margin-bottom: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: white;
    padding: 22px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: #006b3c;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5ee;
    border-radius: 10px;
    font-size: 25px;
    flex-shrink: 0;
}

.dashboard-card h3 {
    margin: 2px 0 8px;
    color: #222;
}

.dashboard-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.account-card:hover {
    transform: translateY(-2px);
}

.account-card > span {
    font-size: 25px;
}

.account-card strong {
    display: block;
    margin-bottom: 4px;
    color: #222;
}

.account-card small {
    color: #777;
}

.dashboard-logout {
    text-align: center;
    margin-top: 30px;
}

.dashboard-logout a {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 7px;
    background: #333;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-logout a:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .user-dashboard-container {
        padding: 30px 15px;
    }

    .user-dashboard-header {
        padding: 25px 20px;
    }

    .user-dashboard-header h1 {
        font-size: 26px;
    }

    .dashboard-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   LOGIN / REGISTER / AUTHENTICATION
========================================================= */

.auth-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.auth-card form {
    display: block;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin: 0 0 10px;
    font-size: 30px;
}

.auth-header p {
    margin: 0;
    color: #666;
}

.auth-form-group {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.auth-form-group input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: white;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.auth-form-group input::placeholder {
    color: #888;
    opacity: 1;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #006b3c;
    box-shadow: 0 0 0 2px rgba(0, 107, 60, 0.1);
}

.auth-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 7px;
    background: #006b3c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.auth-button:hover {
    opacity: 0.9;
}

.auth-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 7px;
    background: #fff3f3;
    color: #b42318;
}

.auth-success {
    background: #e8f5ee;
    color: #006b3c;
}

.auth-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.auth-link a {
    color: #006b3c;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-page {
        padding: 30px 15px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-header h1 {
        font-size: 26px;
    }
}


/* =========================================================
   RESPONSIVE HOMEPAGE
========================================================= */

@media (max-width: 768px) {
    .market-hero {
        padding: 65px 0;
    }

    .market-hero h1 {
        font-size: 38px;
    }

    .market-hero p {
        font-size: 16px;
    }

    .info-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .market-container {
        width: 92%;
    }

    .market-hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
        text-align: center;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .info-features {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ADD PRODUCT FORM
========================================================= */

.product-form-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.product-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.product-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.product-form-header .form-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.product-form-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
}

.product-form-header p {
    color: #6b7280;
    margin: 0;
}

.product-form {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-message {
    margin-bottom: 25px;
    padding: 13px 16px;
    border-radius: 7px;
    background: #e8f5ee;
    color: #006b3c;
    border: 1px solid #c8e6d4;
    font-weight: 600;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: white;
    color: #222;
    font-size: 15px;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006b3c;
    box-shadow: 0 0 0 2px rgba(0, 107, 60, 0.1);
}

.form-group input[type="file"] {
    padding: 9px;
    background: #f9fafb;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: #777;
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.form-submit-btn,
.form-cancel-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.form-submit-btn {
    border: none;
    background: #006b3c;
    color: white;
}

.form-submit-btn:hover {
    background: #00552f;
}

.form-cancel-btn {
    background: #eee;
    color: #333;
}

.form-cancel-btn:hover {
    background: #ddd;
}

@media (max-width: 650px) {

    .product-form-page {
        padding: 30px 15px;
    }

    .product-form {
        padding: 25px 20px;
    }

    .product-form-header h1 {
        font-size: 29px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-submit-btn,
    .form-cancel-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   EDIT PRODUCT IMAGE
========================================================= */

.current-product-image {
    margin-top: 10px;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: fit-content;
}

.current-product-image img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.no-product-image {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}


/* =========================================================
   MY LISTINGS
========================================================= */

.my-listings-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.my-listings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.my-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.listings-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.my-listings-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
}

.my-listings-header p {
    margin: 0;
    color: #6b7280;
}

.add-listing-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #006b3c;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
    white-space: nowrap;
}

.add-listing-btn:hover {
    background: #00552f;
}


/* =========================================================
   LISTINGS GRID
========================================================= */

.my-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =========================================================
   LISTING CARD
========================================================= */

.listing-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.listing-image {
    width: 100%;
    height: 210px;
    background: #f3f4f6;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 15px;
}

.listing-content {
    padding: 20px;
}

.listing-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.listing-top h2 {
    margin: 0;
    font-size: 20px;
    color: #222;
    line-height: 1.3;
}

.listing-category {
    margin: 8px 0;
    color: #777;
    font-size: 14px;
}

.listing-price {
    margin: 12px 0;
    color: #006837;
    font-size: 21px;
    font-weight: bold;
}

.listing-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.listing-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.status-pending {
    background: #fff4d6;
    color: #946200;
}

.status-approved {
    background: #e5f6ec;
    color: #08733c;
}

.status-rejected {
    background: #fde8e8;
    color: #b42318;
}

.status-sold {
    background: #e5e7eb;
    color: #374151;
}


/* =========================================================
   LISTING ACTIONS
========================================================= */

.listing-actions {
    display: flex;
    gap: 10px;
}

.listing-edit-btn,
.listing-delete-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.listing-edit-btn {
    background: #006b3c;
    color: white;
}

.listing-edit-btn:hover {
    background: #00552f;
}

.listing-delete-btn {
    background: #f3f3f3;
    color: #b42318;
}

.listing-delete-btn:hover {
    background: #fde8e8;
}


/* =========================================================
   EMPTY LISTINGS
========================================================= */

.empty-listings {
    background: white;
    padding: 60px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-listings-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.empty-listings h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.empty-listings p {
    margin: 0 0 25px;
    color: #777;
}


/* =========================================================
   MARKETPLACE LINK
========================================================= */

.marketplace-link {
    margin-top: 30px;
}

.marketplace-link a {
    color: #006837;
    text-decoration: none;
    font-weight: 600;
}

.marketplace-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   MY LISTINGS RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .my-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .my-listings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-listing-btn {
        width: 100%;
        text-align: center;
    }

    .my-listings-grid {
        grid-template-columns: 1fr;
    }

    .my-listings-header h1 {
        font-size: 30px;
    }

}


@media (max-width: 450px) {

    .my-listings-page {
        padding: 30px 15px;
    }

    .listing-content {
        padding: 17px;
    }

    .listing-top {
        flex-direction: column;
    }

}

/* =========================================================
   ADMIN ORDERS
========================================================= */

.admin-orders-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.admin-orders-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.admin-orders-header {
    margin-bottom: 30px;
}

.admin-orders-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.admin-orders-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
}

.admin-orders-header p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   ORDERS CARD
========================================================= */

.admin-orders-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* =========================================================
   ORDERS TABLE
========================================================= */

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.orders-table thead {
    background: #006b3c;
    color: white;
}

.orders-table th {
    padding: 15px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.orders-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

.orders-table tbody tr:hover {
    background: #f9fafb;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   ORDER INFORMATION
========================================================= */

.order-id {
    color: #006837;
    font-weight: bold;
}

.buyer-name {
    font-weight: 600;
    color: #222;
}

.buyer-email {
    color: #666;
}

.order-total {
    color: #006837;
    font-weight: bold;
    white-space: nowrap;
}

.order-date {
    color: #555;
    white-space: nowrap;
}


/* =========================================================
   ORDER STATUS
========================================================= */

.order-status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.order-status-pending {
    background: #fff4d6;
    color: #946200;
}

.order-status-completed {
    background: #e5f6ec;
    color: #08733c;
}

.order-status-cancelled {
    background: #fde8e8;
    color: #b42318;
}


/* =========================================================
   VIEW DETAILS BUTTON
========================================================= */

.view-order-btn {
    display: inline-block;
    padding: 8px 13px;
    background: #006b3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.view-order-btn:hover {
    background: #00552f;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.admin-orders-empty {
    background: white;
    padding: 65px 25px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.admin-orders-empty-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.admin-orders-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.admin-orders-empty p {
    margin: 0;
    color: #777;
}


/* =========================================================
   ADMIN ORDERS RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .admin-orders-page {
        padding: 30px 15px;
    }

    .admin-orders-header h1 {
        font-size: 30px;
    }

}

/* =========================================================
   ADMIN ORDER DETAILS
========================================================= */

.admin-order-details-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.admin-order-details-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.admin-order-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.order-details-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
}

.order-details-header p {
    margin: 0;
    color: #6b7280;
}

.back-orders-btn {
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid #ddd;
    border-radius: 7px;
    color: #333;
    background: white;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.back-orders-btn:hover {
    background: #f5f5f5;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.order-summary-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.summary-label {
    display: block;
    margin-bottom: 10px;
    color: #777;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.summary-value {
    color: #333;
    font-size: 15px;
}

.summary-total {
    color: #006837;
    font-size: 22px;
}


/* =========================================================
   DETAIL CARDS
========================================================= */

.admin-detail-card {
    background: white;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.detail-card-header {
    margin-bottom: 22px;
}

.detail-section-label {
    color: #006837;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.detail-card-header h2 {
    margin: 6px 0 0;
    font-size: 22px;
    color: #222;
}


/* =========================================================
   STATUS UPDATE
========================================================= */

.order-status-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.status-form-group {
    flex: 1;
}

.status-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.status-form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: white;
    font-size: 15px;
}

.status-form-group select:focus {
    outline: none;
    border-color: #006b3c;
    box-shadow: 0 0 0 2px rgba(0, 107, 60, 0.1);
}

.update-status-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 7px;
    background: #006b3c;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.update-status-btn:hover {
    background: #00552f;
}


/* =========================================================
   BUYER INFORMATION
========================================================= */

.buyer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.buyer-info-item {
    padding: 17px;
    background: #f8faf9;
    border-radius: 8px;
    border: 1px solid #edf0ee;
}

.buyer-info-label {
    display: block;
    margin-bottom: 7px;
    color: #777;
    font-size: 13px;
}

.buyer-info-item strong {
    color: #222;
    word-break: break-word;
}


/* =========================================================
   ORDER ITEMS TABLE
========================================================= */

.order-items-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.order-items-table thead {
    background: #006b3c;
    color: white;
}

.order-items-table th {
    padding: 14px 15px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.order-items-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.order-items-table tbody tr:hover {
    background: #f9fafb;
}

.order-items-table tbody tr:last-child td {
    border-bottom: none;
}

.item-product-name {
    color: #222;
}

.item-quantity {
    display: inline-block;
    min-width: 28px;
    padding: 5px 8px;
    text-align: center;
    background: #f0f2f1;
    border-radius: 5px;
    font-weight: bold;
}

.item-subtotal {
    color: #006837;
    white-space: nowrap;
}


/* =========================================================
   ORDER TOTAL
========================================================= */

.order-total-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.order-total-box span {
    color: #555;
    font-size: 16px;
    font-weight: 600;
}

.order-total-box strong {
    color: #006837;
    font-size: 24px;
}


/* =========================================================
   NO ITEMS
========================================================= */

.no-order-items {
    padding: 35px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
    color: #777;
}


/* =========================================================
   FOOTER LINK
========================================================= */

.order-details-footer {
    margin-top: 10px;
    margin-bottom: 20px;
}

.order-details-footer a {
    color: #006837;
    text-decoration: none;
    font-weight: 600;
}

.order-details-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .order-summary-grid {
        grid-template-columns: 1fr;
    }

    .buyer-info-grid {
        grid-template-columns: 1fr;
    }

    .order-details-header {
        flex-direction: column;
    }

    .back-orders-btn {
        width: 100%;
        text-align: center;
    }

}


@media (max-width: 600px) {

    .admin-order-details-page {
        padding: 30px 15px;
    }

    .order-details-header h1 {
        font-size: 30px;
    }

    .admin-detail-card {
        padding: 20px 15px;
    }

    .order-status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .update-status-btn {
        width: 100%;
    }

    .order-total-box {
        justify-content: space-between;
        gap: 10px;
    }

}

/* =========================================================
   ADMIN REPORTS
========================================================= */

.admin-reports-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.admin-reports-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.admin-reports-header {
    margin-bottom: 30px;
}

.admin-reports-label {
    color: #006837;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.admin-reports-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
}

.admin-reports-header p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   REPORT CARDS
========================================================= */

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: white;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.report-card-sales {
    grid-column: span 2;
}

.report-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5ee;
    border-radius: 12px;
    font-size: 24px;
}

.report-info {
    min-width: 0;
}

.report-label {
    display: block;
    margin-bottom: 7px;
    color: #777;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.report-value {
    display: block;
    color: #006837;
    font-size: 25px;
    line-height: 1.2;
}

.report-info small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}


/* =========================================================
   SPECIAL REPORT CARDS
========================================================= */

.report-card-pending .report-icon {
    background: #fff4d6;
}

.report-card-pending .report-value {
    color: #946200;
}

.report-card-cancelled .report-icon {
    background: #fde8e8;
}

.report-card-cancelled .report-value {
    color: #b42318;
}


/* =========================================================
   REPORT INFORMATION
========================================================= */

.report-information {
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.report-information-header {
    margin-bottom: 25px;
}

.report-information-header h2 {
    margin: 7px 0 0;
    font-size: 23px;
    color: #222;
}

.report-information-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.report-information-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8faf9;
    border-radius: 8px;
    border: 1px solid #edf0ee;
}

.report-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #006b3c;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}

.report-information-item p {
    margin: 2px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.report-information-item strong {
    color: #222;
}


/* =========================================================
   FOOTER LINK
========================================================= */

.reports-footer-link {
    margin-top: 25px;
    margin-bottom: 20px;
}

.reports-footer-link a {
    color: #006837;
    text-decoration: none;
    font-weight: 600;
}

.reports-footer-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-card-sales {
        grid-column: span 2;
    }

    .report-information-list {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .admin-reports-page {
        padding: 30px 15px;
    }

    .admin-reports-header h1 {
        font-size: 30px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-card-sales {
        grid-column: span 1;
    }

    .report-card {
        padding: 20px;
    }

    .report-information {
        padding: 20px 15px;
    }

}

/* =========================================================
   CHECKOUT PAGE
========================================================= */

.checkout-page {
    min-height: 65vh;
    padding: 45px 20px;
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   CHECKOUT HEADER
========================================================= */

.checkout-title {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-title h1 {
    margin: 0 0 10px;
    font-size: 36px;
    color: #222;
}

.checkout-title p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   CHECKOUT BOX
========================================================= */

.checkout-box {
    background: white;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.checkout-heading {
    padding: 22px 30px;
    border-bottom: 1px solid #eee;
    background: #f8faf9;
}

.checkout-heading h2 {
    margin: 0;
    font-size: 21px;
    color: #222;
}


/* =========================================================
   CHECKOUT ITEMS
========================================================= */

#checkoutItems {
    padding: 0 30px;
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid #eee;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.checkout-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
}

.checkout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product-info {
    min-width: 0;
}

.checkout-product-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #222;
}

.checkout-product-info p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

.checkout-subtotal {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: bold;
    color: #006837;
}


/* =========================================================
   CHECKOUT TOTAL
========================================================= */

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: #f8faf9;
    border-bottom: 1px solid #eee;
}

.checkout-total span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.checkout-total strong {
    font-size: 24px;
    color: #006837;
}


/* =========================================================
   CONFIRM SECTION
========================================================= */

.confirm-section {
    padding: 25px 30px;
    text-align: right;
}

.confirm-btn {
    border: none;
    padding: 13px 25px;
    border-radius: 7px;
    background: #006837;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.confirm-btn:hover {
    background: #00552f;
}

.confirm-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.checkout-note {
    margin: 12px 0 0;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   LOADING MESSAGE
========================================================= */

.checkout-loading {
    padding: 40px 20px;
    text-align: center;
    color: #777;
}


/* =========================================================
   CHECKOUT MESSAGE
========================================================= */

.checkout-message {
    padding: 45px 25px;
    text-align: center;
}

.checkout-message h3 {
    margin: 10px 0;
    font-size: 22px;
    color: #333;
}

.checkout-message p {
    margin: 0 0 20px;
    color: #777;
}

.empty-checkout-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.continue-shopping-btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 7px;
    background: #006837;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.continue-shopping-btn:hover {
    background: #00552f;
}


/* =========================================================
   BACK TO CART
========================================================= */

.checkout-back {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.checkout-back a {
    color: #006837;
    text-decoration: none;
    font-weight: 600;
}

.checkout-back a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE CHECKOUT
========================================================= */

@media (max-width: 650px) {

    .checkout-page {
        padding: 30px 15px;
    }

    .checkout-title h1 {
        font-size: 30px;
    }

    .checkout-heading {
        padding: 18px 20px;
    }

    #checkoutItems {
        padding: 0 20px;
    }

    .checkout-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .checkout-product {
        width: 100%;
    }

    .checkout-subtotal {
        align-self: flex-end;
    }

    .checkout-total {
        padding: 20px;
    }

    .confirm-section {
        padding: 20px;
        text-align: center;
    }

    .confirm-btn {
        width: 100%;
    }

    .checkout-back {
        padding: 18px 20px;
    }

}