:root {
    --home-primary: #1a2b4a;
    --home-primary-light: #2d4a7c;
    --home-accent: #e63946;
    --home-accent-hover: #c1121f;
    --home-success: #2a9d8f;
    --home-bg: #f4f6fa;
    --home-surface: #ffffff;
    --home-text: #1a1a2e;
    --home-muted: #64748b;
    --home-border: #e2e8f0;
    --home-radius: 16px;
    --home-radius-sm: 10px;
    --home-shadow: 0 4px 24px rgba(26, 43, 74, 0.07);
    --home-shadow-hover: 0 12px 40px rgba(26, 43, 74, 0.14);
}

body.home-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--home-text);
    background-color: var(--home-bg);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-light) 55%, #3d5a80 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(230, 57, 70, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0 3rem;
}

@media (min-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr 1.1fr;
        padding: 4rem 0 4.5rem;
        gap: 3rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-hero-primary {
    background: var(--home-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    background: var(--home-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.hero-phone a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.hero-phone a:hover {
    text-decoration: underline;
}

/* Hero carousel */
.hero-carousel-wrap {
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.2);
}

.hero-carousel-wrap .carousel,
.hero-carousel-wrap .carousel-inner,
.hero-carousel-wrap .carousel-item {
    height: 100%;
}

.hero-carousel-wrap .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 1;
    margin: 0 12px;
}

.hero-carousel-wrap .carousel-control-prev-icon,
.hero-carousel-wrap .carousel-control-next-icon {
    filter: invert(1);
    width: 18px;
    height: 18px;
}

.hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
}

/* ── Trust bar ── */
.trust-bar {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    padding: 1.25rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--home-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text);
    line-height: 1.3;
}

.trust-item span {
    font-size: 0.78rem;
    color: var(--home-muted);
}

/* ── Section headers ── */
.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--home-muted);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.section-link {
    color: var(--home-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}

.section-link:hover {
    color: var(--home-accent-hover);
    gap: 0.55rem;
}

/* ── Categories ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    text-decoration: none;
    color: var(--home-text);
    transition: all 0.25s ease;
    box-shadow: var(--home-shadow);
}

.category-card:hover {
    border-color: var(--home-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    color: var(--home-primary);
}

.category-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--home-primary), var(--home-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.category-card span {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ── Brands strip ── */
.brands-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.brand-chip {
    padding: 0.5rem 1.25rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.brand-chip:hover {
    border-color: var(--home-primary-light);
    color: var(--home-primary);
    background: #eef2ff;
}

/* ── Product grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: var(--home-shadow);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--home-shadow-hover);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--home-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-badge.new {
    background: var(--home-success);
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.product-card-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--home-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--home-text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--home-primary-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--home-muted);
}

.product-rating .fa-star {
    font-size: 0.7rem;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--home-primary);
    margin-top: auto;
    padding-top: 0.25rem;
}

.product-card-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--home-muted);
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-card-buy {
    flex: 1;
    background: var(--home-accent);
    color: #fff;
    border: none;
    border-radius: var(--home-radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-card-buy:hover {
    background: var(--home-accent-hover);
}

.btn-card-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-surface);
    color: var(--home-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-card-icon:hover {
    border-color: var(--home-primary-light);
    color: var(--home-primary);
    background: #eef2ff;
}

/* ── CTA strip ── */
.cta-strip {
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-light) 100%);
    border-radius: var(--home-radius);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    color: #fff;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .cta-strip {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 2.5rem 3rem;
    }
}

.cta-strip h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}

.cta-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.cta-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ── Site footer ── */
.site-footer {
    background: var(--home-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--home-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

@media (max-width: 767px) {
    .product-card-actions .btn-card-buy {
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        font-size: 0 !important;
        gap: 0 !important;
    }

    .product-card-actions .btn-card-buy .btn-cart-text {
        display: none !important;
    }

    .product-card-actions .btn-card-buy i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
}
