﻿:root {
    --primary-brown: #8B4513;
    --medium-brown: #A0522D;
    --light-brown: #D2691E;
    --pale-orange: #FFDAB9;
    --lighter-orange: #FFE4C4;
    --white: #FFFFFF;
    --text-dark: #3E2723;
    --text-light: #6D4C41;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-brown) !important;
    font-size: 1.5rem;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.brand-name {
    color: var(--primary-brown);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-brown) !important;
}

.cart-badge {
    background-color: var(--primary-brown);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--pale-orange) 0%, var(--lighter-orange) 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--primary-brown);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: 1.5rem;
}

/* Section Titles */
.section-title {
    color: var(--primary-brown);
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--pale-orange);
}

.page-title {
    color: var(--primary-brown);
    font-weight: 700;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-name {
    color: var(--primary-brown);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 60px;
}

.product-price {
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.flavor-select {
    margin-bottom: 1rem;
}

.flavor-select label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--medium-brown);
    border-color: var(--medium-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-outline-primary {
    color: var(--primary-brown);
    border-color: var(--primary-brown);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    color: var(--white);
}

/* Cart Page */
.cart-card,
.summary-card,
.checkout-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    margin-bottom: 2rem;
}

.cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--lighter-orange);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    color: var(--primary-brown);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-flavor {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-brown);
    font-weight: 700;
    font-size: 1.2rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-brown);
    background-color: var(--white);
    color: var(--primary-brown);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

/* Checkout */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.payment-option {
    margin-bottom: 1rem;
}

.payment-option label {
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
}

.payment-option .btn-check:checked+label {
    background-color: var(--primary-brown);
    color: var(--white);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--lighter-orange);
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Receipt */
.receipt-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.receipt-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.receipt-content {
    margin-top: 2rem;
}

.receipt-section {
    margin-bottom: 2rem;
}

.receipt-section h5 {
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pale-orange);
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--lighter-orange);
}

.receipt-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 3px solid var(--primary-brown);
}

/* Footer */
.footer {
    background-color: #dc4d09;
    padding: 2rem 0;
    margin-top: 4rem;
    color: #fde9d0;
}

.footer p {
    color: #fde9d0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .receipt-container {
        box-shadow: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-img {
        width: 100%;
        height: 200px;
    }

    .quantity-controls {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-img {
        height: 200px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Login & Admin */
.login-card,
.feedback-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.input-group-text {
    background-color: var(--pale-orange);
    border-color: var(--lighter-orange);
    color: var(--primary-brown);
}

.stats-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.nav-tabs .nav-link {
    color: var(--text-light);
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-brown);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-brown);
}

.feedback-item,
.order-item {
    background-color: var(--lighter-orange);
}

/* Rating Stars */
.rating-stars {
    font-size: 2rem;
    cursor: pointer;
}

.star {
    color: #ddd;
    transition: color 0.3s;
}

.star.active,
.star.hover {
    color: #ffc107;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Override Bootstrap text-primary to match brand color */
.text-primary {
    color: var(--primary-brown) !important;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: #000;
}

@media (max-width: 768px) {
    .banner-img {
        height: auto;
    }
}

@media (max-width: 576px) {
    .banner-img {
        height: auto;
    }
}

/* Blog Page */
.blog-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.blog-img {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.blog-title {
    color: var(--primary-brown);
    font-weight: 600;
}

.blog-badge {
    background-color: var(--pale-orange);
    color: var(--primary-brown);
    font-weight: 600;
    width: fit-content;
}

/* Reviews Page */
.review-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rating-summary-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.overall-rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1;
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important;
}

/* About Page */
.about-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* SMART Goals List */
.smart-goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smart-goals-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--lighter-orange);
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.smart-goals-list li:last-child {
    border-bottom: none;
}

.smart-goals-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Team Image */
.team-img {
    max-width: 600px;
    width: 100%;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social-link {
    color: #fde9d0;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.footer-social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Promotional Video */
.promo-video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
}

/* Inner Page Hero */
.hero-section-inner {
    background: #dc4d09;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section-inner .hero-title {
    color: #fde9d0;
    -webkit-text-stroke: 1px #fde9d0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-section-inner .hero-subtitle {
    color: #fde9d0;
    opacity: 0.9;
}

/* Reviewer Photo */
.reviewer-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--pale-orange);
}

/* Blog Card Hover */
.blog-card-clickable {
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

/* Blog Post Page */
.blog-post-title {
    color: var(--primary-brown);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
}

.blog-post-hero-img {
    max-height: 420px;
    object-fit: cover;
}

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.blog-post-body h4 {
    color: var(--primary-brown);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--pale-orange);
}

.blog-post-body p {
    margin-bottom: 1rem;
}

.blog-post-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-body ul li {
    margin-bottom: 0.4rem;
}

.blog-post-body a {
    color: var(--primary-brown);
    font-weight: 600;
    text-decoration: underline;
}

.blog-post-body a:hover {
    color: var(--light-brown);
}