/* ===================================================
   FluxShop Default Skin — THE PURE Minimal Style
   참조: ecudemo119600.cafe24.com (THE PURE)
   특징: 플랫, 미니멀, 순백 배경, 얇은 테두리 최소화
   =================================================== */

/* ===================
   1. CSS Variables
   =================== */
:root {
    /* 기본 팔레트 — 무채색 중심 */
    --fhs-black:         #111111;
    --fhs-text:          #111111;
    --fhs-text-sub:      #444444;
    --fhs-text-muted:    #888888;
    --fhs-text-light:    #bbbbbb;
    --fhs-border:        #e5e5e5;
    --fhs-border-light:  #eeeeee;
    --fhs-border-faint:  #f4f4f4;
    --fhs-bg:            #ffffff;
    --fhs-bg-soft:       #f7f5f2;    /* 상품 이미지 배경 (THE PURE 특유 아이보리) */
    --fhs-bg-gray:       #f5f5f5;
    --fhs-white:         #ffffff;

    /* 포인트 컬러 — 최소 사용 (할인율/강조만) */
    --fhs-primary:       #111111;    /* 주 액션은 검정 */
    --fhs-primary-hover: #000000;
    --fhs-accent:        #e8323c;    /* 할인가/강조 */
    --fhs-accent-dark:   #c82030;
    --fhs-success:       #1e9e52;
    --fhs-danger:        #e8323c;

    /* 타이포 */
    --fhs-font:          'Pretendard', 'Pretendard Variable', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;

    /* 모양 */
    --fhs-radius:        4px;
    --fhs-radius-sm:     2px;
    --fhs-radius-lg:     8px;
    --fhs-radius-pill:   999px;

    /* 그림자 (거의 안씀) */
    --fhs-shadow:        0 1px 3px rgba(0,0,0,.05);
    --fhs-shadow-md:     0 4px 16px rgba(0,0,0,.08);

    --fhs-transition:    .25s ease;

    /* 하위호환 alias */
    --fluxshop-primary:       var(--fhs-primary);
    --fluxshop-primary-dark:  var(--fhs-primary-hover);
    --fluxshop-accent:        var(--fhs-accent);
    --fluxshop-danger:        var(--fhs-danger);
    --fluxshop-success:       var(--fhs-success);
    --fluxshop-text:          var(--fhs-text);
    --fluxshop-text-muted:    var(--fhs-text-muted);
    --fluxshop-border:        var(--fhs-border);
    --fluxshop-bg:            var(--fhs-bg);
    --fluxshop-white:         var(--fhs-white);
    --fluxshop-font:          var(--fhs-font);
    --fluxshop-radius:        var(--fhs-radius);
    --fluxshop-radius-sm:     var(--fhs-radius-sm);
    --fluxshop-shadow:        var(--fhs-shadow);
    --fluxshop-shadow-md:     var(--fhs-shadow-md);
    --fluxshop-transition:    var(--fhs-transition);
}

/* ===================
   2. Reset & Base
   =================== */
.fluxshop,
.fluxshop * {
    box-sizing: border-box;
    font-family: var(--fhs-font);
    -webkit-font-smoothing: antialiased;
}
.fluxshop {
    color: var(--fhs-text);
    line-height: 1.6;
    font-size: 14px;
    letter-spacing: -.01em;
}
.fluxshop a { text-decoration: none; color: inherit; }
.fluxshop img { max-width: 100%; display: block; }
.fluxshop h1, .fluxshop h2, .fluxshop h3, .fluxshop h4 {
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.35;
}
.fluxshop button { font-family: inherit; }

/* ===================
   3. 공통 버튼
   =================== */
.fluxshop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--fhs-transition), color var(--fhs-transition), border-color var(--fhs-transition), opacity var(--fhs-transition);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -.01em;
}
.fluxshop-btn--primary {
    background: var(--fhs-black);
    color: var(--fhs-white);
    border-color: var(--fhs-black);
}
.fluxshop-btn--primary:hover {
    background: #000;
    color: var(--fhs-white);
}
.fluxshop-btn--outline {
    background: var(--fhs-white);
    color: var(--fhs-text);
    border-color: var(--fhs-border);
}
.fluxshop-btn--outline:hover {
    border-color: var(--fhs-black);
    color: var(--fhs-black);
}
.fluxshop-btn--danger {
    background: var(--fhs-danger);
    color: var(--fhs-white);
    border-color: var(--fhs-danger);
}
.fluxshop-btn--danger:hover { background: var(--fhs-accent-dark); border-color: var(--fhs-accent-dark); }
.fluxshop-btn--disabled,
.fluxshop-btn[disabled] {
    background: var(--fhs-bg-gray);
    color: var(--fhs-text-light);
    border-color: var(--fhs-border);
    cursor: not-allowed;
}
.fluxshop-btn--block { display: flex; width: 100%; }
.fluxshop-btn--lg { padding: 18px 32px; font-size: 15px; }
.fluxshop-btn--sm { padding: 9px 14px; font-size: 12px; }

.fhs-btn--loading { opacity: .7; cursor: wait; }
.fhs-loading {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fhs-spin .7s linear infinite;
}
@keyframes fhs-spin { to { transform: rotate(360deg); } }

