/* Common Styles - Save as css/styles.css */

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

:root {
    --coffee-dark: #3C2415;
    --espresso: #2F1B14;
    --cream-tan: #F5E6D3;
    --latte-tan: #E8D5B7;
    --warm-gold: #D4AF37;
    --off-white: #FAF7F0;
    --light-cream: #FDFBF7;
    --text-dark: #2F1B14;
    --text-medium: #5D4E37;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--off-white);
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--coffee-dark), var(--espresso));
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--warm-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--warm-gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--warm-gold);
    color: var(--espresso);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.order-btn {
    background: var(--warm-gold);
    color: var(--espresso);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.order-btn:hover {
    background: #B8941F;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Authentication Styles */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-auth {
    background: transparent;
    color: white;
    border: 2px solid var(--warm-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-auth:hover {
    background: var(--warm-gold);
    color: var(--espresso);
    transform: translateY(-2px);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-greeting {
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid var(--warm-gold);
    transition: all 0.3s ease;
    background: transparent;
    font-family: inherit;
}

.user-greeting:hover {
    color: var(--warm-gold);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
    border: 1px solid var(--cream-tan);
}

.user-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.95rem;
}

.user-dropdown a:hover {
    background: var(--cream-tan);
    color: var(--coffee-dark);
}

.dropdown-divider {
    border-top: 1px solid var(--cream-tan);
    margin: 0.5rem 0;
}

/* Footer */
.footer {
    background: var(--espresso);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--warm-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--warm-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: var(--warm-gold);
    color: var(--espresso);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid var(--coffee-dark);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Add these styles to your existing styles.css file */

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.checkout-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--cream-tan);
    padding-bottom: 1rem;
}

/* Order Items */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream-tan);
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    color: var(--coffee-dark);
    margin-bottom: 0.25rem;
}

.item-quantity {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.item-price {
    font-weight: bold;
    color: var(--warm-gold);
    font-size: 1.1rem;
}

/* Order Total */
.order-total {
    padding: 1.5rem 0 1rem 0;
    border-top: 2px solid var(--coffee-dark);
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.total-final {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--coffee-dark);
    border-top: 1px solid var(--cream-tan);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.order-security {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-cream);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-button {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--cream-tan);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-dark);
}

.payment-button:hover {
    border-color: var(--warm-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-button.selected {
    border-color: var(--coffee-dark);
    background: var(--light-cream);
    color: var(--coffee-dark);
}

.payment-button span:first-child {
    font-size: 1.2rem;
}

/* Stripe Elements */
.stripe-elements {
    margin-top: 1rem;
}

#card-element {
    padding: 1rem;
    border: 2px solid var(--cream-tan);
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

#card-element:focus {
    border-color: var(--warm-gold);
    outline: none;
}

#card-element.StripeElement--focus {
    border-color: var(--warm-gold);
}

#card-element.StripeElement--invalid {
    border-color: var(--danger);
}

/* Empty Cart */
.empty-cart-state {
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart h2 {
    color: var(--coffee-dark);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.empty-cart p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content h3 {
    color: var(--coffee-dark);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.loading-content p {
    color: var(--text-medium);
    margin: 0;
}

/* Success Modal */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--success);
}

.success-header h2 {
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.success-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.success-details {
    background: var(--light-cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.success-details p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.success-details p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-medium);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.success-actions .btn {
    flex: 1;
    text-align: center;
}

/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    transform: translateX(100%);
    animation: slideInNotification 0.4s ease forwards;
}

.cart-notification.slide-out {
    animation: slideOutNotification 0.3s ease forwards;
}

.cart-notification-icon {
    font-size: 1.5rem;
}

.cart-notification-content {
    flex: 1;
}

.cart-notification-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.cart-notification-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cart-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cart-notification-close:hover {
    opacity: 1;
}

@keyframes slideInNotification {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutNotification {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Enhanced Add to Cart Button States */
.btn.adding {
    background: var(--info) !important;
    color: white !important;
    pointer-events: none;
}

.btn.added {
    background: var(--success) !important;
    color: white !important;
    pointer-events: none;
}

/* Responsive Checkout */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .checkout-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-price {
        align-self: flex-end;
        font-size: 1.2rem;
    }
    
    .payment-button {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
        animation: slideInNotificationMobile 0.4s ease forwards;
    }
    
    .cart-notification.slide-out {
        animation: slideOutNotificationMobile 0.3s ease forwards;
    }
    
    @keyframes slideInNotificationMobile {
        from { 
            transform: translateY(-100%); 
            opacity: 0; 
        }
        to { 
            transform: translateY(0); 
            opacity: 1; 
        }
    }
    
    @keyframes slideOutNotificationMobile {
        from { 
            transform: translateY(0); 
            opacity: 1; 
        }
        to { 
            transform: translateY(-100%); 
            opacity: 0; 
        }
    }
}

/* Toast Notifications Enhancement */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--warm-gold);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 6000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    animation: slideInToast 0.3s ease;
}

.toast.toast-success { 
    border-left-color: #28a745; 
}

.toast.toast-error { 
    border-left-color: #dc3545; 
}

.toast.toast-info { 
    border-left-color: #17a2b8; 
}

.toast button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-medium);
}

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Add these styles to your existing styles.css file - Payment Method Image Styles */

