/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style untuk body */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* Header */
header {
    background-color: #FF7F00;
    /* Warna oranye */
    padding: 20px 0;
    color: #fff;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}

header h1 {
    font-size: 30px;
}

.search {
    padding: 10px;
    font-size: 16px;
    width: 100px;
    border-radius: 25px;
    border: none;
}

/* Main content */
main {
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FF7F00;
}

/* Input fields */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #FF7F00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: #e66c00;
}

/* Product Detail Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-image-section img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f5f5;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.modal-product-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.modal-rating,
.modal-store {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin: 10px 0;
}

.modal-stock-info {
    font-size: 14px;
    color: #666;
}

.stock-available {
    color: #27ae60;
}

.stock-limited {
    color: #e67e22;
}

.stock-out-of-stock {
    color: #e74c3c;
}

.modal-unit-selector,
.modal-package-selector,
.modal-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-unit-selector label,
.modal-package-selector label,
.modal-quantity-selector label {
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
}

.modal-unit-btn,
.modal-package-btn {
    padding: 8px 20px;
    border: 2px solid #f37021;
    background: #fff;
    color: #f37021;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-unit-btn.active,
.modal-package-btn.active,
.modal-unit-btn:hover,
.modal-package-btn:hover {
    background: #f37021;
    color: #fff;
}

.modal-quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.modal-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-qty-btn:hover {
    background: #f5f5f5;
    border-color: #f37021;
}

.modal-btn-add-cart {
    width: 100%;
    padding: 14px;
    background: #f37021;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: background 0.2s;
}

.modal-btn-add-cart:hover {
    background: #d35400;
}

.modal-product-description {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-product-description h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.modal-product-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tab-btn.active {
    background: #f37021;
    color: #fff;
}

.modal-tab-btn:hover {
    background: #e0e0e0;
}

.modal-tab-btn.active:hover {
    background: #d35400;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-product-title {
        font-size: 20px;
    }

    .modal-product-price {
        font-size: 24px;
    }

    .modal-close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
}

/* ==================== LANDING PAGE STYLES ==================== */

.landing-page {
    background: #ffffff;
}

/* Navigation */
.landing-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand h1 {
    color: #f37021;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.landing-nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #f37021;
}

.nav-btn {
    background: #f37021;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, #f37021 0%, #ff9f59 100%);
    padding: 80px 20px;
    color: #fff;
}

.landing-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #f37021;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #f37021;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-illustration i {
    font-size: 140px;
    color: #fff;
    opacity: 0.9;
}

