.home-page {
    background: #ffffff;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 38, 38, .10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 88px 0 80px;
}



.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.home-hero-content h1 {
    max-width: 780px;
    margin-bottom: 20px;
    color: #111827;
    font-size: clamp(38px, 5.3vw, 70px);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.065em;
}

.home-hero-content p {
    max-width: 660px;
    margin-bottom: 30px;
    color: #4b5563;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.72;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-weight: 950;
    padding: 0 22px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn-primary {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(220, 38, 38, .22);
}

.home-btn-primary:hover {
    border-color: #991b1b;
    background: #991b1b;
    color: #ffffff;
}

.home-btn-light {
    background: #ffffff;
    color: #111827;
}

.home-btn-light:hover {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.home-section {
    position: relative;
    background: #ffffff;
    padding: 64px 0;
}

.home-section:nth-of-type(odd) {
    background: #f9fafb;
}

.home-section + .home-section {
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.home-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -.05em;
}

.home-section-head p {
    max-width: 620px;
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.home-category-grid,
.home-product-grid {
    display: grid;
    gap: 18px;
}

.home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-category-card {
    position: relative;
    display: flex;
    min-height: 112px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    background: #ffffff;
    color: #111827;
    font-weight: 950;
    padding: 22px 54px 22px 20px;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-category-card::before {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    margin-right: 14px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, .14), rgba(17, 24, 39, .08)),
        #fef2f2;
    content: "";
}

.home-category-card::after {
    position: absolute;
    right: 20px;
    top: 50%;
    color: #dc2626;
    content: "→";
    font-size: 28px;
    font-weight: 950;
    opacity: .25;
    transform: translateY(-50%);
    transition: opacity .18s ease, right .18s ease;
}

.home-category-card:hover {
    border-color: rgba(220, 38, 38, .34);
    box-shadow: 0 22px 48px rgba(17, 24, 39, .10);
    transform: translateY(-3px);
}

.home-category-card:hover::after {
    right: 16px;
    opacity: 1;
}

.home-product-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-product-card:hover {
    border-color: rgba(220, 38, 38, .28);
    box-shadow: 0 22px 50px rgba(17, 24, 39, .11);
    transform: translateY(-3px);
}

.home-product-image {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(135deg, #f3f4f6, #e5e7eb);
    aspect-ratio: 4 / 3;
}

.home-product-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 39, .13));
    content: "";
    pointer-events: none;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .24s ease;
}

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

.home-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-product-body h3 {
    min-height: 44px;
    margin: 0 0 10px;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.home-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.home-product-body h3 a:hover {
    color: #dc2626;
}

.home-product-body p {
    flex: 1;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.home-product-body strong {
    display: block;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    color: #111827;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.02em;
    padding-top: 13px;
}

.home-empty,
.home-section-empty,
.home-empty-state {
    border: 1px dashed #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    color: #6b7280;
    font-weight: 850;
    padding: 30px;
    text-align: center;
}

.home-sale-types-section {
    background: #ffffff;
    padding: 42px 0;
}

.home-sale-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-sale-card {
    position: relative;
    display: grid;
    min-height: 150px;
    align-content: center;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(17, 24, 39, .08);
    color: #111827;
    padding: 30px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-sale-card::after {
    position: absolute;
    right: 26px;
    top: 50%;
    color: #dc2626;
    content: "→";
    font-size: 38px;
    font-weight: 950;
    opacity: .24;
    transform: translateY(-50%);
    transition: opacity .18s ease, right .18s ease;
}

.home-sale-card span {
    display: block;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1;
}

.home-sale-card:hover {
    border-color: rgba(220, 38, 38, .30);
    box-shadow: 0 24px 58px rgba(17, 24, 39, .12);
    transform: translateY(-3px);
}

.home-sale-card:hover::after {
    right: 20px;
    opacity: 1;
}

.home-sale-card-industrial {
    background:
        radial-gradient(circle at right top, rgba(220, 38, 38, .10), transparent 34%),
        #ffffff;
}

.home-sale-card-ecommerce {
    background:
        radial-gradient(circle at right top, rgba(17, 24, 39, .08), transparent 34%),
        #ffffff;
}

@media (max-width: 760px) {
    .home-sale-grid {
        grid-template-columns: 1fr;
    }

    .home-sale-card {
        min-height: 120px;
        padding: 24px;
    }
}

/* Compact home spacing: clean 3otuz landing, no extra empty air */
.home-hero {
    padding: 42px 0 34px;
}

.home-hero-content h1 {
    margin-bottom: 14px;
    max-width: 760px;
    font-size: clamp(34px, 4.4vw, 58px);
}

.home-hero-content p {
    margin-bottom: 18px;
    max-width: 680px;
    line-height: 1.6;
}

.home-hero-actions {
    margin-top: 4px;
}

.home-section {
    padding: 34px 0;
}

.home-section + .home-section {
    border-top: 1px solid rgba(17, 24, 39, .06);
}

.home-sale-types-section {
    padding: 24px 0 30px;
}

.home-sale-grid {
    gap: 16px;
}

.home-sale-card {
    min-height: 116px;
    border-radius: 24px;
    padding: 24px;
}

.home-sale-card span {
    font-size: clamp(24px, 2.6vw, 34px);
}

.home-section-head {
    margin-bottom: 18px;
}

.home-product-grid {
    gap: 16px;
}

.home-product-body {
    padding: 15px;
}

.home-product-body h3 {
    min-height: auto;
    margin-bottom: 8px;
}

.home-section-empty,
.cart-empty {
    padding: 22px;
}

@media (max-width: 760px) {
    .home-hero {
        padding: 32px 0 26px;
    }

    .home-section {
        padding: 26px 0;
    }

    .home-sale-types-section {
        padding: 20px 0 24px;
    }

    .home-sale-card {
        min-height: 96px;
        padding: 20px;
    }
}

/* Admin controlled home hero image */
.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 32px;
    align-items: center;
}

.home-hero-media {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.home-hero-media img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-hero-media img {
        height: 220px;
    }
}

.home-more-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.home-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #dc2626;
    border-radius: 999px;
    color: #dc2626;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.home-more-btn:hover {
    background: #dc2626;
    color: #fff;
}