/* Payment Method Images */
.payment-image-btn {
    padding: 0.75rem 1rem !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    border: 2px solid var(--cream-tan) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.payment-image-btn:hover {
    border-color: var(--warm-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.payment-image-btn.selected {
    border-color: var(--coffee-dark) !important;
    background: var(--light-cream) !important;
}

.payment-method-image {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.payment-image-btn:hover .payment-method-image {
    opacity: 0.9;
}

/* Credit card payment button with logos */
#cardPayBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1.5rem !important;
}

.card-payment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-payment-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    color: var(--text-dark);
}

.card-logos {
    display: flex;
    align-items: center;
}

.card-logos img {
    max-height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#cardPayBtn:hover .card-logos img {
    opacity: 1;
}

#cardPayBtn.selected .card-logos img {
    opacity: 1;
}

/* Mobile responsiveness for payment methods */
@media (max-width: 768px) {
    .payment-image-btn {
        height: 55px !important;
        padding: 0.5rem !important;
    }
    
    .payment-method-image {
        max-height: 35px;
        max-width: 100px;
    }
    
    #cardPayBtn {
        padding: 0.75rem 1rem !important;
    }
    
    .card-payment-text {
        gap: 0.5rem;
        font-size: 0.95rem;
    }
    
    .card-logos img {
        max-height: 25px;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        gap: 0.75rem;
    }
    
    .payment-image-btn {
        height: 50px !important;
    }
    
    .payment-method-image {
        max-height: 30px;
        max-width: 90px;
    }
    
    .card-payment-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .card-logos img {
        max-height: 20px;
    }
}

/* Common Components */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--warm-gold);
    color: var(--espresso);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--warm-gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--coffee-dark);
    text-align: center;
    margin-bottom: 3rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--coffee-dark);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream-tan);
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 2px solid var(--cream-tan);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* Content layer - highest z-index */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    color: white;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
}

/* Enhanced button visibility */
.hero .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid transparent;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero .btn-primary {
    background: var(--warm-gold);
    color: var(--espresso);
}

.hero .btn-primary:hover {
    background: #B8941F;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--warm-gold);
}

.hero .btn-secondary:hover {
    background: var(--warm-gold);
    color: var(--espresso);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--coffee-dark), var(--espresso));
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin: 0;
}

/* Content Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-text h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.content-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-image {
    background: var(--cream-tan);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: bold;
    color: var(--coffee-dark);
    font-size: 1.2rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-image {
    background: var(--cream-tan);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: bold;
    color: var(--coffee-dark);
}

/* Menu Preview */
.menu-preview {
    background: var(--light-cream);
    padding: 4rem 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.menu-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card-image {
    background: var(--coffee-dark);
    color: white;
    height: 120px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.menu-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.3rem;
    color: var(--warm-gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.menu-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    margin-bottom: 1rem;
}

.hours-table {
    margin: 1.5rem 0;
}

.hours-table h4 {
    color: var(--coffee-dark);
    margin-bottom: 1rem;
}

.hours-table table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream-tan);
}

.hours-table td:first-child {
    font-weight: bold;
    color: var(--coffee-dark);
}

.map-placeholder {
    background: var(--cream-tan);
    height: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: var(--coffee-dark);
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-placeholder:hover {
    background: var(--latte-tan);
}

/* Menu Page Specific Styles */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.menu-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--cream-tan);
    background: white;
    color: var(--coffee-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--coffee-dark);
    color: white;
    border-color: var(--coffee-dark);
}