/* 아이콘 버튼 (찜, 공유) */
.fhs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fhs-border);
    background: var(--fhs-white);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color var(--fhs-transition), color var(--fhs-transition);
    color: var(--fhs-text);
}
.fhs-icon-btn:hover { border-color: var(--fhs-black); }
.fhs-icon-btn svg { width: 18px; height: 18px; }

/* ===================
   4. 그리드
   =================== */
.fluxshop-grid { display: grid; gap: 40px 20px; }
.fluxshop-grid--1col { grid-template-columns: repeat(1, 1fr); }
.fluxshop-grid--2col { grid-template-columns: repeat(2, 1fr); }
.fluxshop-grid--3col { grid-template-columns: repeat(3, 1fr); }
.fluxshop-grid--4col { grid-template-columns: repeat(4, 1fr); }
.fluxshop-grid--5col { grid-template-columns: repeat(5, 1fr); }
.fluxshop-grid--6col { grid-template-columns: repeat(6, 1fr); }

/* ===================
   5. 배지
   =================== */
.fluxshop-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--fhs-black);
    color: var(--fhs-white);
    border-radius: 0;
    line-height: 1.3;
}
.fluxshop-badge--sale      { background: var(--fhs-accent); }
.fluxshop-badge--active    { background: var(--fhs-success); }
.fluxshop-badge--new       { background: var(--fhs-black); }
.fluxshop-badge--expired,
.fluxshop-badge--cancelled { background: var(--fhs-text-muted); }
.fluxshop-badge--pending   { background: var(--fhs-accent); }

/* ===================
   6. 상품 목록 래퍼
   =================== */
.fluxshop-products-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 카테고리 박스 버튼 (THE PURE 서브카테고리 스타일) */
.fhs-category-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 48px;
}
.fhs-cat-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fhs-text-muted);
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all var(--fhs-transition);
    letter-spacing: -.01em;
}
.fhs-cat-tab:hover {
    border-color: var(--fhs-black);
    color: var(--fhs-black);
}
.fhs-cat-tab.active {
    background: var(--fhs-black);
    color: var(--fhs-white);
    border-color: var(--fhs-black);
    font-weight: 600;
}

/* 툴바 (아이템 수 + 정렬) */
.fhs-loop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 0;
}
.fhs-loop-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--fhs-text-muted);
    letter-spacing: -.01em;
}
.fhs-loop-count strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fhs-black);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
}
.fhs-sort-links {
    position: relative;
}
.fhs-sort-links select,
.fhs-sort-select {
    padding: 9px 36px 9px 16px;
    font-size: 14px;
    color: var(--fhs-text);
    background: var(--fhs-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 140px;
    font-family: inherit;
    letter-spacing: -.01em;
}
.fhs-sort-links select:focus,
.fhs-sort-select:focus {
    outline: none;
    border-color: var(--fhs-black);
}

/* ===================
   7. 상품 카드 (loop-item)
   =================== */
.fluxshop-products {
    margin-bottom: 48px;
}
.fluxshop-product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
}
.fluxshop-product-card:hover { box-shadow: none; }

.fluxshop-product-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--fhs-bg-soft);
    border-radius: 0;
}
.fluxshop-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.fluxshop-product-card:hover .fluxshop-product-card__image {
    transform: scale(1.04);
}

/* 카드 이미지 내 배지 */
.fluxshop-product-card__image-link .fluxshop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

/* 할인율 원형 뱃지 — 제거하고 가격 라인에서만 노출 */
.fhs-card-discount-rate { display: none; }

/* 카드 호버 액션 (장바구니/찜) */
.fhs-card-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--fhs-transition), transform var(--fhs-transition);
    z-index: 2;
}
.fluxshop-product-card:hover .fhs-card-actions {
    opacity: 1;
    transform: translateY(0);
}
.fhs-card-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--fhs-border-light);
    border-radius: 50%;
    cursor: pointer;
    color: var(--fhs-text);
    transition: background var(--fhs-transition), color var(--fhs-transition);
}
.fhs-card-action:hover {
    background: var(--fhs-black);
    color: var(--fhs-white);
    border-color: var(--fhs-black);
}
.fhs-card-action svg { width: 16px; height: 16px; }
/* 카드 액션 안의 찜 버튼: 전역 .fhs-wishlist-btn{position:absolute} 규칙을 무효화해 겹침 방지 */
.fhs-card-action.fhs-wishlist-btn {
    position: static;
    top: auto;
    right: auto;
    width: 36px;
    height: 36px;
    box-shadow: none;
}

/* 컬러 스와치 (옵션 미리보기) */
.fhs-card-swatches {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 14px 0 8px;
    min-height: 12px;
}
.fhs-card-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.08);
    display: inline-block;
}

/* 카드 본문 */
.fluxshop-product-card__body {
    padding: 0;
}
.fluxshop-product-card__name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fhs-text);
    letter-spacing: -.02em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.fluxshop-product-card__name a:hover { color: var(--fhs-text); text-decoration: underline; text-underline-offset: 2px; }

.fluxshop-product-card__summary {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--fhs-text-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    letter-spacing: -.01em;
}

