:root {
    --primary-color: #ff5722;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
    --border-color: #eeeeee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Search and Filters */
.search-container {
    padding: 15px 0;
}
.search-box {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}
.filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
    scrollbar-width: none;
}
.filters::-webkit-scrollbar {
    display: none;
}
.filter-chip {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}
.filter-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Promotions */
.promo-banner {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.promo-banner img {
    width: 100%;
    display: block;
}

/* Product List */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.product-info {
    padding: 12px;
}
.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}
.product-cat {
    font-size: 12px;
    color: var(--secondary-text);
}

/* Single Product Page */
.product-detail {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}
.gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
}
.gallery img {
    width: 80%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.detail-info h1 {
    margin-bottom: 10px;
}
.detail-price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}
.description {
    margin-bottom: 20px;
    color: var(--secondary-text);
}
.share-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.availability-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}
.available { background: #e8f5e9; color: #2e7d32; }
.unavailable { background: #ffebee; color: #c62828; }

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.tag-item {
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}
