/* Home-only merchandising. Product pages retain the shared storefront layout. */
body.customer-home .main-content { padding-top: 28px; }
.home-showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: stretch; }
body.customer-home .home-welcome { display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; margin: 0; padding: 44px; border-radius: 16px; background: #172d45; color: #fff; }
.home-welcome::before { content: ''; position: absolute; width: 310px; height: 310px; right: -230px; top: -145px; border: 45px solid #f4cf55; border-radius: 50%; opacity: .9; z-index: -1; }
body.customer-home .home-eyebrow { display: flex; align-items: center; gap: 9px; color: #e3cf87; font-size: 10px; letter-spacing: .14em; font-weight: 700; margin: 0 0 24px; line-height: 1.5; }
.home-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #f4cf55; flex: none; }
body.customer-home .home-welcome h1 { color: #fff; font-size: clamp(36px, 4.2vw, 62px); letter-spacing: -.055em; line-height: 1.04; margin: 0; }
.home-welcome h1 em { color: #f4cf55; font-style: normal; }
body.customer-home .home-welcome-description { color: #c4d2e0; font-size: 14px; line-height: 1.8; max-width: 350px; margin: 24px 0 0; }
.home-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
html body.customer-theme.customer-home .home-primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 14px 20px; border-radius: 6px; background: #f4cf55; color: #172d45; font-size: 13px; font-weight: 800; text-decoration: none; }
.home-primary-link > span { font-size: 21px; }
html body.customer-theme.customer-home .home-secondary-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; font-size: 12px; text-underline-offset: 5px; }
.home-welcome-footer { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: auto; padding-top: 30px; }
.home-welcome-footer > span:first-child { color: #9fb3c8; font-size: 9px; letter-spacing: .12em; line-height: 1.5; }
.home-brand-stamp { color: #e5ebf2; font-size: 27px; font-weight: 900; letter-spacing: -.06em; transform: rotate(-7deg); text-align: center; border: 1px solid #536d8a; border-radius: 5px; padding: 10px 12px; }
.home-brand-stamp span { display: block; color: #f4cf55; font-size: 7px; letter-spacing: .12em; margin-top: 4px; }
html body.customer-theme.customer-home .hero.featured-carousel { display: block; padding: 28px 32px 72px; margin: 0; border-radius: 16px; background: var(--shop-surface); border: 1px solid var(--shop-line); color: var(--shop-ink); }
body.customer-home .product-slide { grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; }
html body.customer-theme.customer-home .product-slide-visual { grid-row: 1; height: 240px; background: var(--shop-soft); border: 0; border-radius: 12px; }
body.customer-home .product-slide-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; }
body.customer-home .product-slide-copy .slide-eyebrow { grid-column: 1 / -1; margin: 0; color: var(--shop-muted) !important; font-size: 9px; }
html body.customer-theme.customer-home .product-slide h2 { grid-column: 1 / -1; color: var(--shop-ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.17; margin: 0; }
body.customer-home .product-slide-copy .slide-description { display: none; }
html body.customer-theme.customer-home .product-slide-copy .slide-price { color: var(--shop-ink); margin: 0; font-size: 24px; }
html body.customer-theme.customer-home .slide-price span { color: var(--shop-muted); font-size: 11px; white-space: nowrap; }
html body.customer-theme.customer-home .product-slide-copy .slide-cta { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; background: var(--shop-soft); border: 1px solid var(--shop-line); color: var(--shop-ink); font-size: 12px; }
body.customer-home .carousel-controls { left: 32px; right: 32px; bottom: 16px; }
html body.customer-theme.customer-home .carousel-arrows button { color: var(--shop-ink); background: var(--shop-soft); border-color: var(--shop-line); }
body.customer-home .carousel-indicator { border: 0; background: #8d9bac; height: 5px; width: 18px; border-radius: 5px; }
body.customer-home .carousel-indicator.active { width: 34px; background: #b58712; }
body.customer-home .storefront-benefits { padding: 24px 12px; gap: 16px; margin-top: 6px; }
body.customer-home .storefront-benefits .customer-nav-icon { padding: 10px; width: 46px; height: 46px; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 50%; }
body.customer-home .categories { margin-top: 40px; scroll-margin-top: 24px; }
body.customer-home .section-heading .storefront-eyebrow { margin-bottom: 8px; font-size: 10px; }
body.customer-home .section-heading h2 { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.2; }
body.customer-home .category-card { padding: 26px; border-radius: 12px; min-height: 200px; overflow: hidden; }
body.customer-home .category-card::after { content: '↗'; position: absolute; right: 22px; top: 24px; font-size: 24px; color: var(--shop-muted); }
body.customer-home .category-icon { width: 62px; height: 62px; margin-bottom: 22px; border-radius: 14px; }
html body.customer-theme.customer-home .category-icon.electrical { background: #f9e9ad; color: #76541a; }
html body.customer-theme.customer-home .category-icon.tools { background: #d4e5f4; color: #224b72; }
html body.customer-theme.customer-home .category-icon.hardware { background: #d9e9dd; color: #315b3a; }
html body.customer-theme.customer-home .category-icon.others { background: #eddfd4; color: #795539; }
body.customer-home .category-icon svg { width: 30px; height: 30px; }
.home-projects { margin-top: 48px; }
.home-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
html body.customer-theme.customer-home .home-project { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 12px; min-height: 280px; padding: 30px; border-radius: 12px; overflow: hidden; text-decoration: none; }
html body.customer-theme.customer-home .home-project-tools { background: #f4cf55; color: #172d45; }
html body.customer-theme.customer-home .home-project-build { background: #254b49; color: #fff; }
.home-project::before { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -45px; bottom: -60px; background: #ffffff16; z-index: -1; }
.home-project-copy { position: relative; z-index: 1; }
.home-project-label { font-size: 9px; letter-spacing: .11em; font-weight: 800; }
html body.customer-theme.customer-home .home-project h3 { color: inherit; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.1; margin: 14px 0; }
.home-project p { color: inherit; font-size: 12px; line-height: 1.6; max-width: 210px; }
.home-project-cta { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; margin-top: 12px; font-size: 12px; font-weight: 800; border-bottom: 1px solid currentColor; }
.home-project-cta > span { font-size: 21px; }
.home-project-art { width: 100%; min-width: 0; }
.home-project-art img { display: block; width: 100%; height: auto; max-height: 230px; object-fit: contain; filter: drop-shadow(0 14px 12px #0003); }
.home-project-art svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .home-project-art { transition: transform 250ms ease; }
    .home-project:hover .home-project-art { transform: translateY(-5px) rotate(-2deg); }
    .home-primary-link { transition: background-color 180ms ease, transform 180ms ease; }
    html body.customer-theme.customer-home .home-primary-link:hover { background: #ffe28a; transform: translateY(-2px); }
}
@media (max-width: 1000px) {
    body.customer-home .home-welcome { padding: 30px; }
    html body.customer-theme.customer-home .hero.featured-carousel { padding: 24px 24px 72px; }
    body.customer-home .product-slide-visual { height: 220px; }
    body.customer-home .product-slide-copy { grid-template-columns: minmax(0, 1fr); }
    body.customer-home .product-slide-copy .slide-cta { justify-self: start; }
    .home-project-grid { grid-template-columns: minmax(0, 1fr); }
    html body.customer-theme.customer-home .home-project { min-height: 240px; }
}
@media (max-width: 760px) {
    .home-showcase { grid-template-columns: minmax(0, 1fr); }
    body.customer-home .home-welcome { padding: 32px; }
    body.customer-home .home-welcome h1 { font-size: clamp(38px, 7vw, 54px); }
    body.customer-home .home-welcome-footer { padding-top: 24px; }
    html body.customer-theme.customer-home .product-slide-visual { height: 220px; }
    body.customer-home .product-slide-copy { grid-template-columns: minmax(0, 1fr) auto; }
    body.customer-home .category-card { padding: 20px; min-height: 185px; }
    body.customer-home .category-card::after { right: 14px; top: 18px; }
}
@media (max-width: 420px) {
    body.customer-home .home-welcome { padding: 26px; }
    body.customer-home .product-slide-copy { grid-template-columns: minmax(0, 1fr); }
    html body.customer-theme.customer-home .home-project { grid-template-columns: minmax(0, 1fr); padding: 26px; }
    .home-project-art { width: 70%; justify-self: end; margin-top: -15px; }
    .home-project p { max-width: none; }
    body.customer-home .category-card::after { font-size: 18px; }
}
