/* components/button.css — Button system · FAB · pager · purchase grid */
/* ── Button system ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform var(--btn-fill-duration),
        box-shadow var(--btn-fill-duration),
        border-color var(--btn-fill-duration),
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        filter var(--btn-fill-duration);
}

.btn:not(.btn--link-nav):not(.btn--fab):not(.btn--buy-now):not(.btn--icon-outline):not(.btn--social):not(.btn--pager) {
    min-height: var(--btn-min-height);
}

.btn:focus-visible:not(.btn--link-nav) {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:not(.btn--link-nav):not(.btn--lift):not(.btn--card-action):active:not(:disabled) {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .btn:not(.btn--link-nav):not(.btn--lift):not(.btn--card-action):active:not(:disabled) {
        transform: none;
    }
}

.btn--pill {
    border-radius: var(--btn-radius-pill);
    line-height: 1;
    align-items: center;
}

.btn--pill .hero-cta__label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn--pill .hero-cta__label-text {
    line-height: 1;
}

.btn--pill .hero-cta__icon {
    align-items: center;
    justify-content: center;
}

.btn--card {
    border-radius: var(--btn-radius-card);
    font-size: var(--text-ui-sm);
    padding: 1rem;
}

@media (min-width: 768px) {
    .btn--card {
        font-size: var(--text-ui-md);
    }
}

.btn--xs {
    font-size: var(--text-ui-sm);
    padding: 0.75rem 1.5rem;
}

.btn--sm {
    font-size: var(--text-ui-sm);
    padding: 0.75rem 1.5rem;
}

.btn--md {
    font-size: var(--text-ui-sm);
    padding: 1rem 2rem;
}

.btn--lg {
    font-size: var(--text-ui-md);
    padding: 1rem 2.5rem;
}

.btn--full {
    width: 100%;
}

.btn--lift:hover,
.btn--lift:focus-visible {
    transform: none;
}

.btn--gold {
    background-color: var(--brand-gold);
    color: var(--white);
    box-shadow: var(--btn-shadow-lg);
}

.btn--gold-invert:hover,
.btn--gold-invert:focus-visible {
    background-color: var(--white);
    color: var(--btn-dark);
}

.btn--gold:not(.btn--gold-invert):not(.btn--fill):hover,
.btn--gold:not(.btn--gold-invert):not(.btn--fill):focus-visible,
.btn--naver:hover,
.btn--naver:focus-visible {
    filter: brightness(0.95);
}

.btn--dark {
    background-color: var(--btn-dark);
    color: var(--white);
    box-shadow: var(--btn-shadow-md);
}

.btn--dark:hover,
.btn--dark:focus-visible,
.btn--card-dark:hover,
.btn--card-dark:focus-visible {
    background-color: var(--btn-dark-hover);
}

.btn--dark-green:hover,
.btn--dark-green:focus-visible {
    background-color: var(--brand-green);
}

.btn--outline {
    background-color: var(--white);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--btn-dark);
    box-shadow: var(--btn-shadow-md);
}

.btn--outline-light {
    background-color: var(--white);
    border-color: var(--gray-200);
    color: var(--btn-dark);
    box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus-visible,
.btn--outline-light:hover,
.btn--outline-light:focus-visible {
    background-color: var(--surface-hover);
}

.btn--card-dark {
    background-color: var(--btn-dark);
    color: var(--white);
    box-shadow: var(--btn-shadow-md);
}

.btn--naver {
    background-color: var(--naver-green);
    color: var(--white);
    box-shadow: var(--btn-shadow-md);
}

/* clip-path LTR fill — hero-cta · search tag · .btn--fill 공통 */
.btn--fill,
.hero-cta,
.search-overlay__tag {
    position: relative;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
}

.btn--fill::before,
.hero-cta::before,
.search-overlay__tag::before,
.btn-fill__hover,
.hero-cta__hover,
.search-overlay__tag-hover {
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--btn-fill-duration);
}

.btn--fill::before,
.hero-cta::before,
.search-overlay__tag::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--btn-fill-bg, var(--brand-gold));
}

.btn-fill__label,
.hero-cta__label,
.search-overlay__tag-label {
    position: relative;
    display: inline-block;
}

