:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2c;
    --light-green: #6b9e3e;
    --beige: #f5f1e8;
    --light-brown: #d4b896;
    --brown: #8b7355;
    --dark-brown: #5c4a3a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    padding-top: 76px;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-brown) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.cart-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.btn-success {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-outline-success {
    color: var(--secondary-green);
    border-color: var(--secondary-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
}

.hero {
    height: 600px;
    background: linear-gradient(rgba(45, 80, 22, 0.5), rgba(45, 80, 22, 0.7)),
                url('https://images.pexels.com/photos/1595104/pexels-photo-1595104.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.feature-card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-green);
}

.about-image-wrapper img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.02);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 120px 0 60px;
    margin-bottom: 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-body {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-green);
}

.quantity-input {
    width: 80px;
}

.add-to-cart {
    white-space: nowrap;
    flex: 1;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-quantity {
    width: 70px;
}

.remove-item {
    cursor: pointer;
    color: #dc3545;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #a71d2a;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 44, 0.25);
}

.confirmation-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.success-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.next-steps {
    background: var(--beige);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info {
    border: 2px solid var(--light-green);
}

footer {
    margin-top: auto;
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

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

    .page-header {
        padding: 100px 0 40px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .product-image {
        height: 200px;
    }

    .cart-summary {
        position: static;
    }
}

.toast {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.5);
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.floating-cart-btn .cart-icon {
    position: relative;
}

@media (max-width: 768px) {
    .floating-cart-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .floating-cart-btn .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}
