/* ===== 홈(index) 페이지 전용 스타일 ===== */

/* ----- 상품 가로 슬라이드 ----- */
.product-slide-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
    scrollbar-width: none;
}
.product-slide-wrap::-webkit-scrollbar { display: none; }
.product-slide-wrap > *:first-child { margin-left: 12px; }
.product-slide-wrap > *:last-child  { margin-right: 12px; }
.product-card-slide {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1.5px dashed #e5e7eb;
}

/* ----- 메인 배너 ----- */
.main-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    min-height: 130px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF8C5A 40%, #FFA06E 70%, #FFB347 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}
.banner-deco {
    position: absolute;
    font-size: 36px;
    opacity: 0.18;
    user-select: none;
    pointer-events: none;
    animation: floatDeco 6s ease-in-out infinite;
}
.deco-1 { top: -8px;    right: 20px;  font-size: 52px; animation-delay: 0s; }
.deco-2 { top: 10px;    right: 70px;  font-size: 30px; animation-delay: 0.8s; }
.deco-3 { bottom: -5px; right: 10px;  font-size: 44px; animation-delay: 1.2s; }
.deco-4 { top: 5px;     right: 115px; font-size: 28px; animation-delay: 0.4s; }
.deco-5 { bottom: 5px;  right: 80px;  font-size: 32px; animation-delay: 1.8s; }
.deco-6 { top: 40px;    right: 55px;  font-size: 26px; animation-delay: 2.2s; }
@keyframes floatDeco {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-4px) rotate(3deg); }
    66%       { transform: translateY(2px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .banner-deco { animation: none; }
}
.banner-content {
    position: relative;
    z-index: 1;
    max-width: 65%;
}
.banner-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 4px;
    letter-spacing: 0.3px;
}
.banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    letter-spacing: -0.3px;
}
.banner-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.5;
}

/* ----- 지역 선택 바텀시트 ----- */
.location-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
}
.location-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 201;
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}
.location-sheet.open {
    transform: translateX(-50%) translateY(0);
}
.location-sheet-handle {
    width: 36px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}
.location-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    flex-shrink: 0;
}
.location-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.location-sheet-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
}
.location-sheet-close:hover { background: #f3f4f6; }
.location-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0 8px;
}
.location-sheet-loading,
.location-sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    gap: 8px;
}
.location-addr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.location-addr-item:hover,
.location-addr-item:active { background: #f9fafb; }
.location-addr-item.is-default { background: #FFF0EA; }
.location-addr-item.is-default:hover { background: #ffe4d5; }
.location-addr-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
}
.location-addr-item.is-default .location-addr-icon {
    background: #FF6B35;
    color: #fff;
}
.location-addr-info { flex: 1; min-width: 0; }
.location-addr-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.location-addr-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.location-addr-default-badge {
    font-size: 10px;
    font-weight: 700;
    color: #FF6B35;
    background: #FFE8DC;
    border-radius: 4px;
    padding: 1px 5px;
}
.location-addr-city {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-addr-full {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-addr-check {
    color: #FF6B35;
    flex-shrink: 0;
    font-size: 20px !important;
}
.location-sheet-footer {
    padding: 10px 16px 20px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.location-sheet-manage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
}
.location-sheet-add-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #FF6B35;
    text-decoration: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; display: inline-block; }

/* ----- 입점 신청 배너 ----- */
.seller-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-primary-light);
    border: 1px solid #FFD4BE;
    border-radius: var(--radius-md);
}
.seller-banner-icon { font-size: 28px; flex-shrink: 0; }
.seller-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.seller-banner-text strong { font-size: 13px; color: var(--color-text-main); font-weight: 700; }
.seller-banner-text span   { font-size: 11px; color: var(--color-text-sub); }
.seller-banner-btn {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    text-decoration: none;
}
