:root {
    --primary-color: #008eb0;
    --primary-dark: #004d60;
}

@font-face {
    font-family: "Swagger";
    src: url("/assets/fonts/SDSwaggerTTF.woff2") format("woff2");
    font-weight: Regular;
    font-style: normal;
}

body {
    padding-top: 5rem; /* 헤더 높이보다 조금 더 크게 설정 */
}

/* 드롭다운 메뉴 수정 */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    z-index: 50;
}

.dropdown-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 메뉴와 드롭다운 사이의 간격 채우기 */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: transparent;
}

/* 드롭다운 항목 애니메이션 */
.dropdown-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    transition-delay: calc(var(--item-index) * 0.05s);
}

.dropdown-active .dropdown-item {
    opacity: 1;
    transform: translateX(0);
}

.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

/* 제품 카드 스타일 */
.product-card {
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* 이미지 스타일 */
.product-image {
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.product-card:hover .product-image {
    opacity: 0.9;
}

/* 버튼 스타일 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 모바일 메뉴 스타일 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }
}

/* 서브메뉴 스타일 */
.relative.group .absolute {
    z-index: 50;
    top: 100%;
    left: 0;
}

/* 서브메뉴 표시 시 부모 요소에 대한 스타일 */
.relative.group:hover {
    z-index: 51;
}
