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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    display: flex;
    background-color: var(--background);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #FF5252;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-image {
    position: relative;
    height: 400px;
}

.floating-pets {
    position: relative;
    width: 100%;
    height: 100%;
}

.pet-icon {
    position: absolute;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.pet-icon:nth-child(1) { top: 10%; left: 20%; }
.pet-icon:nth-child(2) { top: 50%; right: 10%; }
.pet-icon:nth-child(3) { bottom: 20%; left: 40%; }
.pet-icon:nth-child(4) { top: 30%; right: 40%; }
.pet-icon:nth-child(5) { bottom: 40%; right: 30%; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Categories */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.product-badge.new {
    background-color: var(--secondary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.rating span {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: #45B7AA;
}

/* Features */
.features {
    background-color: var(--white);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.feature-card {
    text-align: center;
    max-width: 200px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 0 2rem;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
}

.newsletter-pets {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 4rem;
    opacity: 0.1;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #B2BEC3;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #B2BEC3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #B2BEC3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 300px;
    }

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

    .search-bar {
        margin: 1rem 0;
        max-width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .features {
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--border-radius);
    }

    .newsletter-form input {
        border-bottom: 1px solid #eee;
    }

    .newsletter-form button {
        padding: 1rem;
    }
}