@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ===================
   FluxShop Frontend CSS
   =================== */

/* ===================
   0. 폰트/서피스 통일 — 모든 플러그인 페이지(.fluxshop)에 Pretendard 적용
   =================== */
.fluxshop, .fhs-account, .fhs-mypage, .fhs-cart-drawer {
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", system-ui, sans-serif !important;
	color: #111;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.fluxshop *, .fhs-account *, .fhs-mypage *, .fhs-cart-drawer * { box-sizing: border-box; }
.fluxshop button, .fluxshop input, .fluxshop select, .fluxshop textarea,
.fhs-account button, .fhs-account input, .fhs-account select, .fhs-account textarea { font-family: inherit; }

/* ===================
   1. CSS Variables
   =================== */
:root {
	--fhs-primary:       #3B82F6;
	--fhs-primary-dark:  #2563EB;
	--fhs-secondary:     #6B7280;
	--fhs-success:       #10B981;
	--fhs-warning:       #F59E0B;
	--fhs-danger:        #EF4444;
	--fhs-kakao:         #FEE500;
	--fhs-kakao-text:    #000000;
	--fhs-naver:         #03C75A;
	--fhs-naver-text:    #FFFFFF;

	--fhs-text:          #111827;
	--fhs-text-muted:    #6B7280;
	--fhs-border:        #E5E7EB;
	--fhs-bg:            #F9FAFB;
	--fhs-white:         #FFFFFF;
	--fhs-radius:        8px;
	--fhs-radius-lg:     12px;
	--fhs-shadow:        0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
	--fhs-shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
	--fhs-transition:    .2s ease;
}

/* ===================
   2. Reset & Base
   =================== */
.fhs-wrap,
.fhs-wrap * {
	box-sizing: border-box;
}
.fhs-wrap img {
	max-width: 100%;
	height: auto;
}
.fhs-wrap a {
	color: var(--fhs-primary);
	text-decoration: none;
}
.fhs-wrap a:hover {
	text-decoration: underline;
}
.fhs-empty {
	color: var(--fhs-text-muted);
	text-align: center;
	padding: 48px 0;
	font-size: 15px;
}

/* ===================
   3. Layout — Product List
   =================== */
.fhs-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
.fhs-product-card {
	background: var(--fhs-white);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	overflow: hidden;
	transition: box-shadow var(--fhs-transition), transform var(--fhs-transition);
}
.fhs-product-card:hover {
	box-shadow: var(--fhs-shadow-md);
	transform: translateY(-2px);
}
.fhs-product-card__thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--fhs-bg);
}
.fhs-product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.fhs-product-card:hover .fhs-product-card__thumb img {
	transform: scale(1.04);
}
.fhs-product-card__body {
	padding: 14px 16px 18px;
}
.fhs-product-card__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fhs-text);
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fhs-product-card__price {
	font-size: 16px;
	font-weight: 700;
	color: var(--fhs-text);
}
.fhs-product-card__price-original {
	font-size: 13px;
	color: var(--fhs-text-muted);
	text-decoration: line-through;
	margin-left: 4px;
}
.fhs-product-card__badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 20px;
	margin-top: 8px;
}
.fhs-product-card__badge--sale {
	background: #FEE2E2;
	color: var(--fhs-danger);
}
.fhs-product-card__badge--sub {
	background: #EDE9FE;
	color: #7C3AED;
}
.fhs-wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	background: var(--fhs-white);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--fhs-shadow);
	transition: background var(--fhs-transition);
	font-size: 16px;
	line-height: 1;
}
.fhs-wishlist-btn:hover,
.fhs-wishlist-btn.active {
	background: #FEE2E2;
	color: var(--fhs-danger);
}

/* Category filter */
.fhs-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.fhs-category-filter a {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid var(--fhs-border);
	font-size: 13px;
	color: var(--fhs-text-muted);
	transition: all var(--fhs-transition);
}
.fhs-category-filter a:hover,
.fhs-category-filter a.active {
	background: var(--fhs-primary);
	border-color: var(--fhs-primary);
	color: var(--fhs-white);
	text-decoration: none;
}

/* ===================
   4. Product Detail
   =================== */
.fhs-product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.fhs-product-gallery {
	position: sticky;
	top: 80px;
}
.fhs-product-gallery__main {
	aspect-ratio: 1 / 1;
	border-radius: var(--fhs-radius-lg);
	overflow: hidden;
	background: var(--fhs-bg);
	margin-bottom: 12px;
}
.fhs-product-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.fhs-product-gallery__thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.fhs-product-gallery__thumb {
	width: 72px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color var(--fhs-transition);
}
.fhs-product-gallery__thumb.active,
.fhs-product-gallery__thumb:hover {
	border-color: var(--fhs-primary);
}
.fhs-product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info panel */
.fhs-product-info__name {
	font-size: 24px;
	font-weight: 700;
	color: var(--fhs-text);
	margin: 0 0 12px;
	line-height: 1.3;
}
.fhs-product-info__price-wrap {
	margin-bottom: 20px;
}
.fhs-product-info__price {
	font-size: 28px;
	font-weight: 700;
	color: var(--fhs-text);
}
.fhs-product-info__price-original {
	font-size: 16px;
	color: var(--fhs-text-muted);
	text-decoration: line-through;
	margin-left: 6px;
}
.fhs-product-info__discount-rate {
	font-size: 20px;
	font-weight: 700;
	color: var(--fhs-danger);
	margin-left: 8px;
}
.fhs-product-info__meta {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 12px 0;
	font-size: 14px;
	padding: 20px 0;
	border-top: 1px solid var(--fhs-border);
	border-bottom: 1px solid var(--fhs-border);
	margin-bottom: 20px;
}
.fhs-product-info__meta-label {
	color: var(--fhs-text-muted);
	align-self: start;
	padding-top: 2px;
}
.fhs-product-info__meta-value {
	color: var(--fhs-text);
}

/* Variants */
.fhs-product-variants {
	margin-bottom: 20px;
}
.fhs-product-variants__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fhs-text);
	margin-bottom: 8px;
}
.fhs-product-variants select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	font-size: 14px;
	color: var(--fhs-text);
	background: var(--fhs-white);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

/* Qty + add to cart */
.fhs-product-buy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.fhs-qty-wrap {
	display: flex;
	align-items: center;
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	overflow: hidden;
	width: fit-content;
}
.fhs-qty-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: var(--fhs-bg);
	font-size: 18px;
	cursor: pointer;
	color: var(--fhs-text);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--fhs-transition);
}
.fhs-qty-btn:hover {
	background: var(--fhs-border);
}
.fhs-qty-input {
	width: 56px;
	height: 40px;
	border: none;
	border-left: 1px solid var(--fhs-border);
	border-right: 1px solid var(--fhs-border);
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}
.fhs-product-buy-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Instant buy buttons */
.fhs-instant-buy-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}
.fhs-btn-kakaopay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px;
	background: var(--fhs-kakao);
	color: var(--fhs-kakao-text);
	border: none;
	border-radius: var(--fhs-radius);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: filter var(--fhs-transition);
}
.fhs-btn-kakaopay:hover {
	filter: brightness(.94);
}
.fhs-btn-naverpay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px;
	background: var(--fhs-naver);
	color: var(--fhs-naver-text);
	border: none;
	border-radius: var(--fhs-radius);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: filter var(--fhs-transition);
}
.fhs-btn-naverpay:hover {
	filter: brightness(.92);
}

/* Product tabs */
.fhs-product-tabs {
	margin-top: 60px;
	border-top: 2px solid var(--fhs-text);
}
.fhs-product-tabs__nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--fhs-border);
	margin-bottom: 32px;
}
.fhs-product-tabs__nav button {
	padding: 16px 24px;
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--fhs-text-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all var(--fhs-transition);
}
.fhs-product-tabs__nav button.active,
.fhs-product-tabs__nav button:hover {
	color: var(--fhs-text);
}
.fhs-product-tabs__nav button.active {
	border-bottom-color: var(--fhs-primary);
}
.fhs-product-tabs__panel {
	display: none;
}
.fhs-product-tabs__panel.active {
	display: block;
}

/* ===================
   5. Cart
   =================== */
.fhs-cart-wrap {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 32px;
	align-items: start;
}
.fhs-cart-table {
	width: 100%;
	border-collapse: collapse;
}
.fhs-cart-table th,
.fhs-cart-table td {
	padding: 16px 12px;
	text-align: left;
	font-size: 14px;
}
.fhs-cart-table th {
	border-bottom: 2px solid var(--fhs-text);
	font-weight: 600;
}
.fhs-cart-table td {
	border-bottom: 1px solid var(--fhs-border);
	vertical-align: middle;
}
.fhs-cart-product {
	display: flex;
	align-items: center;
	gap: 14px;
}
.fhs-cart-product__thumb {
	width: 72px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--fhs-bg);
	flex-shrink: 0;
}
.fhs-cart-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fhs-cart-product__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--fhs-text);
}
.fhs-cart-product__variant {
	font-size: 12px;
	color: var(--fhs-text-muted);
	margin-top: 4px;
}
.fhs-cart-qty {
	display: flex;
	align-items: center;
	gap: 6px;
}
.fhs-cart-qty input {
	width: 56px;
	padding: 6px;
	border: 1px solid var(--fhs-border);
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}
.fhs-cart-remove {
	background: none;
	border: none;
	color: var(--fhs-text-muted);
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
	transition: color var(--fhs-transition);
}
.fhs-cart-remove:hover {
	color: var(--fhs-danger);
}

/* Cart summary */
.fhs-cart-summary {
	background: var(--fhs-bg);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	padding: 24px;
	position: sticky;
	top: 80px;
}
.fhs-cart-summary h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 20px;
}
.fhs-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 8px 0;
}
.fhs-summary-row--total {
	border-top: 2px solid var(--fhs-text);
	margin-top: 8px;
	padding-top: 16px;
	font-size: 17px;
	font-weight: 700;
}
.fhs-summary-row__discount {
	color: var(--fhs-danger);
}
.fhs-coupon-form {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}
.fhs-coupon-form input {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid var(--fhs-border);
	border-radius: 6px;
	font-size: 13px;
}

/* ===================
   6. Checkout
   =================== */
.fhs-checkout-wrap {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 32px;
	align-items: start;
}
.fhs-checkout-section {
	background: var(--fhs-white);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	padding: 28px;
	margin-bottom: 20px;
}
.fhs-checkout-section h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fhs-border);
}
.fhs-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.fhs-form-grid--full {
	grid-column: 1 / -1;
}
.fhs-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fhs-form-row label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fhs-text);
}
.fhs-form-row label .required {
	color: var(--fhs-danger);
	margin-left: 2px;
}
.fhs-form-row input[type="text"],
.fhs-form-row input[type="tel"],
.fhs-form-row input[type="email"],
.fhs-form-row select,
.fhs-form-row textarea {
	padding: 10px 12px;
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	font-size: 14px;
	color: var(--fhs-text);
	background: var(--fhs-white);
	width: 100%;
	transition: border-color var(--fhs-transition);
}
.fhs-form-row input:focus,
.fhs-form-row select:focus,
.fhs-form-row textarea:focus {
	outline: none;
	border-color: var(--fhs-primary);
	box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.fhs-form-row input[readonly] {
	background: var(--fhs-bg);
	color: var(--fhs-text-muted);
}
.fhs-address-search {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}
.fhs-address-search input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	font-size: 14px;
}

/* PG selector */
.fhs-pg-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fhs-pg-option {
	flex: 1;
	min-width: 120px;
}
.fhs-pg-option input[type="radio"] {
	display: none;
}
.fhs-pg-option label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border: 2px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all var(--fhs-transition);
}
.fhs-pg-option input:checked + label {
	border-color: var(--fhs-primary);
	background: rgba(59,130,246,.05);
	color: var(--fhs-primary);
}
.fhs-pg-option label:hover {
	border-color: var(--fhs-primary);
}

/* Points input */
.fhs-points-input-wrap {
	display: flex;
	gap: 8px;
	align-items: center;
}
.fhs-points-input-wrap input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	font-size: 14px;
}
.fhs-points-balance-text {
	font-size: 12px;
	color: var(--fhs-text-muted);
	margin-top: 6px;
}

/* Checkout summary */
.fhs-checkout-summary {
	background: var(--fhs-bg);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	padding: 24px;
	position: sticky;
	top: 80px;
}
.fhs-checkout-summary h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 20px;
}
.fhs-shipping-notice {
	font-size: 12px;
	color: var(--fhs-danger);
	margin-top: 4px;
}

/* ===================
   7. Order Complete
   =================== */
.fhs-order-complete {
	max-width: 560px;
	margin: 60px auto;
	text-align: center;
}
.fhs-order-complete__icon {
	width: 80px;
	height: 80px;
	background: #D1FAE5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	margin: 0 auto 24px;
}
.fhs-order-complete h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
}
.fhs-order-complete__sub {
	color: var(--fhs-text-muted);
	font-size: 15px;
	margin-bottom: 32px;
}
.fhs-order-detail-box {
	background: var(--fhs-bg);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	padding: 24px;
	text-align: left;
}
.fhs-order-detail-box dl {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 10px 0;
	margin: 0;
}
.fhs-order-detail-box dt {
	font-size: 13px;
	color: var(--fhs-text-muted);
	padding: 2px 0;
}
.fhs-order-detail-box dd {
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

/* ===================
   8. Pricing Table
   =================== */
.fhs-pricing-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.fhs-pricing-card {
	background: var(--fhs-white);
	border: 2px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	transition: border-color var(--fhs-transition), box-shadow var(--fhs-transition);
}
.fhs-pricing-card--featured {
	border-color: var(--fhs-primary);
	box-shadow: 0 0 0 4px rgba(59,130,246,.10);
}
.fhs-pricing-card__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	background: var(--fhs-primary);
	color: var(--fhs-white);
	border-radius: 20px;
	margin-bottom: 16px;
	width: fit-content;
}
.fhs-pricing-card__name {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
}
.fhs-pricing-card__desc {
	font-size: 13px;
	color: var(--fhs-text-muted);
	margin-bottom: 20px;
}
.fhs-pricing-card__price {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 4px;
}
.fhs-pricing-card__price sub {
	font-size: 16px;
	font-weight: 500;
	vertical-align: baseline;
}
.fhs-pricing-card__period {
	font-size: 13px;
	color: var(--fhs-text-muted);
	margin-bottom: 24px;
}
.fhs-pricing-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	flex: 1;
}
.fhs-pricing-card__features li {
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--fhs-border);
	display: flex;
	align-items: center;
	gap: 8px;
}
.fhs-pricing-card__features li:last-child {
	border-bottom: none;
}
.fhs-pricing-card__features .check {
	color: var(--fhs-success);
	font-weight: 700;
}

/* ===================
   9. Shared Components
   =================== */