.btn-fill__hover,
.hero-cta__hover,
.search-overlay__tag-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: var(--white);
    overflow: hidden;
}

.btn--fill:hover::before,
.btn--fill:focus-visible::before,
.btn--fill:hover .btn-fill__hover,
.btn--fill:focus-visible .btn-fill__hover,
.hero-cta:hover::before,
.hero-cta:focus-visible::before,
.hero-cta:hover .hero-cta__hover,
.hero-cta:focus-visible .hero-cta__hover,
.search-overlay__tag:hover::before,
.search-overlay__tag:focus-visible::before,
.search-overlay__tag:hover .search-overlay__tag-hover,
.search-overlay__tag:focus-visible .search-overlay__tag-hover {
    clip-path: inset(0 0 0 0);
}

.btn--fill-gold,
.hero-cta--gold,
.search-overlay__tag {
    --btn-fill-bg: var(--brand-gold);
    --btn-fill-border: var(--brand-gold);
}

.btn--fill-gold:not(.search-overlay__tag):not(.hero-cta) {
    background-color: var(--brand-gold);
    color: var(--white);
    box-shadow: var(--btn-shadow-lg);
    --btn-fill-bg: var(--brand-green);
    --btn-fill-border: var(--brand-green);
}

.btn--fill-gold:not(.search-overlay__tag):not(.hero-cta):hover,
.btn--fill-gold:not(.search-overlay__tag):not(.hero-cta):focus-visible {
    background-color: var(--brand-gold);
    color: var(--white);
    transition:
        border-color var(--btn-fill-duration) var(--btn-fill-duration),
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        filter var(--btn-fill-duration),
        transform var(--btn-fill-duration),
        box-shadow var(--btn-fill-duration);
}

.btn--fill-green,
.hero-cta--green {
    --btn-fill-bg: var(--brand-green);
    --btn-fill-border: var(--brand-green);
}

.btn--fill-dark {
    background-color: var(--btn-dark);
    color: var(--white);
    box-shadow: var(--btn-shadow-md);
    border: 1px solid var(--btn-dark);
    --btn-border-rest: var(--btn-dark);
    --btn-fill-bg: var(--brand-green);
    --btn-fill-border: var(--brand-green);
}

.btn--fill-dark:hover,
.btn--fill-dark:focus-visible {
    background-color: var(--btn-dark);
    border-color: var(--btn-fill-border);
    transition:
        border-color var(--btn-fill-duration) var(--btn-fill-duration),
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        filter var(--btn-fill-duration),
        transform var(--btn-fill-duration),
        box-shadow var(--btn-fill-duration);
}

.btn--fill-white {
    background-color: var(--white);
    color: var(--btn-dark);
    box-shadow: var(--btn-shadow-lg);
    --btn-fill-bg: var(--brand-gold);
    --btn-fill-border: var(--brand-gold);
}

.btn--fill-white:hover,
.btn--fill-white:focus-visible {
    background-color: var(--white);
    border: none;
}

.btn--fill-load-more {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--btn-border-rest, var(--gray-300));
    box-shadow: var(--shadow-dropdown);
    --btn-border-rest: var(--gray-300);
    --btn-fill-bg: var(--brand-gold);
    --btn-fill-border: var(--brand-gold);
}

.btn--fill-load-more:hover,
.btn--fill-load-more:focus-visible {
    background-color: var(--white);
    border-color: var(--btn-fill-border);
    box-shadow: var(--shadow-brand-card-hover);
    transition:
        border-color var(--btn-fill-duration) var(--btn-fill-duration),
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        filter var(--btn-fill-duration),
        transform var(--btn-fill-duration),
        box-shadow var(--btn-fill-duration);
}

.btn--fill-kakao {
    background-color: var(--kakao-yellow);
    color: var(--btn-dark);
    box-shadow: var(--btn-shadow-md);
    --btn-fill-bg: var(--brand-green);
    --btn-fill-border: var(--brand-green);
}

.btn--fill-kakao:hover,
.btn--fill-kakao:focus-visible {
    background-color: var(--kakao-yellow);
    border: none;
}

