@charset "UTF-8";
/**
 * 파일명: /assets/css/shop_view_theme.css
 * 역할: KShops24 상점 메인 뷰(shop_view.php) 공통 정적 테마 스타일시트
 */

/* 기본 바디 스타일 */
body {
    line-height: 1.6;
    padding-bottom: 80px;
    overflow-x: clip;
}

/* Hero 섹션: 상점 메인 비주얼 */
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Hero Carousel 및 Overlay 스타일 */
.hero-carousel,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel {
    z-index: 0;
}

.hero-carousel img {
    -webkit-user-drag: none;
    /* 마우스 드래그 시 이미지 잔상 방지 */
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    pointer-events: none;
    /* 마우스 이벤트(클릭/드래그) 통과 */
}

/* [샘플 상점] Hero 영역 워터마크 뱃지 */
.sample-shop-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    pointer-events: none;
    line-height: 0;
}

.sample-shop-badge img {
    width: 220px;
    max-width: 48vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
    opacity: 0.95;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sample-shop-badge {
        top: 14px;
        left: 14px;
    }

    .sample-shop-badge img {
        width: 170px;
        max-width: 50vw;
    }
}

@media (max-width: 480px) {
    .sample-shop-badge {
        top: 10px;
        left: 10px;
    }

    .sample-shop-badge img {
        width: 145px;
        max-width: 52vw;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    user-select: none;
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
}

.hero-section .top-tag {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hero-section .divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto;
}

/* 상점 핵심 정보 섹션 스타일 */
.shop-info-summary-section {
    margin-top: 0;
    position: relative;
    z-index: 20;
}

/* 상점 인사글 전용 스타일 */
.shop-greeting-section {
    line-height: 1.3;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.shop-greeting-section p {
    margin-bottom: 3px;
}

.shop-greeting-section p:last-child {
    margin-bottom: 10px;
}

.shop-info-summary-section .info-bar-section {
    background: white;
    padding: 10px 0;
}

.shop-info-summary-section .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 5px;
}

.shop-info-summary-section .info-item strong {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0;
}

.shop-info-summary-section .info-item span {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.2;
}

/* 메인 타이틀 텍스트 효과 */
.title-effect-neon {
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff00de,
        0 0 30px #ff00de,
        0 0 40px #ff00de,
        0 0 55px #ff00de,
        0 0 75px #ff00de;
    color: #fff;
}

.title-effect-shadow {
    color: #f0f0f0;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}

.title-effect-outline {
    color: white;
    -webkit-text-stroke: 1.5px black;
    paint-order: stroke fill;
}

@media (max-width: 768px) {
    .hero-section {
        height: 35vh;
    }
}

/* 테스팅 모드 배너 */
.testing-banner {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #0dcaf0;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 섹션 타이틀 공통 */
.section-title {
    text-align: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.story-section {
    background-color: #f8f9fa;
}

.gallery-section {
    background-color: #ffffff;
}

.map-section {
    background-color: #f4f7f9;
}

.gallery-img-wrapper img:hover {
    transform: scale(1.05);
}

/* 하단 플로팅 연락처 바 */
.contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.contact-bar a {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    text-decoration: none;
    font-weight: 700;
}

.btn-call {
    background: var(--accent-color);
    color: white !important;
}

.btn-kakao {
    background: #FEE500;
    color: #3A1D1D !important;
}

/* KShops24 홍보 배너 */
.promo-banner {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* 상점 하단 이미지 광고 스타일 (3:2 비율) */
.shop-ad-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.shop-ad-img {
    transition: transform 0.35s ease;
}

.shop-ad-item:hover .shop-ad-img {
    transform: scale(1.04);
}

/* PC 전용 10~20% 좌/우 사이드바 광고 레이아웃 스타일 */
.shop-site-layout-container {
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .shop-site-layout-container.has-side-ad {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        max-width: 1680px;
        padding: 0 15px;
        gap: 20px;
    }

    .shop-site-layout-container.has-side-ad .shop-site-main-content {
        flex: 1 1 0;
        min-width: 0;
        max-width: 1200px;
    }

    .shop-side-ad-column {
        width: 18%;
        min-width: 180px;
        max-width: 240px;
        flex: 0 0 18%;
        align-self: stretch;
        padding-top: 10px;
        position: relative;
    }

    .shop-side-ad-sticky-box {
        position: -webkit-sticky;
        position: sticky;
        top: 60px;
        z-index: 1020;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        padding: 12px;
    }

    .shop-side-ad-header {
        font-size: 0.78rem;
        font-weight: 800;
        color: #475569;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: space-between;
        letter-spacing: 0.5px;
    }

    .shop-side-ad-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

    .shop-side-ad-list::-webkit-scrollbar {
        width: 4px;
    }

    .shop-side-ad-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .shop-side-ad-card {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .shop-side-ad-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
    }

    .shop-side-ad-img-box {
        aspect-ratio: 3/2;
        overflow: hidden;
        background: #f1f5f9;
    }

    .shop-side-ad-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .shop-side-ad-card:hover .shop-side-ad-img-box img {
        transform: scale(1.06);
    }

    .shop-side-ad-title {
        font-size: 0.78rem;
        font-weight: 700;
        color: #1e293b;
        padding: 6px 10px;
        text-align: center;
        background: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-top: 1px solid #f1f5f9;
    }
}

/* 부트스트랩 프라이머리 클래스 동적 변수 연결 */
.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

.btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

.border-primary {
    border-color: var(--accent-color) !important;
}

.badge.bg-primary {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

/* 휴점 상태 플로팅 배너 및 백드롭 */
.inactive-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.inactive-floating-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 360px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #dc3545;
    animation: fadeInBanner 0.5s ease-out forwards;
}

@keyframes fadeInBanner {
    from {
        opacity: 0;
        top: 45%;
    }

    to {
        opacity: 1;
        top: 50%;
    }
}

/* 공지사항 카드 스타일 */
.notice-card {
    border-radius: 16px;
    padding: 16px 20px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notice-card:hover {
    transform: translateY(-2px);
}

.notice-card-urgent {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.08) 0%, rgba(255, 77, 77, 0.03) 100%);
    border: 1px solid rgba(255, 77, 77, 0.15);
    border-left: 5px solid #ff4d4d;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.05);
}

.notice-card-urgent:hover {
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.1);
}

.notice-card-general {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.08) 0%, rgba(243, 156, 18, 0.03) 100%);
    border: 1px solid rgba(243, 156, 18, 0.15);
    border-left: 5px solid #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.05);
}

.notice-card-general:hover {
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.1);
}

.notice-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
}

.notice-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.text-urgent-accent {
    color: #e03c3c;
}

.text-general-accent {
    color: #d39e00;
}

.notice-text {
    font-size: 0.85rem;
    color: #2b2b2b;
    line-height: 1.6;
    word-break: break-all;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1.5s infinite ease-in-out;
}

/* 쪽지 알림 펄스 애니메이션 */
@keyframes envelopePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.unread-message-badge {
    font-size: 0.55rem;
    padding: 0.35em 0.5em;
    z-index: 10;
    animation: envelopePulse 1.5s infinite;
}