/* Buttons */
.fhs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border-radius: var(--fhs-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all var(--fhs-transition);
	line-height: 1;
	text-decoration: none;
}
.fhs-btn:hover {
	text-decoration: none;
}
.fhs-btn--primary {
	background: var(--fhs-primary);
	color: var(--fhs-white);
}
.fhs-btn--primary:hover {
	background: var(--fhs-primary-dark);
}
.fhs-btn--outline {
	background: var(--fhs-white);
	color: var(--fhs-text);
	border: 1px solid var(--fhs-border);
}
.fhs-btn--outline:hover {
	border-color: var(--fhs-text);
}
.fhs-btn--lg {
	padding: 14px 28px;
	font-size: 16px;
}
.fhs-btn--full {
	width: 100%;
}
.fhs-btn--danger {
	background: var(--fhs-danger);
	color: var(--fhs-white);
}
.fhs-btn--danger:hover {
	filter: brightness(.9);
}
.fhs-btn:disabled,
.fhs-btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
}
.fhs-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Badges */
.fhs-badge {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 20px;
}
.fhs-badge--pending_payment { background: #FEF3C7; color: #92400E; }
.fhs-badge--paid            { background: #D1FAE5; color: #065F46; }
.fhs-badge--processing      { background: #DBEAFE; color: #1E40AF; }
.fhs-badge--shipped         { background: #EDE9FE; color: #5B21B6; }
.fhs-badge--completed       { background: #D1FAE5; color: #065F46; }
.fhs-badge--cancelled       { background: #F3F4F6; color: #6B7280; }
.fhs-badge--refunded        { background: #FEE2E2; color: #991B1B; }
.fhs-badge--failed          { background: #FEE2E2; color: #991B1B; }
.fhs-badge--active          { background: #D1FAE5; color: #065F46; }
.fhs-badge--paused          { background: #FEF3C7; color: #92400E; }
.fhs-badge--expired         { background: #F3F4F6; color: #6B7280; }

/* Tables (generic) */
.fhs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.fhs-table th,
.fhs-table td {
	padding: 12px 14px;
	text-align: left;
}
.fhs-table th {
	border-bottom: 2px solid var(--fhs-text);
	font-weight: 600;
	background: var(--fhs-bg);
}
.fhs-table td {
	border-bottom: 1px solid var(--fhs-border);
}
.fhs-table tr:last-child td {
	border-bottom: none;
}

/* Loading spinner */
.fhs-loading {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fhs-spin .6s linear infinite;
	vertical-align: middle;
}
@keyframes fhs-spin {
	to { transform: rotate(360deg); }
}
.fhs-btn--loading .fhs-loading {
	display: inline-block;
}

/* Toast notifications */
#fhs-toast-container {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	right: auto;
	bottom: auto;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.fhs-toast {
	min-width: 280px;
	padding: 14px 18px;
	border-radius: var(--fhs-radius);
	box-shadow: var(--fhs-shadow-md);
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: fhs-toast-in .2s ease;
}
.fhs-toast--success { background: #065F46; color: #fff; }
.fhs-toast--error   { background: #991B1B; color: #fff; }
.fhs-toast--info    { background: #1E40AF; color: #fff; }
@keyframes fhs-toast-in {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* MyPage sections */
.fhs-mypage-section {
	padding: 8px 0;
}
.fhs-mypage-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
}
.fhs-mypage-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.fhs-mypage-table th,
.fhs-mypage-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--fhs-border);
}
.fhs-mypage-table th {
	font-weight: 600;
	background: var(--fhs-bg);
}
.fhs-link {
	color: var(--fhs-primary);
	font-size: 13px;
}

/* Coupon cards */
.fhs-coupon-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.fhs-coupon-card {
	background: var(--fhs-white);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius-lg);
	overflow: hidden;
	display: flex;
	border-left: 4px solid var(--fhs-primary);
}
.fhs-coupon-card--expired {
	border-left-color: var(--fhs-border);
	opacity: .65;
}
.fhs-coupon-card__amount {
	background: var(--fhs-primary);
	color: var(--fhs-white);
	font-size: 22px;
	font-weight: 800;
	padding: 20px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
}
.fhs-coupon-card--expired .fhs-coupon-card__amount {
	background: var(--fhs-border);
	color: var(--fhs-text-muted);
}
.fhs-coupon-card__info {
	padding: 16px;
}
.fhs-coupon-card__info strong {
	font-size: 15px;
	display: block;
	margin-bottom: 4px;
}
.fhs-coupon-code {
	font-family: monospace;
	font-size: 12px;
	background: var(--fhs-bg);
	padding: 2px 6px;
	border-radius: 4px;
	display: inline-block;
	margin: 0 0 4px;
}
.fhs-coupon-expiry {
	font-size: 12px;
	color: var(--fhs-text-muted);
	margin: 0;
}
.fhs-coupon-expiry.expired {
	color: var(--fhs-danger);
}

/* Points */
.fhs-points-balance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, var(--fhs-primary), var(--fhs-primary-dark));
	color: var(--fhs-white);
	border-radius: var(--fhs-radius-lg);
	padding: 24px 28px;
	margin-bottom: 24px;
}
.fhs-points-label {
	font-size: 14px;
	opacity: .85;
}
.fhs-points-amount {
	font-size: 28px;
	font-weight: 800;
}

/* Reviews */
.fhs-review-item {
	padding: 20px 0;
	border-bottom: 1px solid var(--fhs-border);
}
.fhs-review-item:last-child {
	border-bottom: none;
}
.fhs-review-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.fhs-review-product {
	font-weight: 600;
	font-size: 14px;
}
.fhs-stars {
	color: #F59E0B;
	font-size: 15px;
}
.fhs-review-date {
	font-size: 12px;
	color: var(--fhs-text-muted);
	margin-left: auto;
}
.fhs-review-content {
	font-size: 14px;
	color: var(--fhs-text);
	margin: 0 0 10px;
	line-height: 1.6;
}
.fhs-review-reply {
	background: var(--fhs-bg);
	border-left: 3px solid var(--fhs-primary);
	padding: 12px 16px;
	border-radius: 0 var(--fhs-radius) var(--fhs-radius) 0;
	font-size: 13px;
}
.fhs-review-reply strong {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--fhs-text-muted);
}
.fhs-review-reply p {
	margin: 0;
	color: var(--fhs-text);
}

/* Download list */
.fhs-download-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.fhs-download-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--fhs-bg);
	border: 1px solid var(--fhs-border);
	border-radius: var(--fhs-radius);
	gap: 16px;
}
.fhs-download-item__name {
	font-weight: 600;
	font-size: 14px;
}
.fhs-download-item__meta {
	font-size: 12px;
	color: var(--fhs-text-muted);
	margin-top: 2px;
}

/* Wishlist grid */
.fhs-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

/* ===================
   10. Responsive
   =================== */
@media (max-width: 1024px) {
	.fhs-product-detail {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.fhs-product-gallery {
		position: static;
	}
	.fhs-cart-wrap,
	.fhs-checkout-wrap {
		grid-template-columns: 1fr;
	}
	.fhs-cart-summary,
	.fhs-checkout-summary {
		position: static;
	}
}
@media (max-width: 768px) {
	.fhs-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.fhs-product-info__name {
		font-size: 20px;
	}
	.fhs-product-info__price {
		font-size: 22px;
	}
	.fhs-product-buy-row {
		grid-template-columns: 1fr;
	}
	.fhs-form-grid {
		grid-template-columns: 1fr;
	}
	.fhs-pricing-table {
		grid-template-columns: 1fr;
	}
	.fhs-coupon-list {
		grid-template-columns: 1fr;
	}
	.fhs-cart-table th:nth-child(3),
	.fhs-cart-table td:nth-child(3) {
		display: none;
	}
	.fhs-mypage-table:not(.fhs-mypage-table--stack) th:nth-child(5),
	.fhs-mypage-table:not(.fhs-mypage-table--stack) td:nth-child(5),
	.fhs-mypage-table:not(.fhs-mypage-table--stack) th:nth-child(4),
	.fhs-mypage-table:not(.fhs-mypage-table--stack) td:nth-child(4) {
		display: none;
	}

	/* 열을 숨기는 대신 한 건을 카드 한 장으로 접는다 — 금액이 잘리지 않는다. */
	.fhs-mypage-table--stack,
	.fhs-mypage-table--stack tbody,
	.fhs-mypage-table--stack tr,
	.fhs-mypage-table--stack td {
		display: block;
		width: auto;
	}
	.fhs-mypage-table--stack thead {
		display: none;
	}
	.fhs-mypage-table--stack tr {
		margin-bottom: 12px;
		padding: 4px 0;
		border: 1px solid #e6e8ec;
		border-radius: 10px;
	}
	.fhs-mypage-table--stack td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 9px 14px;
		border: 0;
		text-align: right;
	}
	.fhs-mypage-table--stack td + td {
		border-top: 1px solid #f1f2f5;
	}
	.fhs-mypage-table--stack td::before {
		content: attr(data-label);
		flex: none;
		color: #6b7280;
		font-weight: 500;
		text-align: left;
	}
}
@media (max-width: 480px) {
	.fhs-product-grid {
		grid-template-columns: 1fr;
	}
	.fhs-order-complete {
		margin: 32px auto;
		padding: 0 16px;
	}
	#fhs-toast-container {
		top: 16px;
		left: 16px;
		right: 16px;
		bottom: auto;
		transform: none;
	}
	.fhs-toast {
		min-width: 0;
	}
}

/* ========================================
   미니 장바구니 (드로어 / 모달) + 플로팅 버튼
   표시 방식은 관리자 설정(cart_display)으로 선택: drawer | modal | page
   ======================================== */
.fhs-cart-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 99998; }
.fhs-cart-overlay.is-open { opacity: 1; visibility: visible; }
.fhs-cart-overlay.fhs-cart-overlay--soft { background: rgba(17,24,39,.12); }
body.fhs-cart-open { overflow: hidden; }

.fhs-cart-drawer { position: fixed; z-index: 99999; display: flex; flex-direction: column; background: var(--fhs-bg,#fff); box-shadow: 0 10px 40px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .25s ease; font-family: inherit; }
.fhs-cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--fhs-border,#eef0f3); }
.fhs-cart-drawer__head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--fhs-text,#111827); }
.fhs-cart-drawer__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: var(--fhs-accent,#3B82F6); color: #fff; font-size: 12px; font-weight: 700; }
.fhs-cart-drawer__close { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--fhs-text-muted,#9ca3af); cursor: pointer; padding: 0 4px; }
.fhs-cart-drawer__close:hover { color: var(--fhs-text,#111827); }
.fhs-cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.fhs-cart-drawer__foot { border-top: 1px solid var(--fhs-border,#eef0f3); padding: 16px 20px; background: var(--fhs-bg-gray,#fafbfc); }
.fhs-cart-drawer__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fhs-cart-drawer__row span { color: var(--fhs-text-muted,#6b7280); font-size: 14px; }
.fhs-cart-drawer__total { font-size: 20px; font-weight: 800; color: var(--fhs-text,#111827); }
.fhs-cart-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fhs-mini-btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .15s; }
.fhs-mini-btn--ghost { background: var(--fhs-bg,#fff); border: 1px solid var(--fhs-border,#d1d5db); color: var(--fhs-text-sub,#374151); }
.fhs-mini-btn--ghost:hover { background: var(--fhs-bg-gray,#f3f4f6); }
.fhs-mini-btn--primary { background: var(--fhs-primary,#3B82F6); border: 1px solid var(--fhs-primary,#3B82F6); color: var(--fhs-white,#fff); }
.fhs-mini-btn--primary:hover { filter: brightness(.95); }

/* 우측 슬라이드 드로어 (전체 높이) */
.fhs-cart-drawer[data-mode="drawer"] { top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; transform: translateX(100%); }
.fhs-cart-drawer[data-mode="drawer"].is-open { transform: translateX(0); }

/* 미니 모달 (쪽지함처럼 우하단 작게) */
.fhs-cart-drawer[data-mode="modal"] { bottom: 96px; right: 24px; width: 360px; max-width: 92vw; max-height: 70vh; border-radius: 16px; transform: translateY(16px) scale(.98); opacity: 0; visibility: hidden; }
.fhs-cart-drawer[data-mode="modal"].is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.fhs-cart-drawer[data-mode="modal"] .fhs-cart-drawer__head { border-radius: 16px 16px 0 0; }

/* 항목 */
.fhs-mini-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--fhs-border-light,#f1f3f5); }
.fhs-mini-item__img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--fhs-bg-soft,#f3f4f6); display: block; }
.fhs-mini-item__info { min-width: 0; }
.fhs-mini-item__name { font-size: 14px; font-weight: 600; color: var(--fhs-text,#111827); line-height: 1.35; }
.fhs-mini-item__opt { font-size: 12px; color: var(--fhs-text-muted,#9ca3af); margin-top: 2px; }
.fhs-mini-item__price { font-size: 13px; color: var(--fhs-text,#111827); font-weight: 700; margin-top: 4px; }
.fhs-mini-item__qty { display: flex; align-items: center; gap: 6px; }
.fhs-mini-qty { width: 26px; height: 26px; border: 1px solid var(--fhs-border,#d1d5db); background: var(--fhs-bg,#fff); border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--fhs-text-sub,#374151); }
.fhs-mini-qty:hover { background: var(--fhs-bg-gray,#f3f4f6); }
.fhs-mini-item__qnum { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--fhs-text,#111827); }
.fhs-mini-item__remove { border: 0; background: none; color: var(--fhs-text-light,#c5c9cf); font-size: 20px; cursor: pointer; padding: 0 2px; }
.fhs-mini-item__remove:hover { color: var(--fhs-accent,#ef4444); }
.fhs-mini-empty { text-align: center; color: var(--fhs-text-muted,#9ca3af); padding: 48px 0; font-size: 15px; }

/* 플로팅 장바구니 버튼 */
.fhs-cart-fab { position: fixed; bottom: 24px; right: 24px; z-index: 99990; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--fhs-primary,#3B82F6); color: var(--fhs-white,#fff); box-shadow: 0 6px 20px rgba(0,0,0,.3); cursor: pointer; align-items: center; justify-content: center; }
.fhs-cart-fab__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--fhs-accent,#ef4444); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fhs-bg,#fff); }

@media (max-width: 480px) {
	.fhs-cart-drawer[data-mode="drawer"] { width: 100%; max-width: 100%; }
	.fhs-cart-drawer[data-mode="modal"] { right: 12px; left: 12px; width: auto; bottom: 84px; }
	.fhs-cart-fab { bottom: 16px; right: 16px; }
}

/* ========================================
   마이페이지 주문 카드 + 액션 + 모달(클레임/리뷰)
   ======================================== */
.fhs-orders { display: flex; flex-direction: column; gap: 16px; }
.fhs-order-card { border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; background: #fff; }
.fhs-order-card__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #f8f9fa; border-bottom: 1px solid #eef0f3; }
.fhs-order-card__meta { display: flex; flex-direction: column; gap: 2px; }
.fhs-order-card__no { font-weight: 700; color: #111827; font-size: 14px; }
.fhs-order-card__date { font-size: 12px; color: #9ca3af; }
.fhs-order-card__items { padding: 6px 18px; }
.fhs-order-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.fhs-order-line:last-child { border-bottom: 0; }
.fhs-order-line__name { font-size: 14px; color: #111827; font-weight: 500; }
.fhs-order-line__opt { display: inline-block; margin-left: 6px; font-size: 12px; color: #9ca3af; }
.fhs-order-line__qty { font-size: 13px; color: #6b7280; }
.fhs-order-line__price { font-size: 14px; font-weight: 600; color: #111827; }
.fhs-order-line__reviewed { font-size: 12px; color: #9ca3af; }
.fhs-order-card__ship { padding: 10px 18px; background: #fafbfc; border-top: 1px dashed #eef0f3; font-size: 13px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 12px; }
.fhs-order-card__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid #eef0f3; gap: 12px; flex-wrap: wrap; }
.fhs-order-card__total { font-size: 16px; color: #111827; }
.fhs-order-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.fhs-btn-sm { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; }
.fhs-btn-sm:hover { background: #f3f4f6; }
.fhs-btn-sm--primary { background: var(--fhs-primary,#3B82F6); border-color: var(--fhs-primary,#3B82F6); color: #fff; }
.fhs-btn-sm--primary:hover { filter: brightness(.95); }

/* 모달 (클레임/리뷰 공용) */
.fhs-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; }
.fhs-modal.is-open { display: flex; }
.fhs-modal__overlay { position: absolute; inset: 0; background: rgba(17,24,39,.5); }
.fhs-modal__panel { position: relative; width: 440px; max-width: 92vw; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.fhs-modal__title { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: #111827; }
.fhs-modal .fhs-field { display: block; margin-bottom: 14px; font-size: 13px; color: #374151; font-weight: 600; }
/* input 을 반드시 포함한다 — 환불계좌(은행/계좌번호/예금주)와 리뷰 폼이 text input 이라
   빠지면 라벨 옆에 브라우저 기본 인라인 입력으로 붙어 폭이 제각각이 된다.
   이 모달은 클레임/리뷰 공용(render_order_modals)이므로 두 화면에 함께 적용된다. */
.fhs-modal .fhs-field select,
.fhs-modal .fhs-field textarea,
.fhs-modal .fhs-field input[type="text"],
.fhs-modal .fhs-field input[type="tel"],
.fhs-modal .fhs-field input[type="number"],
.fhs-modal .fhs-field input[type="email"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-weight: 400; box-sizing: border-box; font-family: inherit; }
.fhs-modal .fhs-field select:focus,
.fhs-modal .fhs-field textarea:focus,
.fhs-modal .fhs-field input:focus { outline: none; border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(17,24,39,.06); }

/* 환불 수취계좌 — 현금성 결제에서만 노출되는 블록 */
.fhs-claim-account { margin: 0 0 14px; padding: 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; }
.fhs-claim-account[hidden] { display: none; }
.fhs-claim-account__note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #6b7280; }
.fhs-claim-account .fhs-field:last-child { margin-bottom: 0; }

/* 결제 전 주문 안내 — 돌려줄 금액이 없다는 한 줄 */
.fhs-claim-unpaid { margin: 0 0 14px; padding: 12px 14px; background: #f3f4f6; border-left: 3px solid #9ca3af; border-radius: 6px; font-size: 13px; line-height: 1.5; color: #4b5563; }
.fhs-claim-unpaid[hidden] { display: none; }
.fhs-claim-refund { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fhs-claim-refund > span { font-weight: 600; }
.fhs-claim-refund label { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.fhs-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.fhs-review-product-name { font-size: 14px; color: #6b7280; margin: -6px 0 12px; }
.fhs-star-input { display: flex; gap: 4px; margin-bottom: 14px; }
.fhs-star-input button { border: 0; background: none; font-size: 28px; line-height: 1; color: #d1d5db; cursor: pointer; padding: 0; }
.fhs-star-input button.is-active { color: #fbbf24; }

@media (max-width: 480px) {
	.fhs-order-line { grid-template-columns: 1fr auto; row-gap: 4px; }
	.fhs-order-card__foot { flex-direction: column; align-items: stretch; }
}

/* 비회원 주문조회 */
.fhs-order-lookup { max-width: 560px; margin: 0 auto; }
.fhs-lookup-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fhs-lookup-form input { flex: 1 1 200px; height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.fhs-lookup-form button { height: 42px; }

/* 상품 옵션 (조합형) 선택 */
.fhs-product-options { margin: 16px 0; }
.fhs-opt-field { margin-bottom: 14px; }
.fhs-opt-field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
/* 조합형 옵션 라벨 필수 표시 * — 현재 사용 중인 강조(빨강) 색 */
.fhs-opt-field__label .required,
.fhs-product-variants__label .required { color: var(--fhs-accent, #f31110); margin-left: 2px; font-weight: 700; }
/* 옵션 미선택 안내 문구 — 기본 숨김, 미선택 클릭 시에만 노출 (미니멀) */
.fhs-option-hint {
    display: none; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 10px; padding: 9px 12px;
    background: transparent; border: 1px solid var(--fhs-accent, #f31110);
    border-radius: 6px; font-size: 13px; line-height: 1;
    color: var(--fhs-accent, #f31110); letter-spacing: -.01em;
}
.fhs-option-hint.is-visible { display: flex; }
.fhs-option-hint::before {
    content: "!"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--fhs-accent, #f31110); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}
.fhs-opt-swatches, .fhs-opt-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fhs-opt-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.fhs-opt-sw.is-active { border-color: var(--fhs-primary, #111); box-shadow: 0 0 0 2px var(--fhs-primary, #111); }
.fhs-opt-btn { padding: 9px 16px; border: 1px solid #d0d0d0; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; }
.fhs-opt-btn.is-active { border-color: var(--fhs-primary, #111); background: var(--fhs-primary, #111); color: #fff; }
.fhs-opt-sel { width: 100%; max-width: 340px; height: 44px; padding: 0 12px; border: 1px solid #d0d0d0; border-radius: 8px; font-size: 14px; }
.fhs-opt-status { margin-top: 10px; font-size: 13px; }
.fhs-opt-picked { color: var(--fhs-success, #1e9e52); font-weight: 600; }
.fhs-opt-soldout { color: var(--fhs-danger, #e8323c); font-weight: 600; }

/* ===================================================
   상품 통합검색 / 상세 필터 (사이드바)
   =================================================== */
.fhs-shop--filtered .fhs-shop-layout { display: flex; gap: 28px; align-items: flex-start; }
.fhs-filter-sidebar {
	width: 240px; flex-shrink: 0;
	border: 1px solid #ececec; border-radius: 12px; padding: 18px 16px;
	background: #fff; position: sticky; top: 20px;
}
.fhs-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fhs-filter-head strong { font-size: 15px; }
.fhs-filter-reset {
	border: none; background: none; color: #888; font-size: 12px; cursor: pointer; padding: 2px 4px;
}
.fhs-filter-reset:hover { color: var(--fhs-primary); text-decoration: underline; }
.fhs-filter-group { padding: 14px 0; border-top: 1px solid #f1f1f1; }
.fhs-filter-group:first-of-type { border-top: none; padding-top: 0; }
.fhs-filter-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #333; }
.fhs-filter-input {
	width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d8d8d8;
	border-radius: 8px; font-size: 13px; box-sizing: border-box;
}
.fhs-filter-input:focus { border-color: var(--fhs-primary); outline: none; }
.fhs-filter-scroll { max-height: 220px; overflow-y: auto; }
.fhs-filter-check, .fhs-filter-radio {
	display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444;
	padding: 5px 0; cursor: pointer;
}
.fhs-filter-check span, .fhs-filter-radio span { flex: 1; }
.fhs-filter-count { color: #aaa; font-size: 11px; font-style: normal; }
.fhs-filter-price { display: flex; align-items: center; gap: 6px; }
.fhs-filter-price .fhs-filter-input { text-align: right; }
.fhs-filter-price span { color: #aaa; }
.fhs-filter-apply {
	width: 100%; margin-top: 16px; height: 42px; border: none; border-radius: 8px;
	background: var(--fhs-primary); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fhs-filter-apply:hover { background: var(--fhs-primary-dark); }
.fhs-shop-main { flex: 1; min-width: 0; position: relative; }
.fhs-filter-results.is-loading { opacity: .5; transition: opacity .15s; pointer-events: none; }
.fhs-filter-loading[aria-hidden="false"] {
	position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
	padding-top: 80px;
}
.fhs-filter-loading[aria-hidden="false"]::after {
	content: ""; width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid #e5e5e5; border-top-color: var(--fhs-primary);
	animation: fhs-spin .8s linear infinite;
}
@keyframes fhs-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
	.fhs-shop--filtered .fhs-shop-layout { flex-direction: column; }
	.fhs-filter-sidebar { width: 100%; position: static; box-sizing: border-box; }
	.fhs-filter-scroll { max-height: 160px; }
}

/* ===================================================
   독립 마이페이지 ([fluxshop_mypage])
   =================================================== */
.fhs-account { max-width: 1100px; margin: 0 auto; }
.fhs-account--full { display: flex; gap: 28px; align-items: flex-start; }
.fhs-account__nav {
	width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px;
	border: 1px solid #ececec; border-radius: 12px; padding: 10px; background: #fff;
	position: sticky; top: 20px;
}
.fhs-account__tab {
	display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px;
	color: #444; text-decoration: none; transition: background .15s, color .15s;
}
.fhs-account__tab:hover { background: #f5f5f7; }
.fhs-account__tab.is-active { background: var(--fhs-primary); color: #fff; font-weight: 600; }
.fhs-account__body { flex: 1; min-width: 0; }

@media (max-width: 768px) {
	.fhs-account--full { flex-direction: column; }
	.fhs-account__nav {
		width: 100%; box-sizing: border-box; flex-direction: row; flex-wrap: wrap;
		position: static;
	}
	.fhs-account__tab { flex: 0 0 auto; }
}

/* ===================================================
   상품상세 — 선택한 옵션 누적 목록
   =================================================== */
.fhs-selected-options { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.fhs-sel-line {
	display: flex; align-items: center; gap: 10px;
	background: #f7f7fa; border: 1px solid #ececf0; border-radius: 10px; padding: 10px 12px;
}
.fhs-sel-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fhs-sel-line__name { font-size: 14px; font-weight: 600; color: #222; }
.fhs-sel-line__stock { font-size: 11px; color: #999; }
.fhs-sel-line__qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.fhs-sel-qty { width: 30px; height: 32px; border: none; background: #fff; cursor: pointer; font-size: 16px; color: #555; }
.fhs-sel-qty:hover { background: #f1f1f1; }
.fhs-sel-qty-input { width: 40px; height: 32px; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.fhs-sel-qty-input::-webkit-outer-spin-button, .fhs-sel-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fhs-sel-line__price { min-width: 84px; text-align: right; font-weight: 700; font-size: 14px; color: var(--fhs-primary, #111); }
.fhs-sel-remove { width: 26px; height: 26px; border: none; background: none; color: #aaa; font-size: 18px; cursor: pointer; line-height: 1; }
.fhs-sel-remove:hover { color: #e8323c; }

/* ===================================================
   상품상세 — 구매후기
   =================================================== */
.fhs-tab-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; font-size: 11px; line-height: 18px; border-radius: 9px; background: #eee; color: #666; vertical-align: middle; }
.fhs-reviews__summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eee; margin-bottom: 12px; }
.fhs-reviews__score { display: flex; align-items: baseline; gap: 6px; }
.fhs-reviews__score strong { font-size: 28px; color: #222; }
.fhs-reviews__stars { color: #ffb400; letter-spacing: 1px; }
.fhs-reviews__total { color: #888; font-size: 13px; }
.fhs-reviews__list { list-style: none; margin: 0; padding: 0; }
.fhs-review-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.fhs-review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fhs-review-item__stars { color: #ffb400; letter-spacing: 1px; font-size: 14px; }
.fhs-review-item__author { font-weight: 600; font-size: 13px; color: #333; }
.fhs-review-item__date { color: #aaa; font-size: 12px; margin-left: auto; }
.fhs-review-item__photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.fhs-review-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.fhs-review-item__content { color: #444; font-size: 14px; line-height: 1.7; margin: 6px 0 0; }
.fhs-review-item__reply { margin-top: 10px; padding: 10px 12px; background: #f7f7fa; border-radius: 8px; }
.fhs-review-item__reply strong { display: block; font-size: 12px; color: var(--fhs-primary, #6C5CE7); margin-bottom: 4px; }
.fhs-review-item__reply p { margin: 0; font-size: 13px; color: #555; }

/* ===================================================
   상품 문의 (Q&A) — 독립형
   =================================================== */
.fhs-qna-board__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.fhs-qna-board__count { color: #666; font-size: 14px; font-weight: 600; }
.fhs-qna-form { margin-bottom: 18px; }
.fhs-qna-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; }
.fhs-qna-form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.fhs-qna-secret { font-size: 13px; color: #666; display: inline-flex; align-items: center; gap: 6px; }
.fhs-qna-list { list-style: none; margin: 0; padding: 0; }
.fhs-qna-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.fhs-qna-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fhs-qna-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.fhs-qna-badge--pending { background: #fff3e0; color: #e08600; }
.fhs-qna-badge--answered { background: #e3f6ec; color: #1e9e52; }
.fhs-qna-lock { font-size: 12px; }
.fhs-qna-item__author { font-size: 13px; font-weight: 600; color: #333; }
.fhs-qna-item__date { font-size: 12px; color: #aaa; margin-left: auto; }
.fhs-qna-item__content { margin: 4px 0 0; font-size: 14px; color: #444; line-height: 1.7; }
/* 판매자 답변 — 접이식(details/summary, JS 불필요) */
.fhs-qna-item__reply { margin-top: 10px; }
.fhs-qna-item__reply-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 13px; border-radius: 999px; cursor: pointer;
	list-style: none; user-select: none;
	background: #f4f5f7; border: 1px solid #e6e8ec;
	transition: background .2s ease, border-color .2s ease;
}
.fhs-qna-item__reply-toggle::-webkit-details-marker { display: none; }
.fhs-qna-item__reply-toggle:hover { background: #eceef1; border-color: #dcdfe4; }
.fhs-qna-item__reply-tag { font-size: 12px; font-weight: 700; color: var(--fhs-primary, #6C5CE7); letter-spacing: -.01em; }
.fhs-qna-item__reply-hint { font-size: 12px; color: #9aa0a8; }
.fhs-qna-item__reply-toggle::after {
	content: ""; width: 7px; height: 7px; margin-left: 1px;
	border-right: 1.6px solid #b6bcc4; border-bottom: 1.6px solid #b6bcc4;
	transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.fhs-qna-item__reply[open] .fhs-qna-item__reply-toggle::after { transform: translateY(1px) rotate(-135deg); }
.fhs-qna-item__reply[open] .fhs-qna-item__reply-hint { display: none; }
.fhs-qna-item__reply-body {
	margin: 10px 0 2px; padding: 13px 15px; font-size: 13.5px; color: #444; line-height: 1.75;
	background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 10px;
	animation: fhsQnaReplyIn .22s ease;
}
@keyframes fhsQnaReplyIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* 마이페이지 — 내 문의 */
.fhs-myqna-list { list-style: none; margin: 0; padding: 0; }
.fhs-myqna-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.fhs-myqna-item:first-child { padding-top: 0; }
.fhs-myqna-item__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fhs-myqna-item__lock { font-size: 11px; font-weight: 600; color: #888; background: #f1f1f4; padding: 2px 8px; border-radius: 10px; }
.fhs-myqna-item__product { font-size: 14px; font-weight: 600; color: #333; text-decoration: none; }
.fhs-myqna-item__product:hover { color: var(--fhs-primary, #6C5CE7); text-decoration: underline; }
.fhs-myqna-item__date { font-size: 12px; color: #aaa; margin-left: auto; }
.fhs-myqna-item__q { margin: 0; font-size: 14px; color: #444; line-height: 1.7; white-space: pre-line; }
.fhs-myqna-item__a { margin-top: 10px; padding: 12px 14px; background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 10px; }
.fhs-myqna-item__a strong { display: block; font-size: 12px; font-weight: 700; color: var(--fhs-primary, #6C5CE7); margin-bottom: 4px; }
.fhs-myqna-item__a p { margin: 0; font-size: 13.5px; color: #555; line-height: 1.7; }
.fhs-btn-sm { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; color: #333; text-decoration: none; }
.fhs-btn-sm--primary { background: var(--fhs-primary, #6C5CE7); border-color: var(--fhs-primary, #6C5CE7); color: #fff; }

/* ===================================================
   터치 타겟 — 모바일에서 최소 44px (접근성)
   =================================================== */
@media (max-width: 768px) {
	.fhs-sel-qty { width: 44px; height: 44px; font-size: 18px; }
	.fhs-sel-qty-input { height: 44px; width: 48px; font-size: 15px; }
	.fhs-qty-btn { min-width: 44px; height: 44px; }
	.fhs-qty-wrap input { height: 44px; }
	.fhs-mini-qty { width: 40px; height: 40px; }
	.fhs-card-action { width: 44px; height: 44px; }
	.fhs-card-action svg { width: 18px; height: 18px; }
	.fhs-mini-item__remove { width: 40px; height: 40px; }
	.fhs-filter-apply, .fhs-filter-reset { min-height: 44px; }
	.fhs-qna-write-btn, .fhs-write-review, .fhs-btn-sm { min-height: 40px; }
	.fhs-sort-select, .fhs-filter-input { min-height: 44px; }
	.fhs-tab-btn { min-height: 48px; }
}

/* ===================================================
   후기 사진 업로드 (모달)
   =================================================== */
.fhs-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.fhs-review-photos__preview { display: flex; flex-wrap: wrap; gap: 8px; }
.fhs-review-photo-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f1f1f1; }
.fhs-review-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fhs-review-photo-thumb__del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.fhs-review-photo-thumb__loading { position: absolute; inset: 0; display: block; }
.fhs-review-photo-thumb__loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #ddd; border-top-color: var(--fhs-primary, #6C5CE7); border-radius: 50%; animation: fhs-spin .8s linear infinite; }
.fhs-review-photos__add { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px dashed #ccc; border-radius: 8px; color: #888; font-size: 12px; cursor: pointer; text-align: center; }
.fhs-review-photos__add:hover { border-color: var(--fhs-primary, #6C5CE7); color: var(--fhs-primary, #6C5CE7); }

/* ===================================================
   목록 퀵뷰 (옵션 선택 팝업)
   =================================================== */
.fhs-quickview { position: fixed; inset: 0; z-index: 99998; display: none; }
.fhs-quickview.is-open { display: block; }
.fhs-quickview .fhs-modal__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); }
.fhs-quickview__panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(92vw, 520px); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fhs-quickview__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: none; background: none; font-size: 26px; line-height: 1; color: #888; cursor: pointer; z-index: 2; }
.fhs-quickview__close:hover { color: #111; }
.fhs-quickview__loading { min-height: 200px; position: relative; }
.fhs-quickview__loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #eee; border-top-color: var(--fhs-primary, #6C5CE7); border-radius: 50%; animation: fhs-spin .8s linear infinite; }
/* 퀵뷰 안에서는 갤러리/공유/찜 등 상세 전용 요소 축소 */
.fhs-quickview__body .fluxshop-product-detail__info { padding: 0; }
.fhs-quickview__body .fluxshop-product-detail__icon-actions { display: none; }
.fhs-quickview__body .fluxshop-product-detail__name { font-size: 20px; }

/* 찜 활성 상태 — 하트 채우기 */
.fhs-wishlist-btn.active svg,
.fhs-card-action.fhs-wishlist-btn.active svg { fill: var(--fhs-danger, #e8323c); stroke: var(--fhs-danger, #e8323c); }
.fhs-card-action.fhs-wishlist-btn.active { color: var(--fhs-danger, #e8323c); }
.fhs-icon-btn.fhs-wishlist-btn.active { color: var(--fhs-danger, #e8323c); border-color: var(--fhs-danger, #e8323c); }

/* ===================================================
   장바구니 드로어 — 옵션 선택 뷰 (목록에서 옵션상품 담기)
   =================================================== */
.fhs-cart-drawer__optfoot { display: none; padding: 16px; border-top: 1px solid var(--fhs-border, #eee); }
.fhs-cart-drawer[data-view="options"] .fhs-cart-drawer__foot { display: none; }
.fhs-cart-drawer[data-view="options"] .fhs-cart-drawer__optfoot { display: block; }
.fhs-cart-drawer__optfoot .fhs-mini-btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
.fhs-cartopt { padding: 4px 2px; }
.fhs-cartopt__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--fhs-border, #eee); margin-bottom: 16px; }
.fhs-cartopt__thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--fhs-bg-soft, #f5f5f5); flex-shrink: 0; }
.fhs-cartopt__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fhs-cartopt__name { font-weight: 600; font-size: 14px; color: var(--fhs-text, #222); }
.fhs-cartopt__price { color: var(--fhs-text-muted, #888); font-size: 13px; }
.fhs-cartopt__total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--fhs-border, #eee); }
.fhs-cartopt__total strong { font-size: 18px; font-weight: 800; color: var(--fhs-text, #222); }
/* 드로어 안에서는 옵션 스와치/드롭다운 폭 100% */
.fhs-cartopt .fhs-opt-sel { max-width: 100%; }

/* ===================
   추천 상품 (그리드/슬라이더)
   =================== */
.fhs-featured { margin: 0 0 48px; }
.fhs-featured__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.fhs-featured__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--fhs-text, #1a1a1a); }

/* 슬라이더 컨테이너: 좌우 네비게이션 공간 확보 */
.fhs-featured--slider .fhs-featured-swiper { position: relative; padding: 4px 4px 44px; }
.fhs-featured-swiper .swiper-slide { height: auto; box-sizing: border-box; }
/* 카드가 슬라이드 높이를 꽉 채우도록 */
.fhs-featured-swiper .swiper-slide > .fluxshop-product-card { height: 100%; }

/* Swiper 번들 로드 전(또는 미로드 시) 가로 폴백 레이아웃 */
.fhs-featured-swiper:not(.fhs-swiper-ready) .swiper-wrapper {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.fhs-featured-swiper:not(.fhs-swiper-ready) .swiper-slide {
	flex: 0 0 80%;
	max-width: 320px;
	scroll-snap-align: start;
}
.fhs-featured-swiper:not(.fhs-swiper-ready) .swiper-button-prev,
.fhs-featured-swiper:not(.fhs-swiper-ready) .swiper-button-next,
.fhs-featured-swiper:not(.fhs-swiper-ready) .swiper-pagination { display: none; }

/* 네비게이션 버튼 */
.fhs-featured__nav.swiper-button-prev,
.fhs-featured__nav.swiper-button-next {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--fhs-white, #fff);
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
	border: 1px solid var(--fhs-border, #eee);
	color: var(--fhs-text, #222);
	margin: 0;
	top: 42%;
	transition: background .2s ease, color .2s ease;
}
.fhs-featured__nav.swiper-button-prev { left: -6px; }
.fhs-featured__nav.swiper-button-next { right: -6px; }
.fhs-featured__nav.swiper-button-prev::after,
.fhs-featured__nav.swiper-button-next::after { font-size: 16px; font-weight: 700; }
.fhs-featured__nav:hover { background: var(--fhs-primary, #1a1a1a); color: #fff; }

/* 페이지네이션 도트 */
.fhs-featured-swiper .swiper-pagination.fhs-featured__dots { bottom: 8px; }
.fhs-featured-swiper .swiper-pagination-bullet-active { background: var(--fhs-primary, #1a1a1a); }

@media (max-width: 768px) {
	.fhs-featured { margin-bottom: 36px; }
	.fhs-featured__title { font-size: 20px; }
	.fhs-featured__nav.swiper-button-prev,
	.fhs-featured__nav.swiper-button-next { display: none; }
}

/* =========================================================
   커머스 표면(surface) — 다크/커스텀 테마에서도 밝은 배경 보장
   (무신사/카페24처럼 스토어 영역은 항상 라이트 표면)
   ========================================================= */
.fhs-pdp, .fhs-shop--musinsa, .fhs-cart2, .fhs-account, .fhs-mypage {
	background: #fff;
	color: #111;
	border-radius: 8px;
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
/* 테마 상속 간섭 차단: 스토어 영역 내부 공통 리셋 */
.fhs-pdp *, .fhs-shop--musinsa *, .fhs-cart2 *, .fhs-account *, .fhs-mypage * { box-sizing: border-box; }
.fhs-pdp button, .fhs-shop--musinsa button, .fhs-cart2 button, .fhs-account button, .fhs-mypage button { font-family: inherit; }
.fhs-account, .fhs-mypage { color: #111; }
/* 테마가 레거시 클래스(.fluxshop*)에 grid/flex를 걸어 내부 레이아웃이 깨지는 것 차단 (특이도 우위) */
.fhs-pdp.fluxshop-product-detail,
.fhs-cart2.fluxshop-cart { display: block; }
.fhs-shop--musinsa.fluxshop-products-wrap { display: block; }
.fhs-pdp a, .fhs-shop--musinsa a, .fhs-cart2 a { color: inherit; }
/* 테마의 heading 색상(다크/커스텀)이 스토어 표면 제목을 덮어쓰지 않도록 강제 */
.fhs-pdp h1, .fhs-pdp h2, .fhs-pdp h3, .fhs-pdp h4,
.fhs-shop--musinsa h1, .fhs-shop--musinsa h2, .fhs-shop--musinsa h3, .fhs-shop--musinsa h4,
.fhs-cart2 h1, .fhs-cart2 h2, .fhs-cart2 h3, .fhs-cart2 h4 { color: #111; }

/* =========================================================
   상품 상세 (PDP) — 무신사식 2단 sticky 레이아웃
   토큰은 재정의 가능. 기본은 무신사 톤(블랙/화이트/#e0e0e0)
   ========================================================= */
.fhs-pdp {
	--fhs-pdp-border: #ebebeb;
	--fhs-pdp-line:   #ebebeb;
	--fhs-pdp-ink:    #000;
	--fhs-pdp-sub:    #8a8a8a;
	--fhs-pdp-accent: #f31110;
	--fhs-pdp-sidebar: 400px;
	--fhs-pdp-navtop: 0px; /* 테마 헤더 높이만큼 조정 가능 */
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 16px 80px;
	color: var(--fhs-pdp-ink);
	font-family: inherit;
}
.fhs-pdp *, .fhs-pdp *::before, .fhs-pdp *::after { box-sizing: border-box; }

/* 브레드크럼 */
.fhs-pdp__breadcrumb { font-size: 12px; color: var(--fhs-pdp-sub); margin: 8px 0 20px; }
.fhs-pdp__breadcrumb a { color: var(--fhs-pdp-sub); text-decoration: none; }
.fhs-pdp__breadcrumb a:hover { text-decoration: underline; }
.fhs-pdp__crumb-sep { margin: 0 6px; color: #c9ccd1; }

/* 상단 2단 */
.fhs-pdp__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--fhs-pdp-sidebar);
	gap: 48px;
	align-items: start;
}
.fhs-pdp__right { position: sticky; top: calc(var(--fhs-pdp-navtop) + 20px); }

/* ── 갤러리 ── */
/* 썸네일 / 스테이지 / 공유 버튼을 명시적으로 배치한다.
   예전엔 grid-auto-flow:dense + order:-1 의 자동 배치에 의존해서, 이미지가 1장이라
   썸네일 열 자체가 렌더되지 않으면 스테이지가 72px 열로 밀려 들어가 이미지가 72px로 붕괴했다. */
.fhs-gallery { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
.fhs-gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.fhs-gallery__thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--fhs-pdp-border); border-radius: 4px; overflow: hidden; cursor: pointer; background: #fff; flex: 0 0 auto; }
.fhs-gallery__thumb.is-active { border-color: var(--fhs-pdp-ink); }
.fhs-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhs-gallery__stage { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 1/1; background: #f7f7f7; border-radius: 6px; overflow: hidden; }
.fhs-gallery__main { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fhs-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); opacity: 0; transition: opacity .2s; }
.fhs-gallery__stage:hover .fhs-gallery__nav { opacity: 1; }
.fhs-gallery__nav--prev { left: 12px; }
.fhs-gallery__nav--next { right: 12px; }
.fhs-gallery__counter { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }

/* 라이트박스 */
.fhs-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 40px; }
.fhs-lightbox.is-open { display: flex; }
.fhs-lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.fhs-lightbox__close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* ── 우측 사이드바 ── */
.fhs-sidebar { font-size: 14px; }
.fhs-sidebar__brand { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.fhs-sidebar__name { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; color: var(--fhs-pdp-ink); }
.fhs-sidebar__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 13px; }
.fhs-sidebar__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--fhs-pdp-ink); text-decoration: none; }
.fhs-sidebar__rating .fhs-star { color: #ffb400; }
.fhs-sidebar__rating .fhs-rating-count { color: var(--fhs-pdp-sub); text-decoration: underline; }
.fhs-sidebar__likes { color: var(--fhs-pdp-sub); }
/* 찜 수 실시간 갱신용 — 0이면 감추고, 표시할 항목이 없으면 메타 줄 자체를 감춘다 */
.fhs-sidebar__meta.is-empty,
.fhs-mcard__meta.is-empty,
.fhs-sidebar__likes.is-hidden,
.fhs-mcard__likes.is-hidden { display: none; }
.fhs-sidebar .fluxshop-product-detail__short-desc { color: var(--fhs-pdp-sub); font-size: 13px; margin: 0 0 16px; }

.fhs-sidebar__price { margin: 14px 0; }
.fhs-sidebar__price .fhs-price-del { color: #8a8a8a; text-decoration: line-through; font-size: 13px; }
.fhs-sidebar__price .fhs-price-line { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.fhs-sidebar__price .fhs-price-discount { color: var(--fhs-pdp-accent); font-size: 18px; font-weight: 700; }
.fhs-sidebar__price .fhs-price-discount .unit { font-size: 18px; }
.fhs-sidebar__price .fhs-price-current { font-size: 18px; font-weight: 700; color: var(--fhs-pdp-ink); }
.fhs-sidebar__price .fhs-price-cycle { color: var(--fhs-pdp-sub); font-size: 13px; }

.fhs-sidebar__facts { border-top: 1px solid var(--fhs-pdp-line); margin: 16px 0 0; padding: 14px 0 0; }
.fhs-sidebar__fact { display: grid; grid-template-columns: 60px 1fr; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.fhs-sidebar__fact dt { color: var(--fhs-pdp-sub); margin: 0; }
.fhs-sidebar__fact dd { margin: 0; color: var(--fhs-pdp-ink); }
.fhs-trial-badge { background: #eef6ff; color: #2563eb; padding: 2px 8px; border-radius: 4px; font-size: 12px; }

.fhs-sidebar__total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--fhs-pdp-line); margin-top: 16px; padding-top: 16px; }
.fhs-sidebar__total .fluxshop-product-detail__total-label { color: var(--fhs-pdp-sub); font-size: 14px; }
.fhs-sidebar__total .fluxshop-product-detail__total-amount { font-size: 22px; font-weight: 800; }

/* 구매 버튼줄 (무신사 톤) */
.fhs-sidebar__actions { display: flex; gap: 8px; margin-top: 16px; }
.fhs-sidebar__actions .fluxshop-btn { height: 52px; border-radius: 4px; font-size: 14px; font-weight: 500; flex: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--fhs-pdp-border); background: #fff; color: var(--fhs-pdp-ink); }
.fhs-sidebar__actions .fluxshop-btn--buy,
.fhs-sidebar__actions .fluxshop-btn--primary { background: var(--fhs-pdp-ink); color: #fff; border-color: var(--fhs-pdp-ink); }
.fhs-sidebar__actions .fluxshop-btn--buy:hover,
.fhs-sidebar__actions .fluxshop-btn--primary:hover { background: #000; }
.fhs-sidebar__actions .fhs-sidebar__wish { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--fhs-pdp-border); border-radius: 4px; background: #fff; color: #888; display: inline-flex; align-items: center; justify-content: center; }
.fhs-sidebar__actions .fhs-sidebar__wish svg { width: 22px; height: 22px; }
.fhs-sidebar__actions .fhs-sidebar__wish.active { color: var(--fhs-pdp-accent); }
.fhs-sidebar__actions .fhs-sidebar__wish.active svg { fill: var(--fhs-pdp-accent); }
/* 구매 버튼줄: 좋아요 + (장바구니) + 구매하기 한 줄 유지 (옛 grid/absolute 규칙 무력화) */
.fhs-sidebar__actions.fluxshop-product-detail__actions { display: flex; align-items: stretch; gap: 8px; }
.fhs-sidebar__actions .fluxshop-btn--block { width: auto; display: inline-flex; }

/* ---------------------------------------------------------
   버튼 클래스를 <a> 에 쓸 때 (링크로 동작해야 하는 CTA)

   .fluxshop-btn / .fhs-pdp-mobilebar__* 는 <button> 을 전제로 쓰였다.
   <a> 는 button 이 공짜로 갖는 것들을 갖지 못한다 — 텍스트 가운데 정렬,
   밑줄 없음, 상속되지 않는 링크 색. 그대로 두면 라벨이 왼쪽에 붙고
   파란 링크색으로 나온다(2026-08-27 상세페이지에서 발견).
   요소가 무엇이든 같은 버튼으로 보이게 명시한다.
   --------------------------------------------------------- */
a.fluxshop-btn,
a.fhs-pdp-mobilebar__cart,
a.fhs-pdp-mobilebar__buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}
a.fhs-pdp-mobilebar__cart { color: #111; }
a.fhs-pdp-mobilebar__buy { color: #fff; }
a.fhs-pdp-mobilebar__cart:hover,
a.fhs-pdp-mobilebar__buy:hover { text-decoration: none; }

.fhs-sidebar__actions .fhs-sidebar__wish { position: static; top: auto; right: auto; }
/* 좋아요: 하트 + 숫자 세로 스택 (무신사) */
.fhs-sidebar__actions .fhs-sidebar__wish { flex-direction: column; gap: 1px; }
.fhs-sidebar__actions .fhs-sidebar__wish svg { width: 20px; height: 20px; }
.fhs-sidebar__wish-count { font-size: 11px; color: #888; line-height: 1; }

/* 배지 (단독/멤버스데이 등) */
.fhs-sidebar__badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.fhs-sidebar__badge { font-size: 11px; font-weight: 600; color: #333; background: #f4f4f4; padding: 3px 8px; border-radius: 3px; }
.fhs-sidebar__badge:first-child { background: #22254a; color: #fff; }

/* 쿠폰적용가 라벨 */
.fhs-sidebar__price-label { font-size: 13px; color: #666; margin-bottom: 2px; }

/* 갤러리 공유 버튼 (좌측 하단) */
.fhs-gallery__share { grid-column: 1; grid-row: 2; margin-top: 12px; }

/* 이미지 1장 — 썸네일 열이 없으므로 단일 컬럼으로 접는다.
   모디파이어(--single)와 :has() 폴백을 별도 규칙으로 둔다. 한 셀렉터 그룹에 묶으면
   :has() 미지원 브라우저가 규칙 전체를 버려 --single 까지 무효가 된다. */
.fhs-gallery--single { grid-template-columns: minmax(0,1fr); }
.fhs-gallery--single .fhs-gallery__stage { grid-column: 1; }
.fhs-gallery:not(:has(.fhs-gallery__thumbs)) { grid-template-columns: minmax(0,1fr); }
.fhs-gallery:not(:has(.fhs-gallery__thumbs)) .fhs-gallery__stage { grid-column: 1; }
.fhs-share-btn { width: 40px; height: 40px; border: 1px solid var(--fhs-pdp-border); border-radius: 50%; background: #fff; color: #333; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s; }
.fhs-share-btn:hover { border-color: #999; }
.fhs-share-btn.copied { border-color: var(--fhs-pdp-ink); color: var(--fhs-pdp-ink); }

/* ── sticky 탭 + 섹션 ── */
.fhs-pdp-tabs { margin-top: 56px; }
.fhs-pdp-tabs__nav { position: sticky; top: var(--fhs-pdp-navtop); z-index: 50; display: flex; background: #fff; border-bottom: 1px solid var(--fhs-pdp-line); }
.fhs-pdp-tabs__btn { flex: 1; text-align: center; padding: 14px 8px; font-size: 14px; font-weight: 400; color: var(--fhs-pdp-sub); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fhs-pdp-tabs__btn.is-active { color: var(--fhs-pdp-ink); font-weight: 600; border-bottom-color: var(--fhs-pdp-ink); }
.fhs-pdp-tabs__btn .fhs-tab-count { color: var(--fhs-pdp-accent); font-weight: 600; margin-left: 2px; background: none; padding: 0; border-radius: 0; min-width: 0; height: auto; display: inline; font-size: 14px; }

.fhs-pdp-section { padding: 40px 0; border-bottom: 1px solid var(--fhs-pdp-line); scroll-margin-top: 80px; }
.fhs-pdp-section__heading { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.fhs-count-em { color: var(--fhs-pdp-accent); }
.fhs-pdp-block { margin-top: 48px; }
.fhs-pdp-block__title { font-size: 17px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--fhs-pdp-ink); }

/* 상세 이미지 더보기 */
.fhs-pdp-desc { position: relative; overflow: hidden; }
.fhs-pdp-desc.fhs-collapsed { max-height: 1200px; }
.fhs-pdp-desc.fhs-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.fhs-pdp-desc__inner img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.fhs-pdp-desc__more { text-align: center; margin: 16px 0 0; }
.fhs-more-btn { min-width: 200px; height: 46px; border: 1px solid var(--fhs-pdp-border); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.fhs-more-btn:hover { border-color: #999; }

/* 규격/사이즈표 · 고시표 · 정보표 */
.fhs-size-table-wrap { overflow-x: auto; }
.fhs-size-table, .fhs-notice-table, .fhs-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fhs-size-table th, .fhs-size-table td { border: 1px solid var(--fhs-pdp-border); padding: 10px 12px; text-align: center; }
.fhs-size-table th { background: #fafafa; font-weight: 700; }
.fhs-notice-table th, .fhs-info-table th { width: 200px; background: #fafafa; text-align: left; padding: 12px 16px; border: 1px solid var(--fhs-pdp-border); font-weight: 600; color: #444; vertical-align: top; }
.fhs-notice-table td, .fhs-info-table td { padding: 12px 16px; border: 1px solid var(--fhs-pdp-border); }
.fhs-notice-ref { color: var(--fhs-pdp-sub); }

/* 정보 섹션(배송/교환/판매자/결제) */
.fhs-info-section { margin-bottom: 28px; }
.fhs-info-section__title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.fhs-info-section__body { font-size: 14px; line-height: 1.7; color: #333; }
.fhs-info-section__body ul { margin: 0; padding-left: 18px; }
.fhs-info-section__body li { margin-bottom: 6px; }

/* 추천 슬라이더 */
.fhs-reco-slider { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.fhs-reco-slider__item { flex: 0 0 200px; scroll-snap-align: start; }
.fhs-reco-slider__item .fluxshop-product-card { border: 0; }

/* 리뷰 overview */
.fhs-reviews__overview { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 24px; background: #fafafa; border-radius: 8px; margin-bottom: 24px; }
.fhs-reviews__score { text-align: center; }
.fhs-reviews__score strong { display: block; font-size: 40px; font-weight: 800; line-height: 1; }
.fhs-reviews__score .fhs-reviews__stars { color: #ffb400; font-size: 16px; }
.fhs-reviews__score .fhs-reviews__total { display: block; color: var(--fhs-pdp-sub); font-size: 13px; margin-top: 4px; }
.fhs-reviews__dist-row { display: grid; grid-template-columns: 32px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--fhs-pdp-sub); }
.fhs-reviews__dist-bar { height: 6px; background: #e9ebee; border-radius: 3px; overflow: hidden; }
.fhs-reviews__dist-bar i { display: block; height: 100%; background: var(--fhs-pdp-ink); }
.fhs-reviews__dist-cnt { text-align: right; }
.fhs-reviews__photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.fhs-reviews__photos .fhs-review-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.fhs-reviews__list { list-style: none; margin: 0; padding: 0; }
.fhs-review-item { border-bottom: 1px solid var(--fhs-pdp-line); padding: 20px 0; }
.fhs-review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.fhs-review-item__stars { color: #ffb400; }
.fhs-review-item__author { font-weight: 600; }
.fhs-review-item__date { color: var(--fhs-pdp-sub); margin-left: auto; }
.fhs-review-item__photos { display: flex; gap: 8px; margin: 10px 0; }
.fhs-review-item__photos img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.fhs-review-item__content { font-size: 14px; line-height: 1.6; margin: 8px 0 0; }
.fhs-review-item__reply { background: #f6f7f9; border-radius: 6px; padding: 12px 14px; margin-top: 12px; font-size: 13px; }
.fhs-review-item__reply strong { display: block; margin-bottom: 4px; }
.fhs-reviews__write { text-align: right; margin-bottom: 16px; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
	.fhs-pdp__top { grid-template-columns: 1fr; gap: 28px; }
	.fhs-pdp__right { position: static; }
	/* 태블릿 이하 — 스테이지 아래 썸네일 가로 스크롤. 데스크탑의 명시 배치를 여기서 되돌린다. */
	.fhs-gallery { grid-template-columns: minmax(0,1fr); }
	.fhs-gallery__stage { grid-column: 1; grid-row: 1; }
	.fhs-gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; }
	.fhs-gallery__share { grid-column: 1; grid-row: 3; }
}
@media (max-width: 768px) {
	.fhs-pdp { padding: 8px 12px 60px; }
	.fhs-pdp-tabs__nav { overflow-x: auto; }
	.fhs-pdp-tabs__btn { flex: 0 0 auto; padding: 14px 18px; }
	.fhs-reviews__overview { grid-template-columns: 1fr; gap: 20px; }
	.fhs-sidebar__actions .fluxshop-btn { height: 48px; font-size: 14px; }
	/* 찜 버튼도 함께 줄인다. CTA 만 48px 로 줄이고 찜은 52px 로 남아 있어
	   한 줄에 선 형제끼리 4px 어긋나 보였다. */
	.fhs-sidebar__actions .fhs-sidebar__wish { flex-basis: 48px; width: 48px; height: 48px; }
	/*
	 * 좁은 화면에서는 주 CTA 를 아랫줄 전체 폭으로 내린다.
	 *
	 * flex:1 이어도 min-width:auto 때문에 라벨이 긴 버튼이 자기 min-content 폭을
	 * 가져가고 짧은 버튼만 쪼그라든다. 375px 에서 [라이브 데모 77px][시작하기 188px]
	 * 처럼 1:2.4 로 찌그러졌다. 줄을 나누면 둘 다 읽히는 폭을 갖는다.
	 */
	.fhs-sidebar__actions { flex-wrap: wrap; }
	.fhs-sidebar__actions .fluxshop-btn { min-width: 0; }
	.fhs-sidebar__actions .fluxshop-btn--primary,
	.fhs-sidebar__actions .fluxshop-btn--buy { flex: 1 0 100%; }
	/* 배치 순서를 명시한다 — [찜][보조] 한 줄, [주 CTA] 아랫줄 전체 폭.
	   order 를 비워 두면 다른 곳에서 --cart 에 건 order 가 섞여 들어와
	   찜만 한 줄을 차지하는 3줄 레이아웃이 됐다. */
	.fhs-sidebar__actions .fhs-sidebar__wish { order: 1; }
	.fhs-sidebar__actions .fluxshop-btn--cart { order: 2; }
	.fhs-sidebar__actions .fluxshop-btn--primary,
	.fhs-sidebar__actions .fluxshop-btn--buy { order: 3; }
	.fhs-reco-slider__item { flex-basis: 150px; }
}

/* =========================================================
   상품 목록 (무신사식 상단 필터바 + 넓은 그리드)
   ========================================================= */
.fhs-shop--musinsa {
	--fhs-shop-border: #ebebeb;
	--fhs-shop-ink: #000;
	--fhs-shop-sub: #8a8a8a;
	--fhs-shop-accent: #f31110;
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 16px 60px;
}
.fhs-shop--musinsa *, .fhs-shop--musinsa *::before, .fhs-shop--musinsa *::after { box-sizing: border-box; }

/* 카테고리 탭 */
.fhs-cat-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--fhs-shop-border); margin-bottom: 16px; }
.fhs-cat-tab { position: relative; cursor: pointer; }
.fhs-cat-tab input { position: absolute; opacity: 0; pointer-events: none; }
.fhs-cat-tab span { display: block; padding: 12px 16px; font-size: 15px; color: var(--fhs-shop-sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fhs-cat-tab.is-active span, .fhs-cat-tab input:checked + span { color: var(--fhs-shop-ink); font-weight: 700; border-bottom-color: var(--fhs-shop-ink); }

/* 결과 툴바 */
.fhs-shop--musinsa .fhs-loop-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; }
.fhs-shop--musinsa .fhs-loop-count strong { font-size: 15px; font-weight: 700; }
.fhs-shop--musinsa .fhs-loop-count span { color: var(--fhs-shop-sub); font-size: 13px; }
.fhs-shop--musinsa .fhs-sort-select { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--fhs-shop-border); border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fhs-shop-ink); cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 13px 13px; }
.fhs-shop--musinsa .fhs-filter-results.is-loading { opacity: .5; transition: opacity .2s; }

/* =========================================================
   필터바 v2 — 카테고리 레일 + 드롭다운/바텀시트 필터 버튼 + 선택 칩
   ---------------------------------------------------------
   기존 .fhs-cat-tabs(밑줄 탭)는 위젯 모드(필터 없는 섹션)용으로 그대로 둔다.
   여기 규칙은 전부 .fhs-cats(레일)/.fhs-fbar(필터바) 안에서만 적용되도록
   스코프를 좁혀서 위젯 모드 마크업과 부딪히지 않는다.

   ⚠ 패널을 감추는 건 [hidden] 이다. display 를 주는 규칙마다 [hidden] 가드를
     같이 둔다 — 안 그러면 특이도에 밀려 항상 펼쳐진다.

   ⚠ 이 안의 <button> 요소는 전부 class 에 fhs-submit 을 함께 넣는다.
     사이트 테마(fs-plugin)가 `.fs-plugin button:not([class*="primary"]):not([class*="buy"]):not([class*="submit"])`
     로 배경을 강제 초기화한다(특이도 0,0,4,1) — 색이 있는 버튼(가격 프리셋 is-on,
     패널 "확인" 등)에서 이 규칙에 밀려 배경이 항상 흰색으로 보인다.
     class 에 "primary"/"submit" 문자열이 있으면 :not() 에 걸려 이 규칙에서는 빠지는데,
     같은 테마가 `.fs-plugin [class*="primary"], .fs-plugin [class*="buy"], input[type="submit"]`
     로 그 자리에 파란 accent 색(--fs-accent)을 대신 강제한다 — 그래서 "primary"/"buy"는
     피하고 <button> 태그에만 해당하는 "submit"을 쓴다(저 규칙은 input[type="submit"]만
     잡지 button.fhs-submit 은 안 잡는다). 새 버튼을 추가할 때도 fhs-submit 을 잊지 말 것.
   ========================================================= */
.fhs-shop--musinsa {
	--fhs-shop-soft: #f6f6f6;
	--fhs-shop-border-strong: #d4d4d4;
}
.fhs-shop--musinsa [hidden] { display: none !important; }
.fhs-shop--musinsa button { font-family: inherit; }

/* 스티키 오프셋 — 관리자바 높이. fluxshop.js 가 실측해 덮어쓴다. 사이트 헤더가
   고정(sticky/fixed)이면 스킨의 CSS에서 --fhs-sticky-top 을 추가로 얹으면 된다. */
:root { --fhs-sticky-top: 0px; }

/* ① 카테고리 레일 */
.fhs-cats { margin: 0 0 14px; }
.fhs-cats__rail {
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.fhs-cats__rail::-webkit-scrollbar { display: none; }
.fhs-cats .fhs-cat-tab { position: relative; flex: 0 0 auto; cursor: pointer; }
.fhs-cats .fhs-cat-tab input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.fhs-cats .fhs-cat-tab span {
	display: block; padding: 9px 15px; margin: 0;
	border: 1px solid var(--fhs-shop-border); border-radius: 999px; background: #fff;
	font-size: 13.5px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
	color: var(--fhs-shop-sub); white-space: nowrap;
	transition: border-color .16s, color .16s, background .16s;
}
.fhs-cats .fhs-cat-tab:hover span { border-color: var(--fhs-shop-border-strong); color: var(--fhs-shop-ink); }
.fhs-cats .fhs-cat-tab.is-active span,
.fhs-cats .fhs-cat-tab input:checked + span {
	background: var(--fhs-shop-ink); border-color: var(--fhs-shop-ink) !important;
	color: #fff !important; font-weight: 700 !important;
}
.fhs-cats .fhs-cat-tab input:focus-visible + span { outline: 2px solid var(--fhs-primary, #1f9d55); outline-offset: 2px; }

/* ② 검색 */
.fhs-searchrow { margin: 0 0 10px; }
.fhs-fbar__search {
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
	max-width: 340px; border-radius: 999px; background: var(--fhs-shop-soft); color: var(--fhs-shop-sub);
	transition: box-shadow .16s, background .16s;
}
.fhs-fbar__search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-fbar__search svg { flex: none; }
.fhs-fbar__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--fhs-shop-ink); height: 100%; }
.fhs-fbar__search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ③ 필터바 */
.fhs-fbar { position: relative; z-index: 40; background: #fff; border-top: 1px solid var(--fhs-shop-border); border-bottom: 1px solid var(--fhs-shop-border); margin: 0 0 18px; }
.fhs-fbar__row { display: flex; align-items: center; position: relative; }
.fhs-fbar__facets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; width: 100%; }
.fhs-fbar__div { width: 1px; height: 18px; background: var(--fhs-shop-border); margin: 0 2px; flex: none; }

.fhs-f { position: relative; flex: 0 0 auto; }
.fhs-f__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
	border: 1px solid var(--fhs-shop-border-strong); border-radius: 999px; background: #fff;
	color: var(--fhs-shop-sub); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
	cursor: pointer; white-space: nowrap; transition: border-color .16s, color .16s, background .16s;
}
.fhs-f__btn:hover { border-color: var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-f__caret { width: 7px; height: 7px; flex: none; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s; opacity: .55; }
.fhs-f__btn[aria-expanded="true"] { border-color: var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-f__btn[aria-expanded="true"] .fhs-f__caret { transform: rotate(-135deg) translate(-2px, -2px); opacity: 1; }
.fhs-f.is-on > .fhs-f__btn { background: var(--fhs-shop-ink); border-color: var(--fhs-shop-ink); color: #fff; }
.fhs-f.is-on > .fhs-f__btn .fhs-f__caret { opacity: .8; }
.fhs-f__n { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #fff; color: var(--fhs-shop-ink); font-size: 11px; font-weight: 800; line-height: 1; }
.fhs-f__btn:focus-visible { outline: 2px solid var(--fhs-primary, #1f9d55); outline-offset: 2px; }

/* 빠른 토글 — 재고있음 / 할인상품 */
.fhs-toggle { position: relative; flex: 0 0 auto; cursor: pointer; }
.fhs-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.fhs-toggle span { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border: 1px solid var(--fhs-shop-border-strong); border-radius: 999px; background: #fff; color: var(--fhs-shop-sub); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; transition: border-color .16s, color .16s, background .16s; }
.fhs-toggle:hover span { border-color: var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-toggle input:checked + span { background: var(--fhs-shop-ink); border-color: var(--fhs-shop-ink); color: #fff; }
.fhs-toggle input:focus-visible + span { outline: 2px solid var(--fhs-primary, #1f9d55); outline-offset: 2px; }

/* 드롭다운 / 바텀시트 */
.fhs-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--fhs-shop-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); overflow: hidden; display: flex; flex-direction: column; }
.fhs-panel[hidden] { display: none; }
.fhs-panel.is-flipped { left: auto; right: 0; }
.fhs-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 11px; border-bottom: 1px solid var(--fhs-shop-border); }
.fhs-panel__title { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: var(--fhs-shop-ink); }
.fhs-panel__x { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -8px -6px 0; border: 0; background: none; color: var(--fhs-shop-sub); cursor: pointer; border-radius: 50%; }
.fhs-panel__x:hover { background: var(--fhs-shop-soft); color: var(--fhs-shop-ink); }

.fhs-panel__find { display: flex; align-items: center; gap: 7px; margin: 10px 12px 2px; padding: 0 12px; height: 36px; background: var(--fhs-shop-soft); border-radius: 8px; color: var(--fhs-shop-sub); }
.fhs-panel__find input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 13.5px; color: var(--fhs-shop-ink); height: 100%; }
.fhs-panel__body { padding: 8px 6px; overflow-y: auto; max-height: 320px; overscroll-behavior: contain; }
.fhs-panel__body::-webkit-scrollbar { width: 6px; }
.fhs-panel__body::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 3px; }
.fhs-panel__body.is-noresult::after { content: "검색 결과가 없습니다"; display: block; padding: 18px 12px; text-align: center; font-size: 13px; color: var(--fhs-shop-sub); }

/* 옵션 한 줄 (체크박스/라디오) */
.fhs-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #374151; line-height: 1.35; transition: background .14s; }
.fhs-opt.is-hidden { display: none; }
.fhs-opt:hover { background: var(--fhs-shop-soft); }
.fhs-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.fhs-opt__box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--fhs-shop-border-strong); border-radius: 5px; background: #fff; position: relative; transition: background .14s, border-color .14s; }
.fhs-opt--radio .fhs-opt__box { border-radius: 50%; }
.fhs-opt__box::after { content: ""; position: absolute; inset: 0; background: no-repeat center/11px 11px url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); opacity: 0; transition: opacity .14s; }
.fhs-opt input:checked + .fhs-opt__box,
.fhs-opt.is-checked .fhs-opt__box { background: var(--fhs-shop-ink); border-color: var(--fhs-shop-ink); }
.fhs-opt input:checked + .fhs-opt__box::after,
.fhs-opt.is-checked .fhs-opt__box::after { opacity: 1; }
.fhs-opt input:checked ~ .fhs-opt__label,
.fhs-opt.is-checked .fhs-opt__label { color: var(--fhs-shop-ink); font-weight: 700; }
.fhs-opt__label { min-width: 0; word-break: keep-all; }
.fhs-opt input:focus-visible + .fhs-opt__box { outline: 2px solid var(--fhs-primary, #1f9d55); outline-offset: 2px; }

/* 가격 패널 */
.fhs-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 12px 4px; }
.fhs-preset { height: 34px; border: 1px solid var(--fhs-shop-border-strong); border-radius: 8px; background: #fff; color: var(--fhs-shop-sub); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .14s, color .14s, background .14s; }
.fhs-preset:hover { border-color: var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-preset.is-on { background: var(--fhs-shop-ink); border-color: var(--fhs-shop-ink); color: #fff; }
.fhs-price { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; }
.fhs-price input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--fhs-shop-border-strong); border-radius: 8px; font: inherit; font-size: 13.5px; text-align: right; color: var(--fhs-shop-ink); background: #fff; }
.fhs-price input:focus { outline: none; border-color: var(--fhs-shop-ink); }
.fhs-price span { color: var(--fhs-shop-sub); font-size: 13px; }

.fhs-panel__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--fhs-shop-border); background: #fff; }
.fhs-panel__clear { flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid var(--fhs-shop-border-strong); border-radius: 8px; background: #fff; color: var(--fhs-shop-sub); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fhs-panel__clear:hover { border-color: var(--fhs-shop-ink); color: var(--fhs-shop-ink); }
.fhs-panel__done { flex: 1; height: 38px; border: 0; border-radius: 8px; background: var(--fhs-shop-ink); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fhs-panel__done:hover { opacity: .85; }

.fhs-sheet-backdrop { display: none; }
.fhs-panels { position: static; }

/* ④ 선택된 조건 칩 */
.fhs-active { display: flex; align-items: flex-start; gap: 10px; padding: 0 0 10px; border-top: 1px dashed var(--fhs-shop-border); margin-top: -1px; }
.fhs-active[hidden] { display: none; }
.fhs-active__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; padding-top: 10px; }
.fhs-chip2 { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 8px 0 11px; border: 0; border-radius: 999px; background: var(--fhs-shop-soft); color: var(--fhs-shop-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .14s; }
.fhs-chip2:hover { background: #ececec; }
.fhs-chip2__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fhs-chip2__x { font-size: 15px; line-height: 1; color: var(--fhs-shop-sub); }
.fhs-chip2:hover .fhs-chip2__x { color: var(--fhs-shop-ink); }
.fhs-active__reset { flex: none; margin-top: 10px; height: 30px; padding: 0 12px; border: 0; background: none; color: var(--fhs-shop-sub); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fhs-active__reset:hover { color: var(--fhs-shop-ink); }

/* 빈 결과 */
.fhs-shop--musinsa .fhs-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 70px 20px; color: var(--fhs-shop-sub); text-align: center; }
.fhs-empty__title { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--fhs-shop-ink); }
.fhs-empty__desc { margin: 0; font-size: 13.5px; }
.fhs-empty__reset { margin-top: 14px; height: 40px; padding: 0 20px; border: 1px solid var(--fhs-shop-ink); border-radius: 999px; background: #fff; color: var(--fhs-shop-ink); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fhs-empty__reset:hover { background: var(--fhs-shop-ink); color: #fff; }

/* 맨 위로 */
.fhs-totop { position: fixed; right: 20px; bottom: 24px; z-index: 300; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fhs-shop-border); background: #fff; color: var(--fhs-shop-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fhs-totop[hidden] { display: none; }
.fhs-totop:hover { background: var(--fhs-shop-ink); color: #fff; border-color: var(--fhs-shop-ink); }

/* 태블릿/모바일 — 필터 버튼은 가로 스크롤, 패널은 바텀시트 */
@media (max-width: 1023px) {
	.fhs-fbar { position: sticky; top: var(--fhs-sticky-top, 0px); }
	.fhs-fbar__facets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 9px 0; }
	.fhs-fbar__row::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 78%); pointer-events: none; }
	.fhs-fbar__facets::-webkit-scrollbar { display: none; }
	.fhs-f { position: static; }

	.fhs-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); animation: fhs-fade .18s ease; }
	.fhs-sheet-backdrop[hidden] { display: none; }

	.fhs-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; z-index: 1001; border: 0; border-radius: 16px 16px 0 0; max-height: 78vh; box-shadow: 0 -8px 32px rgba(0, 0, 0, .18); animation: fhs-up .22s cubic-bezier(.2, .8, .3, 1); padding-bottom: env(safe-area-inset-bottom, 0); }
	.fhs-panel.is-flipped { left: 0; right: 0; }
	.fhs-panel__head { padding: 16px 18px 13px; position: relative; }
	.fhs-panel__head::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 999px; background: #dcdcdc; }
	.fhs-panel__title { font-size: 15px; }
	.fhs-panel__x { display: inline-flex; }
	.fhs-panel__body { max-height: 46vh; padding: 8px 10px; }
	.fhs-opt { padding: 12px 10px; font-size: 14.5px; }
	.fhs-panel__foot { padding: 12px 16px 16px; }
	.fhs-panel__clear, .fhs-panel__done { height: 46px; font-size: 14.5px; }
	.fhs-presets { padding: 14px 16px 4px; }
	.fhs-preset { height: 42px; font-size: 13.5px; }
	.fhs-price { padding: 12px 16px 16px; }
	.fhs-price input { height: 46px; font-size: 15px; }

	body.fhs-sheet-open { overflow: hidden; }
}

@keyframes fhs-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fhs-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
	.fhs-cats { margin-bottom: 10px; }
	.fhs-cats .fhs-cat-tab span { padding: 8px 13px; font-size: 13px; }
	.fhs-fbar__search { height: 42px; }
	.fhs-searchrow .fhs-fbar__search { max-width: none; }
	.fhs-fbar { margin-bottom: 14px; }
	.fhs-totop { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.fhs-panel { animation: none; }
	.fhs-sheet-backdrop { animation: none; }
}

/* 그리드 */
.fhs-shop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 16px; }
.fhs-shop--musinsa .fluxshop-product-card { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.fhs-shop--musinsa .fluxshop-product-card:hover { box-shadow: none; transform: none; }
.fhs-shop--musinsa .fluxshop-product-card__image-link { display: block; position: relative; aspect-ratio: 5/6; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.fhs-shop--musinsa .fluxshop-product-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fhs-shop--musinsa .fluxshop-product-card__image-link:hover .fluxshop-product-card__image { transform: scale(1.04); }
.fhs-shop--musinsa .fluxshop-product-card__body { padding: 10px 2px 0; }
.fluxshop-product-card__brand { font-size: 11px; font-weight: 600; color: var(--fhs-shop-ink); margin: 0 0 3px; }
.fhs-shop--musinsa .fluxshop-product-card__name { font-size: 13px; font-weight: 400; line-height: 1.4; margin: 0 0 6px; }
.fhs-shop--musinsa .fluxshop-product-card__name a { color: #000; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fhs-shop--musinsa .fluxshop-product-card__summary { display: none; }
.fhs-shop--musinsa .fluxshop-product-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.fhs-shop--musinsa .fluxshop-price--original { order: 3; color: #c0c3c8; text-decoration: line-through; font-size: 12px; font-weight: 400; }
.fhs-shop--musinsa .fluxshop-price--discount { color: var(--fhs-shop-accent); font-weight: 600; font-size: 13px; }
.fhs-shop--musinsa .fluxshop-price--current { font-weight: 600; font-size: 13px; color: var(--fhs-shop-ink); }
.fhs-shop--musinsa .fluxshop-product-card__review { font-size: 11px; color: var(--fhs-shop-sub); margin: 4px 0 0; }
.fhs-shop--musinsa .fluxshop-product-card__review .fhs-star { color: #ffb400; }

@media (max-width: 1280px) { .fhs-shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .fhs-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
	.fhs-shop--musinsa { padding: 8px 12px 48px; }
	.fhs-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
	.fhs-filterbar__search input { width: 120px; }
	.fhs-chip-row { flex-direction: column; gap: 6px; }
	.fhs-cat-tab span { padding: 10px 12px; font-size: 14px; }
}

/* =========================================================
   장바구니 v2 (탭 · 선택주문 · 견적서)
   ========================================================= */
.fhs-cart2 { --fhs-c-border:#e5e7eb; --fhs-c-ink:#111; --fhs-c-sub:#6b7280; max-width: 1160px; margin: 0 auto; }
.fhs-cart2 .fhs-cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 32px; align-items: start; }

/* 탭 */
.fhs-cart-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--fhs-c-ink); }
.fhs-cart-tab { flex: 0 0 auto; padding: 12px 20px; border: 0; background: none; font-size: 15px; color: var(--fhs-c-sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.fhs-cart-tab.is-active { color: var(--fhs-c-ink); font-weight: 700; border-bottom-color: var(--fhs-c-ink); }
.fhs-cart-tab span { color: var(--fhs-c-sub); font-weight: 400; }

/* 리스트/패널 */
.fhs-cart2 .fhs-cart-list { list-style: none; margin: 0; padding: 0; }
.fhs-cart-panel { display: none; }
.fhs-cart-panel.is-active { display: block; }
.fhs-cart-sublist { list-style: none; margin: 0; padding: 0; }
.fhs-cart-empty-tab { padding: 48px 0; text-align: center; color: var(--fhs-c-sub); }

/* 행 */
.fhs-cart2 .fhs-cart-row { display: grid; grid-template-columns: 28px 88px 1fr auto auto 28px; align-items: center; gap: 14px; padding: 20px 4px; border-bottom: 1px solid var(--fhs-c-border); }
.fhs-cart-row__check { display: flex; align-items: center; justify-content: center; }
.fhs-cart-row__check input, .fhs-cart-selectall input { width: 18px; height: 18px; accent-color: var(--fhs-c-ink); }
.fhs-cart2 .fhs-cart-row__thumb { width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.fhs-cart2 .fhs-cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* __body / __ctrl: 데스크탑에선 투명 래퍼(display:contents)로 기존 6열 그리드를 그대로 유지하고,
   모바일에서만 실제 박스가 되어 정보/수량/금액을 세로로 쌓는다. */
.fhs-cart2 .fhs-cart-row__body,
.fhs-cart2 .fhs-cart-row__ctrl { display: contents; }
.fhs-cart2 .fhs-cart-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fhs-cart2 .fhs-cart-row__name { font-size: 14px; font-weight: 600; color: var(--fhs-c-ink); }
.fhs-cart2 .fhs-cart-row__opt { font-size: 12px; color: var(--fhs-c-sub); }
.fhs-cart2 .fhs-cart-row__unit { font-size: 13px; color: var(--fhs-c-sub); }
.fhs-cart2 .fhs-cart-row__qty { display: inline-flex; align-items: center; border: 1px solid var(--fhs-c-border); border-radius: 4px; overflow: hidden; }
.fhs-cart2 .fhs-cart-qty { width: 30px; height: 32px; border: 0; background: #fff; cursor: pointer; font-size: 16px; }
.fhs-cart2 .fhs-cart-qtyinput { width: 40px; height: 32px; border: 0; border-left: 1px solid var(--fhs-c-border); border-right: 1px solid var(--fhs-c-border); text-align: center; font-size: 14px; -moz-appearance: textfield; }
.fhs-cart2 .fhs-cart-qtyinput::-webkit-outer-spin-button, .fhs-cart2 .fhs-cart-qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fhs-cart2 .fhs-cart-row__sub { font-size: 15px; font-weight: 700; color: var(--fhs-c-ink); text-align: right; min-width: 90px; }
.fhs-cart2 .fhs-cart-row__del { border: 0; background: none; color: #b0b3b8; cursor: pointer; padding: 4px; }
.fhs-cart2 .fhs-cart-row__del:hover { color: var(--fhs-c-ink); }

/* 액션 바 */
.fhs-cart-actionbar { display: flex; align-items: center; gap: 12px; padding: 16px 4px; }
.fhs-cart-selectall { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.fhs-cart-btn { height: 36px; padding: 0 14px; border: 1px solid var(--fhs-c-border); border-radius: 4px; background: #fff; font-size: 13px; cursor: pointer; }
.fhs-cart-btn:hover { border-color: #999; }
.fhs-cart-quote { margin-left: auto; }

/* 요약 */
.fhs-cart2 .fhs-cart-summary { border: 1px solid var(--fhs-c-border); border-radius: 8px; padding: 20px; position: sticky; top: 20px; }
.fhs-cart-summary__coupon { display: flex; gap: 6px; margin-bottom: 8px; }
.fhs-cart-summary__coupon input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--fhs-c-border); border-radius: 4px; padding: 0 10px; font-size: 13px; }
.fhs-cart-summary__coupon .fluxshop-btn { height: 38px; padding: 0 14px; border: 1px solid var(--fhs-c-ink); background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.fhs-cart-summary__coupon-result { font-size: 12px; color: var(--fhs-c-sub); min-height: 0; }
.fhs-cart-summary__lines { margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--fhs-c-border); border-bottom: 1px solid var(--fhs-c-border); }
.fhs-cart-summary__line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.fhs-cart-summary__line dt { color: var(--fhs-c-sub); margin: 0; }
.fhs-cart-summary__line dd { margin: 0; font-weight: 600; }
.fhs-cart-summary__line--discount dd { color: var(--fhs-shop-accent, #ff3d3d); }
.fhs-cart-summary__total { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 18px; }
.fhs-cart-summary__total span { font-size: 15px; }
.fhs-cart-summary__total strong { font-size: 24px; font-weight: 800; }
.fhs-cart2 .fluxshop-btn--block { display: block; width: 100%; text-align: center; }
/* 주문 버튼 2개 — 좌우 균등 배치, 높이·폰트 동일 */
.fhs-cart-summary__actions { display: flex; gap: 8px; }
.fhs-cart2 .fhs-cart-summary__actions > .fluxshop-btn { flex: 1 1 0; min-width: 0; padding: 0; height: 46px; font-size: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.fhs-cart2 .fhs-cart-order-selected { border: 1px solid var(--fhs-c-ink); background: #fff; color: var(--fhs-c-ink); }
.fhs-cart2 .fhs-cart-order-all { border: 1px solid var(--fhs-c-ink); background: var(--fhs-c-ink); color: #fff; }
.fhs-cart-order-all:hover { background: #000; }

@media (max-width: 900px) {
	.fhs-cart2 .fhs-cart-layout { grid-template-columns: 1fr; }
	.fhs-cart2 .fhs-cart-summary { position: static; }
}
@media (max-width: 600px) {
	/* 체크 | 썸네일 | 본문(정보+수량/금액) | 삭제 — 4열 단순 구조 */
	.fhs-cart2 .fhs-cart-row { grid-template-columns: 18px 56px minmax(0, 1fr) 26px; align-items: start; gap: 10px; padding: 16px 2px; }
	.fhs-cart2 .fhs-cart-row__check { align-items: flex-start; padding-top: 3px; }
	.fhs-cart2 .fhs-cart-row__check input { width: 16px; height: 16px; }
	.fhs-cart2 .fhs-cart-row__thumb { width: 56px; height: 56px; flex: none; }
	.fhs-cart2 .fhs-cart-row__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
	.fhs-cart2 .fhs-cart-row__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
	.fhs-cart2 .fhs-cart-row__name { overflow-wrap: anywhere; }
	.fhs-cart2 .fhs-cart-row__sub { min-width: 0; text-align: right; white-space: nowrap; }
	.fhs-cart2 .fhs-cart-row__del { align-self: start; }
	/* 수량 컨트롤: 축소 금지 + 컴팩트 사이즈 */
	.fhs-cart2 .fhs-cart-row__qty { flex: none; }
	.fhs-cart2 .fhs-cart-qty { width: 28px; height: 30px; font-size: 15px; }
	.fhs-cart2 .fhs-cart-qtyinput { width: 34px; height: 30px; font-size: 13px; }

	/* 탭 — 여백/폰트 축소, 좁은 화면에서 2개가 한 줄에 들어오도록 */
	.fhs-cart2 .fhs-cart-tab { padding: 10px 12px; font-size: 13px; }

	/* 액션바 — 전체선택 체크박스를 행 체크박스와 동일하게, 버튼은 컴팩트 */
	.fhs-cart2 .fhs-cart-actionbar { gap: 8px; padding: 12px 2px; }
	.fhs-cart2 .fhs-cart-selectall { font-size: 13px; gap: 5px; }
	.fhs-cart2 .fhs-cart-selectall input { width: 16px; height: 16px; }
	.fhs-cart2 .fhs-cart-btn { height: 30px; padding: 0 10px; font-size: 12px; }

	/* 요약 — 패딩/폰트/버튼 높이 축소 */
	.fhs-cart2 .fhs-cart-summary { padding: 16px; }
	.fhs-cart2 .fhs-cart-summary__coupon input,
	.fhs-cart2 .fhs-cart-summary__coupon .fluxshop-btn { height: 34px; font-size: 12px; }
	.fhs-cart2 .fhs-cart-summary__line { font-size: 13px; margin-bottom: 8px; }
	.fhs-cart2 .fhs-cart-summary__total span { font-size: 14px; }
	.fhs-cart2 .fhs-cart-summary__total strong { font-size: 20px; }
	.fhs-cart2 .fhs-cart-summary__actions { gap: 6px; }
	.fhs-cart2 .fhs-cart-order-selected,
	.fhs-cart2 .fhs-cart-order-all { height: 42px; font-size: 13px; }
}

/* =========================================================
   장바구니 드로어 — 무신사 블랙 톤 정합 (WP-6 다듬기)
   ========================================================= */
.fhs-cart-drawer__count { background: #111; border-radius: 4px; }
.fhs-cart-drawer .fhs-mini-btn { border-radius: 4px; }
.fhs-cart-drawer .fhs-mini-btn--primary { background: #111; border-color: #111; }
.fhs-cart-drawer .fhs-mini-btn--primary:hover { background: #000; filter: none; }
.fhs-cart-drawer .fhs-mini-btn--ghost { border-color: #e0e0e0; color: #111; }
.fhs-cart-drawer__title { font-weight: 700; }

/* =========================================================
   테마 하드닝 — 임의 테마(다크/커스텀)에서의 간섭 차단
   ========================================================= */
/* 카테고리 탭: 테마가 label에 테두리/라운드/배경을 입히는 것 차단 (플랫 탭 유지) */
.fhs-shop--musinsa .fhs-cat-tab,
.fhs-shop--musinsa .fhs-cat-tab span { border-radius: 0; background: none; box-shadow: none; }
.fhs-shop--musinsa .fhs-cat-tab { border: 0; }
.fhs-shop--musinsa .fhs-cat-tab span { border: 0; border-bottom: 2px solid transparent; }
.fhs-shop--musinsa .fhs-cat-tab.is-active span,
.fhs-shop--musinsa .fhs-cat-tab input:checked + span { border-bottom-color: #111; }

/* PDP 상품명: 테마 h1 색상 override 방지 */
.fhs-pdp .fhs-sidebar__name { color: #111; }
/* 브랜드·옵션 라벨: 테마 라이트색 override 방지 */
.fhs-pdp .fhs-sidebar__brand { color: #111; }
.fhs-pdp .fhs-opt-field__label { color: #111; }
.fhs-pdp .fluxshop-product-detail__short-desc { color: #6b7280; }

/* 장바구니 주문 버튼: 무신사 블랙 톤 강제 (.fluxshop-btn--primary 파랑 override) */
.fhs-cart2 .fhs-cart-order-all { background: #111; color: #fff; border: 0; }
.fhs-cart2 .fhs-cart-order-all:hover { background: #000; }
.fhs-cart2 .fhs-cart-order-selected { background: #fff; color: #111; border: 1px solid #111; }

/* 상세 구매/장바구니 버튼도 동일 톤 보장 */
.fhs-pdp .fhs-sidebar__actions .fluxshop-btn--primary,
.fhs-pdp .fhs-sidebar__actions .fluxshop-btn--buy { background: #111; color: #fff; border-color: #111; }

/* 장바구니 요약 박스: 테마 aside 다크 배경/텍스트 차단 → 흰 표면 강제 */
.fhs-cart2 .fhs-cart-summary { background: #fff; }
.fhs-cart2 .fhs-cart-summary,
.fhs-cart2 .fhs-cart-summary * { color: #111; }
.fhs-cart2 .fhs-cart-summary__line dt { color: #6b7280; }
.fhs-cart2 .fhs-cart-summary__line--discount dd { color: #ff3d3d; }
.fhs-cart2 .fhs-cart-summary__coupon input { background: #fff; color: #111; }
.fhs-cart2 .fhs-cart-summary__coupon input::placeholder { color: #9ca3af; }
.fhs-cart2 .fhs-cart-order-all { color: #fff; }

/* 목록 정렬/카운트 가독성 */
.fhs-shop--musinsa .fhs-sort-select { color: #111; }
.fhs-shop--musinsa .fhs-cart-selectall,
.fhs-cart2 .fhs-cart-selectall { color: #111; }

/* =========================================================
   마이페이지 / 주문 내역 — 무신사식 클린 카드
   ========================================================= */
.fhs-account, .fhs-mypage { max-width: 1000px; margin: 0 auto; padding: 8px 16px 60px; }
.fhs-mypage-title, .fhs-account h2 { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 20px; }

.fhs-orders { display: flex; flex-direction: column; gap: 16px; }
.fhs-order-card { border: 1px solid #ebebeb; border-radius: 8px; padding: 20px; background: #fff; }
.fhs-order-card__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #f4f4f4; margin-bottom: 14px; }
.fhs-order-card__meta { display: flex; gap: 12px; align-items: baseline; }
.fhs-order-card__no { font-size: 14px; font-weight: 700; color: #111; }
.fhs-order-card__date { font-size: 13px; color: #8a8a8a; }
.fhs-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: #f0f4ff; color: #2563eb; }
.fhs-badge--delivered, .fhs-badge--completed { background: #eef7ee; color: #1a8f3c; }
.fhs-badge--cancelled, .fhs-badge--refunded { background: #f5f5f5; color: #888; }
.fhs-badge--pending_payment { background: #fff4e5; color: #d97706; }

.fhs-order-card__items { display: flex; flex-direction: column; gap: 12px; }
.fhs-order-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; }
.fhs-order-line__name { font-size: 14px; font-weight: 500; color: #111; }
.fhs-order-line__opt { color: #8a8a8a; font-weight: 400; margin-left: 6px; font-size: 12px; }
.fhs-order-line__qty { font-size: 13px; color: #8a8a8a; }
.fhs-order-line__price { font-size: 14px; font-weight: 700; color: #111; }
.fhs-order-line__reviewed { font-size: 12px; color: #8a8a8a; }

.fhs-order-card__ship { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f4f4f4; font-size: 13px; color: #666; }
.fhs-order-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f4f4f4; }
.fhs-order-card__total { font-size: 16px; font-weight: 800; color: #111; }
.fhs-order-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 무신사식 버튼 (계정/주문) */
.fhs-account .fhs-btn-sm, .fhs-mypage .fhs-btn-sm, .fhs-order-card .fhs-btn-sm {
	height: 40px; padding: 0 16px; border: 1px solid #d5d5d5; border-radius: 4px; background: #fff; color: #111;
	font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.fhs-account .fhs-btn-sm:hover, .fhs-order-card .fhs-btn-sm:hover { border-color: #111; }
.fhs-account .fhs-btn-sm--primary, .fhs-order-card .fhs-btn-sm--primary { background: #111; color: #fff; border-color: #111; }
.fhs-account .fhs-btn-sm--primary:hover, .fhs-order-card .fhs-btn-sm--primary:hover { background: #000; }

/* 결제/할인 정보 박스 (주문 상세) */
.fhs-pay-info { border-top: 8px solid #f4f4f4; margin-top: 24px; padding-top: 24px; }
.fhs-pay-info__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.fhs-pay-info__row dt, .fhs-pay-info__row span:first-child { color: #666; }
.fhs-pay-info__row--discount span:last-child { color: #f31110; }
.fhs-pay-info__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 16px; border-top: 1px solid #ebebeb; }
.fhs-pay-info__total strong { font-size: 20px; font-weight: 800; color: #111; }

/* 계정 탭 네비 (fhs-account 좌측 탭) */
.fhs-account .fhs-tabnav a, .fhs-mypage .fhs-tabnav a { color: #666; }
.fhs-account .fhs-tabnav a.active, .fhs-mypage .fhs-tabnav a.active { color: #111; font-weight: 700; }

@media (max-width: 600px) {
	.fhs-order-line { grid-template-columns: 1fr auto; }
	.fhs-order-card__foot { flex-direction: column; align-items: stretch; gap: 12px; }
	.fhs-order-card__actions .fhs-btn-sm { flex: 1; }
}

/* 마이페이지 좌측 탭 네비 — 무신사식 클린(흰 배경). 기존 다크 규칙을 확실히 덮어씀 */
.fhs-account .fhs-account__nav { background: #fff !important; border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden; padding: 0; }
.fhs-account .fhs-account__nav a { display: block; padding: 13px 18px; font-size: 14px; color: #444 !important; background: #fff !important; border-bottom: 1px solid #f4f4f4; text-decoration: none; }
.fhs-account .fhs-account__nav a:last-child { border-bottom: 0; }
.fhs-account .fhs-account__nav a:hover { background: #fafafa !important; }
.fhs-account .fhs-account__nav a.active, .fhs-account .fhs-account__nav a.is-active, .fhs-account .fhs-account__nav a[aria-current="page"] { background: #f7f7f7 !important; color: #111 !important; font-weight: 700; box-shadow: inset 3px 0 0 #111; }

/* 결제 정보 라벨 가독성 */
.fhs-pay-info__total span:first-child { color: #111; font-size: 15px; font-weight: 600; }
.fhs-pay-info__row span { color: #444; }
.fhs-pay-info__row span:first-child { color: #666; }

/* =========================================================
   주문 상세 (무신사 0165/0166)
   ========================================================= */
.fhs-order-detail__back { display: inline-block; font-size: 13px; color: #666; text-decoration: none; margin-bottom: 16px; }
.fhs-order-detail__top { padding-bottom: 20px; border-bottom: 1px solid #ebebeb; }
.fhs-order-detail__date { display: block; font-size: 20px; font-weight: 800; color: #111; }
.fhs-order-detail__no { font-size: 13px; color: #8a8a8a; }
.fhs-order-detail__ship { padding: 20px 0; border-bottom: 8px solid #f4f4f4; font-size: 14px; color: #444; line-height: 1.7; }
.fhs-order-detail__ship-name { font-weight: 700; color: #111; margin-bottom: 4px; }
.fhs-order-detail__block { padding: 24px 0; border-bottom: 8px solid #f4f4f4; }
.fhs-order-detail__block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fhs-order-detail__block-head h3 { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
.fhs-order-detail__status { font-size: 14px; font-weight: 700; color: #2563eb; margin-bottom: 12px; }
.fhs-order-detail__item { display: flex; gap: 14px; padding: 12px 0; }
.fhs-order-detail__item-info { display: flex; flex-direction: column; gap: 3px; }
.fhs-order-detail__item-name { font-size: 14px; font-weight: 600; color: #111; }
.fhs-order-detail__item-opt { font-size: 12px; color: #8a8a8a; }
.fhs-order-detail__item-qty { font-size: 12px; color: #8a8a8a; }
.fhs-order-detail__item-price { font-size: 15px; font-weight: 700; color: #111; margin-top: 4px; }
.fhs-order-detail__actions { margin-top: 16px; }
.fhs-order-detail__confirm { width: 100%; height: 48px; font-size: 15px; margin-bottom: 8px; }
.fhs-order-detail__subactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fhs-order-detail__subactions .fhs-btn-sm { width: 100%; }
.fhs-order-detail__receipt, .fhs-order-detail__pct { color: #f31110; }
.fhs-order-detail__pct { font-weight: 800; }
.fhs-order-detail__receipt { font-size: 13px; text-decoration: underline; color: #666; }
.fhs-order-benefit .fhs-pay-info__row span { color: #2563eb; }
.fhs-order-benefit .fhs-pay-info__row span:first-child { color: #666; }
.fhs-order-benefit__sum { font-weight: 800; }
@media (max-width: 600px) {
	.fhs-order-detail__subactions { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   최근 본 상품
   ========================================================= */
.fhs-recent { padding: 40px 0 8px; }
.fhs-recent__list { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.fhs-recent__item { flex: 0 0 160px; text-decoration: none; color: #111; }
.fhs-recent__thumb { display: block; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.fhs-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fhs-recent__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; margin: 8px 0 4px; }
.fhs-recent__price { font-size: 13px; font-weight: 700; }

/* =========================================================
   모바일 하단 고정 구매바 (무신사 IMG_0168)
   ========================================================= */
.fhs-pdp-mobilebar { display: none; }
@media (max-width: 1024px) {
	.fhs-pdp-mobilebar { display: flex !important; flex-direction: row !important; align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #ebebeb; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
	.fhs-pdp-mobilebar__wish { position: static !important; order: -1 !important; flex: 0 0 52px; min-width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; color: #888; cursor: pointer; inset: auto; }
	.fhs-pdp-mobilebar__cart { order: 0 !important; }
	.fhs-pdp-mobilebar__buy { order: 1 !important; }
	.fhs-pdp-mobilebar__wish.active { color: #f31110; }
	.fhs-pdp-mobilebar__wish.active svg { fill: #f31110; }
	.fhs-pdp-mobilebar__wishcount { font-size: 11px; color: #888; }
	.fhs-pdp-mobilebar__cart { flex: 1; height: 52px; border: 1px solid #111; border-radius: 6px; background: #fff; color: #111; font-size: 15px; font-weight: 700; cursor: pointer; }
	.fhs-pdp-mobilebar__buy { flex: 1.6; height: 52px; border: 0; border-radius: 6px; background: #111; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
	.fhs-pdp-mobilebar__buy:disabled { background: #ccc; }
	.fhs-pdp { padding-bottom: 84px; }
}

/* =========================================================
   결제하기 (체크아웃) — 무신사식 화이트 서피스
   ========================================================= */
.fluxshop-checkout { background: #fff; color: #111; max-width: 1100px; margin: 0 auto; padding: 8px 16px 60px; border-radius: 8px; }
.fluxshop-checkout__layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 32px; align-items: start; }
.fluxshop-checkout .fluxshop-cart__title { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 20px; }
.fluxshop-checkout .fhs-checkout-section { background: #fff !important; border: 1px solid #ebebeb !important; border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; }
.fluxshop-checkout .fhs-checkout-section h3, .fluxshop-checkout .fhs-section-title { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 16px; }
.fhs-form-row { margin-bottom: 14px; }
.fhs-form-row label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.fhs-form-row label .required { color: #f31110; }
.fhs-form-row input[type="text"], .fhs-form-row input[type="tel"], .fhs-form-row input[type="email"],
.fhs-form-row input[type="number"], .fhs-form-row select, .fhs-form-row textarea,
.fluxshop-checkout input[type="text"], .fluxshop-checkout input[type="tel"], .fluxshop-checkout input[type="email"] {
	width: 100%; height: 46px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0 14px; font-size: 14px; color: #111; background: #fff;
}
.fluxshop-checkout textarea { height: auto; min-height: 72px; padding: 12px 14px; }
.fhs-form-row--inline { display: flex; gap: 8px; }
/* 테마 다크 입력/요약 강제 화이트 */
.fluxshop-checkout input, .fluxshop-checkout select, .fluxshop-checkout textarea { background: #fff !important; color: #111 !important; border-color: #e0e0e0 !important; }
.fluxshop-checkout input::placeholder, .fluxshop-checkout textarea::placeholder { color: #9ca3af; }
.fluxshop-checkout .fhs-order-summary { background: #fff !important; border: 0 !important; padding: 0 !important; }
.fluxshop-checkout .fhs-pg-item.active { background: #fff !important; border-color: #111 !important; }
.fluxshop-checkout .fhs-order-item__name, .fluxshop-checkout .fhs-order-item__price, .fluxshop-checkout .fhs-pg-label { color: #111 !important; }
.fluxshop-checkout .fhs-total-row span { color: #444; }
.fluxshop-checkout .fhs-total-row--final span:first-child { color: #111 !important; }

/* 내 배송지 주소록 피커 — 미니멀(무채색) 카드 선택 */
.fluxshop-checkout .fhs-addrbook { margin: 0 0 20px; }
.fluxshop-checkout .fhs-addrbook__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.fluxshop-checkout .fhs-addrbook__title { font-size: 13px; color: #666; }
.fluxshop-checkout .fhs-addrbook__manage { font-size: 12px; color: #999; text-decoration: none; border-bottom: 1px solid #ddd; }
.fluxshop-checkout .fhs-addrbook__manage:hover { color: #111; border-bottom-color: #111; }
.fluxshop-checkout .fhs-addrbook__list {
	display: block; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #fff;
}
.fluxshop-checkout .fhs-abk-item {
	display: flex !important; align-items: flex-start; justify-content: flex-start !important;
	gap: 10px; margin: 0; padding: 14px 16px; cursor: pointer;
	background: #fff !important; border-top: 1px solid #f0f1f3;
	transition: background-color .15s ease;
}
.fluxshop-checkout .fhs-abk-item:first-child { border-top: 0; }
.fluxshop-checkout .fhs-abk-item:hover { background: #fafafa !important; }
.fluxshop-checkout .fhs-abk-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.fluxshop-checkout .fhs-abk-item__radio {
	flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
	border: 1px solid #c9ced6; background: #fff; position: relative; transition: border-color .15s ease;
}
.fluxshop-checkout .fhs-abk-item.is-active { background: #fafafa !important; }
.fluxshop-checkout .fhs-abk-item.is-active .fhs-abk-item__radio { border-color: #111; }
.fluxshop-checkout .fhs-abk-item.is-active .fhs-abk-item__radio::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #111;
}
.fluxshop-checkout .fhs-abk-item input[type="radio"]:focus-visible + .fhs-abk-item__radio { outline: 1px solid #111; outline-offset: 2px; }
.fluxshop-checkout .fhs-abk-item__body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; text-align: left; }
.fluxshop-checkout .fhs-abk-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fluxshop-checkout .fhs-abk-item__name { font-size: 14px; font-weight: 600; color: #111; }
.fluxshop-checkout .fhs-abk-item__phone { font-size: 13px; color: #888; }
.fluxshop-checkout .fhs-abk-item__addr { font-size: 13px; color: #666; line-height: 1.5; word-break: keep-all; }
.fluxshop-checkout .fhs-abk-badge {
	display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 3px;
	font-size: 11px; font-weight: 500; color: #777; background: #f2f3f5;
}
.fluxshop-checkout .fhs-abk-badge--default { color: #111; background: #e9eaec; }
.fluxshop-checkout .fhs-abk-item--new .fhs-abk-item__name { color: #111; font-weight: 500; }

.fluxshop-checkout [hidden] { display: none !important; }

/* 저장 배송지 선택 시 입력란 잠금 표시 */
.fluxshop-checkout .fhs-ship-fields--locked input[readonly] { background: #fafafa !important; color: #767676 !important; cursor: default; }
.fluxshop-checkout .fhs-ship-fields--locked .fhs-btn--zipcode { opacity: .35; pointer-events: none; }

@media (max-width: 768px) {
	.fluxshop-checkout .fhs-abk-item { padding: 13px 14px; }
	.fluxshop-checkout .fhs-abk-item__addr { font-size: 12.5px; }
}

/* 라디우스 통일 — 결제 페이지 전체 6px (요약/섹션 카드만 8px) */
.fluxshop-checkout input[type="text"],
.fluxshop-checkout input[type="tel"],
.fluxshop-checkout input[type="email"],
.fluxshop-checkout input[type="number"],
.fluxshop-checkout select,
.fluxshop-checkout textarea,
.fluxshop-checkout button,
.fluxshop-checkout .fhs-btn,
.fluxshop-checkout .fluxshop-btn { border-radius: 6px; }
.fluxshop-checkout .fhs-checkout-section,
.fluxshop-checkout__summary { border-radius: 8px; }

/* 결제수단 (카페24 스타일 — 수단당 1행, PG 숨김) */
.fhs-pay-list { display: flex; flex-direction: column; gap: 8px; }
.fhs-pay-item {
	display: flex; align-items: center; gap: 10px;
	border: 1px solid #e5e7eb; border-radius: 6px;
	padding: 13px 15px; cursor: pointer; background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}
.fhs-pay-item:hover { border-color: #c9ced6; }
/* 실제 라디오 인풋은 숨기고 커스텀 원형으로 대체 (선택 상태를 확실히 노출) */
.fhs-pay-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.fhs-pay-radio {
	flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
	border: 1px solid #c9ced6; background: #fff; position: relative;
	transition: border-color .15s ease;
}
.fhs-pay-item.active { border-color: #111; background: #fafafa; }
.fhs-pay-item.active .fhs-pay-radio { border-color: #111; }
.fhs-pay-item.active .fhs-pay-radio::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #111;
}
.fhs-pay-item input[type="radio"]:focus-visible + .fhs-pay-radio { outline: 1px solid #111; outline-offset: 2px; }
.fhs-pay-label { display: flex; flex-direction: column; gap: 2px; }
.fhs-pay-method { font-size: 13.5px; font-weight: 500; color: #111; }
.fhs-pay-note { font-size: 11.5px; color: #888; }
.fhs-pg-empty { font-size: 14px; color: #6b7280; padding: 12px 0; }

/* 구버전 PG 칩 (호환) */
.fhs-pg-list { display: flex; flex-direction: column; gap: 8px; }
.fhs-pg-item { display: flex; align-items: center; gap: 8px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 16px; cursor: pointer; }
.fhs-pg-item.active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.fhs-pg-label { font-size: 14px; color: #111; }

/* 우측 요약 */
.fluxshop-checkout__summary { position: sticky; top: 20px; background: #fff; border: 1px solid #ebebeb; border-radius: 8px; padding: 22px; }
.fluxshop-checkout__summary .fhs-section-title { margin-bottom: 16px; }
.fhs-order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.fhs-order-item__name { flex: 1; font-size: 13px; color: #111; }
.fhs-order-item__price { font-size: 14px; font-weight: 700; color: #111; }
.fhs-order-total-rows { margin-top: 14px; }
.fhs-total-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: #444; }
.fhs-total-row span:first-child { color: #666; }
.fhs-summary-discount span:last-child, .fhs-summary-point span:last-child { color: #f31110; }
.fhs-total-row--final { border-top: 1px solid #ebebeb; padding-top: 14px; margin-top: 6px; align-items: baseline; }
.fhs-total-row--final span:first-child { color: #111; font-size: 15px; font-weight: 700; }
.fhs-total-row--final span:last-child, .fhs-summary-total { color: #f31110; font-size: 22px; font-weight: 800; }
/* 결제하기 버튼 — 무신사 블랙 */
.fluxshop-checkout .fluxshop-btn--primary { background: #111; border-color: #111; color: #fff; height: 52px; border-radius: 6px; font-size: 16px; font-weight: 700; }
.fluxshop-checkout .fluxshop-btn--primary:hover { background: #000; }
.fhs-checkout-agree { font-size: 12px; color: #888; text-align: center; margin-top: 10px; }
.fhs-checkout-agree a { color: #666; }

@media (max-width: 900px) {
	.fluxshop-checkout__layout { grid-template-columns: 1fr; }
	.fluxshop-checkout__summary { position: static; }
}

/* =========================================================
   공통 버튼 톤(무신사) — 스토어 전 페이지
   ========================================================= */
.fluxshop .fluxshop-btn--primary { background: #111 !important; border-color: #111 !important; color: #fff !important; border-radius: 4px; }
.fluxshop .fluxshop-btn--primary:hover { background: #000 !important; }
.fluxshop .fluxshop-btn--outline { background: #fff !important; border: 1px solid #d5d5d5 !important; color: #111 !important; border-radius: 4px; }
.fluxshop .fluxshop-btn--outline:hover { border-color: #111 !important; }

/* =========================================================
   주문 완료
   ========================================================= */
.fluxshop-order-complete { background: #fff; color: #111; max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; text-align: center; border-radius: 8px; }
.fhs-complete-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: #1a8f3c; }
.fluxshop-order-complete h1, .fluxshop-order-complete h2 { font-size: 22px; font-weight: 800; color: #111; }
.fhs-order-number { font-size: 14px; color: #666; margin: 8px 0 28px; }
.fhs-complete-summary { text-align: left; border: 1px solid #ebebeb; border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.fhs-complete-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #444; }
.fhs-complete-row span:first-child { color: #666; }
.fhs-complete-actions { display: flex; gap: 8px; justify-content: center; }
.fhs-complete-actions .fluxshop-btn { height: 48px; padding: 0 24px; }

/* =========================================================
   배송 조회
   ========================================================= */
.fluxshop-order-tracking { background: #fff; color: #111; max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; border-radius: 8px; }
.fhs-tracking-card { border: 1px solid #ebebeb; border-radius: 8px; padding: 20px; margin-bottom: 16px; background: #fff; }
.fhs-tracking-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fhs-order-num { font-size: 14px; font-weight: 700; color: #111; }

/* =========================================================
   마이페이지 하위탭 (쿠폰/적립금/예치금/세금계산서/리뷰/클레임/다운로드/찜)
   ========================================================= */
.fhs-account .fhs-mypage-section { background: #fff; }
.fhs-account .fhs-mypage-title { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 20px; }
.fhs-account .fhs-mypage-table, .fhs-account .fluxshop-table, .fhs-account .fhs-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.fhs-account .fhs-mypage-table th, .fhs-account .fluxshop-table th, .fhs-account .fhs-table th { background: #fafafa !important; color: #444 !important; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid #ebebeb; text-align: left; }
.fhs-account .fhs-mypage-table td, .fhs-account .fluxshop-table td, .fhs-account .fhs-table td { color: #111 !important; padding: 14px; border-bottom: 1px solid #f4f4f4; }
.fhs-account .fhs-coupon-card { background: #fff !important; border: 1px solid #ebebeb !important; border-radius: 8px; padding: 18px; color: #111; }
.fhs-account .fhs-points-balance, .fhs-account .fhs-deposit-balance { background: #fff !important; border: 1px solid #ebebeb; border-radius: 8px; padding: 24px; text-align: center; }
.fhs-account .fhs-points-label { color: #666 !important; font-size: 14px; }
.fhs-account .fhs-points-amount { color: #111 !important; font-size: 30px; font-weight: 800; }
.fhs-account .fhs-empty { color: #8a8a8a; text-align: center; padding: 48px 0; }
.fhs-account .fhs-field label { color: #666; }
.fhs-account .fhs-field input, .fhs-account .fhs-field select, .fhs-account .fhs-field textarea { background: #fff !important; color: #111 !important; border: 1px solid #e0e0e0 !important; border-radius: 4px; }

/* =========================================================
   구독 요금표
   ========================================================= */
.fluxshop-pricing-table { background: transparent; color: #111; max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }

/* =========================================================
   무신사 목록 카드 1:1 (.fhs-mcard)
   ========================================================= */
.fhs-shop-grid { grid-template-columns: repeat(5, 1fr); gap: 40px 16px; }
.fhs-mcard { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.fhs-mcard:hover { box-shadow: none; transform: none; }
.fhs-mcard__thumb { display: block; position: relative; aspect-ratio: 5 / 6; border-radius: 6px; overflow: hidden; background: #f6f6f6; }
.fhs-mcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fhs-mcard__thumb:hover img { transform: scale(1.03); }
/* 배지 좌하단 (무신사 멤버스데이 스타일) */
.fhs-mcard__badge { position: absolute; left: 0; bottom: 0; background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 500; line-height: 1; padding: 5px 7px; }
/* 액션: 우하단 하트 + 장바구니 — 같은 컨테이너에 세로 스택(절대 겹치지 않음), 둘 다 상시 표시 */
.fhs-mcard__actions { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 2; }
/* position: static 로 전역 .fhs-wishlist-btn{position:absolute} 무효화 → flex 세로 흐름 유지(겹침 방지) */
.fhs-mcard__actions .fhs-mcard__heart, .fhs-mcard__actions .fhs-mcard__cart { position: static; top: auto; right: auto; bottom: auto; left: auto; }
.fhs-mcard__heart, .fhs-mcard__cart { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #333; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: background .15s, color .15s, transform .15s; }
.fhs-mcard__heart:hover, .fhs-mcard__cart:hover { background: #fff; transform: translateY(-1px); }
.fhs-mcard__heart svg, .fhs-mcard__cart svg { width: 19px; height: 19px; }
.fhs-mcard__cart { opacity: 1; }
.fhs-mcard__heart.active { color: #f31110; background: #fff; }
.fhs-mcard__heart.active svg { fill: #f31110; }
/* 본문 */
.fhs-mcard__body { padding: 10px 1px 0; }
.fhs-mcard__brand { font-size: 11px; font-weight: 600; color: #000 !important; margin: 0 0 3px; }
.fhs-mcard__name { font-size: 13px; font-weight: 400; line-height: 1.35; margin: 0 0 6px; }
.fhs-mcard__name a { color: #000 !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fhs-mcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 0 0 5px; }
.fhs-mcard__discount { font-size: 13px; font-weight: 600; color: #f31110; }
.fhs-mcard__cur { font-size: 13px; font-weight: 600; color: #000; }
.fhs-mcard__cycle { font-size: 12px; color: #8a8a8a; }
.fhs-mcard__meta { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 11px; }
.fhs-mcard__likes { color: #f31110; }
.fhs-mcard__rating { color: rgb(250,146,0); }
.fhs-mcard__rcount { color: rgb(250,146,0); }
@media (max-width: 1280px) { .fhs-shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .fhs-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .fhs-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; } }

/* =====================================================================
   마이페이지 대시보드 (프리미엄 커머스형)
   dadavape 스킨에서 코어로 승격 — 색상은 --fhs-* 변수로 라이트/다크 테마 모두 대응.
   마크업: includes/mypage/class-mypage-tabs.php (fhs-dash__*)
   ===================================================================== */
.fhs-dash .fhs-mypage-title { display: none; }
.fhs-dash__greet { margin: 2px 0 24px; }
.fhs-dash__hello { font-size: 22px; font-weight: 500; color: var(--fhs-text); margin: 0; line-height: 1.35; letter-spacing: -.01em; }
.fhs-dash__hello strong { font-weight: 800; }
.fhs-dash__hello-sub { font-size: 14px; color: var(--fhs-text-muted); margin: 6px 0 0; }
.fhs-dash__subtitle { font-size: 14px; font-weight: 600; color: var(--fhs-text-muted); margin: 0 0 12px; }

/* 주문 처리 현황 */
.fhs-dash__orders { display: flex; align-items: stretch; gap: 0; background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 16px; padding: 24px 10px; overflow-x: auto; }
.fhs-dash__flow { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.fhs-dash__stat { flex: 1 1 0; min-width: 60px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; color: var(--fhs-text); padding: 6px; }
.fhs-dash__num { font-size: 32px; font-weight: 800; line-height: 1; color: var(--fhs-border); }
.fhs-dash__num.is-active { color: var(--fhs-text); }
.fhs-dash__label { font-size: 13px; color: var(--fhs-text-muted); white-space: nowrap; font-weight: 500; }
.fhs-dash__stat:hover .fhs-dash__label { color: var(--fhs-text); }
.fhs-dash__arrow { display: flex; align-items: center; color: var(--fhs-border); font-size: 20px; font-weight: 400; flex: 0 0 auto; padding: 0 2px; align-self: center; margin-bottom: 26px; }
.fhs-dash__claims { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 2px 10px 2px 20px; margin-left: 8px; border-left: 1px solid var(--fhs-border); }
.fhs-dash__claim { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 88px; text-decoration: none; color: var(--fhs-text-muted); font-size: 13px; font-weight: 500; }
.fhs-dash__claim b { font-size: 14px; font-weight: 800; color: var(--fhs-border); }
.fhs-dash__claim b.is-active { color: var(--fhs-text); }
.fhs-dash__claim:hover { color: var(--fhs-text); }

/* 요약 카드 (적립금·쿠폰·예치금) */
.fhs-dash__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.fhs-dash__card { display: flex; flex-direction: column; gap: 7px; background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 16px; padding: 18px 20px; text-decoration: none; transition: border-color .2s, transform .15s; }
.fhs-dash__card:hover { border-color: var(--fhs-text-muted); transform: translateY(-2px); }
.fhs-dash__card-label { font-size: 13px; color: var(--fhs-text-muted); font-weight: 500; }
.fhs-dash__card-value { font-size: 24px; font-weight: 800; color: var(--fhs-text); letter-spacing: -.01em; }
.fhs-dash__card-value em { font-size: 14px; font-weight: 500; color: var(--fhs-text-muted); font-style: normal; margin-left: 2px; }

/* 최근 주문 */
.fhs-dash__recent { margin-top: 26px; }
.fhs-dash__recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.fhs-dash__recent-head .fhs-dash__subtitle { margin: 0; }
.fhs-dash__more { font-size: 13px; color: var(--fhs-text-muted); text-decoration: none; font-weight: 500; }
.fhs-dash__more:hover { color: var(--fhs-text); }
.fhs-dash__recent-list { background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 16px; padding: 4px 20px; }
.fhs-dash__order { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--fhs-border); text-decoration: none; color: var(--fhs-text); }
.fhs-dash__order:first-child { border-top: none; }
.fhs-dash__order-date { font-size: 12px; color: var(--fhs-text-muted); flex: 0 0 auto; width: 74px; }
.fhs-dash__order-no, .fhs-dash__order-name { font-size: 13.5px; font-weight: 600; color: var(--fhs-text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhs-dash__order-qty { font-size: 12px; font-weight: 400; color: var(--fhs-text-muted); margin-left: 7px; }
.fhs-dash__order-total { font-size: 14px; font-weight: 700; color: var(--fhs-text); flex: 0 0 auto; }
.fhs-dash__order .fhs-badge { flex: 0 0 auto; }
.fhs-dash__empty { background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 16px; padding: 22px; color: var(--fhs-text-muted); font-size: 14px; text-align: center; }
.fhs-dash__empty a { color: var(--fhs-text); font-weight: 600; text-decoration: none; }

/* 바로가기 */
.fhs-dash__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.fhs-dash__links a { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 14px; padding: 18px 8px; text-decoration: none; color: var(--fhs-text-muted); font-size: 13px; font-weight: 500; transition: border-color .2s, color .2s; }
.fhs-dash__links a:hover { border-color: var(--fhs-text); color: var(--fhs-text); }
.fhs-dash__links .dashicons { font-size: 22px; width: 22px; height: 22px; color: var(--fhs-text-muted); }
.fhs-dash__links a:hover .dashicons { color: var(--fhs-text); }
@media (max-width: 480px) {
	.fhs-dash__hello { font-size: 19px; }
	.fhs-dash__num { font-size: 25px; }
	.fhs-dash__label { font-size: 11px; }
	.fhs-dash__arrow { font-size: 15px; }
}

/* =====================================================================
   체크아웃 "사용 가능 쿠폰" 선택 UI (배민/쿠팡이츠식) — J2
   마크업: assets/js/fluxshop.js (fhs-coupon-picker/pick)
   ===================================================================== */
.fhs-coupon-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--fhs-text-sub, #666); cursor: pointer; }
.fhs-coupon-toggle::after { content: "\25BE"; font-size: 11px; transition: transform .2s; }
.fhs-coupon-toggle.is-open::after { transform: rotate(180deg); }
.fhs-coupon-picker { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fhs-coupon-pick { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name amount" "meta amount"; gap: 2px 12px; align-items: center; text-align: left; width: 100%; background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 6px; padding: 13px 15px; cursor: pointer; font-family: inherit; transition: border-color .2s; }
.fhs-coupon-pick:hover { border-color: #c9ced6; background: #fafafa; }
.fhs-coupon-pick.is-selected { border-color: #111; background: #fafafa; }
.fhs-coupon-pick__name { grid-area: name; font-size: 13.5px; font-weight: 600; color: var(--fhs-text); }
.fhs-coupon-pick__meta { grid-area: meta; font-size: 12px; color: var(--fhs-text-muted); }
.fhs-coupon-pick__amount { grid-area: amount; font-size: 13.5px; font-weight: 700; color: var(--fhs-text); white-space: nowrap; }
.fhs-coupon-applied { color: var(--fhs-primary); font-weight: 700; }
.fhs-coupon-error { color: var(--fhs-danger); font-weight: 600; }
@media (max-width: 480px) {
	.fhs-coupon-pick { grid-template-columns: 1fr auto; grid-template-areas: "name amount" "meta amount"; row-gap: 3px; }
}
.fhs-coupon-subtitle { font-size: 14px; font-weight: 600; color: var(--fhs-text-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.fhs-coupon-count { background: var(--fhs-primary); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* =====================================================================
   E1: 증빙(세금계산서/현금영수증) 프로필 폼 — 코어 기본 스타일(스킨 미적용 방지)
   마크업: includes/mypage/class-mypage-tabs.php::tab_invoices() (.fhs-invoice-profile-form)
   ===================================================================== */
.fhs-invoice-profile-form { max-width: 540px; margin-top: 10px; }
.fhs-invoice-profile-form p { margin: 0 0 16px; }
.fhs-invoice-profile-form label { display: block; font-size: 14px; font-weight: 600; color: var(--fhs-text); letter-spacing: -.01em; }
.fhs-invoice-profile-form input:not([type=hidden]):not([type=submit]):not([type=button]) { display: block; width: 100%; box-sizing: border-box; margin-top: 7px; height: 46px; padding: 0 14px; border: 1px solid var(--fhs-border); border-radius: 10px; font-size: 15px; background: var(--fhs-white); color: var(--fhs-text); transition: border-color .15s, box-shadow .15s; }
.fhs-invoice-profile-form input:focus { outline: none; border-color: var(--fhs-primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.fhs-invoice-profile-form .button, .fhs-invoice-profile-form button[type=submit] { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 30px; margin-top: 6px; background: var(--fhs-primary); color: #fff; border: none; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.fhs-invoice-profile-form .button:hover, .fhs-invoice-profile-form button[type=submit]:hover { background: var(--fhs-primary-dark); }

/* =====================================================================
   F: 배송지 관리 (주소록)
   ===================================================================== */
.fhs-addr-book__desc { color: var(--fhs-text-muted); font-size: 14px; margin: 0 0 16px; }
.fhs-addr-list { display: flex; flex-direction: column; gap: 12px; }
.fhs-addr-card { display: flex; justify-content: space-between; gap: 16px; background: var(--fhs-white); border: 1px solid var(--fhs-border); border-radius: 12px; padding: 16px 18px; }
.fhs-addr-card.is-default { border-color: var(--fhs-primary); }
.fhs-addr-card__top { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fhs-addr-card__top strong { font-size: 15px; color: var(--fhs-text); }
.fhs-addr-card__label { font-size: 12px; color: var(--fhs-text-muted); background: var(--fhs-bg); border-radius: 4px; padding: 1px 7px; }
.fhs-addr-card__badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--fhs-primary); border-radius: 999px; padding: 2px 8px; }
.fhs-addr-card__phone, .fhs-addr-card__addr { margin: 2px 0; font-size: 13px; color: var(--fhs-text-muted); }
.fhs-addr-card__actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.fhs-addr-card__actions button { background: none; border: 1px solid var(--fhs-border); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: var(--fhs-text); white-space: nowrap; }
.fhs-addr-card__actions button:hover { border-color: var(--fhs-text); }
.fhs-addr-form { border: 1px solid var(--fhs-border); border-radius: 12px; padding: 18px; }

/* ===== 오늘의 특가 (타임세일) ===== */
.fhs-timesale { margin: 32px 0; }
.fhs-timesale__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.fhs-timesale__title { font-size: 22px; font-weight: 800; color: var(--fhs-text, #191919); margin: 0; letter-spacing: -.3px; }
.fhs-timesale__timer { display: inline-flex; align-items: center; gap: 8px; background: var(--fhs-primary, #2563eb); color: #fff; padding: 8px 14px; border-radius: 10px; }
.fhs-timesale__timer-label { font-size: 12px; font-weight: 600; opacity: .85; }
.fhs-timesale__clock { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; }


/* =========================================================
   결제 페이지 마감 통일 — 라디우스 6px, 강조 최소화(무채색)
   (스킨 CSS가 뒤에 로드되므로 형태 관련 값만 !important)
   ========================================================= */
.fluxshop-checkout input[type="text"],
.fluxshop-checkout input[type="tel"],
.fluxshop-checkout input[type="email"],
.fluxshop-checkout input[type="number"],
.fluxshop-checkout select,
.fluxshop-checkout textarea,
.fluxshop-checkout button,
.fluxshop-checkout .fhs-btn,
.fluxshop-checkout .fluxshop-btn,
.fluxshop-checkout .fluxshop-btn--primary { border-radius: 6px !important; }
.fluxshop-checkout .fhs-checkout-section,
.fluxshop-checkout__summary { border-radius: 8px !important; }

/* 결제수단 — 배송지 피커와 동일한 묶음 리스트, 선택은 배경으로만 표시 */
.fluxshop-checkout .fhs-pay-list {
	display: block; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #fff;
}
.fluxshop-checkout .fhs-pay-item {
	border: 0 !important; border-top: 1px solid #f0f1f3 !important; border-radius: 0 !important;
	padding: 13px 15px; background: #fff !important; box-shadow: none !important;
}
.fluxshop-checkout .fhs-pay-item:first-child { border-top: 0 !important; }
.fluxshop-checkout .fhs-pay-item:hover { background: #fafafa !important; }
.fluxshop-checkout .fhs-pay-item.active { background: #fafafa !important; }
.fluxshop-checkout .fhs-pay-method { font-size: 13.5px; font-weight: 500; }
.fluxshop-checkout .fhs-pay-note { font-size: 11.5px; color: #888; }

/* 쿠폰 목록 토글 — 링크 색 강조 제거 */
.fluxshop-checkout #fhs-coupon-toggle { color: #666 !important; font-size: 13px; font-weight: 600; }
.fluxshop-checkout #fhs-coupon-toggle:hover { color: #111 !important; }
.fluxshop-checkout .fhs-coupon-pick { border-radius: 6px !important; }

/* ===================
   가격문의 (판매가 0원) — 설정 > 상품정보에서 켤 때만 노출
   =================== */
.fhs-mcard__cur--inquiry,
.fhs-price-current--inquiry {
	letter-spacing: .02em;
	white-space: nowrap;
}

/* ===================
   상품 본문 상단/하단 고정 이미지
   =================== */
.fhs-pdp-desc__fixed { margin: 0 0 24px; }
.fhs-pdp-desc__fixed--bottom { margin: 24px 0 0; }
.fhs-pdp-desc__fixed img { max-width: 100%; height: auto; }

/* ===================
   주문요청(무결제) 모드 — 설정 > 결제에서 켤 때만 노출
   =================== */
.fhs-request-note {
	margin: 0;
	padding: 14px 16px;
	background: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #444;
	font-size: 14px;
	line-height: 1.6;
}

/* 주문 카드의 설치비 보조 표기 — 총액 밑에 한 줄. */
.fhs-order-card__note {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 400;
	color: #6b7280;
}

/* ── 마이페이지 대시보드: 좁은 화면 ──────────────────────
   주문 처리 현황은 [단계 4칸] + [취소·교환·반품 3줄]이 한 줄로 붙어 있다.
   폰 폭에서는 두 덩어리가 겹쳐 숫자와 라벨이 서로를 덮었다. 아래로 접는다. */
@media (max-width: 640px) {
	.fhs-dash__orders {
		flex-direction: column;
		gap: 16px;
		padding: 18px 12px;
	}

	.fhs-dash__flow {
		width: 100%;
	}

	.fhs-dash__stat {
		min-width: 0;
		padding: 4px 2px;
	}

	.fhs-dash__num {
		font-size: 26px;
	}

	.fhs-dash__label {
		font-size: 12px;
		white-space: normal;
		text-align: center;
	}

	.fhs-dash__arrow {
		display: none;
	}

	.fhs-dash__claims {
		flex-direction: row;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		margin-left: 0;
		padding: 14px 2px 0;
		border-left: 0;
		border-top: 1px solid var(--fhs-border);
	}

	.fhs-dash__claim {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
		gap: 6px;
	}
}
