/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Prata&family=Cormorant+SC:wght@400;600;700&display=swap');

/* ===== GLOBAL STYLES ===== */
.js-animation {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.5s;
	padding: 0 10px;
	margin-bottom: 50px;
}

.js-animation.is-show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0px);
}

/* ===== MAIN CONTAINER ===== */
.halloween_page {
	position: relative;
	background-size: 100% auto;
	background-color: #2B2B2B;
	padding-bottom: 30px;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.halloween_page *,
.halloween_page .brand,
.halloween_page h2,
.halloween_page h3 {
	color: #fff;
}

.halloween_page h2:after {
	display: none;
}

/* General h2 styles - will be overridden by .section-title */
.halloween_page h2:not(.section-title):not(.nav-intro-title) {
	font-size: 12px;
	line-height: 1.5;
	margin: 12px 0 10px;
	font-weight: 400;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.halloween_page .price {
	padding-bottom: 6px;
}

/* ===== ANCHOR SCROLL MARGINS ===== */
#hw_sale,
#hw_ranking,
#hw_blog,
#hw_oni,
#hw_animal,
#hw_china,
#hw_character,
#hw_nurse,
#hw_police,
#hw_anier {
	scroll-margin-top: 0px;
}

/* ===== UTILITY CLASSES ===== */

.fs-l-main {
	background: #fff;
}

/* ===== MORE VIEW BUTTONS ===== */
.hw_view {
	position: relative;
	text-align: center;
	z-index: 1;
	cursor: pointer;
	margin-top: -30px;
	margin-bottom: 60px;
	padding: 0 10px;
}

/* ===== CATEGORY BANNER IMAGES ===== */
.js-animation > a > img {
	border-radius: 10px;
}

.hw_view a {
	display: inline-block;
	text-decoration: none;
	border: 1px solid #fafafa;
	border-radius: 100px;
	padding: 12px 38px;
	color: #fafafa;
	font-size: 16px;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	font-weight: 300;
}

.hw_view a:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ===== SCROLL STYLES ===== */
.lala_scroll {
	overflow-x: scroll;
	white-space: nowrap;
	padding: 10px;
	margin-bottom: 30px;
}

.lala_scroll .content_box {
	display: inline-block;
	vertical-align: top;
	width: 85%;
	white-space: normal;
	margin-right: 10px;
	text-align: center;
	padding: 0 5px;
}

.lala_scroll .content_box p {
	margin: 0 auto;
	font-size: 10px;
	padding: 2px 4px;
	height: 4.9em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

@media screen and (min-width: 570px) {
	.lala_scroll .content_box p {
		height: 3.5em;
		-webkit-line-clamp: 3;
	}
}

.lala_scroll::-webkit-scrollbar {
	height: 6px;
	width: 100px;
}

.lala_scroll::-webkit-scrollbar-track {
	background-color: #eee;
}

.lala_scroll::-webkit-scrollbar-thumb {
	background-color: #E99F04;
	border-radius: 3px;
}

/* ===== CAROUSEL WRAPPER ===== */
.carousel-wrapper {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hw_box {
    display: flex;
    transition: none;
    width: 100%;
    gap: 15px;
    padding: 0 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
    /* Enable native horizontal scrolling with scroll snap */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}

.hw_box.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.hw_box a {
    flex: 0 0 calc(14.28% - 12px);
    min-width: 70px;
    text-align: center;
    text-decoration: none;
    color: #000000;
    pointer-events: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hw_box img {
	width: 100%;
	max-width: 70px;
	height: 70px;
	border-radius: 50%;
	object-fit: cover;
	aspect-ratio: 1/1;
	
}

.hw_box p {
	font-size: 11px;
	line-height: 1.3;
	word-break: keep-all;
	overflow-wrap: break-word;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
}

.carousel-indicators {
	position: relative;
	margin: 15px auto 50px;
	width: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 10;
}

.progress-bar {
	width: 200px;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	position: relative;
}

.progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 60px;
	background: #B061BD;
	border-radius: 3px;
	transition: left 0.3s ease;
}

@media screen and (max-width: 490px) {
    .hw_box {
        gap: 8px;
        padding: 0 10px;
        /* keep native horizontal scroll */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
	.hw_box a {
		flex: 0 0 calc(14.28% - 6px);
		min-width: 60px;
	}
	.hw_box img {
		max-width: 60px;
		height: 60px;
	}
	.hw_box p {
		font-size: 10px;
	}
}

/* ===== DESKTOP NAVIGATION ADJUSTMENT ===== */
@media screen and (min-width: 491px) {
    .carousel-wrapper {
        max-width: 600px;
    }
}

@media screen and (max-width: 360px) {
	.hw_box {
		gap: 6px;
		padding: 0 8px;
	}
	.hw_box a {
		flex: 0 0 calc(14.28% - 5px);
		min-width: 55px;
	}
	.hw_box img {
		max-width: 55px;
		height: 55px;
	}
	.hw_box p {
		font-size: 9px;
	}
}

/* ===== UTILITY CLASSES ===== */
.hw_separator {
	border-top: 1px solid #65573a;
	margin: 20px auto;
	width: 90%;
}


/* ===== SEOBOX SECTION ===== */
.seobox {
	position: relative;
	margin: 20px 0 20px 0;
	padding: 20px;
	
	
}

.seobox-content {
	position: relative;
}

.seobox-preview {
	margin: 0;
	line-height: 1.6;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
	font-size: 11px;
}

.seobox-full {
	margin-top: 15px;
	line-height: 1.6;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
	font-size: 11px;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: all 0.4s ease-in-out;
}

.seobox-full.show {
	opacity: 1;
	max-height: 1000px;
}

.seobox-toggle {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 3px 5px;
}

.seobox-toggle:hover {
	transform: translateX(-50%) scale(1.1);
}

.seobox-toggle .arrow {
	width: 20px;
	height: 15px;
	transition: transform 0.3s ease;
	filter: brightness(0) saturate(100%) invert(89%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(89%) contrast(89%);
}

.seobox-toggle.expanded .arrow {
	transform: rotate(180deg);
}

/* ===== SHIPPING BANNER ===== */
.shipping-banner {
	display: flex;
	justify-content: center;
	margin: 40px 0 40px;
}

.shipping-banner .pill {
	background: #EB8B00;
	color: #fafafa;
	border-radius: 999px;
	padding: 6px 25px;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	display: inline-block;
	text-align: center;
}

.shipping-banner .pill-main {
	display: block;
	color: #fff;
}

.shipping-banner .pill-subtitle {
	color: #fff;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.02em;
	display: block;
	margin-top: 0px;
}

/* ===== NAVIGATION INTRO TITLE ===== */
.halloween_page .nav-intro-title {
	text-align: center;
	color: #fff;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight:500;
	margin: 30px 0 20px !important;
}


/* ===== UNIFIED SECTION STYLES ===== */

.content-section {
	margin-bottom: 60px !important;
}

/* Force unified title styles across all sections */
.section-title,
.halloween_page .section-title,
h2.section-title,
.content-section .section-title {
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
	font-weight: 400 !important;
	color: #fff !important;
	font-size: 16px !important;
	text-align: center !important;
	margin: 40px auto 15px !important;
	padding: 0 10px !important;
	letter-spacing: 0.05em !important;
	line-height: 1.6 !important;
	max-width: 100% !important;
}

@media screen and (min-width: 768px) {
	.section-title,
	.halloween_page .section-title,
	h2.section-title,
	.content-section .section-title {
		font-size: 20px !important;
		margin: 50px auto 20px !important;
	}
}

/* Section subtitle styles */
.section-subtitle {
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
	font-weight: 300 !important;
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 12px !important;
	text-align: center !important;
	margin: -15px auto 15px !important;
	padding: 0 10px !important;
	letter-spacing: 0.05em !important;
	line-height: 1.4 !important;
}

@media screen and (min-width: 768px) {
	.section-subtitle {
		font-size: 14px !important;
		margin: -18px auto 20px !important;
	}
}

/* ===== DIVIDER LINES - HIDDEN ===== */
.divider-line,
.content-section .divider-line,
.halloween_page .divider-line {
	display: none !important;
}

/* ===== BANNER IMAGES ===== */
.hw-top-banner {
	width: 100%;
	max-width: 600px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.halloween_page .js-animation img {
	width: 100%;
	max-width: 800px;
	height: auto;
}

/* ===== IMAGES ===== */
.halloween_page img[class*="lazyload"] {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Removed bunny-specific margin for consistency */

/* Legacy section IDs - using unified .section-title class now */
/* All section titles now use .section-title class for consistency */

/* Hide scrollbar (WebKit) on snap scroller */
.hw_box::-webkit-scrollbar { display: none; }


/* ===== BLOG SLIDER ===== */
.blog-slider-wrapper {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 20px auto 0;
	padding: 0 10px;
	box-sizing: border-box;
}

.blog-slider {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 20px 20px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-behavior: auto;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.blog-slider.dragging {
	cursor: grabbing;
}

.blog-slider::-webkit-scrollbar {
	display: none;
}

.blog-slider .content_box {
	flex: 0 0 calc((100% - 40px) / 2.1);
	text-align: center;
	box-sizing: border-box;
	min-width: 0;
}

.blog-slider .content_box img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.blog-slider .content_box p {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

@media (max-width: 768px) {
	.blog-slider {
		gap: 12px;
		padding: 10px 15px 20px;
	}
	
	.blog-slider .content_box {
		flex: 0 0 calc((100% - 30px) / 1.15);
	}
	
	.blog-slider .content_box p {
		font-size: 12px;
	}
}

/* ===== NEW ITEMS SLIDER STYLES ===== */
.new-items-slider-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto 40px;
	padding: 0 10px;
}

.new-items-slider {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	padding: 10px 5px 20px;
	scroll-behavior: auto; /* 자동 스크롤을 위해 smooth 제거 */
}

.new-items-slider::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.new-item-card {
	flex: 0 0 auto;
	width: 160px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-item-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.new-item-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* More items card */
.more-items-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.more-items-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 240px;
	padding: 20px;
}

.more-items-text {
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	line-height: 1.6;
	margin: 0 0 15px 0;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.more-items-arrow {
	font-size: 32px;
	color: #fff;
	font-weight: bold;
}

.more-items-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.new-item-image {
	position: relative;
	width: 100%;
	padding-top: 133%; /* 4:3 ratio */
	overflow: hidden;
	background: #f5f5f5;
}

.new-item-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.new-item-card:hover .new-item-image img {
	transform: scale(1.05);
}

.new-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #ff4757;
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
	z-index: 1;
}

.new-item-info {
	padding: 6px 8px 8px;
	text-align: center;
}

.new-item-name {
	font-size: 11px;
	line-height: 1.3;
	margin: 0 0 2px 0;
	max-height: 30px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: #333;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	font-weight: 400;
}

.new-item-price {
	font-size: 12px;
	font-weight: bold;
	color: #ff4757;
	margin: 0;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
}

.tax-label {
	font-size: 10px;
	font-weight: normal;
	color: #666;
	margin-left: 2px;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif !important;
}

/* New items scroll indicator */
.new-items-indicators {
	margin-top: 10px;
	display: flex;
	justify-content: center;
}

.new-items-progress-bar {
	width: 200px;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	position: relative;
}

.new-items-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 60px;
	background: #ff4757;
	border-radius: 3px;
	transition: left 0.3s ease;
}

/* Responsive adjustments for new items slider */
@media (min-width: 768px) {
	.new-item-card {
		width: 200px;
	}
	
	.new-item-info {
		padding: 8px 10px 10px;
	}

	.new-item-name {
		font-size: 12px;
	}

	.new-item-price {
		font-size: 14px;
	}

	.more-items-content {
		min-height: 300px;
	}

	.more-items-text {
		font-size: 18px;
	}

	.more-items-arrow {
		font-size: 40px;
	}
}

/* ===== CATEGORY TABS STYLES ===== */

.category-tabs-section {
	margin: 0 0 40px;
	padding: 0 10px;
}

.tabs-navigation {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	margin-bottom: 20px;
}

.tab-row {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.tab-btn {
	padding: 10px 24px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 25px;
	font-size: 12px;
	font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.tab-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.tab-btn.active {
	background: linear-gradient(135deg, #B061BD 0%, #E99F04 100%);
	border-color: #B061BD;
	box-shadow: 0 4px 12px rgba(176, 97, 189, 0.4);
	font-weight: 600;
}

.tabs-content {
	position: relative;
	min-height: 400px;
}

.tab-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	z-index: -1;
	transition: opacity 0.3s ease-in-out, z-index 0s 0.3s;
	pointer-events: none;
}

.tab-content.active {
	position: relative;
	opacity: 1;
	z-index: 1;
	transition: opacity 0.3s ease-in-out, z-index 0s;
	pointer-events: auto;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive tabs */
@media (max-width: 768px) {
	.tab-btn {
		padding: 9px 20px;
		font-size: 11px;
	}
	
	.tabs-navigation {
		gap: 6px;
	}
}

@media (max-width: 480px) {
	.tab-btn {
		padding: 8px 16px;
		font-size: 10px;
	}
	
	.tabs-navigation {
		gap: 5px;
	}
}
