:root {
    --primary-color: #2c3e50;    /* 유지 (어두운 청회색, 강하고 안정적) */
    --secondary-color: #e67e22;  /* 변경 (좀 더 차분한 오렌지, #e74c3c보다 덜 자극적) */
    --accent-color: #f39c12;     /* 유지 (밝은 주황, 포인트 색상으로 좋음) */
    --text-dark: #2d2d2d;        /* 유지 (현재 변경하신 색상, 본문 가독성 좋음) */
    --text-light: #6c757d;       /* 변경 (조금 더 어두운 회색, #7f8c8d보다 명시성 향상) */
    --bg-light: #f8f9fa;         /* 유지 (매우 밝은 배경, 깔끔함) */

    /* 그라디언트는 현재 색상과의 조화를 고려하여 변경 */
    --gradient-primary: linear-gradient(135deg, #4a69bd 0%, #6a89cc 100%); /* 차분한 블루 계열 */
    --gradient-secondary: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); /* 부드러운 오렌지-핑크 계열 */
    --gradient-third: linear-gradient(135deg, #2e2e2e 0%, #2d2d2d 100%);

    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08); /* 그림자 농도 약간 연하게 */
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12); /* 그림자 농도 약간 연하게 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 헤더 스타일 */
.sticky-nav {
	position: sticky;
	top: 0;
	z-index: 1030;
	background-color: white;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.top-header {
	background: white;
	padding: 8px 0;
	font-size: 0.9rem;
	z-index: 999;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-third);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    position: relative;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 10px 45px 10px 20px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.search-btn {
	background: var(--gradient-third);
	border: none;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	color: white;
	margin-left: 15px;
	transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* 메인 배너 */
.hero-section {
    margin-top: 0;
    background: var(--gradient-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: var(--gradient-secondary);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

/* 카테고리 섹션 */
.category-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: auto;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-desc {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* 베스트 상품 섹션 */
.bestseller-section {
    padding: 20px 0;
    background: white;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-original {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-rate {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 특별 혜택 섹션 */
.special-offer {
    background: var(--gradient-secondary);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.offer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.offer-button {
    background: white;
    color: var(--secondary-color);
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.offer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 푸터 */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-section h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .search-bar {
        max-width: 100%;
        margin: 10px 0;
    }
}

/* 네비게이션 호버 효과 */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 상품 카드 추가 효과 */
.add-to-cart {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .add-to-cart {
    bottom: 20px;
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 80vh; /* 반응형 */
    object-fit: contain;
    background-color: #f5f5f5; /* 여백이 생길 경우 부드럽게 처리 */
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 40vh;
		object-fit: cover;
    }

	.carousel-control-prev,
	.carousel-control-next {
		width: 30px;
		height: 30px;
		background-color: rgba(255, 255, 255, 0.5);
		top: 50%;
		transform: translateY(-50%) !important;  /* ✅ X축 이동 제거 */
	}

	.carousel-control-prev {
		left: 5px !important;  /* ✅ 모바일 기준 여백 다시 주기 */
	}

	.carousel-control-next {
		right: 5px !important;
	}

	.carousel-control-prev-icon,
	.carousel-control-next-icon {
		background-size: 50% 50%;
		filter: brightness(0.3) grayscale(100%);
	}

	.search-container {
		width: 90% !important;
	}

	.search-trigger {
		margin-top: 10% !important;
	}
	.search-btn {
		margin-left: 18% !important;
	}
}

/* category-icons 섹션에 추가적인 스타일을 적용할 수 있습니다. */
.category-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.category-icons .category-item {
    width: 100px;
    flex: 0 0 auto;
    text-align: center;
}

.circle-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f7f7f7; /* ✅ 회색 원 배경 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* ✅ 자르지 말고 안쪽에 맞춰 보이게 */
    display: block;
}

/* ✅ 호버 시 확대 + 그림자 */
.category-item:hover .circle-wrapper {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ✅ 텍스트 스타일 */
.category-icons .category-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 500;
    transition: color 0.2s;
}

.category-item:hover p {
    color: #95a5a6;
}


.carousel {
	position: relative; /* 👈 기준 요소 지정 */
}
.carousel-counter {
	position: absolute;
	bottom: 20px;
	left: 50%; /* 👈 가운데 정렬 */
	transform: translateX(-50%); /* 👈 정중앙 이동 */
	background: rgba(0, 0, 0, 0.4);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	z-index: 10;
}
.carousel-control-prev,
.carousel-control-next {
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.6); /* 밝은 회색 배경 */
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 1 !important;
	transition: all 0.3s ease;
	z-index: 2;
}

/* 화살표 아이콘 스타일 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
	background-size: 80% 80%;
	filter: grayscale(100%) brightness(0.3); /* 회색 화살표 느낌 */
}

/* 화살표 hover 시 진하게 */
.carousel-control-prev:hover,
.carousel-control-next:hover {
	background-color: rgba(0, 0, 0, 0.3);
}

/* 위치 조정: 이미지 안쪽으로 더 밀어넣기 */
.carousel-control-prev {
	left: 20%;
}

.carousel-control-next {
	right: 20%;
}

/* 검색 오버레이 스타일 */
.search-overlay {
	position: fixed;
	top: 5rem;
	left: 0;
	width: 100%;
	height: 40vh;
	z-index: 2000;
	display: none;
	flex-direction: column;
	overflow: auto;
}
.search-overlay.active {
	display: flex;
}
body.search-open {
	overflow: hidden;
}
.search-container {
	width: 600px;
	max-width: 1000px;
	margin: auto;
	padding: 20px;
	background: white;
	z-index: 1;
}
.search-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 20px;
}
.search-bar-box {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
.search-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
}
.search-button {
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 10px 15px;
}
.search-suggestions .suggestion-label {
	font-weight: bold;
	margin-bottom: 10px;
	display: block;
}
.search-suggestions {
	margin-top: 15px;
}
.suggestion-label {
	margin: 0 !important;
}
.suggestion-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.tag {
	background: #eee;
	border-radius: 15px;
	padding: 5px 10px;
	font-size: 0.9rem;
	white-space: nowrap;
}
.search-close {
	background: none;
	border: none;
	font-size: 2rem;
	color: #333;
}
.search-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0,0,0,0.5); /* ✅ 배경 어둡게 처리 */
	z-index: 0; /* ✅ 뒤로 숨김 (검색창 콘텐츠보다 아래) */
}
body.search-open {
	overflow: hidden; /* ✅ 검색창 열리면 스크롤 막기 */
}

.login-wrap {
	max-width: 400px;
	margin: 50px auto;
	font-family: 'Noto Sans KR', sans-serif;
}
.login-tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
}
.login-tabs div {
	flex: 1;
	text-align: center;
	padding: 12px;
	cursor: pointer;
	font-weight: bold;
	border: 1px solid #ddd;
	border-bottom: none;
	background-color: #f8f8f8;
}
.login-tabs .active {
	background-color: #fff;
	border-bottom: 1px solid #fff;
}
.login-form {
	border: 1px solid #ddd;
	padding: 30px;
	background: #fff;
}
.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	font-size: 14px;
}
.login-form .btn-login {
	background: #222;
	color: #fff;
	width: 100%;
	padding: 12px;
	font-size: 16px;
	border: none;
	cursor: pointer;
}
.login-bottom {
	margin-top: 15px;
	font-size: 13px;
	text-align: center;
}
.login-bottom a {
	margin: 0 5px;
	color: #444;
	text-decoration: none;
}

.top-header a {
	font-size: 13px;
	margin-left: 10px;
	margin-right: 10px;
	color: #333;
	text-decoration: none;
}
