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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.email-signup {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.email-signup h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

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

#signup-form {
    display: flex;
    gap: 1rem;
}

#signup-form input[type="email"] {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#signup-form button {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#signup-form button:hover {
    background-color: #45a049;
}

#signup-form input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cart-icon span {
    color: #333;
}

.cart-icon a{
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-list h1,
.product-detail h1,
.cart h1,
.checkout h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image-container {
    display: inline-block;
    width: 270px;
    padding-right: 30px;
    padding-left: 10px;
}

.product-image {
    width: auto;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.product-info {
    display: inline-block;
    margin-top: 1rem;
    vertical-align:top;
}

.plant-care {
    text-align: left;
}

.product-care h2 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.product-care p {
    color: #333;
    margin-bottom: 8px;
}

.product-care div {
    display: inline-block;
    text-align: center;
}

.product-care-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plus-sign {
    border: 2px solid black;
    border-radius: 50%;
    padding: 5px 10px; 
    display: inline-block;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
  }

.product-price {
    color: #333;
    font-weight: bold;
    margin: 0.5rem 0;
}

.product-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.product-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-info img {
    width: 400px;
    height: auto;
}

.product-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;

}

.product-info h1 {
    color: #333;
    margin-bottom: 1rem;
}

.product-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-info .product-price {
    font-size: 1.5rem;
    color: #4CAF50;
}

.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.product-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.add-to-cart {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #0056b3;
}

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

.cart-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #cc0000;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: right;
}

.cart-total {
    font-size: 1.5rem;
    margin: 1rem 0;
}

#checkout-btn,
#place-order {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

#checkout-btn:hover,
#place-order:hover {
    background-color: #218838;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.order-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-items {
        grid-template-columns: 1fr;
    }
}

/* Order Confirmation Page Styles */
.order-confirmation {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.confirmation-container {
    background-color: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

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

.order-confirmation h1 {
    color: #2c5530;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.confirmation-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.order-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.order-details h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 0.5rem;
}

.order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
}

.order-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.order-info strong {
    color: #2c5530;
}

.ordered-items h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #2c5530;
}

.item-info h4 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.item-price {
    color: #2c5530;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.25rem 0 0 0;
}

.order-total {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #2c5530;
}

.order-total h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive design for order confirmation */
@media (max-width: 768px) {
    .confirmation-container {
        padding: 2rem 1rem;
    }
    
    .order-confirmation h1 {
        font-size: 2rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
    
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .confirmation-actions .btn,
    .confirmation-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Recommended Products Section */
.recommended-products {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 2rem;
}

.recommended-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.recommended-products h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.recommended-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2rem;
    margin-top: 2rem;
}

.recommended-item {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.recommended-product-info h3 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.recommended-price {
    color: #2c5530;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.recommended-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    color: #2c5530;
    border: 2px solid #2c5530;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.btn-outline:hover {
    background-color: #2c5530;
    color: white;
    transform: translateY(-1px);
}

.recommended-actions .btn-primary {
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Responsive design for recommended products */
@media (max-width: 768px) {
    .recommended-products {
        padding: 2rem 0;
    }
    
    .recommended-products h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recommended-item {
        padding: 1.25rem;
    }
    
    .recommended-actions {
        flex-direction: column;
    }
    
    .btn-outline,
    .recommended-actions .btn-primary {
        width: 100%;
        min-width: auto;
    }
}