/* Features Section */
.landing-features {
    padding: 80px 20px;
    background: #f9f9f9;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(243, 112, 33, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f37021, #ff9f59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 36px;
    color: #fff;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Categories Section */
.landing-categories {
    padding: 80px 20px 40px 20px;
    /* Reduced bottom padding */
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-item {
    background: linear-gradient(135deg, #f37021, #ff9f59);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    transition: all 0.3s;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(243, 112, 33, 0.3);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.category-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-item p {
    opacity: 0.95;
    font-size: 14px;
}

/* CTA Section */
.landing-cta {
    background: linear-gradient(135deg, #f37021 0%, #ff9f59 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    /* Ensure no gap between CTA and footer */
}

.landing-cta h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.landing-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #f37021;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Footer */
.landing-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: #f37021;
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #bdc3c7;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f37021;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #f37021;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .hero-illustration {
        width: 200px;
        height: 200px;
    }

    .hero-illustration i {
        font-size: 100px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .landing-nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .landing-brand {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* ==================== END LANDING PAGE STYLES ==================== */


/* Footer (for dashboard pages only, hidden on landing page) */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

/* ==================== SHOPPING CART STYLES ==================== */

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #666;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 40px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(243, 112, 33, 0.15);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-cart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

.cart-item-details h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #333;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #f37021;
    margin: 4px 0;
}

.cart-item-stock {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-quantity .qty-btn:hover {
    background: #f5f5f5;
    border-color: #f37021;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-subtotal {
    text-align: right;
}

.cart-item-subtotal p {
    font-size: 13px;
    color: #999;
    margin: 0 0 4px 0;
}

.cart-item-subtotal h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cart-item-remove .btn-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-item-remove .btn-remove:hover {
    background: #c0392b;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.cart-summary h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 12px;
}

.text-success {
    color: #27ae60;
    font-weight: 600;
}

.cart-summary hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 16px 0;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #f37021;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background: #d35400;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        grid-column: 2;
    }

    .cart-item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 10px;
    }

    .cart-item-subtotal {
        grid-column: 1 / -1;
        text-align: center;
    }

    .cart-item-remove {
        grid-column: 1 / -1;
        text-align: center;
    }

    .cart-summary {
        position: static;
    }
}

/* ==================== END SHOPPING CART STYLES ==================== */

/* Hide old footer on landing page */
.landing-page footer {
    display: none;
}

/* Dashboard styles */
.topbar {
    background: #f37021;
    padding: 30px 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Added to keep on top */
}

.topbar .center {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand {
    font-weight: 700;
    font-size: 32px;
    /* Increased from 26px */
    /* Increased */
}

.search {
    width: 950px;
}

.search input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 1000px;
    border: none;
    outline: none;
    font-size: 16px;
}

.topbar .right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    padding-right: 10px;
    /* Add padding to prevent clipping */
    white-space: nowrap;
    /* Prevent text wrapping */
}

.topbar .right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.topbar .right a:hover {
    text-decoration: underline;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        padding: 20px;
        height: auto;
        gap: 10px;
    }

    .topbar .center {
        position: static;
        transform: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .brand {
        margin-bottom: 5px;
    }

    .search {
        width: 100%;
    }

    .topbar .right {
        margin: 0;
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }
}



.wrap {
    max-width: 95%;
    /* Increased from 1100px */
    margin: 18px auto;
    padding: 0 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ... (unchanged styles) ... */

/* Banner Area */
.banner-area {
    width: 95%;
    max-width: 95%;
    /* Match wrap */
    height: auto;
    aspect-ratio: 3 / 1;
    background-color: #e0e0e0;
    margin: 40px auto 20px auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

/* Category Area */
.category-area {
    max-width: 95%;
    /* Match wrap */
    margin: 0 auto 20px auto;
    display: flex;
    gap: 25px;
    /* Increased gap */
    justify-content: center;
    /* Center align */
    padding: 0 5px;
    overflow-x: auto;
}

/* ... (unchanged styles) ... */

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Changed to 5 columns as requested */
    gap: 25px;
    /* Increased gap */
    padding: 10px 0 40px 0;
    max-width: 95%;
    /* Match wrap */
    margin: 0 auto;
}

@media (max-width: 600px) {
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* Force 3 columns */
        gap: 8px !important;
        padding: 10px 5px 40px 5px !important;
    }

    .product-card {
        width: 100% !important;
        min-width: 0 !important;
        /* Allow shrinking */
    }

    .product-card .card-image {
        height: 100px !important;
        width: 100% !important;
    }

    .card-info {
        padding: 6px;
        /* Minimal padding */
    }

    .product-name {
        font-size: 11px;
        /* Very small text */
        margin-bottom: 2px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        /* Limit to 2 lines */
    }

    .product-price {
        font-size: 11px;
        font-weight: 700;
    }

    .product-meta {
        font-size: 9px;
        /* Micro text for meta */
        margin-top: 2px;
    }

    .product-meta i {
        font-size: 9px;
    }

    .btn-add-floating {
        width: 24px;
        height: 24px;
        font-size: 10px;
        bottom: 5px;
        right: 5px;
    }
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thumb {
    height: 160px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.body {
    padding: 10px;
}

.title {
    font-weight: 700;
    margin: 0 0 6px;
}

.price {
    color: #e11d48;
    font-weight: 800;
}

.meta {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    background: #f37021;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

/* User Info & Logout */
.right {
    margin-left: auto;
    /* Push to the right */
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.right a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.right a:hover {
    opacity: 0.8;
}

/* Banner Area */
.banner-area {
    width: 75%;
    max-width: 1700px;
    height: auto;
    aspect-ratio: 3 / 1;
    /* Changed from 4/1 to show more height */
    background-color: #e0e0e0;
    margin: 40px auto 20px auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

/* Category Area */
.category-area {
    max-width: 95%;
    /* Match wrap */
    margin: 0 auto 20px auto;
    display: flex;
    gap: 25px;
    /* Increased gap */
    justify-content: center;
    /* Center align */
    padding: 10px 5px;
    /* Added padding to prevent hover clipping */
    overflow-x: auto;
}

.cat-pill {
    background-color: transparent;
    /* Removed white bg */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 80px;
    /* Keep width for spacing/centering text */
    height: auto;
    /* Remove fixed height */
    text-decoration: none;
    color: #333;
    font-size: 13px;
    /* Slightly bigger text */
    font-weight: 500;
    transition: transform 0.2s;
}

.cat-pill:hover {
    transform: translateY(-3px);
    color: #f37021;
}

.cat-icon {
    width: 50px;
    /* Slightly bigger icon circle */
    height: 50px;
    background-color: #fff;
    /* White background for icon */
    border: 1px solid #eee;
    /* Subtle border */
    border-radius: 12px;
    /* Rounded square (squircle) instead of full circle for a modern "app icon" look, or keep circle? User said "simple". Let's try 12px rounded. */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #f37021;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.2s ease;
}

.cat-pill:hover .cat-icon {
    background-color: #fff;
    border-color: #f37021;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
}

/* For active state */
.cat-pill.active .cat-icon {
    background-color: #f37021;
    color: #fff;
    border-color: #f37021;
}

/* ===========================
   Admin Dashboard Styles
   =========================== */
/* ===========================
   Admin Dashboard Styles (Refined)
   =========================== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 260px;
    /* Reduced from 280px */
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    position: fixed;
    height: 100%;
    z-index: 100;
}

.sidebar-brand {
    padding: 24px;
    /* Reduced padding */
    font-size: 24px;
    /* Reduced from 28px */
    font-weight: 800;
    color: #f37021;
    border-bottom: 1px solid #eee;
    text-align: center;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    /* Reduced padding */
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    /* Reduced from 18px */
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #fff5eb;
    color: #f37021;
    border-right: 4px solid #f37021;
}

.sidebar-menu i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    /* Reduced from 40px */
}

.header-title {
    font-size: 28px;
    /* Reduced from 32px */
    margin-bottom: 25px;
    font-weight: 800;
}

/* Menu Toggle Button (Mobile Only) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }
}



.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-info h3 {
    font-size: 32px;
    /* Slightly reduced */
    margin-bottom: 5px;
    color: #333;
    font-weight: 800;
}

.stat-info p {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #fff5eb;
    color: #f37021;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Tables (Global Admin Style) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

th,
td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    /* Increased from 15px */
    vertical-align: middle;
}

th {
    background: #f8f9fa;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    font-size: 13px;
    /* Reduced */
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fafafa;
}

/* Ensure action column doesn't wrap and centers content */
td:last-child {
    white-space: nowrap;
    width: 1%;
    /* Shrink to fit content */
    text-align: center;
    /* Center the buttons */
    vertical-align: middle;
}

/* Badges & Buttons */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-archived {
    background: #fff3cd;
    color: #856404;
}

.btn-add {
    background: #f37021;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    /* Reduced */
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(243, 112, 33, 0.2);
}

.btn-add:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 112, 33, 0.3);
}

.btn-action {
    text-decoration: none;
    padding: 8px 16px;
    /* Slightly larger padding */
    border-radius: 6px;
    font-size: 14px;
    /* Larger font */
    margin: 4px;
    /* Space all around */
    display: inline-flex;
    /* Use flexbox for centering */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-width: 70px;
    text-align: center;
}

.btn-action:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-edit {
    background: #3498db;
    color: #fff;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-restore {
    background: #2ecc71;
    color: #fff;
}

.btn-restore:hover {
    background: #27ae60;
}

/* Restored Utilities */
.thumb-small {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.filter-links {
    margin-bottom: 20px;
}

.filter-links a {
    text-decoration: none;
    color: #666;
    margin-right: 20px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    transition: all 0.3s;
}

.filter-links a.active {
    color: #f37021;
    border-color: #f37021;
    font-weight: 700;
}

/* Dropdown Filter */
.filter-section {
    margin-bottom: 20px;
}

.filter-section select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    /* Increased from default */
    font-weight: 500;
    color: #333;
    cursor: pointer;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.filter-section select:focus {
    border-color: #f37021;
}

/* User Roles */
.role-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.role-admin {
    background: #34495e;
}

.role-seller {
    background: #27ae60;
}

.role-kurir {
    background: #f39c12;
}

.role-customer {
    background: #95a5a6;
}

.role-owner {
    background: #8e44ad;
}

/* Modal / Form Popup */
.form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.form-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #f37021;
    outline: none;
}

.btn-submit {
    width: 100%;
    background: #f37021;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #d35400;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}


.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #f37021, #ff8c42);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card h3 {
    font-size: 22px;
}

.action-card span {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===========================
   New Customer Dashboard Styles (Updated)
   =========================== */

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 10px 0 40px 0;
    max-width: 95%;
    /* Fluid width */
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

/* Floating Add Button */
.btn-add-floating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #f37021;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(243, 112, 33, 0.3);
    transition: background 0.2s;
}

.btn-add-floating:hover {
    background: #d35400;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 40px;
    /* Increased from 20px */
    right: 40px;
    /* Increased from 20px */
    width: 60px;
    height: 60px;
    background: #f37021;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.floating-cart:hover {
    background: #d35400;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.6);
}

.floating-cart .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
}

