/* Green Haven Handmade LLC - Custom Styles */
:root {
    --primary-color: #2d5a27;
    --secondary-color: #8b4513;
    --accent-color: #d4a574;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.cart-badge {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
}

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

.product-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-card .sale-price {
    color: var(--danger-color);
    font-size: 1.4rem;
    font-weight: bold;
}

.product-card .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

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

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

/* Product Detail Page */
.product-gallery {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-image {
    flex: 2;
    border-radius: 10px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    opacity: 0.8;
    border-color: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.variant-selector {
    margin: 20px 0;
}

.variant-selector label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.variant-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-selector .btn-group {
    width: 150px;
}

.quantity-selector .btn {
    width: 40px;
}

.quantity-selector input {
    width: 70px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
}

/* Cart Page */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cart-summary .total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-color);
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

footer .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

footer .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

footer .btn-subscribe {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
}

footer .btn-subscribe:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Contact Page */
.contact-info {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

/* About Page */
.about-section {
    padding: 50px 0;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Policy Pages */
.policy-section {
    padding: 50px 0;
}

.policy-section h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.policy-section h2 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-section p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-gallery {
        flex-direction: column;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .thumbnail-images {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .thumbnail-images img {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-quantity {
        justify-content: center;
    }
}

/* Banner Images */
.banner-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

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

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}