/* 가격 라인 — THE PURE 스타일 */
.fluxshop-product-card__price {
    margin: 0 0 8px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fluxshop-price--original {
    font-size: 13px;
    color: var(--fhs-text-light);
    text-decoration: line-through;
    font-weight: 400;
    display: inline-block;
}
.fhs-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.fluxshop-price--discount {
    font-size: 14px;
    font-weight: 700;
    color: var(--fhs-accent);
    letter-spacing: -.02em;
}
.fluxshop-price--discount sup,
.fluxshop-price--discount .unit {
    font-size: 11px;
    font-weight: 700;
    margin-left: -1px;
}
.fluxshop-price--current {
    font-size: 15px;
    font-weight: 700;
    color: var(--fhs-text);
    letter-spacing: -.02em;
}
.fluxshop-price--cycle {
    font-size: 12px;
    color: var(--fhs-text-muted);
    font-weight: 400;
    margin-left: 2px;
}

/* 리뷰 카운트 */
.fluxshop-product-card__review {
    font-size: 12px;
    color: var(--fhs-text-muted);
    margin: 0;
    letter-spacing: -.01em;
}
.fluxshop-product-card__review .fhs-star {
    color: var(--fhs-text);
    margin-right: 2px;
}

/* 구버전 장바구니 버튼 — 기본 스킨에서는 카드 내 버튼 제거 */
.fhs-add-to-cart.fhs-add-to-cart--card { display: none; }

/* ===================
   8. 상품 상세 (single)
   =================== */
.fluxshop-product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto auto;
    gap: 60px 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.fluxshop-product-detail__gallery { grid-column: 1; grid-row: 1; align-self: start; }
.fluxshop-product-detail__info    { grid-column: 2; grid-row: 1; }
.fluxshop-product-detail__tabs    { grid-column: 1 / -1; grid-row: 2; }

/* 갤러리 */
.fluxshop-product-detail__main-image {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--fhs-bg-soft);
}
.fluxshop-product-detail__main-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity .2s ease;
}
.fluxshop-product-detail__main-image:hover img { opacity: .94; }

/* ── 라이트박스 (이미지 확대 + 슬라이드) ── */
.fhs-lightbox {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.fhs-lightbox.is-open { opacity: 1; visibility: visible; }
.fhs-lightbox__img {
    max-width: 90vw; max-height: 88vh; object-fit: contain;
    user-select: none; -webkit-user-drag: none;
}
.fhs-lightbox__close, .fhs-lightbox__nav {
    position: absolute; background: rgba(255,255,255,.12); color: #fff;
    border: none; cursor: pointer; border-radius: 50%;
    width: 48px; height: 48px; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.fhs-lightbox__close:hover, .fhs-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.fhs-lightbox__close { top: 20px; right: 20px; }
.fhs-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.fhs-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.fhs-lightbox__counter { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .8; }
@media (max-width: 768px) {
    .fhs-lightbox__close, .fhs-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
    .fhs-lightbox__nav--prev { left: 8px; } .fhs-lightbox__nav--next { right: 8px; }
}
.fluxshop-product-detail__thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.fhs-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid transparent;
    background: var(--fhs-bg-soft);
    cursor: pointer;
    transition: border-color var(--fhs-transition), opacity var(--fhs-transition);
    opacity: .7;
}
.fhs-thumb:hover { opacity: 1; }
.fhs-thumb.active {
    border-color: var(--fhs-black);
    opacity: 1;
}

/* 정보 영역 */
.fluxshop-product-detail__info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.fluxshop-product-detail__name {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.03em;
    color: var(--fhs-text);
    flex: 1;
}
.fluxshop-product-detail__icon-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.fluxshop-product-detail__short-desc {
    color: var(--fhs-text-sub);
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
}
.fluxshop-product-detail__features {
    margin: 0 0 20px;
}
.fluxshop-product-detail__features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fluxshop-product-detail__features li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: var(--fhs-text-sub);
    line-height: 1.7;
    margin-bottom: 4px;
}
.fluxshop-product-detail__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fhs-black);
    font-weight: 700;
}

/* 리뷰 요약 */
.fluxshop-product-detail__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fhs-border-light);
    font-size: 14px;
}
.fluxshop-product-detail__rating .fhs-star {
    color: var(--fhs-black);
    font-size: 15px;
}
.fluxshop-product-detail__rating .fhs-rating-score {
    font-weight: 700;
    color: var(--fhs-text);
}
.fluxshop-product-detail__rating .fhs-rating-count {
    color: var(--fhs-text-muted);
    padding-left: 12px;
    border-left: 1px solid var(--fhs-border);
}

/* 가격 */
.fluxshop-product-detail__price {
    padding: 8px 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--fhs-border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fhs-price-del {
    font-size: 14px;
    color: var(--fhs-text-light);
    text-decoration: line-through;
    font-weight: 400;
}
.fhs-price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.fhs-price-discount {
    font-size: 28px;
    font-weight: 700;
    color: var(--fhs-accent);
    letter-spacing: -.03em;
}
.fhs-price-discount .unit {
    font-size: 16px;
    font-weight: 700;
    margin-left: -2px;
}
.fhs-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--fhs-text);
    letter-spacing: -.03em;
}
.fhs-price-cycle {
    font-size: 14px;
    color: var(--fhs-text-muted);
    margin-left: 4px;
}

/* 정보 행 (배송/체험) */
.fluxshop-product-detail__shipping,
.fluxshop-product-detail__trial {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fhs-border-light);
}
.fhs-detail-label {
    color: var(--fhs-text-muted);
    min-width: 60px;
    flex-shrink: 0;
    font-weight: 500;
}
.fhs-detail-value { color: var(--fhs-text); }
.fhs-trial-badge {
    display: inline-block;
    background: var(--fhs-bg-soft);
    color: var(--fhs-accent);
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--fhs-accent);
}

