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

body {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    background: var(--bg-color, #f5f7fa);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.store-header {
    background: var(--header-bg, #fff);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding: 2rem 1rem;
    text-align: center;
}

.store-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #1a202c);
}

.store-logo {
    max-height: 80px;
    max-width: 280px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.store-tagline {
    font-size: 1.05rem;
    color: var(--primary-color, #718096);
    opacity: 0.7;
    margin-top: 0.4rem;
}

/* Bio section */
.bio-section {
    background: var(--header-bg, #fff);
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.bio-container {
    max-width: 640px;
    margin: 0 auto;
}

.bio-text {
    color: var(--primary-color, #1a202c);
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--button-color, #38a169);
    color: #fff;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.8;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--primary-color, #667eea);
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color, #1a202c);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--card-text, #666);
    margin-bottom: 1rem;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-text, #2d3748);
}

.btn-view {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--button-color, #38a169);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-view:hover {
    opacity: 0.85;
}

.empty-store {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-store h2 {
    font-size: 1.5rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.empty-store p {
    color: #a0aec0;
    font-size: 1rem;
}

/* List layout */
.product-list {
    grid-template-columns: 1fr;
}

.product-list .product-card {
    flex-direction: row;
}

.product-list .product-image,
.product-list .product-image-placeholder {
    width: 200px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
}

.product-list .product-body {
    padding: 1.25rem;
}

@media (max-width: 640px) {
    .store-header h1 {
        font-size: 1.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .store-logo {
        max-height: 60px;
        max-width: 200px;
    }
    .product-list .product-card {
        flex-direction: column;
    }
    .product-list .product-image,
    .product-list .product-image-placeholder {
        width: 100%;
        height: 200px;
    }
}
