body {
    font-family: 'Pretendard', sans-serif;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
}

#mainMenu {
    overflow: visible;
}

@media (max-width: 1024px) {
    .menu-nav-wrap {
        overflow: hidden !important;
    }

    #mainMenu {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap !important;
        padding-top: 14px;
        margin-top: -10px;
    }

    #mainMenu::-webkit-scrollbar {
        display: none;
    }

    #mainMenu>* {
        flex-shrink: 0;
    }

    #menuMoreBtn {
        display: none !important;
    }
}

.heroSwiper .swiper-slide {
    width: 380px !important;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.icon-menu-item {
    width: calc((100% - 40px) / 6);
    min-width: 0;
}

@media (min-width: 768px) {
    .icon-menu-item {
        width: auto;
        min-width: 72px;
    }
}

.citySwiper .swiper-slide {
    width: 200px !important;
}

.citySwiper .swiper-button-next,
.citySwiper .swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* 메인 섹션 레이아웃 */
.main-section-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 40px 0;
    border-bottom: none;
    margin: 0 16px;
}

.dark .main-section-wrap {
    border-bottom-color: #1e293b;
}

.main-section-wrap.layout-left {
    flex-direction: row;
}

.main-section-wrap.layout-right {
    flex-direction: row-reverse;
}

.main-section-wrap.layout-normal {
    flex-direction: row;
}

/* 미디어 영역 */
.main-section-media {
    flex: 0 0 340px;
    width: 340px;
    height: 340px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.main-section-media img,
.main-section-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-section-media video {
    z-index: 1;
}

/* 상품 영역 */
.main-section-products {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.layout-left .main-section-products {
    padding-left: 24px;
}

.layout-right .main-section-products {
    padding-right: 24px;
}

.layout-normal .main-section-products {
    padding: 0;
}

.main-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.main-section-title h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-section-nav {
    display: flex;
    gap: 6px;
}

.main-section-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #475569;
}

.dark .main-section-nav button {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.main-section-nav button:hover {
    background: #007ACC;
    border-color: #007ACC;
    color: white;
}

/* 상품 스와이퍼 */
.main-section-swiper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.main-section-swiper .swiper-slide {
    height: auto;
}

/* 상품 카드 */
.md-product-card {
    cursor: pointer;
    height: 100%;
}

.md-product-card .thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 8px;
}

.md-product-card .thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.md-product-card:hover .thumb img {
    transform: scale(1.07);
}

.md-product-card .wish-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 2;
}

.md-product-card .wish-btn:hover {
    background: white;
    color: #ef4444;
}

.md-product-card .p-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: #1e293b;
}

.dark .md-product-card .p-name {
    color: #f1f5f9;
}

.md-product-card .p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

.md-product-card .p-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid;
    font-weight: 600;
    white-space: nowrap;
}

.md-product-card .p-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.md-product-card .p-price-before {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.md-product-card .p-price-main {
    font-size: 16px;
    font-weight: 800;
    color: #007ACC;
}

.md-product-card .p-review {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.md-product-card .p-review .star {
    color: #f59e0b;
    font-size: 12px;
}

.main-section-swiper {
    padding-bottom: 0 !important;
}

/* 하단 배너 카드 */
.bottom-banner-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    aspect-ratio: 335 / 400;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bottom-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bottom-banner-text p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.bottom-banner-text h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.bottom-banner-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    align-self: flex-start;
    transition: background 0.2s;
}

.bottom-banner-card:hover .bottom-banner-btn {
    background: rgba(255, 255, 255, 0.35);
}

/* 하단 서비스 배너 */
.service-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-banner-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-banner-name {
    font-size: 17px;
    font-weight: 800;
}

.service-banner-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.service-banner-desc {
    font-size: 13px;
    margin-top: 2px;
}

.service-banner-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-banner-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 미디어 자세히 보기 버튼 */
.media-detail-btn {
    display: none;
}

@media (max-width: 768px) {
    .media-detail-btn {
        display: flex;
        position: absolute;
        bottom: 12px;
        right: 12px;
        z-index: 5;
        padding: 6px 14px;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 20px;
        border: none;
        cursor: pointer;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        transition: background 0.2s;
    }

    .media-detail-btn:hover {
        background: rgba(0, 0, 0, 0.75);
    }
}

@media (max-width: 768px) {
    .main-section-wrap {
        flex-direction: column !important;
        padding: 24px 0;
        margin: 0 16px;
        overflow: hidden;
    }

    .main-section-media {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        flex: none;
    }

    .main-section-products {
        padding: 0 !important;
        margin-top: 16px;
    }
}
