* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background-color: #ffffff;
    color: #2c5530;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo span {
    font-size: 2.8rem;
    font-weight: 500;
    color: #2c5530;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #4a8c50;
    box-shadow: 0 4px 15px rgba(74, 140, 80, 0.2);
    background-color: rgba(74, 140, 80, 0.05);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #4a8c50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

.pickle-logo {
    margin-bottom: 2rem;
}

.pickle-logo img {
    width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f7f1 0%, #e1eee3 100%);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c5530;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: #4a8c50;
    max-width: 600px;
    margin: 0 auto;
}

.products {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c5530;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.product-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    height: 4.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-card .price {
    font-size: 1.3rem;
    color: #2c5530;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-card button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: auto;
}

.product-card button:hover {
    background-color: #4a8c50;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-item button:hover {
    background-color: #ff6666;
}

.cart-total {
    margin-top: 2rem;
    text-align: right;
}

.cart-total button {
    background-color: #2c5530;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cart-total button:hover {
    background-color: #4a8c50;
}

footer {
    background-color: #2c5530;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    margin-top: 4rem;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #f9fbf9;
}

.about h2 {
    text-align: center;
    color: #2c5530;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f7f1 0%, #e1eee3 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial .author {
    color: #2c5530;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    background-color: #2c5530;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #4a8c50;
}

.contact-info {
    padding: 2rem;
    background: #f9fbf9;
    border-radius: 10px;
}

.contact-info h3 {
    color: #2c5530;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content,
    .testimonial-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Checkout Modal Styles */
#checkout-modal .modal-content {
    max-width: 500px;
    padding: 2rem;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Add smooth scrolling for better UX */
#checkout-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#checkout-modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#checkout-modal .modal-content::-webkit-scrollbar-thumb {
    background: #2c5530;
    border-radius: 4px;
}

#checkout-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #4a8c50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.order-summary {
    background: #f9fbf9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.order-summary h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #2c5530;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #4a8c50;
}

/* Responsive breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop and Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Tablets and Small Laptops */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile Devices */
@media (min-width: 576px) and (max-width: 767px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    nav ul li {
        margin-left: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-features,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    nav {
        flex-direction: column;
        padding: 0.8rem;
    }

    .logo span {
        font-size: 1.8rem;
    }

    .logo img {
        height: 30px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    nav ul li {
        margin-left: 0;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card img {
        height: 200px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .about-features,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }

    nav ul li a:active {
        color: #4a8c50;
    }
} 