/* CTA dual-text layer — white / load-more / kakao fill 공통 */
.btn--fill-white .hero-cta__label,
.btn--fill-white .hero-cta__icon,
.btn--fill-load-more .hero-cta__label,
.btn--fill-load-more .hero-cta__icon,
.btn--fill-kakao .hero-cta__label,
.btn--fill-kakao .hero-cta__icon {
    overflow: hidden;
}

.btn--fill-white .hero-cta__label .hero-cta__hover,
.btn--fill-white .hero-cta__icon > .hero-cta__hover,
.btn--fill-load-more .hero-cta__label .hero-cta__hover,
.btn--fill-load-more .hero-cta__icon > .hero-cta__hover,
.btn--fill-kakao .hero-cta__label .hero-cta__hover,
.btn--fill-kakao .hero-cta__icon > .hero-cta__hover {
    z-index: 3;
    color: var(--white);
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--btn-fill-duration);
}

.btn--fill-white:hover .hero-cta__label .hero-cta__hover,
.btn--fill-white:focus-visible .hero-cta__label .hero-cta__hover,
.btn--fill-white:hover .hero-cta__icon > .hero-cta__hover,
.btn--fill-white:focus-visible .hero-cta__icon > .hero-cta__hover,
.btn--fill-load-more:hover .hero-cta__label .hero-cta__hover,
.btn--fill-load-more:focus-visible .hero-cta__label .hero-cta__hover,
.btn--fill-load-more:hover .hero-cta__icon > .hero-cta__hover,
.btn--fill-load-more:focus-visible .hero-cta__icon > .hero-cta__hover,
.btn--fill-kakao:hover .hero-cta__label .hero-cta__hover,
.btn--fill-kakao:focus-visible .hero-cta__label .hero-cta__hover,
.btn--fill-kakao:hover .hero-cta__icon > .hero-cta__hover,
.btn--fill-kakao:focus-visible .hero-cta__icon > .hero-cta__hover {
    clip-path: inset(0 0 0 0);
}

.btn--fill-kakao-white {
    background-color: var(--white);
    color: var(--btn-dark);
    font-size: var(--text-ui-md);
    box-shadow: var(--btn-shadow-md);
    --btn-fill-bg: var(--kakao-yellow);
    --btn-fill-border: var(--kakao-yellow);
}

.btn--fill-kakao-white:hover,
.btn--fill-kakao-white:focus-visible {
    background-color: var(--white);
    border: none;
}

.btn--fill-kakao-white .hero-cta__label .hero-cta__hover,
.btn--fill-kakao-white .hero-cta__icon > .hero-cta__hover {
    display: none;
}

.btn--fill-naver {
    background-color: var(--naver-green);
    color: var(--white);
    box-shadow: var(--btn-shadow-md);
    border: 1px solid var(--btn-border-rest, var(--naver-green));
    --btn-border-rest: var(--naver-green);
    --btn-fill-bg: var(--naver-green-dark);
    --btn-fill-border: var(--naver-green-dark);
}

.btn--fill-naver:hover,
.btn--fill-naver:focus-visible {
    background-color: var(--naver-green);
    border-color: var(--btn-fill-border);
    transition:
        border-color var(--btn-fill-duration) var(--btn-fill-duration),
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        filter var(--btn-fill-duration),
        transform var(--btn-fill-duration),
        box-shadow var(--btn-fill-duration);
}

/* slide-right hover — #hero-slider .hero-cta 전용 (index-hero.css) */
.btn--fill-slide:hover,
.btn--fill-slide:focus-visible {
    transform: none;
}

.btn--fill .hero-cta__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.btn--fill .hero-cta__icon .hero-cta__hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--fill .hero-cta__icon svg {
    display: block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

#btn-icon.review-btn__icon {
    transform: rotate(90deg);
}

/* 고객 리뷰 카드 */
.review-card {
    padding: var(--card-padding);
    border-radius: var(--radius-card);
}

@media (min-width: 768px) {
    .review-card {
        padding: var(--card-padding-md);
        border-radius: var(--radius-card-md);
    }
}