/* 옵션 / 수량 */
.fhs-product-variants {
    margin: 20px 0 0;
}
.fhs-product-variants__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--fhs-text-muted);
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.fhs-product-variants__label .required { color: var(--fhs-accent); margin-left: 2px; }
.fhs-variant-select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    font-size: 14px;
    color: var(--fhs-text);
    background: var(--fhs-white);
    cursor: pointer;
    appearance: auto;
    transition: border-color var(--fhs-transition);
    font-family: inherit;
}
.fhs-variant-select:focus {
    outline: none;
    border-color: var(--fhs-black);
}

.fluxshop-product-detail__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0 0;
    padding: 16px 0;
    border-top: 1px solid var(--fhs-border-light);
}
.fluxshop-product-detail__qty label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fhs-text);
    white-space: nowrap;
}

.fhs-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    overflow: hidden;
    height: 40px;
    background: var(--fhs-white);
}
.fhs-qty-btn,
.fhs-qty-wrap button {
    background: var(--fhs-white);
    border: none;
    width: 36px;
    height: 100%;
    cursor: pointer;
    font-size: 16px;
    color: var(--fhs-text);
    transition: background var(--fhs-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.fhs-qty-btn:hover,
.fhs-qty-wrap button:hover { background: var(--fhs-bg-gray); }
.fhs-qty-wrap input[type="number"] {
    border: none;
    border-left: 1px solid var(--fhs-border);
    border-right: 1px solid var(--fhs-border);
    width: 48px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--fhs-text);
    height: 100%;
    background: transparent;
    font-family: inherit;
    -moz-appearance: textfield;
}
.fhs-qty-wrap input[type="number"]::-webkit-outer-spin-button,
.fhs-qty-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 총 금액 요약 (상세) */
.fluxshop-product-detail__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-top: 2px solid var(--fhs-black);
    margin: 0 0 16px;
}
.fluxshop-product-detail__total-label {
    font-size: 14px;
    color: var(--fhs-text);
    font-weight: 600;
}
.fluxshop-product-detail__total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--fhs-accent);
    letter-spacing: -.02em;
}

/* 구매 버튼 */
.fluxshop-product-detail__actions {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px;
    margin: 0 0 12px;
}
.fluxshop-product-detail__actions .fluxshop-btn {
    padding: 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
}
.fluxshop-product-detail__actions .fluxshop-btn--cart {
    padding: 18px 0;
    background: var(--fhs-white);
    color: var(--fhs-text);
    border: 1px solid var(--fhs-border);
}
.fluxshop-product-detail__actions .fluxshop-btn--cart:hover {
    border-color: var(--fhs-black);
    color: var(--fhs-black);
}

/* 탭 */
.fhs-tab-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-top: 1px solid var(--fhs-border);
    border-bottom: 1px solid var(--fhs-border);
    margin: 60px 0 40px;
}
.fhs-tab-btn {
    background: none;
    border: none;
    padding: 22px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fhs-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--fhs-transition), border-color var(--fhs-transition);
    letter-spacing: -.01em;
    font-family: inherit;
}
.fhs-tab-btn.active,
.fhs-tab-btn:hover {
    color: var(--fhs-black);
    font-weight: 700;
    border-bottom-color: var(--fhs-black);
}
.fhs-tab-content { display: none; max-width: 900px; margin: 0 auto; }
.fhs-tab-content.active { display: block; }
.fhs-tab-content p { font-size: 14px; color: var(--fhs-text-sub); line-height: 1.8; margin: 0 0 14px; }
.fhs-refund-policy h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }

/* ===================
   9. 장바구니
   =================== */
.fluxshop-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.fluxshop-cart__empty {
    text-align: center;
    padding: 120px 0;
}
.fluxshop-cart__empty p {
    font-size: 16px;
    color: var(--fhs-text-muted);
    margin-bottom: 28px;
}

.fluxshop-cart__title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -.03em;
    margin: 0 0 40px;
}

.fluxshop-cart__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 14px;
}
.fluxshop-cart__table th {
    padding: 16px 14px;
    text-align: center;
    background: transparent;
    border-top: 2px solid var(--fhs-black);
    border-bottom: 1px solid var(--fhs-border);
    font-weight: 500;
    font-size: 13px;
    color: var(--fhs-text-muted);
    letter-spacing: -.01em;
}
.fluxshop-cart__table td {
    padding: 20px 14px;
    text-align: center;
    border-bottom: 1px solid var(--fhs-border-light);
    vertical-align: middle;
    color: var(--fhs-text);
}
.fluxshop-cart__table td:first-child { text-align: left; }

.fhs-cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fhs-cart-product img {
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--fhs-bg-soft);
    width: 72px;
    height: 72px;
}
.fhs-cart-product span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--fhs-text);
}

.fhs-cart-remove {
    background: none;
    border: 1px solid var(--fhs-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--fhs-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fhs-transition);
    line-height: 1;
}
.fhs-cart-remove:hover {
    border-color: var(--fhs-black);
    color: var(--fhs-black);
    background: var(--fhs-white);
}

.fhs-cart-subtotal { font-weight: 700; color: var(--fhs-text); }

