#shopList { width:min(1280px, calc(100% - 40px)); margin:70px auto 80px; }
#shopList .shop-top { display:flex; flex-direction:column; align-items:center; gap:24px; margin-bottom:40px; }
#shopList h2 { font-size:34px; font-weight:600; }

#shopList .shop-tabs { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
#shopList .shop-tabs button { min-width:110px; height:40px; padding:0 20px; border:1px solid #ddd; background:#fff; }
#shopList .shop-tabs button.on { border-color:#222; font-weight:700; }

#shopList .shop-list-head { display:flex; justify-content:space-between; align-items:center; padding:0 0 14px; margin-bottom:20px; border-bottom:1px solid #e5e5e5; font-size:13px; }
#shopList .shop-sort { display:flex; gap:18px; }
#shopList .shop-sort button { background:transparent; font-size:13px; color:#333; }
#shopList .shop-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
#shopList .shop-card { display:block; color:inherit; }
#shopList .shop-card .thumb { aspect-ratio:1/1; display:flex; justify-content:center; align-items:center; background:#f3f3f3; border-radius:8px; overflow:hidden; }
#shopList .shop-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
#shopList .shop-card .thumb span { font-size:12px; color:#888; }
#shopList .shop-card .meta { padding-top:12px; }
#shopList .shop-card .name { font-size:14px; font-weight:600; }
#shopList .shop-card .price { margin-top:6px; font-size:14px; font-weight:700; }

#shopDetail { width:min(1280px, calc(100% - 40px)); margin:0 auto; padding:20px 0 40px; }
#shopDetail .detail-wrap { display:grid; grid-template-columns:minmax(0, 500px) minmax(0, 1fr); gap:60px; align-items:start; }
#shopDetail .media { display:flex; flex-direction:column; gap:24px; }
#shopDetail .thumb { display:flex; justify-content:center; align-items:center; background:#f3f3f3; overflow:hidden; }
#shopDetail .thumb.main { aspect-ratio:1/1; }
#shopDetail .thumb.sub { width:96px; aspect-ratio:1/1; }
#shopDetail .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
#shopDetail .thumb span { font-size:12px; color:#888; }
#shopDetail .thumb-list { display:flex; gap:12px; }
#shopDetail .extra-buttons > button { width:100%; height:42px; border:1px solid #ddd; background:#fff; font-size:14px; }
#shopDetail .extra-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:10px; }
#shopDetail .extra-grid button { height:42px; border:1px solid #ddd; background:#fff; font-size:14px; }
#shopDetail .meta-table { border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5; }
#shopDetail .meta-table .row, #shopDetail .option-row { display:grid; grid-template-columns:96px 1fr; gap:18px; padding:18px 10px; border-bottom:1px solid #eee; }
#shopDetail .meta-table .row:last-child { border-bottom:none; }
#shopDetail .label { font-size:15px; font-weight:600; color:#222; }
#shopDetail .value { font-size:15px; color:#222; }
#shopDetail .value.strong { font-size:17px; font-weight:700; }
#shopDetail .badge { display:inline-flex; justify-content:center; align-items:center; height:22px; margin-left:8px; padding:0 8px; border:1px solid #2e62d9; color:#2e62d9; font-size:12px; }
#shopDetail .option-box { border-bottom:1px solid #e5e5e5; }
#shopDetail .option-value { display:flex; flex-direction:column; gap:10px; }
#shopDetail .color-chip { width:26px; height:26px; border-radius:50%; background:#171d96; border:2px solid #fff; box-shadow:0 0 0 1px #bbb; }
#shopDetail .size-list { display:flex; flex-wrap:wrap; gap:8px; }
#shopDetail .size-list button { min-width:44px; height:34px; padding:0 10px; background:#efefef; color:#777; font-size:13px; }
#shopDetail .guide { font-size:14px; color:#555; }
#shopDetail .minimum { padding:14px 10px; border-bottom:1px solid #eee; font-size:14px; color:#333; }
#shopDetail .notice { padding:18px 10px; border-bottom:1px solid #eee; font-size:14px; color:#ff4c39; }
#shopDetail .total-box { padding:40px 0 24px; text-align:right; font-size:16px; }
#shopDetail .total-box strong { font-size:34px; font-weight:700; }
#shopDetail .buttons { display:flex; flex-direction:column; gap:10px; }
#shopDetail .buy-now { width:100%; height:58px; background:#000; color:#fff; font-size:26px; font-weight:700; }
#shopDetail .sub-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#shopDetail .sub-buttons button, #shopDetail .back-btn { height:56px; border:1px solid #ddd; background:#fff; font-size:18px; }
#shopDetail .back-btn { margin-top:8px; }
#shopDetail .detail-sections { margin-top:80px; }
#shopDetail .detail-section + .detail-section { margin-top:80px; }
#shopDetail .section-tabs { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
#shopDetail .section-tabs button { position:relative; height:50px; border:1px solid #e5e5e5; background:#fafafa; font-size:16px; color:#888; }
#shopDetail .section-tabs button.on { background:#fff; color:#222; font-weight:700; }
#shopDetail .section-tabs button.on::before { content:""; position:absolute; top:8px; left:50%; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:#ff3b30; }
#shopDetail .section-body { min-height:220px; display:flex; justify-content:center; align-items:center; font-size:18px; color:#444; }
#shopDetail .section-actions { display:flex; justify-content:flex-end; gap:6px; }
#shopDetail .section-actions button { min-width:94px; height:38px; padding:0 14px; border:1px solid #ddd; background:#fff; font-size:14px; }

@media (max-width: 1024px) {
	#shopList .shop-grid {
		grid-template-columns:repeat(2, minmax(0, 1fr));
	}
	#shopList .shop-list-head {
		flex-direction:column;
		align-items:flex-start;
		gap:10px;
	}
	#shopDetail .detail-wrap {
		grid-template-columns:1fr;
	}
	#shopDetail .section-tabs {
		grid-template-columns:repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	#shopList .shop-grid {
		grid-template-columns:1fr;
	}
	#shopList h2 {
		font-size:28px;
	}
	#shopList .shop-tabs {
		width:100%;
	}
	#shopList .shop-tabs button {
		flex:1;
		min-width:0;
	}
	#shopDetail .detail-wrap {
		gap:30px;
	}
	#shopDetail .meta-table .row, #shopDetail .option-row {
		grid-template-columns:1fr;
		gap:10px;
	}
	#shopDetail .total-box {
		font-size:14px;
	}
	#shopDetail .total-box strong {
		font-size:28px;
	}
	#shopDetail .buy-now {
		font-size:22px;
	}
	#shopDetail .sub-buttons {
		grid-template-columns:1fr;
	}
	#shopDetail .section-tabs {
		grid-template-columns:repeat(2, minmax(0, 1fr));
	}
	#shopDetail .section-body {
		min-height:160px;
		font-size:16px;
	}
	#shopDetail .section-actions {
		justify-content:flex-start;
		flex-wrap:wrap;
	}
}
