/* Homepage Sections - Xiaomi Official Style */
/* Inspired by consumer.xiaomi.com/it */

/* Section Base */
.xiaomi-section {
    padding: 4rem 0;
}

.xiaomi-section--white {
    background: #FFFFFF;
}

.xiaomi-section--light {
    background: #F1F3F5;
}

/* Card Styles */
.xiaomi-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.xiaomi-card--secondary {
    background: #F8F9FA;
}

.xiaomi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Product Images */
.xiaomi-product-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
}

/* Icons - Minimal Flat */
.xiaomi-icon {
    width: 48px;
    height: 48px;
    stroke: #333333;
    stroke-width: 2;
    fill: none;
    margin-bottom: 1.25rem;
}

.xiaomi-icon--blue {
    stroke: rgb(27, 103, 236);
}

.xiaomi-icon--red {
    stroke: #d95a00;
}

.xiaomi-icon--dark {
    stroke: #111111;
}

/* Icon Container */
.xiaomi-icon-container {
    width: 64px;
    height: 64px;
    background: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Typography */
.xiaomi-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.xiaomi-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.xiaomi-title--large {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.xiaomi-subtitle {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.xiaomi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.xiaomi-btn-primary {
    background: #d95a00;
    color: white;
}

.xiaomi-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.xiaomi-btn-outline {
    background: transparent;
    color: #d95a00;
    border: 2px solid #d95a00;
}

.xiaomi-btn-outline:hover {
    background: #d95a00;
    color: white;
}

.xiaomi-btn-outline-blue {
    background: transparent;
    color: rgb(27, 103, 236);
    border: 2px solid rgb(27, 103, 236);
}

.xiaomi-btn-outline-blue:hover {
    background: rgb(27, 103, 236);
    color: white;
}

.xiaomi-btn-outline-dark {
    background: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.xiaomi-btn-outline-dark:hover {
    background: #111111;
    color: white;
}

/* Grid Layouts */
.xiaomi-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Section Header */
.xiaomi-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 968px) {
    .xiaomi-grid-2,
    .xiaomi-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .xiaomi-section {
        padding: 2rem 1rem;
    }

    .xiaomi-card {
        padding: 2rem;
    }

    .xiaomi-title--large {
        font-size: 2rem;
    }

    .xiaomi-product-image {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .xiaomi-title {
        font-size: 1.25rem;
    }

    .xiaomi-title--large {
        font-size: 1.75rem;
    }

    .xiaomi-subtitle {
        font-size: 1rem;
    }

    .xiaomi-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}
