/* Cafe Thrive - Custom Styles */

:root {
    --ct-primary: #2e7d32;
    --ct-secondary: #4caf50;
    --ct-dark: #1b5e20;
    --ct-light: #e8f5e9;
}

/* Typography */
body {
    font-family: 'Raleway', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Shadows Into Light', cursive;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    max-height: 40px;
}

/* Hero Banner */
.hero-banner {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('/images/intro-bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    color: var(--ct-primary);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Buttons */
.btn-primary {
    background-color: var(--ct-primary);
    border-color: var(--ct-primary);
}

.btn-primary:hover {
    background-color: var(--ct-dark);
    border-color: var(--ct-dark);
}

.btn-outline-primary {
    color: var(--ct-primary);
    border-color: var(--ct-primary);
}

.btn-outline-primary:hover {
    background-color: var(--ct-primary);
    border-color: var(--ct-primary);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Shopping Cart */
.quantity-input {
    text-align: center;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Footer */
footer {
    background-color: #212529;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-icons a {
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Form styles */
.form-control:focus {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
        min-height: 400px;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 0;
    }
}

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

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
