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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    position: relative;
    width: 100vw;
    overflow-x: hidden;
}

header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

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

nav a {
    text-decoration: none;
    color: #333;
}

nav a.active {
    color: #007bff;
}

.cart-icon {
    position: relative;
    margin-left: auto;
    padding: 8px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop 0.3s ease-out;
}

.add-to-cart-btn {
    flex: 1;
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background-color: #000;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

main {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Responsive breakpoints */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }

    .product-card img {
        height: 300px; /* Slightly smaller images on mobile */
    }
}

.product-card {
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    background: #f8f8f8;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-details {
    flex-grow: 1;
}

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

.product-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-price {
    font-weight: bold;
    color: #007bff;
    margin: 0;
    font-size: 1.1rem;
}

.pele-ai-button-container {
    pointer-events: auto;
}

.peleai-widget {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.peleai-widget:hover {
    transform: scale(1.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#clear-storage {
    padding: 0.5rem 1rem;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#clear-storage:hover {
    background-color: #ff0000;
} 