/* 장바구니 하단 */
.fluxshop-cart__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.fluxshop-cart__coupon { }
.fluxshop-cart__coupon > div:first-child {
    display: flex;
    gap: 0;
}
.fluxshop-cart__coupon input[type="text"] {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--fhs-border);
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    color: var(--fhs-text);
    font-family: inherit;
}
.fluxshop-cart__coupon input[type="text"]:focus {
    outline: none;
    border-color: var(--fhs-black);
}
.fluxshop-cart__coupon button {
    padding: 13px 22px;
    background: var(--fhs-black);
    color: var(--fhs-white);
    border: 1px solid var(--fhs-black);
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--fhs-transition);
    font-family: inherit;
}
.fluxshop-cart__coupon button:hover { background: #000; }

.fluxshop-cart__totals { }
.fluxshop-cart__totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-top: 2px solid var(--fhs-black);
}
.fluxshop-cart__totals td {
    padding: 14px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--fhs-border-light);
    color: var(--fhs-text-sub);
}
.fluxshop-cart__totals td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--fhs-text);
}
.fluxshop-cart__totals .fhs-total-row td {
    padding-top: 18px;
    border-top: 1px solid var(--fhs-border);
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--fhs-text);
}
.fluxshop-cart__totals .fhs-total-row td:last-child { color: var(--fhs-accent); }

/* ===================
   10. 체크아웃
   =================== */
.fluxshop-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.fluxshop-checkout__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.fhs-checkout-section {
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    padding: 28px 30px;
    margin-bottom: 16px;
}
.fhs-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fhs-border-light);
    letter-spacing: -.02em;
    color: var(--fhs-text);
}

.fhs-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.fhs-form-row label {
    font-size: 13px;
    font-weight: 500;
    color: var(--fhs-text-muted);
    letter-spacing: -.01em;
}
.fhs-form-row input,
.fhs-form-row select,
.fhs-form-row textarea {
    padding: 13px 16px;
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    font-size: 14px;
    color: var(--fhs-text);
    background: var(--fhs-white);
    transition: border-color var(--fhs-transition);
    font-family: inherit;
}
.fhs-form-row input:focus,
.fhs-form-row select:focus,
.fhs-form-row textarea:focus {
    outline: none;
    border-color: var(--fhs-black);
    box-shadow: none;
}
.fhs-form-row input[readonly] {
    background: var(--fhs-bg-gray);
    color: var(--fhs-text-muted);
}
.fhs-form-row--inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.fhs-form-row--inline input[type="number"] { width: 120px; }
.fhs-form-row--inline button {
    padding: 13px 18px;
    background: var(--fhs-black);
    color: var(--fhs-white);
    border: 1px solid var(--fhs-black);
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.fhs-form-row--inline button:hover { background: #000; }

/* PG 선택 */
.fhs-pg-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fhs-pg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--fhs-transition);
    font-size: 14px;
    font-weight: 500;
    background: var(--fhs-white);
    color: var(--fhs-text);
}
.fhs-pg-item.active {
    border-color: var(--fhs-black);
    background: var(--fhs-black);
    color: var(--fhs-white);
}
.fhs-pg-item:hover { border-color: var(--fhs-black); }
.fhs-pg-item input[type="radio"] { accent-color: var(--fhs-black); }

/* 주문 요약 */
.fhs-order-summary {
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    padding: 28px 30px;
    position: sticky;
    top: 24px;
}
.fhs-order-summary hr {
    border: none;
    border-top: 1px solid var(--fhs-border-light);
    margin: 16px 0;
}
.fhs-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--fhs-border-light);
}
.fhs-order-item:last-child { border-bottom: none; }
.fhs-order-item__thumb {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--fhs-radius-sm);
    overflow: hidden;
    background: var(--fhs-bg-gray);
    border: 1px solid var(--fhs-border-light);
}
.fhs-order-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fhs-order-item__qty {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: rgba(0,0,0,.74);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    border-top-left-radius: var(--fhs-radius-sm);
}
.fhs-order-item__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fhs-order-item__name {
    color: var(--fhs-text);
    line-height: 1.4;
    font-weight: 500;
}
.fhs-order-item__opt {
    align-self: flex-start;
    max-width: 100%;
    font-size: 12px;
    color: var(--fhs-text-sub);
    border: 1px solid var(--fhs-border);
    padding: 2px 9px;
    border-radius: var(--fhs-radius-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fhs-order-item__price { font-weight: 700; white-space: nowrap; flex-shrink: 0; color: var(--fhs-text); }

/* 주문 상품 개수 배지 */
.fhs-order-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 8px;
    background: var(--fhs-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--fhs-radius-pill);
    vertical-align: middle;
}

/* 주소 입력 — 우편번호 + 검색 버튼 인라인 정렬 */
.fhs-address-wrap { display: flex; flex-direction: column; gap: 8px; }
.fhs-address-zip-row { display: flex; gap: 8px; align-items: stretch; }
.fhs-address-zip-row .fhs-input--zipcode { flex: 1; min-width: 0; }
.fhs-address-zip-row .fhs-btn--zipcode {
    flex-shrink: 0;
    white-space: nowrap;
    background: var(--fhs-black);
    color: var(--fhs-white);
    border: 1px solid var(--fhs-black);
    font-weight: 600;
}
.fhs-address-zip-row .fhs-btn--zipcode:hover { opacity: .88; }

/* 인라인 폼 행(쿠폰/적립금)에서 텍스트 입력이 줄바꿈되지 않도록 */
.fhs-form-row--inline input[type="text"],
.fhs-form-row--inline input[type="email"] { flex: 1; min-width: 150px; }

/* 배송지 저장 */
.fhs-saved-addr-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--fhs-primary);
}
.fhs-form-row--save-addr { margin-top: 4px; }
.fhs-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fhs-text-sub) !important;
    font-weight: 500;
}
.fhs-checkbox input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--fhs-primary); cursor: pointer; }