.btn--fill::after,
.hero-cta::after,
.search-overlay__tag::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--btn-fill-border, var(--brand-gold));
    clip-path: inset(0 100% 0 0);
    transition:
        clip-path var(--btn-fill-duration),
        border-color var(--btn-fill-duration);
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

.btn--fill:hover::after,
.btn--fill:focus-visible::after,
.hero-cta:hover::after,
.hero-cta:focus-visible::after,
.search-overlay__tag:hover::after,
.search-overlay__tag:focus-visible::after {
    clip-path: inset(0 0 0 0);
}

.btn--link {
    gap: 0.25rem;
    padding: 0 0 0.25rem;
    border: 0;
    border-bottom: 2px solid var(--btn-dark);
    border-radius: 0;
    background: none;
    color: var(--btn-dark);
    font-size: var(--text-ui-sm);
    box-shadow: none;
}

.btn--link:hover,
.btn--link:focus-visible {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
    transform: none;
}

.btn--link .btn__arrow {
    display: inline-block;
}

.btn--link:hover .btn__arrow,
.btn--link:focus-visible .btn__arrow {
    transform: none;
}

.btn--link-muted {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text-subtle);
    font-size: var(--text-ui-sm);
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: none;
}

.btn--link-muted:hover,
.btn--link-muted:focus-visible {
    color: var(--btn-dark);
    transform: none;
}

/* 섹션 VIEW ALL — header-nav-link 와 동일: 기본 텍스트만, hover 시 좌→우 골드 + 하단 라인 */
.btn--link-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0 var(--link-nav-underline-bottom, 2px);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: var(--text-ui-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    transform: none;
    --link-nav-base: var(--btn-dark);
    --link-nav-fill-duration: 0.3s;
    --link-nav-underline-bottom: 2px;
    --link-nav-underline-height: 1px;
}

.btn--link-nav__text {
    position: relative;
    display: inline-block;
}

.btn--link-nav__icon {
    width: 0.625rem;
    height: 0.625rem;
    flex-shrink: 0;
    color: var(--nav-link-base, var(--link-nav-base));
    transition: color var(--nav-link-fill-duration, var(--link-nav-fill-duration, 0.3s)) ease;
}

.btn--link-nav:hover .btn--link-nav__icon,
.btn--link-nav:focus-visible .btn--link-nav__icon {
    color: var(--brand-gold);
}

.btn--link-nav::after {
    bottom: 0;
}

.btn--link-nav--no-line {
    padding-bottom: 0;
}

.btn--link-nav--no-line::after {
    display: none;
}

.btn--case-normal {
    text-transform: none;
    letter-spacing: 0;
}

.btn--icon {
    flex-shrink: 0;
    padding: 0;
    border-radius: var(--btn-radius-pill);
    box-shadow: var(--shadow-fab);
}

.btn--icon-sm {
    width: 2.25rem;
    height: 2.25rem;
}

.btn--icon-md {
    width: 2.25rem;
    height: 2.25rem;
}

@media (min-width: 768px) {
    .btn--icon-md {
        width: 3rem;
        height: 3rem;
    }
}

.btn--icon-filled {
    background-color: var(--white);
    color: var(--btn-dark);
}

.btn--icon-filled:hover,
.btn--icon-filled:focus-visible,
.btn--buy-now:hover,
.btn--buy-now:focus-visible {
    background-color: var(--brand-gold);
    color: var(--white);
}

.btn--icon-outline {
    background-color: var(--white);
    border-color: var(--gray-200);
    color: var(--text-subtle);
    box-shadow: none;
}

.btn--icon-outline:hover,
.btn--icon-outline:focus-visible {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.btn--card-action {
    transition:
        background-color var(--btn-fill-duration),
        color var(--btn-fill-duration),
        border-color var(--btn-fill-duration);
}

.group:hover .btn--card-action {
    transform: none;
}

.btn--buy-now {
    background-color: var(--white);
    color: var(--btn-dark);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0 1rem;
    height: 2.25rem;
    border-radius: var(--btn-radius-pill);
    box-shadow: var(--shadow-fab);
}

@media (min-width: 768px) {
    .btn--buy-now {
        font-size: var(--text-ui-md);
        height: 3rem;
        padding: 0 1.5rem;
    }
}