@media (max-width: 600px) {
    .floating-cart {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 30px;
        /* Increased from 15px */
        right: 30px;
        /* Increased from 15px */
    }

    .floating-cart .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}


/* Card Info */
.card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-header-row {
    margin-bottom: 6px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    margin-top: auto;
}

.product-price {
    display: block;
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.product-rating {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
}

/* ===========================
   Footer & Info Section Styles
   =========================== */

.main-footer {
    margin-top: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    /* Slightly brighter than body #f0f0f0 */
    clear: both;
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-header h2 {
    font-size: 32px;
    /* Increased size */
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.footer-header p {
    font-size: 18px;
    /* Increased size */
    color: #666;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Reduced map width */
    gap: 30px;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    /* Reduced from 300px */
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    text-align: left;
    /* Force left alignment */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    /* Reduced gap for 'tepat di sebelah' */
    color: #333;
    width: 100%;
}

.contact-item i {
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    /* Changed to inline-flex to allow side-by-side */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item>div {
    text-align: left;
    /* Ensure text container is left aligned */
    flex: 1;
}

.contact-item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
}

.info-card {
    background-color: #fff9e6;
    /* Yellowish background */
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ffeeba;
}

.info-header {
    color: #a04000;
    /* Darker reddish brown like screenshot */
    margin-bottom: 20px;
    font-size: 28px;
    /* Increased from 22px */
    font-weight: 700;
    text-align: left;
    /* Force left align */
    /* Removed border-bottom and padding */
}

.info-header i {
    color: #a04000;
    margin-right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-block {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #fcebbd;
    /* Subtle border matching the theme */
}

.info-block h4 {
    margin-bottom: 15px;
    font-size: 18px;
    text-align: left;
    font-weight: 700;
    color: #d35400 !important;
    /* Force color to match header */
}

.info-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.info-block li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
}

.info-block li i {
    color: #f37021;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ==================== CHECKOUT & ORDER SUCCESS STYLES ==================== */

/* Checkout Container */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.checkout-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #f37021;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f37021;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.payment-card i {
    font-size: 32px;
    color: #f37021;
    margin-bottom: 10px;
}

.payment-card span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.payment-card small {
    color: #999;
    font-size: 12px;
}

.payment-option input[type="radio"]:checked+.payment-card {
    border-color: #f37021;
    background: #fff5f0;
}

.btn-submit-order {
    width: 100%;
    padding: 16px;
    background: #f37021;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-submit-order:hover {
    background: #d35400;
}

/* Order Summary (Checkout) */
.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.order-summary h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.item-qty {
    font-size: 12px;
    color: #999;
}

.item-price {
    font-weight: 600;
    color: #f37021;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
}

.summary-totals hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.delivery-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.delivery-info i {
    font-size: 24px;
    color: #f37021;
}

.delivery-info strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.delivery-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Order Success Page */
.order-success-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.order-success-container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.order-info-box,
.order-items-box,
.payment-instructions {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: left;
}

.order-info-box h3,
.order-items-box h3,
.payment-instructions h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.badge-pending {
    background: #ffa500;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ccc;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #333;
}

.order-item-details p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.order-item-total {
    font-weight: 700;
    color: #f37021;
}

.payment-instructions {
    background: #fff5f0;
    border: 2px solid #f37021;
}

.bank-info {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.bank-info p {
    margin: 8px 0;
}

.payment-instructions .note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.success-actions .btn-primary {
    background: #f37021;
    color: #fff;
}

.success-actions .btn-primary:hover {
    background: #d35400;
}

.success-actions .btn-secondary {
    background: #fff;
    color: #f37021;
    border: 2px solid #f37021;
}

.success-actions .btn-secondary:hover {
    background: #f37021;
    color: #fff;
}

/* Responsive Checkout */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }
}

/* ==================== END CHECKOUT & ORDER SUCCESS STYLES ==================== */

/* ==================== COURIER DASHBOARD STYLES ==================== */

/* Delivery Stats Cards */
.delivery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(243, 112, 33, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
}

.stat-icon.in-transit {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-icon.delivered {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-icon.total {
    background: linear-gradient(135deg, #f37021, #d35400);
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Delivery Filters */
.delivery-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #f37021;
    color: #f37021;
}

.filter-btn.active {
    background: #f37021;
    color: #fff;
    border-color: #f37021;
}

/* Delivery List */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.delivery-header {
    background: linear-gradient(135deg, #f37021, #ff9f59);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.delivery-id h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.delivery-date {
    font-size: 13px;
    opacity: 0.9;
}

.delivery-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.delivery-status-badge.pending {
    background: #ffa500;
    color: #fff;
}

.delivery-status-badge.in_transit {
    background: #3498db;
    color: #fff;
}

.delivery-status-badge.delivered {
    background: #27ae60;
    color: #fff;
}

.delivery-status-badge.failed {
    background: #e74c3c;
    color: #fff;
}

.delivery-body {
    padding: 25px;
}

.delivery-section {
    margin-bottom: 25px;
}

.delivery-section:last-child {
    margin-bottom: 0;
}

.delivery-section h4 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-section h4 i {
    color: #f37021;
}

.delivery-section p {
    margin: 5px 0;
    color: #666;
    line-height: 1.6;
}

.delivery-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.delivery-item .item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.delivery-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-item .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ccc;
    background: #f0f0f0;
}

.delivery-item .item-details {
    flex: 1;
}

.delivery-item .item-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.delivery-item .item-qty {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.delivery-item .item-total {
    font-weight: 700;
    color: #f37021;
    font-size: 15px;
}

.delivery-total {
    text-align: right;
    padding: 15px;
    background: #fff5f0;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 16px;
    color: #333;
}

.delivery-total strong {
    color: #f37021;
    font-size: 20px;
}

.delivery-actions {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-action.primary {
    background: #3498db;
    color: #fff;
}

.btn-action.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-action.success {
    background: #27ae60;
    color: #fff;
}

.btn-action.success:hover {
    background: #229954;
    transform: translateY(-2px);
}

.completed-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #666;
}

.empty-state p {
    color: #999;
}

/* Responsive Courier Dashboard */
@media (max-width: 768px) {
    .delivery-stats {
        grid-template-columns: 1fr;
    }

    .delivery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .delivery-status-badge {
        align-self: flex-start;
    }

    .delivery-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .delivery-item {
        flex-wrap: wrap;
    }

    .delivery-item .item-total {
        width: 100%;
        text-align: right;
    }
}

/* ==================== END COURIER DASHBOARD STYLES ==================== */

/* ==================== ORDER REPORT STYLES ==================== */

/* Report Statistics */
.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.report-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f37021;
    transition: transform 0.2s;
}

.report-stat-card:hover {
    transform: translateY(-3px);
}

.report-stat-card.pending {
    border-left-color: #ffa500;
}

.report-stat-card.shipped {
    border-left-color: #3498db;
}

.report-stat-card.completed {
    border-left-color: #27ae60;
}

.report-stat-card .stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.report-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Report Filters */
.report-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #f37021;
}

.btn-filter,
.btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-filter {
    background: #f37021;
    color: #fff;
}

.btn-filter:hover {
    background: #d35400;
}

.btn-reset {
    background: #e0e0e0;
    color: #666;
}

.btn-reset:hover {
    background: #d0d0d0;
}

/* Report Table */
.report-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table thead {
    background: linear-gradient(135deg, #f37021, #ff9f59);
    color: #fff;
}

.report-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.report-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.report-table tbody tr:hover {
    background: #f9f9f9;
}

.report-table td {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.report-table td small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

/* Badges */
.status-badge,
.payment-badge,
.delivery-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending,
.payment-badge.pending,
.delivery-badge.pending {
    background: #ffeaa7;
    color: #d63031;
}

.status-badge.paid,
.payment-badge.paid {
    background: #55efc4;
    color: #00b894;
}

.status-badge.shipped,
.delivery-badge.in_transit {
    background: #74b9ff;
    color: #0984e3;
}

.status-badge.completed,
.delivery-badge.delivered {
    background: #55efc4;
    color: #00b894;
}

.status-badge.cancelled,
.delivery-badge.failed {
    background: #fab1a0;
    color: #d63031;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f37021;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-view:hover {
    background: #d35400;
}

/* Empty Report */
.empty-report {
    text-align: center;
    padding: 80px 20px;
}

.empty-report h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #666;
}

.empty-report p {
    color: #999;
}

/* Responsive Report */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select,
    .filter-group input {
        min-width: 100%;
    }

    .btn-filter,
    .btn-reset {
        justify-content: center;
    }

    .report-table-container {
        overflow-x: auto;
    }

    .report-table {
        min-width: 800px;
    }
}

/* ==================== END ORDER REPORT STYLES ==================== */

/* Alert Styles */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

   

/* ========================
   Auth Pages Modern
   ======================== */
.auth-body {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
    margin: 0;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: flex;
    min-height: 600px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #f37021, #d35400);
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.9), rgba(211, 84, 0, 0.9));
    z-index: 1;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-left img {
    height: 80px;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: auto;
}

.auth-left h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.auth-left p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
}

.auth-input-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    /* Space for icon */
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #f37021;
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

.auth-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
    transition: color 0.3s;
}

.auth-input:focus+.auth-icon {
    color: #f37021;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.3);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 112, 33, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 14px;
}

.auth-footer a {
    color: #f37021;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-card {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-left {
        padding: 40px;
        min-height: 250px;
    }

    .auth-right {
        padding: 40px;
    }
}

/* ==================== ADMIN REPORT POLISH ==================== */
.report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Row spacing */
    margin-top: 10px;
}

.report-table thead th {
    background-color: #f37021;
    /* Orange Header */
    color: white;
    padding: 18px 15px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    font-weight: 700;
}

.report-table thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.report-table thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.report-table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.report-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.report-table tbody td {
    padding: 20px 15px;
    /* Larger padding */
    font-size: 15px;
    /* Larger font */
    vertical-align: middle;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.report-table tbody tr td:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.report-table tbody tr td:last-child {
    border-right: 1px solid #eee;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Badges Enlarge */
.status-badge,
.payment-badge,
.delivery-badge {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
}

.btn-view {
    background: #fff;
    border: 2px solid #f37021;
    color: #f37021;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #f37021;
    color: #fff;
}