.fhs-order-total-rows { margin: 12px 0 24px; }
.fhs-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--fhs-border-light);
    color: var(--fhs-text-sub);
}
.fhs-total-row--final {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--fhs-border);
    border-bottom: none;
    padding-top: 18px;
    margin-top: 4px;
    color: var(--fhs-text);
}
.fhs-total-row--final span:last-child { color: var(--fhs-accent); }

.fhs-checkout-agree {
    font-size: 12px;
    color: var(--fhs-text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.7;
}
.fhs-checkout-agree a { color: var(--fhs-text-sub); text-decoration: underline; }

/* ===================
   11. 주문 완료
   =================== */
.fluxshop-order-complete {
    max-width: 560px;
    margin: 80px auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    box-shadow: none;
}
.fhs-complete-icon {
    width: 72px;
    height: 72px;
    background: var(--fhs-black);
    color: var(--fhs-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}
.fluxshop-order-complete h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.03em;
}
.fhs-order-number {
    color: var(--fhs-text-muted);
    margin: 0 0 36px;
    font-size: 14px;
}
.fhs-order-number strong { color: var(--fhs-text); font-weight: 700; }

.fhs-complete-summary {
    background: var(--fhs-bg-gray);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}
.fhs-complete-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--fhs-border-light);
    color: var(--fhs-text-sub);
}
.fhs-complete-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--fhs-text);
    padding-top: 14px;
}
.fhs-complete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ===================
   12. 테이블 (공통)
   =================== */
.fluxshop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fluxshop-table th {
    padding: 14px;
    background: transparent;
    border-top: 2px solid var(--fhs-black);
    border-bottom: 1px solid var(--fhs-border);
    font-weight: 500;
    font-size: 13px;
    color: var(--fhs-text-muted);
    text-align: center;
    letter-spacing: -.01em;
}
.fluxshop-table td {
    padding: 18px 14px;
    border-bottom: 1px solid var(--fhs-border-light);
    text-align: center;
    vertical-align: middle;
    color: var(--fhs-text);
}
.fluxshop-table td:first-child { text-align: left; }
.fluxshop-table tbody tr:hover { background: var(--fhs-bg-gray); }

/* ===================
   13. 페이지네이션
   =================== */
.fhs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 60px;
    padding-top: 0;
    border-top: none;
}
.fhs-page-num,
.fhs-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fhs-text-muted);
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: all var(--fhs-transition);
    cursor: pointer;
}
.fhs-page-num:hover,
.fhs-page-btn:hover {
    color: var(--fhs-black);
    border-color: var(--fhs-border);
}
.fhs-page-num.active {
    background: transparent;
    color: var(--fhs-black);
    border-color: var(--fhs-black);
    font-weight: 700;
}
.fhs-page-btn--prev,
.fhs-page-btn--next {
    font-size: 18px;
    font-weight: 400;
}
.fhs-page-ellipsis {
    padding: 0 6px;
    color: var(--fhs-text-light);
    font-size: 13px;
    line-height: 36px;
}

/* ===================
   14. 배송 추적 / 구독 카드
   =================== */
.fhs-tracking-card,
.fhs-sub-card {
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    padding: 24px 28px;
    margin-bottom: 12px;
}
.fhs-sub-card--active {
    border-left: 3px solid var(--fhs-black);
}
.fhs-tracking-header,
.fhs-sub-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fhs-border-light);
}
.fhs-sub-card__header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.fhs-sub-card__body p { font-size: 14px; color: var(--fhs-text-sub); margin: 0 0 6px; }
.fhs-sub-card__body strong { color: var(--fhs-text); font-weight: 700; }
.fhs-sub-card__footer {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--fhs-border-light);
}
.fhs-tracking-header .fhs-order-num,
.fhs-tracking-header .fhs-badge {
    font-size: 14px;
    color: var(--fhs-text);
    font-weight: 600;
}

/* ===================
   15. 위시리스트 (마이페이지)
   =================== */
.fluxshop-wishlist { padding: 20px 0; }
.fluxshop-wishlist .fluxshop-product-card {
    position: relative;
}
.fhs-wishlist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}
.fhs-wishlist-actions .fluxshop-btn { padding: 10px; font-size: 12px; }

/* ===================
   16. 요금제 카드 (구독 pricing)
   =================== */
.fluxshop-pricing-table { padding: 20px 0; }
.fluxshop-pricing-card {
    background: var(--fhs-white);
    border: 1px solid var(--fhs-border);
    border-radius: 0;
    padding: 36px 28px;
    position: relative;
    transition: border-color var(--fhs-transition);
}
.fluxshop-pricing-card:hover { border-color: var(--fhs-black); }
.fluxshop-pricing-card--featured {
    border-width: 2px;
    border-color: var(--fhs-black);
}
.fluxshop-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fhs-black);
    color: var(--fhs-white);
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.fluxshop-pricing-card__header { text-align: center; margin-bottom: 24px; }
.fluxshop-pricing-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--fhs-text);
}
.fluxshop-pricing-card__price {
    margin: 0 0 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}
