.hero {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
@media (min-width: 768px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p { margin: 20px 0; color: var(--text-muted); font-size: 16px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
    position: relative;
    background: linear-gradient(145deg, #221c3a, #100b1f);
    border-radius: 24px;
    min-height: 260px;
    height: 100%;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid var(--border);
}
.hero-visual--image { min-height: 280px; }
.hero-visual-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}
.hero-visual-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--accent-light);
    opacity: 0.85;
    padding: 40px;
    position: relative;
    z-index: 1;
}
.hero-visual-glow {
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 767px) {
    .hero-visual { min-height: 220px; max-height: 280px; }
    .hero-visual-img { min-height: 220px; }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 641px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}
.category-card-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #2a1f50, #1a1238);
    position: relative;
    overflow: hidden;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card-img .cat-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-light); opacity: 0.5;
}
.category-name {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 641px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 15px 25px rgba(0,0,0,0.4); }
.product-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #2a1f50, #1a1238);
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 12px; }
.product-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { margin-top: 6px; font-weight: 700; color: var(--accent-light); }
.product-old-price { text-decoration: line-through; font-size: 13px; color: var(--text-muted); margin-left: 8px; }

.daily-deal {
    background: linear-gradient(135deg, rgba(225,112,85,0.15), rgba(108,92,231,0.1));
    border: 1px solid rgba(225,112,85,0.3);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.deal-timer {
    background: rgba(0,0,0,0.5);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    color: #ffb74d;
    display: flex; align-items: center; gap: 8px;
}
