/* 실물 사진과 상품 탐색을 중심으로 한 홈. 근거: 2026-09-08 storefront spec. */
.main-content:has(.home-storefront) { padding-top: 0; }
.home-storefront { --home-rule: var(--color-border); --color-brand-deep: var(--color-shop-accent); }
body:has(.home-storefront) { background: var(--color-canvas); }
.home-storefront .container { min-height: 0; }
/* Owner-approved campaign, 2026-10-10. Real product photos remain in the catalogue. */
.home-hero-band { background: #1e201c; }
.home-storefront .home-hero.container {
    position: relative; isolation: isolate; overflow: hidden;
    display: block; max-width: 1400px; min-height: 600px;
    padding: 88px 5% 72px;
}
.home-campaign-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(18,20,16,.91),rgba(18,20,16,.55) 38%,transparent 75%); z-index: -1; }
.home-hero-copy { min-width: 0; padding: 0; }
.home-eyebrow { color: #fff; font-size: 12px; letter-spacing: 3px; font-weight: 700; margin: 0 0 24px; }
.home-hero h1 { color: #fff; font-size: clamp(42px,5.4vw,76px); font-weight: 800; line-height: 1.16; letter-spacing: -.05em; text-align: left; margin: 0 0 24px; word-break: keep-all; }
.home-intro { color: #fff; font-size: 17px; max-width: 370px; line-height: 1.8; word-break: keep-all; }
.home-hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.home-primary-link, .home-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 52px; font-size: 15px; text-decoration: none; font-weight: 700; }
.home-primary-link { background: #fff; color: #252923; padding: 16px 24px; border-radius: 2px; }
.home-primary-link:hover { background: #eeede7; color: #252923; }
.home-text-link { color: var(--color-text); text-decoration: underline; text-underline-offset: 5px; }
.home-text-link:hover { color: var(--color-brand-deep); }
.home-primary-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.home-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--home-rule); background: transparent; }
.home-categories a { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-3); color: var(--color-ink); text-align: center; text-decoration: none; }
.home-categories a:hover { background: var(--color-surface-grain); color: var(--color-shop-accent); }
.home-categories span { font-weight: var(--fw-semibold); }
.home-categories small { color: var(--color-text-muted); font-size: var(--fs-sm); word-break: keep-all; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-5); }
.home-section-heading .section-title { margin: 0 0 var(--space-2); }
.home-section-heading p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.home-storefront .products-section { background: transparent; padding: 0; margin: var(--space-8) 0 0; }
.home-storefront .product-grid { row-gap: var(--space-6); }
.home-storefront .placeholder-image { background: var(--color-surface-alt); }
.home-storefront .product-card .product-name { min-height: 0; }
.home-storefront .product-info { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.home-storefront .product-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: var(--space-2); }
.home-storefront .product-description { margin: 0; }
.home-storefront .product-image { align-self: start; }
.home-account { padding-top: var(--space-6); }
.home-account .dashboard-header h2 { border: 0; padding: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
.home-account .dashboard-actions { max-width: none; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.home-account .action-card { background: var(--color-surface-alt); border: 0; padding: var(--space-4); text-decoration: none; backdrop-filter: none; transform: none; }
.home-account .action-card:hover { background: var(--color-surface-warn); }
.home-account .card-title { font-size: var(--fs-base); }
.home-account .card-desc { color: var(--color-text-muted); opacity: 1; }
@media (max-width: 768px) {
    .home-storefront .products-section { padding: 0; margin-top: var(--space-6); }

    .home-hero-links { gap: var(--space-3); }

    .home-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-categories a { padding: var(--space-4) var(--space-1); }
    .home-categories a:nth-child(-n+3) { border-bottom: 1px solid var(--home-rule); }
    .home-categories small { font-size: var(--fs-xs); }
}
@media (max-width: 560px) {

    .home-storefront .home-hero.container { min-height: 670px; padding: 45px 5% 60px; }
    .home-campaign-image { object-position: 64% bottom; }
    .home-hero::before { background: linear-gradient(180deg,rgba(18,20,16,.9),rgba(18,20,16,.68) 38%,rgba(18,20,16,.1) 80%); }
    .home-hero h1 { font-size: 49px; letter-spacing: -2.5px; }
    .home-intro { font-size: 15px; max-width: 250px; }
    .home-eyebrow { margin-bottom: 22px; }
    .home-primary-link { font-size: 14px; }
    .home-storefront .product-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .home-storefront .product-card { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto; grid-row: auto; gap: 18px; align-items: start; }
    .home-storefront .product-info { display: block; grid-row: auto; min-width: 0; padding: 4px 0; }
    .home-storefront .product-card .product-name { margin: 0 0 8px; }
    .home-storefront .product-description { font-size: 13px; margin-bottom: 10px; }
    .home-storefront .product-price { margin: 0; }
    .home-account .dashboard-actions { grid-template-columns: 1fr; gap: var(--space-2); }
    .home-account .action-card { display: flex; align-items: center; flex-wrap: wrap; column-gap: var(--space-4); }
    .home-account .card-title { margin: 0; }
}

/* Phase-one assortment has two category links at every viewport. */
.home-categories--first-sale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-categories--first-sale a:nth-child(-n+3) { border-bottom: 0; }