.fhs-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--fhs-text);
    letter-spacing: -.03em;
}
.fhs-price-unit {
    font-size: 14px;
    color: var(--fhs-text-muted);
}
.fluxshop-pricing-card__header .fhs-trial {
    margin: 0;
    font-size: 13px;
    color: var(--fhs-accent);
    font-weight: 600;
}
.fluxshop-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    border-top: 1px solid var(--fhs-border-light);
    padding-top: 20px;
}
.fluxshop-pricing-card__features li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 14px;
    color: var(--fhs-text-sub);
    line-height: 1.5;
}
.fluxshop-pricing-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--fhs-black);
    font-weight: 700;
}

/* ===================
   17. 유틸리티
   =================== */
.fluxshop-empty {
    text-align: center;
    color: var(--fhs-text-muted);
    font-size: 15px;
    padding: 80px 0;
}
.fluxshop-notice {
    padding: 16px 20px;
    background: var(--fhs-bg-gray);
    border-left: 3px solid var(--fhs-black);
    border-radius: 0;
    font-size: 14px;
    color: var(--fhs-text-sub);
    margin-bottom: 16px;
}
.fluxshop-notice a { color: var(--fhs-text); font-weight: 700; text-decoration: underline; }
.fluxshop-error { color: var(--fhs-danger); font-size: 14px; }
.fhs-msg { font-size: 13px; margin-top: 6px; }

/* Toast */
#fhs-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fhs-toast {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--fhs-white);
    background: var(--fhs-black);
    box-shadow: var(--fhs-shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fhs-toast-in .25s ease;
    min-width: 240px;
    letter-spacing: -.01em;
}
.fhs-toast--success { background: var(--fhs-success); }
.fhs-toast--error   { background: var(--fhs-danger); }
.fhs-toast--info    { background: var(--fhs-text-sub); }
@keyframes fhs-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===================
   18. 반응형
   =================== */
@media (max-width: 1024px) {
    .fluxshop-product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 16px 60px;
    }
    .fluxshop-product-detail__gallery { grid-column: 1; grid-row: 1; position: static; }
    .fluxshop-product-detail__info    { grid-column: 1; grid-row: 2; }
    .fluxshop-product-detail__tabs    { grid-column: 1; grid-row: 3; }

    .fluxshop-checkout__layout { grid-template-columns: 1fr; }
    .fhs-order-summary { position: static; }

    .fhs-category-tabs { grid-template-columns: repeat(4, 1fr); }

    .fluxshop-grid--4col { grid-template-columns: repeat(3, 1fr); }
    .fluxshop-grid--5col { grid-template-columns: repeat(3, 1fr); }
    .fluxshop-grid--6col { grid-template-columns: repeat(3, 1fr); }

    .fhs-pg-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fluxshop-grid { gap: 32px 12px; }
    .fluxshop-grid--3col,
    .fluxshop-grid--4col,
    .fluxshop-grid--5col,
    .fluxshop-grid--6col { grid-template-columns: repeat(2, 1fr); }

    /* 상품 상세 — 모바일에서 1열로 전환 (좌우 2열 그리드가 안 무너져 가로 오버플로 발생하던 문제) */
    .fluxshop-product-detail {
        grid-template-columns: 1fr;
        gap: 28px 0;
        padding: 20px 16px 60px;
    }
    .fluxshop-product-detail__gallery,
    .fluxshop-product-detail__info,
    .fluxshop-product-detail__tabs { grid-column: 1; min-width: 0; }
    .fluxshop-product-detail__gallery { grid-row: auto; }
    .fluxshop-product-detail__info { grid-row: auto; }
    .fluxshop-product-detail__tabs { grid-row: auto; }

    .fhs-category-tabs { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .fhs-cat-tab { padding: 14px 6px; font-size: 12px; }

    .fhs-loop-toolbar {
        align-items: center;
        gap: 10px;
    }

    .fluxshop-product-detail__name { font-size: 22px; }
    .fhs-price-discount,
    .fhs-price-current { font-size: 22px; }

    .fluxshop-cart__table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .fluxshop-cart__footer { grid-template-columns: 1fr; }

    .fhs-tab-btn { padding: 16px 8px; font-size: 13px; }
    .fhs-tab-nav { grid-auto-columns: minmax(100px, 1fr); overflow-x: auto; }
    .fluxshop-order-complete { margin: 24px 16px; padding: 40px 24px; }
    .fhs-complete-actions { grid-template-columns: 1fr; }

    .fluxshop-product-detail__thumbnails { grid-template-columns: repeat(4, 1fr); }

    /* 모바일에서는 카드 액션 항상 노출 */
    .fhs-card-actions {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .fhs-category-tabs { grid-template-columns: repeat(2, 1fr); }
    .fhs-pg-list { grid-template-columns: 1fr; }
    .fluxshop-product-detail__actions { grid-template-columns: 1fr; }
    .fluxshop-product-detail__actions .fluxshop-btn--cart { order: 2; }
    .fhs-loop-count strong { min-width: 38px; height: 30px; font-size: 14px; }
    .fluxshop-price--current,
    .fluxshop-price--discount { font-size: 14px; }
}

/* ===================================================
   9-2. 장바구니 — 리스트 + 요약 사이드바 (리뉴얼)
   =================================================== */
.fluxshop-cart { max-width: 1160px; margin: 0 auto; padding: 32px 20px 80px; }
.fluxshop-cart__empty { text-align: center; padding: 100px 0; color: var(--fhs-text-muted); }
.fluxshop-cart__empty svg { color: var(--fhs-border); margin-bottom: 18px; }

.fhs-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.fhs-cart-main { min-width: 0; }
.fhs-cart-listhead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--fhs-text); margin-bottom: 4px; }
.fhs-cart-listhead span { font-weight: 700; font-size: 15px; }
.fhs-cart-continue { font-size: 13px; color: var(--fhs-text-muted); text-decoration: none; }
.fhs-cart-continue:hover { color: var(--fhs-text); text-decoration: underline; }

