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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}
.logo span { color: #0984e3; }

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-actions a {
    color: #636e72;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.header-actions a:hover { color: #0984e3; }

.cart-icon { position: relative; }
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e17055;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.highlight { color: #0984e3; }
.hero-content p {
    color: #636e72;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}
.hero-stats .number {
    font-size: 28px;
    font-weight: 700;
}
.hero-stats .label {
    color: #636e72;
    font-size: 14px;
}

.hero-image {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.category-tabs button {
    padding: 10px 24px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    background: white;
    color: #636e72;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.category-tabs button:hover {
    border-color: #0984e3;
    color: #0984e3;
}
.category-tabs button.active {
    background: #0984e3;
    border-color: #0984e3;
    color: white;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: #fdcb6e; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e17055;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #636e72;
}

.product-card .info { padding: 18px; }
.product-card .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-card .category {
    color: #636e72;
    font-size: 13px;
    margin-bottom: 8px;
}
.product-card .rating {
    color: #fdcb6e;
    font-size: 14px;
    margin-bottom: 8px;
}
.product-card .rating span {
    color: #636e72;
    margin-left: 4px;
}
.product-card .price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-card .price .original {
    font-size: 16px;
    color: #b2bec3;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}
.product-card .discount-badge {
    background: #e17055;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.btn-add {
    width: 100%;
    padding: 12px;
    background: #0984e3;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add:hover { background: #0866c7; }

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    margin: 20px 0;
}
.feature-item { text-align: center; }
.feature-item i {
    font-size: 32px;
    color: #0984e3;
    margin-bottom: 10px;
}
.feature-item h4 { font-size: 16px; margin-bottom: 4px; }
.feature-item p { color: #636e72; font-size: 14px; }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    color: #636e72;
    font-size: 14px;
}
.footer a {
    color: #636e72;
    text-decoration: none;
    margin-left: 20px;
}
.footer a:hover { color: #0984e3; }
.social i {
    font-size: 20px;
    margin-left: 16px;
    cursor: pointer;
    color: #636e72;
    transition: color 0.2s;
}
.social i:hover { color: #0984e3; }

#debugInfo {
    margin-top: 30px;
    padding: 20px;
    background: #2d3436;
    border-radius: 12px;
    color: #dfe6e9;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: none;
}
#debugInfo .row {
    display: flex;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#debugInfo .label {
    width: 120px;
    color: #b2bec3;
}
#debugInfo .value { flex: 1; word-break: break-all; }

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 30px 0; }
    .hero-content h1 { font-size: 28px; }
    .hero-stats { gap: 20px; }
    .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
    .header { flex-direction: column; gap: 12px; }
    .footer { flex-direction: column; gap: 12px; text-align: center; }
    .footer a { margin: 0 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-content h1 { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .features { grid-template-columns: 1fr 1fr; gap: 12px; }
    .header-actions { gap: 12px; flex-wrap: wrap; justify-content: center; }
}