/* Custom Styles for Discover the Art of Coffee */

:root {
    --primary-color: #604020;
    --secondary-color: #604020;
    --accent-color: #D4A574;
    --text-dark: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hide scrollbar for all browsers */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    background: transparent !important;
}

.navbar-scrolled {
    background: linear-gradient(135deg, #604020 0%, #604020 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Home Section */
.intro-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.intro-section h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.intro-section .lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* YouTube Background */
#bgndVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

.intro-section .container {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    color: white;
}

/* Feature Box */
.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hover-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #604020 0%, #604020 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #604020 0%, #604020 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Cart Badge */
.badge {
    position: relative;
    top: -10px;
    left: -5px;
}

/* Top Rating Badge */
.badge-top-rating {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 179, 71, 0.15) 100%) !important;
    border: 2px solid rgba(255, 152, 0, 0.4) !important;
    color: #FF9800 !important;
    font-weight: 700;
    padding: 8px 12px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.badge-top-rating:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 179, 71, 0.25) 100%) !important;
    border-color: rgba(255, 152, 0, 0.6) !important;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.25);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    margin-top: 50px;
}

.footer.bg-dark {
    background-color: #604020 !important;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Cart Page */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Quantity Input */
.qty-input {
    max-width: 80px;
}

/* Menu Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #604020 0%, #604020 100%);
    color: white;
    border-color: #604020;
}

/* Testimonial Stars */
.fa-star {
    font-size: 1.2rem;
}

/* Floating Cart Button - GrabFood Style */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #339933 0%, #339933 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    min-width: 280px;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease;
}

.floating-cart-btn:hover {
    color: white;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 30px rgba(51,153,51,0.45);
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

/* Add to Cart Button - Plus Icon Only */
.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #339933 0%, #339933 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #2d872d 0%, #2d872d 100%);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-order-now {
    background: #339933;
    border-color: #339933;
    color: #fff;
}

.btn-order-now:hover {
    background: #2d872d;
    border-color: #2d872d;
    color: #fff;
}

/* Order Summary Card */
.order-summary-card {
    border-radius: 10px;
    padding: 18px;
    background: #81ff6e28; /* warm off-white, not plain white */
    border: 1px solid rgba(0,0,0,0.04);
}

.order-items .order-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
}

.order-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-item-name {
    font-size: 0.95rem;
    margin: 0;
}


    /* Receipt table borders and typography */
    .receipt-items .receipt-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid #e6e9ee;
        border-radius: 8px;
        overflow: hidden;
    }
    .receipt-items .receipt-table thead th {
        background: #fafafa;
        border-bottom: 1px solid #e6e9ee;
        padding: 12px 14px;
        color: #374151;
        font-weight: 600;
    }
    .receipt-items .receipt-table tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid #f1f3f5;
        color: #374151;
    }
    .receipt-items .receipt-table tbody tr:last-child td {
        border-bottom: none;
    }

    /* Receipt typography */
    .receipt-card { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #1f2937; }
    .receipt-card .muted { color: #6b7280; }

    /* Print styles: hide navigation and floating elements, optimize receipt */
    @media print {
        .navbar, .floating-cart-btn, .btn-outline-primary, .btn-dark { display: none !important; }
        body { background: #fff; }
        .receipt-card { box-shadow: none !important; border-radius: 0 !important; }
        .receipt-page { padding: 0 !important; }
        .receipt-card, .container { width: 100% !important; max-width: 100% !important; }
        .receipt-items .receipt-table thead th, .receipt-items .receipt-table tbody td { color: #000; }
        .status-badges, .receipt-actions { display: none !important; }
    }
.order-item-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.order-item-price {
    color: #339933;
    font-weight: 700;
}

.order-summary-footer {
    margin-top: 12px;
}

.text-accent {
    color: #339933 !important;
}

/* Receipt / Order Success */
.receipt-page {
    background: linear-gradient(180deg, #fbfbfc 0%, #f5f7f9 100%);
    min-height: calc(100vh - 120px);
    padding: 120px 0 80px; /* top padding to clear fixed navbar and bottom padding for breathing room */
}

.receipt-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.06);
    overflow: hidden;
    margin-top: 8px;
}

.receipt-header {
    padding: 22px 28px;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.receipt-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.receipt-brand .logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg,#eaf8ef,#f0f7f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.receipt-meta {
    text-align: right;
}

.receipt-meta .muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.receipt-body {
    padding: 18px 24px;
}

/* Receipt info (customer/payment) */
.receipt-info {
    padding: 14px 0 18px;
    border-bottom: 1px solid #f1f3f5;
}
.receipt-info .muted { display: block; margin-bottom: 6px; }
.receipt-info h6 { margin: 0 0 6px; font-size: 1.05rem; }
.receipt-info .badges { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.receipt-info .badges .badge { font-size: 0.85rem; padding: 6px 8px; }
.receipt-info .payment-block { display:flex; gap:12px; align-items:center; justify-content:flex-end; }

/* Info box used on the right side (payment/type/table/status) */
.info-box {
    background: #f7fafc;
    border: 1px solid #e6e9ee;
    padding: 12px 14px;
    border-radius: 8px;
    max-width: 320px;
    margin-left: auto;
}
.info-box .info-row { display:flex; justify-content:space-between; align-items:center; padding:4px 0; }
.info-box .info-label { color: #6b7280; font-size: 0.9rem; }
.info-box .info-value { font-weight:700; color: #111827; }
.info-box .status-badges { display:flex; gap:8px; margin-top:8px; justify-content:flex-end; }

/* Customer block styling */
.customer-block { padding: 8px 0; }
.customer-block .muted { color: #6b7280; font-size: 0.95rem; }
.customer-block h6 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: #111827; }
.customer-block .phone { color: #6b7280; font-size: 0.95rem; }

/* Navy header for receipt table */
.receipt-items .receipt-table thead th {
    background: #707479 !important; /* navy */
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255,255,255,0.06);
    padding: 12px 14px;
}

.receipt-items table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-items th,
.receipt-items td {
    padding: 12px 10px;
    border-bottom: 1px dashed #eef2f6;
    vertical-align: middle;
}

.receipt-items tbody tr:last-child td {
    border-bottom: none;
}

.receipt-items th,
.receipt-items td {
    padding: 10px 8px;
    border-bottom: 1px dashed #eef2f6;
}

.receipt-items th {
    text-align: left;
    font-weight: 600;
    color: #374151;
    background: transparent;
}

.receipt-total {
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-total .amount {
    color: #0f5132; /* dark green */
    font-weight: 800;
    font-size: 1.15rem;
}

.receipt-actions {
    padding: 18px 24px 28px 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 2.5rem;
    }
    
    .intro-section .lead {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .floating-cart-btn {
        min-width: 90%;
        left: 5%;
        right: 5%;
        transform: none;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .floating-cart-btn:hover {
        transform: translateY(-3px);
    }
}