.fhs-cart-list { list-style: none; margin: 0; padding: 0; }
.fhs-cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto 32px;
    align-items: center; gap: 16px;
    padding: 18px 0; border-bottom: 1px solid var(--fhs-border-light);
}
.fhs-cart-row__thumb { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--fhs-bg-soft); }
.fhs-cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fhs-cart-row__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fhs-cart-row__name { font-size: 15px; font-weight: 600; color: var(--fhs-text); }
.fhs-cart-row__opt { font-size: 12px; color: var(--fhs-text-muted); }
.fhs-cart-row__unit { font-size: 13px; color: var(--fhs-text-sub); margin-top: 2px; }
.fhs-cart-row__qty { display: inline-flex; align-items: center; border: 1px solid var(--fhs-border); border-radius: 9px; overflow: hidden; }
.fhs-cart-qty { width: 34px; height: 36px; border: none; background: transparent; cursor: pointer; font-size: 17px; color: var(--fhs-text-sub); }
.fhs-cart-qty:hover { background: var(--fhs-bg-soft); }
.fhs-cart-qtyinput { width: 42px; height: 36px; border: none; border-left: 1px solid var(--fhs-border-light); border-right: 1px solid var(--fhs-border-light); text-align: center; font-size: 14px; background: transparent; color: var(--fhs-text); -moz-appearance: textfield; }
.fhs-cart-qtyinput::-webkit-outer-spin-button, .fhs-cart-qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fhs-cart-row__sub { font-weight: 700; font-size: 15px; min-width: 90px; text-align: right; color: var(--fhs-text); }
.fhs-cart-row__del { width: 32px; height: 32px; border: none; background: transparent; color: var(--fhs-text-muted); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fhs-cart-row__del:hover { background: var(--fhs-bg-soft); color: var(--fhs-accent, #e8323c); }

/* 요약 사이드바 */
.fhs-cart-summary { position: sticky; top: 24px; border: 1px solid var(--fhs-border); border-radius: 14px; padding: 22px; background: var(--fhs-bg); }
.fhs-cart-summary__coupon { display: flex; gap: 8px; }
.fhs-cart-summary__coupon input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--fhs-border); border-radius: 9px; padding: 0 12px; font-size: 13px; background: var(--fhs-bg); color: var(--fhs-text); }
.fhs-cart-summary__coupon .fluxshop-btn { height: 42px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.fhs-cart-summary__coupon-result { font-size: 12px; margin-top: 8px; min-height: 0; }
.fhs-cart-summary__lines { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--fhs-border-light); display: flex; flex-direction: column; gap: 10px; }
.fhs-cart-summary__line { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.fhs-cart-summary__line dt { color: var(--fhs-text-muted); font-size: 14px; }
.fhs-cart-summary__line dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--fhs-text); }
.fhs-cart-summary__line--discount dd { color: var(--fhs-accent, #e8323c); }
.fhs-cart-summary__total { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 18px; padding-top: 16px; border-top: 2px solid var(--fhs-text); }
.fhs-cart-summary__total span { font-size: 15px; font-weight: 600; }
.fhs-cart-summary__total strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--fhs-text); }
.fhs-cart-checkout { margin: 0; }

@media (max-width: 860px) {
    .fhs-cart-layout { grid-template-columns: 1fr; gap: 24px; }
    .fhs-cart-summary { position: static; }
}
@media (max-width: 560px) {
    .fhs-cart-row { grid-template-columns: 64px 1fr 28px; grid-template-areas: "thumb info del" "thumb qty sub"; gap: 8px 12px; row-gap: 12px; }
    .fhs-cart-row__thumb { grid-area: thumb; width: 64px; height: 64px; }
    .fhs-cart-row__info { grid-area: info; }
    .fhs-cart-row__qty { grid-area: qty; }
    .fhs-cart-row__sub { grid-area: sub; text-align: right; align-self: center; min-width: 0; }
    .fhs-cart-row__del { grid-area: del; justify-self: end; }
}

/* 앵커형 primary 버튼: 테마의 본문 링크 색상이 버튼 글씨를 덮어쓰는 문제 방지
   (--fhs-white = 라이트 #fff / 다크 #161616 → primary 배경 반전과 자동으로 맞물림) */
a.fluxshop-btn--primary { color: var(--fhs-white); }
a.fluxshop-btn--primary:hover { color: var(--fhs-white); }