.menu-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.stock-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745; /* Green for in stock */
}

.stock-indicator.low {
    background: #ffc107; /* Yellow for low stock */
}

.stock-indicator.out {
    background: #dc3545; /* Red for out of stock */
}

.product-image {
    height: 200px;
    background: var(--cream-tan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.placeholder {
    color: var(--coffee-dark);
    font-weight: bold;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    margin: 0;
    font-size: 1.3rem;
}

.category-badge {
    background: var(--warm-gold);
    color: var(--espresso);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.decaf-badge {
    background: linear-gradient(45deg, #6f42c1, #495057);
    color: white;
}

.tasting-notes {
    margin: 1rem 0;
}

.tasting-notes h4 {
    font-size: 0.9rem;
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
}

.notes {
    color: var(--warm-gold);
    font-weight: bold;
    font-style: italic;
}

.product-details {
    background: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.product-details div {
    margin-bottom: 0.25rem;
}

/* Timeline Styles */
.timeline {
    margin-top: 3rem;
}

.timeline h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-year {
    background: var(--warm-gold);
    color: var(--espresso);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    background: var(--light-cream);
    margin: 4rem 0;
    padding: 2rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--coffee-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.section-label {
    color: var(--warm-gold);
    font-weight: bold;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.benefit-card ul {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.benefit-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--coffee-dark);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .auth-section {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-auth {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .user-greeting {
        width: 100%;
        justify-content: center;
    }
    
    .user-dropdown {
        position: relative;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--warm-gold);
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .section {
        padding: 2rem 1rem;
    }

    .logo img {
        height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 4rem 1rem;
        min-height: 50vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }
    
    .content-grid,
    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--coffee-dark);
    }
    
    .nav-menu a:last-of-type {
        border-bottom: none;
    }
    
    .cart-icon {
        margin-top: 1rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--warm-gold);
    }
}

/* Authentication Modal Styles - Add to the end of your existing styles.css */

/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    display: flex;
}

/* Auth Form Styling */
.auth-form {
    display: block;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--coffee-dark);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--cream-tan);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-cream);
    box-sizing: border-box;
    min-height: 50px;
}

.form-input:focus {
    outline: none;
    border-color: var(--warm-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: #999;
    opacity: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--warm-gold);
}

.checkbox-label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    display: block;
    font-style: italic;
}
}

.btn-primary {
    width: 100%;
    padding: 1.25rem;
    background: var(--warm-gold);
    color: var(--espresso);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.btn-primary:hover:not(:disabled) {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Switch Link Styling */
.switch-link {
    color: var(--warm-gold);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.switch-link:hover {
    color: #B8941F;
    text-decoration: underline;
}

/* Modal Header Styling */
.modal-header {
    position: relative;
    padding: 3rem 2rem 1rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--light-cream), var(--cream-tan));
    border-radius: 20px 20px 0 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-medium);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
    color: var(--coffee-dark);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--coffee-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.modal-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid var(--cream-tan);
    background: var(--light-cream);
    border-radius: 0 0 20px 20px;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-left: 4px solid var(--warm-gold);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 350px;
    transform: translateX(100%);
    animation: slideInToast 0.4s ease forwards;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast-close {
    background: none;
    border: none;
    float: right;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-medium);
    margin-left: 1rem;
}

/* Enhanced Modal Animation */
.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideIn 0.4s ease;
    padding: 0; /* Remove default padding */
}

/* Additional Animation Keyframes */
@keyframes slideInToast {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInModal {
    from { 
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

//* Mobile responsive improvements */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
}

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Additional styling for favorite buttons */
.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover,
.favorite-btn.favorited {
    color: #e74c3c;
    transform: scale(1.1);
}

/* User Section Styles */
.user-section {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-section.show {
    display: flex;
}

.logout-btn {
    background: var(--text-medium);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--coffee-dark);
    transform: translateY(-1px);
}

/* Additional Modal Styling - Add to end of styles.css */
.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    padding: 2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #3C2415;
    transform: rotate(90deg);
}

.dashboard-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #F5E6D3;
    margin-bottom: 2rem;
}

.dashboard-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #F5E6D3;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3C2415;
    border-bottom: 3px solid #D4AF37;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}